/* Bold-Editorial Design System Variables */
:root {
  --primary: #ca8a04;
  --secondary: #fef9c3;
  --accent: #059669;
  --text: #422006;
  --bg: #fffff8;
}

/* Custom Base Override */
body {
  background: #fff;
  color: #000;
  font-family: 'Montserrat', sans-serif;
}

section {
  padding: 64px 16px;
}

h1, h2 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 900;
  line-height: 1.05;
  text-transform: uppercase;
}

.card {
  border-left: 4px solid #000;
  padding-left: 20px;
  border-radius: 0;
}

.btn {
  border-radius: 0;
  border: 2px solid #000;
  font-weight: 700;
  text-transform: uppercase;
  min-height: 44px;
}

/* Screen Reader Only Utility */
.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 Slider Logic (CSS Only) */
.gallery-main {
  position: relative;
  width: 100%;
  padding-bottom: 100%; /* Strict height definition */
  overflow: hidden;
  background-color: #f3f4f6;
}

.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;
}

/* Radio Control Mappings */
#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;
}

/* Thumbnails Grid */
.thumbnails {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-top: 16px;
}

.thumbnails label {
  cursor: pointer;
  border: 2px solid transparent;
  transition: all 0.2s ease-in-out;
}

.thumbnails label img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

/* Active Thumbnail Highlight */
#img-1:checked ~ .thumbnails label[for="img-1"] {
  border-color: var(--primary);
  box-shadow: 2px 2px 0px 0px rgba(0,0,0,1);
}
#img-2:checked ~ .thumbnails label[for="img-2"] {
  border-color: var(--primary);
  box-shadow: 2px 2px 0px 0px rgba(0,0,0,1);
}
#img-3:checked ~ .thumbnails label[for="img-3"] {
  border-color: var(--primary);
  box-shadow: 2px 2px 0px 0px rgba(0,0,0,1);
}
#img-4:checked ~ .thumbnails label[for="img-4"] {
  border-color: var(--primary);
  box-shadow: 2px 2px 0px 0px rgba(0,0,0,1);
}