/* ============================================
   GALLERY PAGE — Chitwan Tiger Tours
   Design tokens inherited from main site
   ============================================ */

/* ---------- RESET & BASE ---------- */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: auto; }
body {
  background: #0a0a08;
  overflow-x: hidden;
  font-family: 'Outfit', sans-serif;
  color: #f0e6d6;
}

/* ---------- OVERFLOW FIX ---------- */
html, body { max-width: 100vw; overflow-x: hidden; }

/* ---------- CUSTOM PROPERTIES ---------- */
:root {
  --c-bg: #0a0a08;
  --c-surface: #0e1c10;
  --c-gold: #d4a050;
  --c-orange: #d4883c;
  --c-cream: #f0e6d6;
  --c-cream-70: rgba(240, 230, 214, 0.7);
  --c-cream-50: rgba(240, 230, 214, 0.5);
  --c-cream-30: rgba(240, 230, 214, 0.3);
  --c-gold-dim: rgba(212, 160, 80, 0.7);
  --f-heading: 'Cormorant Garamond', serif;
  --f-body: 'Outfit', sans-serif;
  --ease-out: cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ---------- NAV (matches main site) ---------- */
.site-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 1.2rem 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  transition: background 0.4s ease, padding 0.3s ease;
}

.site-nav.scrolled {
  background: rgba(10, 10, 8, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 0.8rem 2rem;
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}

.nav-logo {
  font-family: var(--f-heading);
  font-weight: 300;
  font-size: 1.4rem;
  color: var(--c-cream);
  text-decoration: none;
  letter-spacing: 0.05em;
}

.nav-logo strong { color: var(--c-orange); font-weight: 600; }

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

.nav-desktop a {
  font-family: var(--f-body);
  font-weight: 300;
  font-size: 0.8rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--c-cream-70);
  text-decoration: none;
  transition: color 0.3s ease;
}

.nav-desktop a:hover,
.nav-desktop a.nav-active { color: var(--c-orange); }

.mob-menu-btn {
  display: none;
  background: none;
  border: 2px solid rgba(212, 136, 60, 0.5);
  color: var(--c-orange);
  padding: 6px 14px;
  font-family: var(--f-body);
  font-size: 0.7rem;
  font-weight: 400;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  cursor: pointer;
  border-radius: 4px;
  z-index: 102;
  -webkit-tap-highlight-color: rgba(212, 136, 60, 0.3);
}

.mob-menu-panel {
  position: fixed;
  top: 0; right: 0;
  width: 260px;
  height: 100vh; height: 100dvh;
  background: rgba(10, 10, 8, 0.97);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  display: flex; flex-direction: column;
  padding: 5rem 2rem 2rem;
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 101;
  border-left: 1px solid rgba(197, 151, 58, 0.15);
}

.mob-menu-panel.open { transform: translateX(0); }

.mob-menu-panel a {
  font-family: var(--f-body);
  font-weight: 300;
  font-size: 0.95rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--c-cream-70);
  text-decoration: none;
  display: block;
  padding: 0.9rem 0;
  border-bottom: 1px solid rgba(240, 230, 214, 0.06);
  cursor: pointer;
  -webkit-tap-highlight-color: rgba(212, 136, 60, 0.3);
}

.mob-menu-panel a:last-child { color: var(--c-orange); }

/* ---------- GALLERY HERO ---------- */
.gallery-hero {
  position: relative;
  height: 70vh;
  min-height: 480px;
  max-height: 800px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.gallery-hero-bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg,
      #2c1810 0%,
      #4a2a1a 20%,
      #1a4d2e 50%,
      #0e1c10 80%,
      #0a0a08 100%
    );
}

.gallery-hero-gradient {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 60% at 50% 40%, rgba(212, 136, 60, 0.12) 0%, transparent 70%);
}

.gallery-hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 0 2rem;
}

.gallery-label {
  font-family: var(--f-body);
  font-weight: 300;
  font-size: 0.8rem;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--c-gold-dim);
  margin-bottom: 0.8rem;
}

.gallery-title {
  font-family: var(--f-heading);
  font-weight: 300;
  font-size: clamp(3rem, 8vw, 6rem);
  line-height: 1.05;
  color: var(--c-cream);
  margin-bottom: 1rem;
}

.gallery-title em {
  font-style: italic;
  color: var(--c-gold);
}

.gallery-subtitle {
  font-family: var(--f-body);
  font-weight: 300;
  font-size: 1.1rem;
  color: var(--c-cream-50);
  letter-spacing: 0.05em;
}

.gallery-hero-scroll-hint {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  opacity: 0.5;
  transition: opacity 0.3s;
}

.gallery-hero-scroll-hint span {
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--c-cream-50);
}

.scroll-dot {
  animation: scrollDotBounce 2s ease-in-out infinite;
}

@keyframes scrollDotBounce {
  0%, 100% { cy: 8; opacity: 1; }
  50% { cy: 20; opacity: 0.3; }
}

/* ---------- FILTER BAR ---------- */
.gallery-filters-section {
  position: sticky;
  top: 60px;
  z-index: 50;
  background: rgba(10, 10, 8, 0.95);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(212, 160, 80, 0.08);
  padding: 0;
}

.gallery-filters-wrap {
  max-width: 1400px;
  margin: 0 auto;
  padding: 1rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.gallery-filters {
  display: flex;
  gap: 0.5rem;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding: 0.25rem 0;
  flex: 1;
}

.gallery-filters::-webkit-scrollbar { display: none; }

.filter-chip {
  flex-shrink: 0;
  padding: 0.5rem 1.2rem;
  font-family: var(--f-body);
  font-weight: 400;
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--c-cream-50);
  background: rgba(240, 230, 214, 0.04);
  border: 1px solid rgba(240, 230, 214, 0.08);
  border-radius: 100px;
  cursor: pointer;
  transition: all 0.3s var(--ease-out);
  white-space: nowrap;
  user-select: none;
}

.filter-chip:hover {
  color: var(--c-cream);
  border-color: rgba(212, 160, 80, 0.3);
  background: rgba(212, 160, 80, 0.08);
}

.filter-chip.active {
  color: var(--c-bg);
  background: var(--c-gold);
  border-color: var(--c-gold);
  font-weight: 500;
}

.gallery-count {
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--c-cream-30);
  white-space: nowrap;
  flex-shrink: 0;
}

/* ---------- FEATURED STRIP ---------- */
.gallery-featured {
  padding: 5rem 0 3rem;
  overflow: hidden;
}

.featured-header {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 2rem;
  margin-bottom: 2rem;
}

.featured-title {
  font-family: var(--f-heading);
  font-weight: 300;
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  color: var(--c-cream);
  margin-bottom: 0.4rem;
}

.featured-sub {
  font-family: var(--f-body);
  font-weight: 300;
  font-size: 0.9rem;
  color: var(--c-cream-50);
}

.featured-track {
  display: flex;
  gap: 1.2rem;
  padding: 0 2rem;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -ms-overflow-style: none;
  cursor: grab;
  max-width: 100vw;
}

.featured-track::-webkit-scrollbar { display: none; }
.featured-track:active { cursor: grabbing; }

.featured-card {
  flex-shrink: 0;
  width: 380px;
  height: 480px;
  border-radius: 16px;
  overflow: hidden;
  position: relative;
  scroll-snap-align: start;
  cursor: pointer;
  transform-style: preserve-3d;
  transition: transform 0.5s var(--ease-out), box-shadow 0.5s var(--ease-out);
}

.featured-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5), 0 0 40px rgba(212, 136, 60, 0.1);
}

.featured-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s var(--ease-out);
}

.featured-card:hover img {
  transform: scale(1.08);
}

.featured-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 30%, rgba(10, 10, 8, 0.85) 100%);
  pointer-events: none;
}

.featured-card-info {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1.5rem;
  z-index: 2;
}

.featured-card-category {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--c-gold);
  background: rgba(212, 160, 80, 0.15);
  border: 1px solid rgba(212, 160, 80, 0.25);
  padding: 0.25rem 0.75rem;
  border-radius: 100px;
  margin-bottom: 0.6rem;
}

.featured-card-caption {
  font-family: var(--f-heading);
  font-weight: 300;
  font-size: 1.3rem;
  color: var(--c-cream);
  line-height: 1.3;
}

/* ---------- MASONRY GRID ---------- */
.gallery-grid-section {
  max-width: 1400px;
  margin: 0 auto;
  padding: 3rem 2rem 4rem;
  overflow: hidden;
}

.gallery-grid {
  columns: 4;
  column-gap: 1rem;
}

.gallery-item {
  break-inside: avoid;
  margin-bottom: 1rem;
  border-radius: 12px;
  overflow: hidden;
  position: relative;
  cursor: pointer;
  background: rgba(240, 230, 214, 0.03);
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s var(--ease-out), transform 0.6s var(--ease-out);
}

.gallery-item.revealed {
  opacity: 1;
  transform: translateY(0);
}

.gallery-item.hiding {
  opacity: 0;
  transform: scale(0.92);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.gallery-item img,
.gallery-item video {
  width: 100%;
  display: block;
  transition: transform 0.6s var(--ease-out);
}

.gallery-item:hover img,
.gallery-item:hover video {
  transform: scale(1.05);
}

.gallery-item-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(10, 10, 8, 0.7) 100%);
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}

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

.gallery-item-info {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1.2rem;
  z-index: 2;
  transform: translateY(10px);
  opacity: 0;
  transition: all 0.4s var(--ease-out);
}

.gallery-item:hover .gallery-item-info {
  transform: translateY(0);
  opacity: 1;
}

.gallery-item-caption {
  font-family: var(--f-body);
  font-weight: 300;
  font-size: 0.85rem;
  color: var(--c-cream);
  line-height: 1.4;
}

.gallery-item-badge {
  display: inline-block;
  font-size: 0.6rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--c-gold);
  margin-top: 0.4rem;
}

/* Video play indicator */
.gallery-item-play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(10, 10, 8, 0.6);
  backdrop-filter: blur(8px);
  border: 1.5px solid rgba(240, 230, 214, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 3;
  transition: all 0.3s var(--ease-out);
  pointer-events: none;
}

.gallery-item:hover .gallery-item-play {
  background: rgba(212, 136, 60, 0.8);
  border-color: var(--c-orange);
  transform: translate(-50%, -50%) scale(1.1);
}

.gallery-item-play svg {
  margin-left: 3px;
}

/* 3D tilt effect (desktop) */
.gallery-item.tilt-active {
  transform-style: preserve-3d;
  will-change: transform;
}

/* Load more */
.gallery-load-more {
  text-align: center;
  padding: 2rem 0 0;
}

.load-more-btn {
  padding: 0.9rem 3rem;
  font-family: var(--f-body);
  font-weight: 400;
  font-size: 0.8rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--c-cream);
  background: transparent;
  border: 1px solid rgba(212, 160, 80, 0.3);
  border-radius: 100px;
  cursor: pointer;
  transition: all 0.3s var(--ease-out);
}

.load-more-btn:hover {
  background: rgba(212, 160, 80, 0.1);
  border-color: var(--c-gold);
  color: var(--c-gold);
  box-shadow: 0 0 30px rgba(212, 160, 80, 0.1);
}

.load-more-btn.hidden { display: none; }

/* ---------- VIDEO SECTION ---------- */
.gallery-video-section {
  padding: 6rem 2rem;
  max-width: 1400px;
  margin: 0 auto;
}

.video-section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.video-label {
  font-family: var(--f-body);
  font-weight: 300;
  font-size: 0.8rem;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--c-gold-dim);
  margin-bottom: 0.5rem;
}

.video-title {
  font-family: var(--f-heading);
  font-weight: 300;
  font-size: clamp(2rem, 5vw, 3.5rem);
  color: var(--c-cream);
  margin-bottom: 0.5rem;
}

.video-title em { font-style: italic; color: var(--c-gold); }

.video-subtitle {
  font-family: var(--f-body);
  font-weight: 300;
  font-size: 1rem;
  color: var(--c-cream-50);
}

.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 1.5rem;
}

.video-card {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  background: rgba(240, 230, 214, 0.03);
  border: 1px solid rgba(240, 230, 214, 0.06);
  transition: all 0.4s var(--ease-out);
}

.video-card:hover {
  border-color: rgba(212, 160, 80, 0.2);
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
}

.video-card-thumb {
  position: relative;
  aspect-ratio: 16/9;
  overflow: hidden;
  background: #111;
}

.video-card-thumb video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.video-card-play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(10, 10, 8, 0.65);
  backdrop-filter: blur(8px);
  border: 2px solid rgba(240, 230, 214, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s var(--ease-out);
  z-index: 2;
}

.video-card:hover .video-card-play {
  background: rgba(212, 136, 60, 0.85);
  border-color: var(--c-orange);
  transform: translate(-50%, -50%) scale(1.15);
}

.video-card-info {
  padding: 1rem 1.2rem;
}

.video-card-caption {
  font-family: var(--f-body);
  font-weight: 300;
  font-size: 0.9rem;
  color: var(--c-cream);
  line-height: 1.4;
}

.video-card-meta {
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--c-cream-30);
  margin-top: 0.4rem;
}

/* ---------- YOUTUBE SECTION ---------- */
.gallery-youtube-section {
  padding: 4rem 2rem 6rem;
  max-width: 1400px;
  margin: 0 auto;
}

.youtube-header {
  text-align: center;
  margin-bottom: 3rem;
}

.yt-label {
  font-family: var(--f-body);
  font-weight: 300;
  font-size: 0.8rem;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--c-gold-dim);
  margin-bottom: 0.5rem;
}

.yt-title {
  font-family: var(--f-heading);
  font-weight: 300;
  font-size: clamp(2rem, 5vw, 3.5rem);
  color: var(--c-cream);
  margin-bottom: 0.5rem;
}

.yt-title em { font-style: italic; color: var(--c-gold); }

.yt-subtitle {
  font-family: var(--f-body);
  font-weight: 300;
  font-size: 1rem;
  color: var(--c-cream-50);
}

.youtube-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 1.5rem;
}

.yt-placeholder {
  grid-column: 1 / -1;
  text-align: center;
  padding: 5rem 2rem;
  background: rgba(212, 160, 80, 0.03);
  border: 1px dashed rgba(212, 160, 80, 0.15);
  border-radius: 16px;
}

.yt-placeholder-icon { margin-bottom: 1.5rem; }

.yt-placeholder-text {
  font-family: var(--f-heading);
  font-size: 1.6rem;
  font-weight: 300;
  color: var(--c-cream-70);
  margin-bottom: 0.5rem;
}

.yt-placeholder-sub {
  font-size: 0.9rem;
  color: var(--c-cream-30);
}

.yt-placeholder-link {
  display: inline-block;
  margin-top: 1.5rem;
  font-family: var(--f-body);
  font-weight: 400;
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--c-gold);
  text-decoration: none;
  border: 1px solid rgba(212, 160, 80, 0.3);
  padding: 0.6rem 1.5rem;
  border-radius: 100px;
  transition: all 0.3s var(--ease-out);
}

.yt-placeholder-link:hover {
  background: rgba(212, 160, 80, 0.1);
  border-color: var(--c-gold);
}

/* Subscribe button row */
.yt-subscribe-row {
  text-align: center;
  margin-top: 2.5rem;
}

.yt-subscribe-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.8rem 2rem;
  font-family: var(--f-body);
  font-weight: 500;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  color: #fff;
  background: #CC0000;
  border: none;
  border-radius: 4px;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 4px 16px rgba(204, 0, 0, 0.3);
}

.yt-subscribe-btn:hover {
  background: #FF0000;
  box-shadow: 0 6px 24px rgba(255, 0, 0, 0.4);
  transform: translateY(-2px);
}

/* YouTube embed facade */
.yt-facade {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  background: #111;
  border: 1px solid rgba(240, 230, 214, 0.06);
  transition: all 0.4s var(--ease-out);
}

.yt-facade:hover {
  border-color: rgba(212, 160, 80, 0.2);
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
}

.yt-facade-thumb {
  aspect-ratio: 16/9;
  overflow: hidden;
  position: relative;
}

.yt-facade-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease-out);
}

.yt-facade:hover .yt-facade-thumb img {
  transform: scale(1.05);
}

.yt-facade-play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 72px;
  height: 50px;
  border-radius: 14px;
  background: rgba(255, 0, 0, 0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s var(--ease-out);
}

.yt-facade:hover .yt-facade-play {
  background: #f00;
  transform: translate(-50%, -50%) scale(1.1);
}

.yt-facade-info {
  padding: 1rem 1.2rem;
}

.yt-facade-title {
  font-family: var(--f-body);
  font-weight: 400;
  font-size: 0.9rem;
  color: var(--c-cream);
  line-height: 1.4;
}

/* ---------- CTA BAND ---------- */
.gallery-cta {
  padding: 8rem 2rem;
  text-align: center;
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, var(--c-bg) 0%, #1a2218 30%, #2c1810 60%, var(--c-bg) 100%);
}

.gallery-cta::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(212, 136, 60, 0.08) 0%, transparent 70%);
  pointer-events: none;
}

.gallery-cta-inner {
  position: relative;
  z-index: 1;
}

.gallery-cta-label {
  font-family: var(--f-body);
  font-weight: 300;
  font-size: 0.8rem;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--c-gold-dim);
  margin-bottom: 0.8rem;
}

.gallery-cta-title {
  font-family: var(--f-heading);
  font-weight: 300;
  font-size: clamp(2.2rem, 5vw, 4rem);
  color: var(--c-cream);
  margin-bottom: 2rem;
}

.gallery-cta-title em { font-style: italic; color: var(--c-gold); }

.gallery-cta-btn {
  display: inline-block;
  padding: 1rem 3rem;
  font-family: var(--f-body);
  font-weight: 400;
  font-size: 0.85rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--c-cream);
  background: linear-gradient(135deg, var(--c-orange), #b86d28);
  border: none;
  border-radius: 4px;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 4px 20px rgba(212, 136, 60, 0.3);
}

.gallery-cta-btn:hover {
  background: linear-gradient(135deg, #e8a050, var(--c-orange));
  box-shadow: 0 0 50px rgba(212, 136, 60, 0.4);
  transform: translateY(-2px);
}

/* ---------- LIGHTBOX ---------- */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(5, 5, 3, 0.96);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  align-items: center;
  justify-content: center;
  flex-direction: column;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.lightbox.open {
  display: flex;
  opacity: 1;
}

.lightbox-close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  width: 48px;
  height: 48px;
  background: rgba(240, 230, 214, 0.06);
  border: 1px solid rgba(240, 230, 214, 0.12);
  border-radius: 50%;
  color: var(--c-cream);
  font-size: 1.5rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  z-index: 1001;
}

.lightbox-close:hover {
  background: rgba(212, 160, 80, 0.15);
  border-color: rgba(212, 160, 80, 0.4);
}

.lightbox-prev,
.lightbox-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  background: rgba(240, 230, 214, 0.06);
  border: 1px solid rgba(240, 230, 214, 0.12);
  border-radius: 50%;
  color: var(--c-cream);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  z-index: 1001;
}

.lightbox-prev { left: 1.5rem; }
.lightbox-next { right: 1.5rem; }

.lightbox-prev:hover,
.lightbox-next:hover {
  background: rgba(212, 160, 80, 0.15);
  border-color: rgba(212, 160, 80, 0.4);
}

.lightbox-content {
  max-width: 90vw;
  max-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-img {
  max-width: 100%;
  max-height: 80vh;
  object-fit: contain;
  border-radius: 4px;
  user-select: none;
}

.lightbox-video {
  max-width: 90vw;
  max-height: 80vh;
  border-radius: 4px;
  outline: none;
}

.lightbox-info {
  margin-top: 1.2rem;
  text-align: center;
  padding: 0 2rem;
}

.lightbox-caption {
  font-family: var(--f-body);
  font-weight: 300;
  font-size: 0.95rem;
  color: var(--c-cream-70);
}

.lightbox-counter {
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--c-cream-30);
  margin-top: 0.4rem;
}

/* ---------- RESPONSIVE ---------- */

/* 3 columns on medium screens */
@media (max-width: 1200px) {
  .gallery-grid { columns: 3; }
}

/* 2 columns on tablet */
@media (max-width: 900px) {
  .gallery-grid { columns: 2; }
  .featured-card { width: 300px; height: 400px; }
  .video-grid { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
}

/* Mobile */
@media (max-width: 768px) {
  /* Nav mobile */
  .site-nav { justify-content: space-between; }
  .nav-desktop { display: none; }
  .mob-menu-btn { display: block; }

  /* Hero — compact */
  .gallery-hero { height: 40vh; min-height: 280px; max-height: 400px; }
  .gallery-title { font-size: clamp(2rem, 9vw, 3rem); }
  .gallery-subtitle { font-size: 0.9rem; }
  .gallery-hero-scroll-hint { display: none; }

  /* Filters */
  .gallery-filters-section { top: 48px; }
  .gallery-filters-wrap {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
    padding: 0.6rem 1rem;
  }
  .filter-chip { padding: 0.35rem 0.8rem; font-size: 0.65rem; }

  /* Hide filters + featured on mobile */
  .desktop-only { display: none !important; }

  /* Grid: single column, compact */
  .gallery-grid {
    columns: 1;
    column-gap: 0;
  }

  .gallery-grid-section { padding: 1rem 0.8rem 2rem; }

  .gallery-item {
    border-radius: 8px;
    margin-bottom: 0.6rem;
  }

  .gallery-item img {
    max-height: 300px;
    object-fit: cover;
  }

  /* Show info always on mobile */
  .gallery-item-overlay { display: none; }
  .gallery-item-info {
    position: relative;
    transform: none;
    opacity: 1;
    padding: 0.6rem 0.8rem;
    background: rgba(10, 10, 8, 0.6);
  }
  .gallery-item-caption { font-size: 0.8rem; }
  .gallery-item-badge { font-size: 0.55rem; }

  /* Video section — compact */
  .gallery-video-section { padding: 3rem 1rem; }
  .video-grid { grid-template-columns: 1fr; gap: 1rem; }
  .video-title { font-size: clamp(1.6rem, 5vw, 2.2rem); }

  /* YouTube section — compact */
  .gallery-youtube-section { padding: 2rem 1rem 4rem; }
  .yt-title { font-size: clamp(1.6rem, 5vw, 2.2rem); }
  .youtube-grid { grid-template-columns: 1fr; }
  .yt-placeholder { padding: 3rem 1.5rem; }

  /* CTA — compact */
  .gallery-cta { padding: 4rem 1.5rem; }
  .gallery-cta-title { font-size: clamp(1.8rem, 5vw, 2.5rem); }

  /* Load more */
  .load-more-btn { padding: 0.7rem 2rem; font-size: 0.75rem; }

  /* Lightbox mobile */
  .lightbox-prev { left: 0.5rem; }
  .lightbox-next { right: 0.5rem; }
  .lightbox-prev, .lightbox-next { width: 40px; height: 40px; }
  .lightbox-close { top: 0.8rem; right: 0.8rem; width: 40px; height: 40px; }
  .lightbox-content { max-width: 100vw; max-height: 70vh; }
  .lightbox-img { border-radius: 0; }
}

/* Small phone */
@media (max-width: 480px) {
  .gallery-hero { height: 35vh; min-height: 240px; }
  .gallery-item img { max-height: 250px; }
}

/* ---------- FLOATING WHATSAPP ---------- */
.whatsapp-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 99;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: #25D366;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4), 0 2px 8px rgba(0,0,0,0.2);
  text-decoration: none;
  transition: all 0.3s ease;
  animation: whatsapp-pulse 2s ease-in-out infinite;
}
.whatsapp-float:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 30px rgba(37, 211, 102, 0.5), 0 4px 12px rgba(0,0,0,0.3);
}
.whatsapp-float svg { width: 32px; height: 32px; fill: #fff; }
@keyframes whatsapp-pulse {
  0%, 100% { box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4), 0 2px 8px rgba(0,0,0,0.2); }
  50% { box-shadow: 0 4px 20px rgba(37, 211, 102, 0.6), 0 2px 8px rgba(0,0,0,0.2), 0 0 0 8px rgba(37, 211, 102, 0.1); }
}
@media (max-width: 768px) {
  .whatsapp-float { bottom: 16px; right: 16px; width: 54px; height: 54px; }
  .whatsapp-float svg { width: 28px; height: 28px; }
}
