/* CSS Variables & Design System: LUXURY-DARK */
:root {
  --primary: #115e59;
  --secondary: #f0fdfa;
  --accent: #fbbf24;
  --bg-dark: #0a0a0a;
  --card-bg: #111111;
  --border-color: #333333;
  --text-light: #f8f8f8;
  --text-accent: #e8d5b0;
}

/* Base Body Styles */
body {
  background-color: var(--bg-dark);
  color: var(--text-light);
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: clamp(14px, 4vw, 16px);
  line-height: 1.6;
}

/* Typography Customizations */
h1, h2, h3, h4 {
  font-family: 'Playfair Display', serif;
  font-weight: 300;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-accent);
}

h1 {
  font-size: clamp(22px, 5vw, 36px);
}

/* Required sr-only rule to safely hide inputs while preserving 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;
}

/* Gallery Container Styles */
.gallery-container {
  position: relative;
  width: 100%;
}

/* Main Display Area (Aspect Ratio 1:1) */
.gallery-main {
  position: relative;
  width: 100%;
  padding-bottom: 100%;
  overflow: hidden;
  border: 1px solid var(--border-color);
  background-color: #000000;
  border-radius: 4px;
}

/* Slide Styling */
.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;
}

/* Thumbnail Grid Styling */
.thumbnails {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-top: 12px;
}

.thumbnails label {
  cursor: pointer;
  border: 2px solid transparent;
  border-radius: 4px;
  overflow: hidden;
  transition: border-color 0.2s ease-in-out;
}

.thumbnails label img {
  width: 100%;
  height: auto;
  aspect-ratio: 1;
  object-fit: cover;
}

/* Active Slide Selector Logic */
#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 Logic */
#img-1:checked ~ .thumbnails label[for="img-1"] { border-color: var(--accent); }
#img-2:checked ~ .thumbnails label[for="img-2"] { border-color: var(--accent); }
#img-3:checked ~ .thumbnails label[for="img-3"] { border-color: var(--accent); }
#img-4:checked ~ .thumbnails label[for="img-4"] { border-color: var(--accent); }

/* Layout Sections and Card Elements */
section {
  padding: 48px 16px;
}

.card {
  background-color: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 4px;
  transition: border-color 0.3s ease-in-out;
}

.card:hover {
  border-color: var(--text-accent);
}

/* CTA Button Styling */
.btn-cta {
  min-height: 48px;
  padding: 12px 48px;
  background-color: var(--primary);
  color: #ffffff !important; /* High contrast white text guaranteed */
  border: 1px solid var(--accent);
  border-radius: 0;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
}

.btn-cta:hover {
  background-color: var(--accent);
  color: #0a0a0a !important; /* High contrast dark text on gold background */
  border-color: #ffffff;
}