/* CSS Variables & Design System: LUXURY-DARK */
:root {
  --primary: #ea580c;
  --secondary: #fff7ed;
  --accent: #1d4ed8;
  --text: #431407;
  --bg: #ffffff;
}

body {
  background: #0a0a0a;
  color: #e8d5b0;
}

section {
  padding: 64px 16px;
}

.card {
  background: #111;
  border: 1px solid #333;
  border-radius: 4px;
}

h1, h2 {
  font-weight: 300;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.btn {
  border-radius: 0;
  border: 1px solid #e8d5b0;
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* Typography Fluid Sizing */
body {
  font-size: clamp(14px, 4vw, 16px);
}

h1 {
  font-size: clamp(22px, 5vw, 36px);
}

/* Strictly forbidden horizontal scroll protection */
* {
  box-sizing: border-box;
}
html, body {
  overflow-x: hidden;
  max-width: 100%;
}

/* Gallery CSS Implementation */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

.gallery-main {
  position: relative;
  width: 100%;
  padding-bottom: 100%; /* Height via aspect ratio trick */
  overflow: hidden;
  background-color: #141414;
}

.slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  z-index: 1;
  transition: opacity 0.3s ease-in-out;
}

.slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Gallery Interactive Checking */
#img-1:checked ~ .gallery-main .slide-1,
#img-2:checked ~ .gallery-main .slide-2,
#img-3:checked ~ .gallery-main .slide-3,
#img-4:checked ~ .gallery-main .slide-4 {
  opacity: 1;
  z-index: 10;
}

/* Thumbnails */
.thumbnails {
  display: flex;
  gap: 8px;
  margin-top: 12px;
}

.thumbnails label {
  cursor: pointer;
  width: 25%;
  border: 2px solid transparent;
  transition: border-color 0.2s ease;
}

.thumbnails label img {
  width: 100%;
  height: auto;
  aspect-ratio: 1/1;
  object-fit: cover;
  display: block;
}

#img-1:checked ~ .thumbnails label[for="img-1"],
#img-2:checked ~ .thumbnails label[for="img-2"],
#img-3:checked ~ .thumbnails label[for="img-3"],
#img-4:checked ~ .thumbnails label[for="img-4"] {
  border-color: #ea580c; /* var(--primary) */
}