/* =========================================================================
   SAU CREACIONES - Core Stylesheet
   ========================================================================= */

/* --- 1. CSS Variables & Design Tokens --- */
:root {
  /* Color Palette - Serene, Elegant, Trustworthy */
  --color-bg-primary: #FAFAFA;
  --color-bg-secondary: #F0F2F0;
  /* Slight sage/greenish grey hue for calm */
  --color-bg-card: #FFFFFF;

  --color-text-primary: #2C3531;
  /* Deep forest/charcoal instead of pure black */
  --color-text-secondary: #5C6763;
  --color-text-inverse: #FFFFFF;

  --color-accent: #8FA998;
  /* Soft sage green */
  --color-accent-hover: #738E7C;
  --color-primary-cta: #D4A373;
  /* Warm, earthy tone for CTAs (Complementary) */
  --color-primary-cta-hover: #BB8C5E;

  /* Typography */
  --font-base: 'Inter', -apple-system, sans-serif;
  --font-heading: 'Playfair Display', serif;
  --font-brush: 'Water Brush', cursive;

  --text-base-size: 1rem;
  /* 16px */
  --text-base-lh: 1.6;

  /* Layout & Spacing */
  --container-max-width: 1200px;
  --spacing-xs: 0.5rem;
  /* 8px */
  --spacing-sm: 1rem;
  /* 16px */
  --spacing-md: 2rem;
  /* 32px */
  --spacing-lg: 4rem;
  /* 64px */
  --spacing-xl: 6rem;
  /* 96px */
  --spacing-xxl: 8rem;
  /* 128px */

  /* Borders & Shadows */
  --border-radius-sm: 4px;
  --border-radius-md: 8px;
  --border-radius-lg: 16px;
  --border-radius-full: 9999px;

  --shadow-sm: 0 2px 8px rgba(44, 53, 49, 0.05);
  --shadow-md: 0 4px 16px rgba(44, 53, 49, 0.08);
  --shadow-lg: 0 12px 32px rgba(44, 53, 49, 0.12);
  --shadow-card: 0 20px 40px rgba(0, 0, 0, 0.04);

  /* Transitions */
  --transition-fast: 0.2s ease-in-out;
  --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

/* --- 2. Reset & Global Styles --- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
  /* Offset for fixed header */
}

body {
  font-family: var(--font-base);
  color: var(--color-text-primary);
  background-color: var(--color-bg-primary);
  line-height: var(--text-base-lh);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img,
picture,
svg,
video {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition-fast);
}

ul,
ol {
  list-style: none;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
  font-weight: 500;
  line-height: 1.2;
  color: var(--color-text-primary);
}

/* --- 3. Utility Classes & Components --- */
.container {
  width: 100%;
  max-width: var(--container-max-width);
  margin: 0 auto;
  padding: 0 var(--spacing-md);
}

.text-center {
  text-align: center;
}

.mt-6 {
  margin-top: 1.5rem;
}

.mt-12 {
  margin-top: 3rem;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  font-family: var(--font-base);
  font-weight: 500;
  font-size: 0.95rem;
  border-radius: var(--border-radius-full);
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: all var(--transition-normal);
  border: 1px solid transparent;
}

.btn-primary {
  background-color: var(--color-primary-cta);
  color: var(--color-text-inverse);
  box-shadow: 0 4px 14px rgba(212, 163, 115, 0.3);
}

.btn-primary:hover {
  background-color: var(--color-primary-cta-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(212, 163, 115, 0.4);
}

.btn-large {
  padding: 1rem 2.5rem;
  font-size: 1.1rem;
}

.btn-outline {
  background-color: transparent;
  color: var(--color-text-primary);
  border-color: var(--color-text-primary);
}

.btn-outline:hover {
  background-color: var(--color-text-primary);
  color: var(--color-bg-primary);
}

/* --- 4. Global Header Navigation --- */
.global-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  background-color: rgba(250, 250, 250, 0.85);
  /* Glassmorphism start */
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  transition: all var(--transition-normal);
  padding: 1rem 0;
}

.global-header.scrolled {
  padding: 0.5rem 0;
  box-shadow: var(--shadow-sm);
  background-color: rgba(250, 250, 250, 0.95);
}

.header-container {
  max-width: var(--container-max-width);
  margin: 0 auto;
  padding: 0 var(--spacing-md);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* Logo Link Group */
.logo-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
}

/* Signature Image Logo */
.sau-logo-img {
  max-height: 32px;
  width: auto;
}

/* Inline Hero Signature */
.inline-firma {
  height: 3.5em;
  /* Un poco más grande para destacar el logo */
  width: auto;
  margin-right: -10px;
  /* Juntar los dos elementos */
}

.hero-logo-container {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 1rem;
}

/* Adjust 'Creaciones' strictly in the Hero to align perfectly beside the signature */
.hero-title .brush-text {
  font-size: 2.2em;
  /* Relación de tamaño correcta */
  transform: translateY(-8px) rotate(-2deg);
  /* Ajuste fino vertical sin exagerar */
}

/* Footer Signature */
span.footer-logo {
  display: inline-flex !important;
  flex-direction: row;
  align-items: center;
  justify-content: flex-start;
  flex-wrap: nowrap;
  font-family: var(--font-heading);
  font-size: 1.75rem;
  margin-bottom: 0.5rem;
  white-space: nowrap;
}

.footer-logo-img {
  max-height: 48px;
  width: auto;
  margin-right: 2px;
  /* Espacio positivo en lugar de negativo para separar los elementos */
  filter: brightness(0) invert(1);
}

.footer-logo .brush-text {
  font-size: 1.6em;
  transform: translateY(-2px) rotate(-1deg);
  /* Más abajo y menos rotado */
}

.brush-text {
  font-family: var(--font-brush);
  font-size: 1.8em;
  font-weight: 400;
  color: var(--color-primary-cta);
  line-height: 0.8;
  transform: translateY(2px) rotate(-2deg);
  display: inline-block;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 2.5rem;
}

.nav-list {
  display: flex;
  gap: 2rem;
}

.nav-link {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--color-text-secondary);
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -4px;
  left: 0;
  background-color: var(--color-accent);
  transition: width var(--transition-fast);
}

.nav-link:hover {
  color: var(--color-text-primary);
}

.nav-link:hover::after {
  width: 100%;
}

.mobile-menu-btn {
  display: none;
  background: transparent;
  border: none;
  cursor: pointer;
  flex-direction: column;
  gap: 5px;
  padding: 5px;
}

.hamburger {
  display: block;
  width: 24px;
  height: 2px;
  background-color: var(--color-text-primary);
  transition: all 0.3s ease;
}

/* --- 5. Hero Section --- */
.hero-section {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: 80px;
  padding-bottom: 80px;
  /* Previene que el contenido quede pegado al borde del fondo */
  overflow: hidden;
  background-color: #EAECE8;
}

.hero-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  /* Fallback or placeholder, replace with real high-res WebP */
  background-image:
    linear-gradient(rgba(250, 250, 250, 0.3), rgba(250, 250, 250, 0.8)),
    url('https://images.unsplash.com/photo-1579546929518-9e396f3cc809?q=80&w=2670&auto=format&fit=crop');
  background-size: cover;
  background-position: center;
  z-index: 0;
  opacity: 0.6;
  animation: pulse-bg 20s infinite alternate;
}

@keyframes pulse-bg {
  0% {
    transform: scale(1);
  }

  100% {
    transform: scale(1.05);
  }
}

.hero-content {
  position: relative;
  z-index: 10;
  text-align: center;
  max-width: 800px;
}

.hero-title {
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  font-weight: 500;
  color: var(--color-text-primary);
  margin-bottom: 1.5rem;
  line-height: 1.1;
}

.hero-subtitle {
  font-family: var(--font-base);
  font-size: clamp(1.1rem, 2vw, 1.4rem);
  font-weight: 300;
  color: var(--color-text-secondary);
  margin-bottom: 2.5rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.hero-actions {
  display: flex;
  justify-content: center;
  gap: 1rem;
}

/* Scroll indicator */
.scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: var(--color-text-secondary);
  animation: fade-in-up 2s ease forwards;
  animation-delay: 1.5s;
  opacity: 0;
  z-index: 10;
}

.mouse {
  width: 24px;
  height: 36px;
  border: 2px solid var(--color-text-secondary);
  border-radius: 12px;
  position: relative;
}

.wheel {
  width: 4px;
  height: 8px;
  background-color: var(--color-text-secondary);
  border-radius: 2px;
  position: absolute;
  top: 6px;
  left: 50%;
  transform: translateX(-50%);
  animation: scroll-wheel 1.5s infinite;
}

@keyframes scroll-wheel {
  0% {
    top: 6px;
    opacity: 1;
  }

  100% {
    top: 20px;
    opacity: 0;
  }
}

/* --- 6. About Section --- */
.about-section {
  padding: var(--spacing-xxl) 0;
  background-color: var(--color-bg-primary);
}

.about-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--spacing-xl);
  align-items: center;
}

.about-image-wrapper {
  position: relative;
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.about-img {
  width: 100%;
  height: auto;
  aspect-ratio: 4/5;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.about-image-wrapper:hover .about-img {
  transform: scale(1.03);
}

.image-decoration {
  position: absolute;
  inset: 0;
  border: 1px solid rgba(255, 255, 255, 0.2);
  margin: 1rem;
  border-radius: var(--border-radius-md);
  pointer-events: none;
}

.section-tag {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-primary-cta);
  margin-bottom: 1rem;
}

.section-title {
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 1.5rem;
}

.section-description {
  font-size: 1.1rem;
  color: var(--color-text-secondary);
  max-width: 600px;
  margin: 0 auto;
}

.about-text {
  font-size: 1.1rem;
  color: var(--color-text-secondary);
  margin-bottom: 1.5rem;
}

/* --- 7. Gallery Section --- */
.gallery-section {
  padding: var(--spacing-xxl) 0;
  background-color: var(--color-bg-secondary);
}

/* Gallery Filters */
.gallery-filters {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: var(--spacing-md);
}

.filter-btn {
  background-color: transparent;
  color: var(--color-text-secondary);
  border: 1px solid var(--color-text-secondary);
  padding: 0.5rem 1.2rem;
  border-radius: var(--border-radius-full);
  font-family: var(--font-base);
  font-weight: 500;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.filter-btn:hover {
  border-color: var(--color-text-primary);
  color: var(--color-text-primary);
}

.filter-btn.active {
  background-color: var(--color-text-primary);
  color: var(--color-bg-primary);
  border-color: var(--color-text-primary);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: var(--spacing-md);
  margin-top: var(--spacing-lg);
}

.gallery-item {
  position: relative;
  background: var(--color-bg-card);
  border-radius: var(--border-radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition-normal), box-shadow var(--transition-normal);
}

.gallery-item:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
}

.gallery-img-container {
  position: relative;
  overflow: hidden;
  aspect-ratio: 3/4;
}

.gallery-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.gallery-item:hover .gallery-img {
  transform: scale(1.06);
}

.gallery-overlay {
  position: absolute;
  inset: 0;
  background: rgba(44, 53, 49, 0.4);
  /* Dark muted overlay */
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity var(--transition-normal);
}

.gallery-item:hover .gallery-overlay {
  opacity: 1;
}

.badge-vendido {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background-color: rgba(44, 53, 49, 0.85);
  /* Dark matching the theme */
  color: var(--color-bg-primary);
  padding: 0.35rem 0.8rem;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-radius: var(--border-radius-sm);
  z-index: 10;
  box-shadow: var(--shadow-sm);
  pointer-events: none;
  /* Let clicks pass through to the overlay */
}

.overlay-text {
  color: white;
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-style: italic;
  transform: translateY(20px);
  transition: transform var(--transition-normal);
}

.gallery-item:hover .overlay-text {
  transform: translateY(0);
}

.gallery-info {
  padding: 1.5rem;
}

.artwork-title {
  font-size: 1.25rem;
  margin-bottom: 0.25rem;
}

.artwork-details {
  font-size: 0.9rem;
  color: var(--color-text-secondary);
}

.gallery-more-text {
  font-size: 1.1rem;
  color: var(--color-text-secondary);
}

/* --- 8. Contact Section --- */
.contact-section {
  position: relative;
  padding: var(--spacing-xxl) 0;
  background-color: var(--color-bg-primary);
  overflow: hidden;
}

.contact-card {
  background-color: var(--color-bg-card);
  padding: var(--spacing-xl) var(--spacing-md);
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-card);
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
  position: relative;
  z-index: 10;
}

.contact-title {
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 1.5rem;
}

.highlight {
  color: var(--color-primary-cta);
  font-style: italic;
}

.contact-description {
  font-size: 1.15rem;
  color: var(--color-text-secondary);
  margin-bottom: 3rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.contact-methods {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 400px;
  margin: 0 auto;
}

.social-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 1rem;
  border-radius: var(--border-radius-md);
  font-weight: 500;
  transition: all var(--transition-normal);
  border: 1px solid rgba(0, 0, 0, 0.1);
}

.social-btn svg {
  flex-shrink: 0;
}

.btn-whatsapp {
  background-color: #25D366;
  color: white;
  border-color: #25D366;
}

.btn-whatsapp:hover {
  background-color: #128C7E;
  transform: translateY(-3px);
  box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3);
}

.btn-instagram {
  background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
  color: white;
  border-color: transparent;
}

.btn-instagram:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 15px rgba(220, 39, 67, 0.3);
}

.btn-email {
  background-color: var(--color-text-primary);
  color: white;
  border-color: var(--color-text-primary);
}

.btn-email:hover {
  background-color: #1a1e1c;
  transform: translateY(-3px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

/* --- 9. Global Footer --- */
.global-footer {
  background-color: var(--color-text-primary);
  color: var(--color-bg-secondary);
  padding: var(--spacing-xl) 0 2rem;
}

.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: var(--spacing-lg);
  margin-bottom: var(--spacing-xl);
}

.footer-logo {
  font-family: var(--font-heading);
  font-size: 1.75rem;
  display: block;
  margin-bottom: 0.5rem;
}

.footer-tagline {
  color: #A0ABA6;
  font-style: italic;
}

.footer-heading {
  font-family: var(--font-base);
  font-size: 1rem;
  font-weight: 600;
  color: white;
  margin-bottom: 1.5rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.footer-links ul {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-links a,
.footer-contact-info a {
  color: #A0ABA6;
  transition: color var(--transition-fast);
}

.footer-links a:hover,
.footer-contact-info a:hover {
  color: white;
}

.footer-contact-info p {
  color: #A0ABA6;
  margin-bottom: 0.75rem;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: #A0ABA6;
  font-size: 0.85rem;
}

.footer-social-small a {
  color: #A0ABA6;
  transition: color var(--transition-fast);
}

.footer-social-small a:hover {
  color: white;
}


/* --- 10. Animations & Reveal Utilities --- */
.reveal-text {
  opacity: 0;
  transform: translateY(20px);
  animation: fade-up 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

.reveal-fade {
  opacity: 0;
  animation: fade-in 1s ease forwards;
}

.delay-1 {
  animation-delay: 0.3s;
}

.delay-2 {
  animation-delay: 0.6s;
}

@keyframes fade-up {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fade-in {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

/* Intersection Observer Classes */
.intersect-reveal-up,
.intersect-reveal-left,
.intersect-reveal-right {
  opacity: 0;
  visibility: hidden;
  will-change: transform, opacity;
}

.intersect-reveal-up.is-visible {
  animation: fade-up 0.8s cubic-bezier(0.25, 1, 0.5, 1) forwards;
  visibility: visible;
}

.intersect-reveal-left {
  transform: translateX(-40px);
}

.intersect-reveal-right {
  transform: translateX(40px);
}

.intersect-reveal-left.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateX(0);
  transition: opacity 1s ease, transform 1s cubic-bezier(0.25, 1, 0.5, 1);
}

.intersect-reveal-right.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateX(0);
  transition: opacity 1s ease, transform 1s cubic-bezier(0.25, 1, 0.5, 1);
}

/* --- 11. Responsive Design --- */
@media (max-width: 900px) {
  .about-container {
    grid-template-columns: 1fr;
  }

  .about-image-wrapper {
    max-width: 500px;
    margin: 0 auto;
  }

  .contact-methods {
    flex-direction: column;
  }
}

@media (max-width: 768px) {

  /* Fix Mobile Hero Text Overflow */
  .inline-firma {
    height: 2.5em;
    margin-right: -6px;
  }

  .hero-title .brush-text {
    font-size: 1.5em;
    transform: translateY(-4px) rotate(-2deg);
  }

  .desktop-only {
    display: none;
  }

  /* Mobile Menu */
  .mobile-menu-btn {
    display: flex;
    z-index: 101;
  }

  .mobile-menu-btn.active .hamburger:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }

  .mobile-menu-btn.active .hamburger:nth-child(2) {
    opacity: 0;
  }

  .mobile-menu-btn.active .hamburger:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

  .main-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: var(--color-bg-primary);
    flex-direction: column;
    justify-content: center;
    padding: var(--spacing-xl);
    transform: translateY(-100%);
    transition: transform var(--transition-normal);
    opacity: 0;
    pointer-events: none;
  }

  .main-nav.active {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .nav-list {
    flex-direction: column;
    align-items: center;
    gap: 2rem;
    font-size: 1.5rem;
  }

  .nav-cta {
    margin-top: 2rem;
  }

  /* Footer */
  .footer-top {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }
}

/* =========================================
   14. Lightbox (Modal)
   ========================================= */
.lightbox {
  display: none;
  /* Hidden by default */
  position: fixed;
  z-index: 2000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background-color: rgba(15, 18, 16, 0.95);
  /* Very dark */
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  flex-direction: column;
  justify-content: center;
  align-items: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--transition-normal), visibility var(--transition-normal);
}

.lightbox.active {
  display: flex !important;
  opacity: 1;
  visibility: visible;
}

.lightbox-content {
  margin: auto;
  display: block;
  max-width: 90%;
  max-height: 75vh;
  border-radius: var(--border-radius-md);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
  transform: scale(0.95);
  transition: transform var(--transition-normal) cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.lightbox.active .lightbox-content {
  transform: scale(1);
}

#lightbox-caption {
  margin-top: 1.5rem;
  color: var(--color-bg-primary);
  text-align: center;
  font-family: var(--font-heading);
  font-size: 1.8rem;
  font-weight: 500;
  letter-spacing: 0.05em;
}

.lightbox-btn {
  margin-top: 1.5rem;
  font-size: 1rem;
  padding: 0.8rem 2rem;
  border-color: rgba(255, 255, 255, 0.3);
  color: var(--color-bg-primary);
}

.lightbox-btn:hover {
  background-color: var(--color-bg-primary);
  color: var(--color-text-primary);
}

.lightbox-close {
  position: absolute;
  top: 1.5rem;
  right: 2.5rem;
  color: #fff;
  font-size: 3rem;
  font-weight: 300;
  cursor: pointer;
  transition: color var(--transition-fast);
  line-height: 1;
  z-index: 2001;
}

.lightbox-close:hover,
.lightbox-close:focus {
  color: var(--color-accent);
  text-decoration: none;
}

@media (max-width: 768px) {
  .lightbox-content {
    max-width: 95%;
    max-height: 65vh;
  }

  .lightbox-close {
    top: 1rem;
    right: 1.5rem;
  }

  #lightbox-caption {
    font-size: 1.4rem;
  }

  .lightbox-btn {
    padding: 0.6rem 1.5rem;
    font-size: 0.9rem;
  }
}

/* =========================================
   15. Native Dark Mode Support (Header Only)
   ========================================= */
@media (prefers-color-scheme: dark) {
  /* Only apply dark mode to the Header and its elements */

  /* 1. Scrolled Header Background */
  .global-header.scrolled {
    background-color: rgba(15, 18, 16, 0.95);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  }

  /* 2. Header Text Colors */
  .global-header .nav-link,
  .global-header .brush-text {
    color: #FAFAFA;
  }

  .global-header .nav-link:hover {
    color: var(--color-accent);
  }

  /* 3. Invert Logo Image only in Header */
  .global-header .sau-logo-img {
    filter: invert(1) brightness(1.1);
  }

  /* 4. Mobile Menu Button (Hamburger) */
  .hamburger {
    background-color: #FAFAFA;
  }

  /* 5. Mobile Navigation Menu Background & Links */
  @media (max-width: 768px) {
    .main-nav {
      background-color: #0F1210;
    }
  }
}