/* CSS Variables for Dark-Modern Theme */
:root {
  --primary: #ec4899;
  --secondary: #fdf2f8;
  --accent: #0891b2;
  --text: #831843;
  --bg: #0f0f0f;
}

/* Reset and Typography Clamp */
body {
  background: #0f0f0f;
  color: #f5f5f5;
  font-size: clamp(14px, 4vw, 16px);
  overflow-x: hidden;
}

h1 {
  font-weight: 800;
  font-size: clamp(20px, 4vw, 28px);
}

section {
  padding: 48px 16px;
}

@media (min-width: 768px) {
  section {
    padding: 64px 16px;
  }
}

/* Card Styling */
.card {
  background: #1a1a1a;
  border: 1px solid #333;
  border-radius: 12px;
}

/* Button Styling Override (For general matching) */
.btn {
  border-radius: 8px;
  background: #fff;
  color: #000;
  font-weight: 700;
}

/* Screen-Reader Only Styling - Strict Requirement */
.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 Engine (No Javascript) */
.gallery-main {
  position: relative;
  width: 100%;
  padding-bottom: 100%; /* Strict aspect ratio height definition */
  overflow: hidden;
}

.slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  z-index: 1;
  transition: opacity 0.3s ease-in-out;
}

/* Slides Visibility Mapping */
#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);
  box-shadow: 0 0 8px rgba(236, 72, 153, 0.4);
}
#img-2:checked ~ .thumbnails label[for="img-2"] {
  border-color: var(--primary);
  box-shadow: 0 0 8px rgba(236, 72, 153, 0.4);
}
#img-3:checked ~ .thumbnails label[for="img-3"] {
  border-color: var(--primary);
  box-shadow: 0 0 8px rgba(236, 72, 153, 0.4);
}
#img-4:checked ~ .thumbnails label[for="img-4"] {
  border-color: var(--primary);
  box-shadow: 0 0 8px rgba(236, 72, 153, 0.4);
}