/* CSS Variables for Luxury-Dark Design System */
:root {
  --primary: #854d0e;
  --secondary: #fffbeb;
  --accent: #0369a1;
  --text: #e8d5b0;
  --bg: #0a0a0a;
}

/* Base Reset & Typography */
body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(14px, 4vw, 16px);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

section {
  padding: 64px 16px;
}

.card {
  background: #111;
  border: 1px solid #333;
  border-radius: 4px;
}

h1, h2, h3 {
  font-family: 'Cinzel', serif;
  font-weight: 300;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* Buttons */
.btn {
  border-radius: 0;
  border: 1px solid #e8d5b0;
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.cta-btn {
  background-color: var(--primary);
  color: #ffffff !important;
  border: 1px solid var(--primary);
  transition: background-color 0.2s, transform 0.2s;
}

.cta-btn:hover {
  background-color: #a16207;
  transform: translateY(-2px);
}

/* Gallery CSS Only Logic */
.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%; /* Strict height constraint */
  overflow: hidden;
}

.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 triggers */
#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;
}

/* Thumbnails */
.thumbnails {
  display: flex;
  gap: 8px;
  margin-top: 16px;
}

.thumbnails label {
  cursor: pointer;
  border: 2px solid #333;
  width: 25%;
  aspect-ratio: 1/1;
  overflow: hidden;
  border-radius: 4px;
  transition: border-color 0.2s ease-in-out, transform 0.2s;
}

.thumbnails label:hover {
  transform: scale(1.02);
}

.thumbnails label img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Thumbnail active state 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(--primary);
  box-shadow: 0 0 8px rgba(133, 77, 14, 0.5);
}