/* CSS Custom Variables for BOLD-EDITORIAL Theme */
:root {
  --primary: #78350f;
  --secondary: #fef3c7;
  --accent: #0d9488;
  --text: #292524;
  --bg: #fdf8f0;
}

/* Global Typography & Font System */
body {
  background: #ffffff;
  color: #111111;
  font-family: 'Playfair Display', Georgia, serif;
}

h1, h2, h3, h4, h5, h6, .btn {
  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 #000000;
  padding-left: 20px;
  border-radius: 0;
}

.btn {
  border-radius: 0;
  border: 2px solid #000000;
  font-weight: 700;
  text-transform: uppercase;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* Strictly Required Screen Reader Only Class */
.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-container {
  width: 100%;
}

.gallery-main {
  position: relative;
  width: 100%;
  padding-bottom: 100%; /* Keeps aspect ratio 1:1 without using aspect-square class */
  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;
}

/* Gallery Radio Connection Switches */
#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 Styling */
.thumbnails {
  display: flex;
  gap: 8px;
  margin-top: 12px;
}

.thumbnails label {
  cursor: pointer;
  border: 2px solid transparent;
  width: 25%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  transition: border-color 0.2s ease-in-out;
}

.thumbnails label img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Active Thumbnail Highlight Border */
#img-1:checked ~ .thumbnails label[for="img-1"] {
  border-color: var(--primary);
}
#img-2:checked ~ .thumbnails label[for="img-2"] {
  border-color: var(--primary);
}
#img-3:checked ~ .thumbnails label[for="img-3"] {
  border-color: var(--primary);
}
#img-4:checked ~ .thumbnails label[for="img-4"] {
  border-color: var(--primary);
}