/* CSS Variables & Theme Setup */
:root {
  --primary: #4d7c0f;
  --secondary: #f7fee7;
  --accent: #0ea5e9;
  --text: #1a2e05;
  --bg: #fefefe;
}

/* Base LUXURY-DARK Design System overrides */
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;
}

/* Responsive Typography via clamp() */
h1 {
  font-size: clamp(20px, 4vw, 28px);
}

h2 {
  font-size: clamp(22px, 5vw, 36px);
}

p, span, label, div {
  font-size: clamp(14px, 3.5vw, 16px);
}

/* Gallery CSS Engine (Strict Template Requirements) */
.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 is strictly proportional to width */
  overflow: hidden;
}

.slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  z-index: 1;
  transition: opacity 0.3s ease-in-out;
}

/* Gallery Radio Connection Engine */
#img-1:checked ~ .gallery-main .slide-1 {
  opacity: 1;
  z-index: 10;
}

#img-2:checked ~ .gallery-main .slide-2 {
  opacity: 1;
  z-index: 10;
}

#img-3:checked ~ .gallery-main .slide-3 {
  opacity: 1;
  z-index: 10;
}

#img-4:checked ~ .gallery-main .slide-4 {
  opacity: 1;
  z-index: 10;
}

/* Active Thumbnail Highlight */
#img-1:checked ~ .thumbnails label[for="img-1"] {
  border-color: var(--primary);
  outline: 1px solid var(--primary);
}

#img-2:checked ~ .thumbnails label[for="img-2"] {
  border-color: var(--primary);
  outline: 1px solid var(--primary);
}

#img-3:checked ~ .thumbnails label[for="img-3"] {
  border-color: var(--primary);
  outline: 1px solid var(--primary);
}

#img-4:checked ~ .thumbnails label[for="img-4"] {
  border-color: var(--primary);
  outline: 1px solid var(--primary);
}

/* Mobile-First Layout Rules */
img {
  max-width: 100%;
  height: auto;
}

/* Prevent horizontal scroll issues */
html, body {
  overflow-x: hidden;
}