/* Variables definition */
:root {
  --primary: #57534e;
  --secondary: #fafaf9;
  --accent: #f59e0b;
  --text: #1c1917;
  --bg: #fefefe;
}

/* Base body styles using Glass-Frost theme background */
body {
  background: linear-gradient(135deg, #1e3a8a 0%, #581c87 100%);
  color: #fff;
  min-height: 100vh;
  font-family: 'Inter', sans-serif;
}

/* Typography clamp settings */
h1 {
  font-size: clamp(22px, 5vw, 36px);
}

h2 {
  font-size: clamp(20px, 4.5vw, 30px);
}

p, span, label {
  font-size: clamp(14px, 4vw, 16px);
}

/* Section padding */
section {
  padding: 32px 16px;
}

@media (min-width: 768px) {
  section {
    padding: 64px 16px;
  }
}

/* Glassmorphism Card Style */
.card {
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 16px;
}

/* CTA Button Style with high contrast */
.btn {
  border-radius: 12px;
  background: var(--accent);
  color: #ffffff;
  font-weight: 700;
  box-shadow: 0 4px 15px rgba(245, 158, 11, 0.4);
  transition: all 0.2s ease-in-out;
}

.btn:hover {
  background: #d97706;
  box-shadow: 0 6px 20px rgba(245, 158, 11, 0.6);
}

/* SR-ONLY definition (Strictly requested to hide inputs without breaking CSS selectors) */
.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;
}

/* CSS-Only Gallery Implementation */
.gallery-main {
  position: relative;
  width: 100%;
  padding-bottom: 100%; /* Perfect aspect ratio square */
  overflow: hidden;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.05);
}

.slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  z-index: 1;
  transition: opacity 0.4s ease-in-out;
  display: flex;
  align-items: center;
  justify-content: center;
}

.slide img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 16px;
}

/* Thumbnails list */
.thumbnails {
  display: flex;
  gap: 12px;
  margin-top: 16px;
  justify-content: center;
}

.thumbnails label {
  width: 70px;
  height: 70px;
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  cursor: pointer;
  overflow: hidden;
  transition: all 0.2s ease-in-out;
  background: rgba(255, 255, 255, 0.1);
}

.thumbnails label:hover {
  border-color: rgba(255, 255, 255, 0.6);
}

.thumbnails label img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Radio-controlled slide switching */
#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;
}

/* Active thumbnail highlight */
#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: var(--accent);
  box-shadow: 0 0 10px rgba(245, 158, 11, 0.5);
}