/* ============================================================
   gallery.css — Cinematic Temple Photography Gallery
   Sri Shiva Sai Mahaa Shakthi Peetham
   Inspired by: Apple Photos • Unsplash • National Geographic
   Fonts loaded via <link> in gallery.html (no @import needed)
   ============================================================ */

/* ---------- Gallery Design Tokens ---------- */
.gallery-page-body {
  --g-ivory: #FFF9F0;
  --g-cream: #FBF7F0;
  --g-warm-white: #FFFCF7;
  --g-white: #FFFFFF;
  --g-gold: #C89B3C;
  --g-gold-light: #D4AF37;
  --g-gold-glow: rgba(200, 155, 60, 0.25);
  --g-saffron: #FF8C1A;
  --g-maroon: #7A1E1E;
  --g-lotus: #E77DA7;
  --g-forest: #285943;
  --g-text: #1a1a1a;
  --g-text-sec: #555555;
  --g-text-muted: #8a8a8a;
  --g-border: rgba(200, 155, 60, 0.18);
  --g-border-light: rgba(200, 155, 60, 0.08);
  --g-shadow-sm: 0 2px 8px rgba(0,0,0,0.04), 0 1px 3px rgba(200,155,60,0.06);
  --g-shadow-card: 0 4px 16px rgba(0,0,0,0.05), 0 2px 6px rgba(200,155,60,0.08);
  --g-shadow-hover: 0 24px 64px rgba(0,0,0,0.12), 0 8px 20px rgba(200,155,60,0.18);
  --g-shadow-glow: 0 0 40px rgba(200,155,60,0.12);
  --g-radius: 18px;
  --g-radius-sm: 12px;
  --g-radius-pill: 50px;
  --g-ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --g-ease-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ============================================================
   GALLERY HERO — Cinematic Header
   ============================================================ */
.gallery-hero {
  position: relative;
  background: linear-gradient(175deg, #FFF9F0 0%, #FEF4E8 40%, #FFF0DB 100%);
  padding: 100px 0 70px;
  text-align: center;
  overflow: hidden;
}

/* Animated radial glow */
.gallery-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 600px 400px at 25% 85%, rgba(200,155,60,0.08) 0%, transparent 70%),
    radial-gradient(ellipse 500px 350px at 75% 15%, rgba(231,125,167,0.06) 0%, transparent 70%),
    radial-gradient(ellipse 300px 300px at 50% 50%, rgba(255,140,26,0.04) 0%, transparent 60%);
  pointer-events: none;
  animation: heroGlow 8s ease-in-out infinite alternate;
}

@keyframes heroGlow {
  0% { opacity: 0.7; }
  100% { opacity: 1; }
}

/* Large decorative OM watermark */
.gallery-hero::after {
  content: "ॐ";
  position: absolute;
  right: 6%;
  top: 50%;
  transform: translateY(-50%) rotate(-12deg);
  font-family: 'Tiro Devanagari Sanskrit', serif;
  font-size: 22rem;
  opacity: 0.03;
  color: var(--g-gold);
  pointer-events: none;
  line-height: 1;
}

.gallery-hero .breadcrumb {
  font-family: 'Poppins', sans-serif;
  font-size: 0.8rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--g-text-muted);
  font-weight: 500;
  margin-bottom: 22px;
  position: relative;
  z-index: 1;
}
.gallery-hero .breadcrumb a {
  color: var(--g-gold);
  text-decoration: none;
  transition: color 0.2s;
}
.gallery-hero .breadcrumb a:hover { color: var(--g-saffron); }

.gallery-hero .shloka-line {
  font-family: 'Tiro Devanagari Sanskrit', serif;
  font-size: 1.15rem;
  color: var(--g-gold);
  margin-bottom: 16px;
  opacity: 0.8;
  position: relative;
  z-index: 1;
}

.gallery-hero h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2.6rem, 5.5vw, 4.2rem);
  font-weight: 700;
  color: var(--g-text);
  margin: 0 0 18px;
  line-height: 1.12;
  letter-spacing: -0.025em;
  position: relative;
  z-index: 1;
}

/* Gold underline accent beneath h1 */
.gallery-hero h1::after {
  content: "";
  display: block;
  width: 80px;
  height: 3px;
  background: linear-gradient(90deg, var(--g-gold), var(--g-saffron));
  margin: 16px auto 0;
  border-radius: 3px;
}

.gallery-hero .hero-subtitle {
  font-family: 'Inter', sans-serif;
  font-size: 1.08rem;
  color: var(--g-text-sec);
  max-width: 580px;
  margin: 0 auto;
  line-height: 1.7;
  position: relative;
  z-index: 1;
}

/* ============================================================
   GALLERY MAIN SECTION
   ============================================================ */
.gallery-main-section {
  background: var(--g-cream);
  position: relative;
  padding: 48px 0 90px;
}

.gallery-main-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle 800px at 5% 40%, rgba(200,155,60,0.03) 0%, transparent 60%),
    radial-gradient(circle 600px at 95% 70%, rgba(40,89,67,0.02) 0%, transparent 50%);
  pointer-events: none;
}

/* ============================================================
   TAB BAR — Premium Glass Pill Buttons
   ============================================================ */
.g-tabs {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 36px;
  position: relative;
  z-index: 2;
}

.g-tab {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: var(--g-radius-pill);
  font-family: 'Poppins', sans-serif;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  border: 1.5px solid var(--g-border);
  background: rgba(255,255,255,0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: var(--g-text-sec);
  transition: all 0.32s var(--g-ease);
  user-select: none;
  white-space: nowrap;
  box-shadow: var(--g-shadow-sm);
  position: relative;
  overflow: hidden;
}

/* Inner shimmer on hover */
.g-tab::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, transparent 30%, rgba(200,155,60,0.06) 50%, transparent 70%);
  opacity: 0;
  transition: opacity 0.3s ease;
}
.g-tab:hover::before { opacity: 1; }

.g-tab:hover {
  border-color: var(--g-gold);
  color: var(--g-gold);
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(200,155,60,0.18), var(--g-shadow-glow);
}

.g-tab.active {
  background: linear-gradient(135deg, var(--g-gold) 0%, var(--g-saffron) 100%);
  border-color: transparent;
  color: #FFFFFF;
  box-shadow: 0 8px 30px rgba(200,155,60,0.4), 0 4px 12px rgba(255,140,26,0.2);
  transform: translateY(-2px);
}
.g-tab.active::before { display: none; }

.g-tab-icon { font-size: 1.05rem; }

/* ============================================================
   SEARCH & SORT TOOLBAR
   ============================================================ */
.g-toolbar {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 30px;
  justify-content: space-between;
  position: relative;
  z-index: 2;
}

.g-search-wrap {
  position: relative;
  flex: 1;
  max-width: 440px;
  min-width: 220px;
}

.g-search-icon {
  position: absolute;
  left: 20px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--g-gold);
  font-size: 0.95rem;
  pointer-events: none;
  transition: transform 0.3s var(--g-ease);
}
.g-search:focus ~ .g-search-icon,
.g-search-wrap:focus-within .g-search-icon {
  transform: translateY(-50%) scale(1.1);
}

.g-search {
  width: 100%;
  padding: 14px 22px 14px 50px;
  border-radius: var(--g-radius-pill);
  border: 1.5px solid var(--g-border);
  background: rgba(255,255,255,0.9);
  backdrop-filter: blur(10px);
  color: var(--g-text);
  font-family: 'Inter', sans-serif;
  font-size: 0.92rem;
  outline: none;
  transition: all 0.35s var(--g-ease);
  box-shadow: var(--g-shadow-sm);
}

.g-search:focus {
  border-color: var(--g-gold);
  box-shadow: 0 0 0 4px var(--g-gold-glow), 0 6px 20px rgba(200,155,60,0.12);
  background: #FFFFFF;
}

.g-search::placeholder {
  color: var(--g-text-muted);
  font-family: 'Inter', sans-serif;
}

.g-sort {
  padding: 13px 44px 13px 22px;
  border-radius: var(--g-radius-pill);
  border: 1.5px solid var(--g-border);
  background: rgba(255,255,255,0.9);
  backdrop-filter: blur(8px);
  color: var(--g-text);
  font-family: 'Poppins', sans-serif;
  font-size: 0.86rem;
  font-weight: 500;
  cursor: pointer;
  outline: none;
  box-shadow: var(--g-shadow-sm);
  transition: all 0.25s ease;
  -webkit-appearance: none;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23C89B3C' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
}
.g-sort:focus {
  border-color: var(--g-gold);
  box-shadow: 0 0 0 3px var(--g-gold-glow);
}

.g-results-count {
  font-family: 'Inter', sans-serif;
  font-size: 0.83rem;
  color: var(--g-text-muted);
  white-space: nowrap;
  font-weight: 500;
}

/* ============================================================
   CATEGORY FILTER CHIPS
   ============================================================ */
.g-filters {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 28px;
  position: relative;
  z-index: 2;
}

.g-filter-chip {
  padding: 8px 22px;
  border-radius: var(--g-radius-pill);
  font-family: 'Poppins', sans-serif;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  border: 1.5px solid var(--g-border);
  background: rgba(255,255,255,0.9);
  backdrop-filter: blur(6px);
  color: var(--g-text-sec);
  transition: all 0.3s var(--g-ease);
  white-space: nowrap;
  box-shadow: 0 1px 4px rgba(0,0,0,0.03);
}

.g-filter-chip:hover {
  border-color: var(--g-gold);
  color: var(--g-gold);
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(200,155,60,0.14);
}

.g-filter-chip.active {
  background: linear-gradient(135deg, var(--g-gold), var(--g-saffron));
  border-color: transparent;
  color: #FFFFFF;
  box-shadow: 0 6px 22px rgba(200,155,60,0.35);
  transform: translateY(-1px);
}

/* ============================================================
   PHOTO & VIDEO GRIDS
   ============================================================ */
.g-photo-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  position: relative;
  z-index: 2;
}

.g-video-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  position: relative;
  z-index: 2;
}

@media (min-width: 1400px) {
  .g-photo-grid { grid-template-columns: repeat(4, 1fr); gap: 30px; }
}
@media (max-width: 1100px) {
  .g-photo-grid { grid-template-columns: repeat(3, 1fr); }
  .g-video-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .g-photo-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .g-video-grid { grid-template-columns: 1fr; gap: 16px; }
  .g-toolbar { gap: 10px; }
  .g-search-wrap { max-width: 100%; }
  .g-tabs { gap: 8px; }
  .g-tab { padding: 9px 18px; font-size: 0.82rem; }
}
@media (max-width: 480px) {
  .g-photo-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
}

/* ============================================================
   PHOTO ALBUM CARD — Cinematic Design
   ============================================================ */
.g-album-card {
  position: relative;
  border-radius: var(--g-radius);
  overflow: hidden;
  cursor: pointer;
  background: var(--g-white);
  border: 1px solid rgba(200,155,60,0.1);
  transition: all 0.4s var(--g-ease);
  animation: gFadeUp 0.25s var(--g-ease);
  box-shadow: var(--g-shadow-card);
}

.g-album-card:hover {
  transform: translateY(-10px) scale(1.015);
  border-color: rgba(200,155,60,0.25);
  box-shadow: var(--g-shadow-hover), var(--g-shadow-glow);
}

/* Image container with cinematic 4:5 ratio */
.g-album-thumb-wrap {
  width: 100%;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  position: relative;
  background: linear-gradient(135deg, #f5f0e6, #ece5d5);
}

.g-album-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.7s var(--g-ease), filter 0.5s ease;
  will-change: transform;
}

.g-album-card:hover .g-album-thumb {
  transform: scale(1.08);
  filter: brightness(1.05) contrast(1.02);
}

/* Golden photo count badge */
.g-album-badge {
  position: absolute;
  top: 14px;
  right: 14px;
  background: linear-gradient(135deg, rgba(200,155,60,0.95), rgba(255,140,26,0.95));
  backdrop-filter: blur(10px);
  color: #FFFFFF;
  font-family: 'Poppins', sans-serif;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 5px 14px;
  border-radius: var(--g-radius-pill);
  letter-spacing: 0.03em;
  box-shadow: 0 4px 14px rgba(200,155,60,0.35);
  z-index: 3;
}

/* Hover overlay — cinematic gradient */
.g-album-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(26,26,26,0.75) 0%,
    rgba(26,26,26,0.35) 35%,
    rgba(26,26,26,0.05) 55%,
    transparent 70%
  );
  opacity: 0;
  transition: opacity 0.45s ease;
  display: flex;
  align-items: flex-end;
  padding: 22px;
  z-index: 2;
}

.g-album-card:hover .g-album-overlay { opacity: 1; }

.g-album-overlay-text {
  color: #FFFFFF;
  font-family: 'Inter', sans-serif;
  font-size: 0.88rem;
  font-weight: 600;
  text-shadow: 0 2px 8px rgba(0,0,0,0.3);
  display: flex;
  align-items: center;
  gap: 6px;
}
.g-album-overlay-text::before {
  content: "↗";
  font-size: 1.1rem;
}

/* Card info section */
.g-album-info {
  padding: 16px 18px 20px;
  position: relative;
}

/* Subtle gold top-line accent */
.g-album-info::before {
  content: "";
  position: absolute;
  top: 0;
  left: 18px;
  right: 18px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--g-border), transparent);
}

.g-album-category {
  font-family: 'Poppins', sans-serif;
  font-size: 0.66rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--g-gold);
  margin-bottom: 6px;
}

.g-album-title {
  margin: 0;
  font-family: 'Playfair Display', serif;
  font-size: 1.02rem;
  font-weight: 600;
  color: var(--g-text);
  line-height: 1.35;
}

/* ============================================================
   VIDEO CARD — Cinematic Design
   ============================================================ */
.g-video-card {
  position: relative;
  border-radius: var(--g-radius);
  overflow: hidden;
  cursor: pointer;
  background: var(--g-white);
  border: 1px solid rgba(200,155,60,0.1);
  transition: all 0.4s var(--g-ease);
  animation: gFadeUp 0.25s var(--g-ease);
  box-shadow: var(--g-shadow-card);
}

.g-video-card:hover {
  transform: translateY(-8px) scale(1.01);
  border-color: rgba(200,155,60,0.25);
  box-shadow: var(--g-shadow-hover);
}

.g-video-thumb-wrap {
  width: 100%;
  aspect-ratio: 16 / 9;
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #f0ebe0, #e5dfd3);
}

.g-video-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.55s var(--g-ease);
}

.g-video-card:hover .g-video-thumb { transform: scale(1.06); }

/* Premium play button */
.g-play-btn {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 68px;
  height: 68px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(200,155,60,0.95), rgba(255,140,26,0.95));
  color: #FFFFFF;
  display: grid;
  place-items: center;
  font-size: 1.5rem;
  padding-left: 4px;
  box-shadow: 0 8px 32px rgba(200,155,60,0.4), 0 0 0 6px rgba(255,255,255,0.25);
  transition: all 0.35s var(--g-ease);
  z-index: 2;
}

.g-video-card:hover .g-play-btn {
  transform: scale(1.15);
  box-shadow: 0 12px 40px rgba(200,155,60,0.55), 0 0 0 8px rgba(255,255,255,0.3);
}

.g-video-hd-badge {
  position: absolute;
  bottom: 12px;
  right: 12px;
  background: linear-gradient(135deg, var(--g-gold), var(--g-saffron));
  color: #FFFFFF;
  font-family: 'Poppins', sans-serif;
  font-size: 0.63rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: var(--g-radius-pill);
  letter-spacing: 0.06em;
  z-index: 2;
}

.g-video-info {
  padding: 16px 18px 20px;
  position: relative;
}

.g-video-info::before {
  content: "";
  position: absolute;
  top: 0; left: 18px; right: 18px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--g-border), transparent);
}

.g-video-category {
  font-family: 'Poppins', sans-serif;
  font-size: 0.66rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--g-gold);
  margin-bottom: 5px;
}

.g-video-title {
  margin: 0 0 6px;
  font-family: 'Playfair Display', serif;
  font-size: 1.02rem;
  font-weight: 600;
  color: var(--g-text);
  line-height: 1.35;
}

.g-video-desc {
  margin: 0;
  font-family: 'Inter', sans-serif;
  font-size: 0.82rem;
  color: var(--g-text-muted);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.55;
}

/* ============================================================
   NO RESULTS (Elegant Empty State)
   ============================================================ */
.g-empty {
  text-align: center;
  padding: 80px 20px;
  color: var(--g-text-muted);
  display: none;
  position: relative;
  z-index: 2;
}
.g-empty.visible { display: block; }
.g-empty-icon { font-size: 3.5rem; margin-bottom: 16px; opacity: 0.5; }
.g-empty p {
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  color: var(--g-text-sec);
  max-width: 400px;
  margin: 0 auto;
  line-height: 1.65;
}

/* ============================================================
   PHOTO LIGHTBOX MODAL — Cinematic Full-Screen
   ============================================================ */
.glb-overlay {
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: rgba(5,5,5,0.97);
  backdrop-filter: blur(20px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
}
.glb-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

.glb-header {
  position: absolute;
  top: 0; left: 0; right: 0;
  padding: 18px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: linear-gradient(to bottom, rgba(0,0,0,0.85), transparent);
  z-index: 10;
}

.glb-title {
  color: #FFFFFF;
  font-family: 'Playfair Display', serif;
  font-size: 1.05rem;
  font-weight: 600;
  max-width: 55%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.glb-counter {
  font-family: 'Poppins', sans-serif;
  font-size: 0.83rem;
  font-weight: 700;
  color: var(--g-gold-light);
  background: rgba(200,155,60,0.12);
  padding: 5px 18px;
  border-radius: var(--g-radius-pill);
  border: 1px solid rgba(200,155,60,0.25);
}

.glb-close {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  color: #FFFFFF;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  font-size: 1.5rem;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: all 0.25s ease;
  flex-shrink: 0;
}
.glb-close:hover {
  background: var(--g-gold);
  border-color: var(--g-gold);
}

.glb-main {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  max-width: 1200px;
  padding: 80px 70px 120px;
}

.glb-img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border-radius: 8px;
  display: block;
  transition: opacity 0.3s ease, transform 0.3s var(--g-ease);
  user-select: none;
  box-shadow: 0 20px 60px rgba(0,0,0,0.6);
}
.glb-img.fade { opacity: 0; transform: scale(0.95); }

.glb-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: rgba(255,255,255,0.06);
  color: #FFFFFF;
  border: 1.5px solid rgba(255,255,255,0.15);
  font-size: 1.8rem;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: all 0.3s var(--g-ease);
  z-index: 10;
  backdrop-filter: blur(6px);
}
.glb-nav-btn:hover {
  background: var(--g-gold);
  border-color: var(--g-gold);
  transform: translateY(-50%) scale(1.1);
  box-shadow: 0 8px 24px rgba(200,155,60,0.4);
}
.glb-prev { left: 14px; }
.glb-next { right: 14px; }

.glb-footer {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 16px 24px;
  background: linear-gradient(to top, rgba(0,0,0,0.94), transparent);
  display: flex;
  align-items: center;
  justify-content: center;
}

.glb-thumbs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  max-width: 100%;
  padding: 4px 0;
  scrollbar-width: thin;
  scrollbar-color: rgba(200,155,60,0.3) transparent;
}

.glb-thumb {
  width: 60px;
  height: 45px;
  object-fit: cover;
  border-radius: 8px;
  cursor: pointer;
  border: 2.5px solid transparent;
  flex-shrink: 0;
  opacity: 0.4;
  transition: all 0.25s ease;
}
.glb-thumb.active, .glb-thumb:hover {
  border-color: var(--g-gold);
  opacity: 1;
  box-shadow: 0 0 12px rgba(200,155,60,0.35);
}

@media (max-width: 600px) {
  .glb-main { padding: 70px 50px 110px; }
  .glb-nav-btn { width: 42px; height: 42px; font-size: 1.4rem; }
  .glb-prev { left: 6px; }
  .glb-next { right: 6px; }
}

/* ============================================================
   VIDEO MODAL
   ============================================================ */
.gvid-overlay {
  position: fixed;
  inset: 0;
  z-index: 99998;
  background: rgba(0,0,0,0.96);
  backdrop-filter: blur(16px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
}
.gvid-overlay.open { opacity: 1; pointer-events: auto; }

.gvid-content {
  width: 94%;
  max-width: 900px;
  background: var(--g-white);
  border-radius: var(--g-radius);
  border: 1px solid var(--g-border);
  box-shadow: 0 30px 80px rgba(0,0,0,0.5);
  padding: 26px;
  position: relative;
}

.gvid-close {
  position: absolute;
  top: 14px; right: 14px;
  background: rgba(34,34,34,0.06);
  border: none;
  color: var(--g-text);
  width: 42px; height: 42px;
  border-radius: 50%;
  font-size: 1.4rem;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: all 0.2s;
  z-index: 5;
}
.gvid-close:hover {
  background: var(--g-gold);
  color: #FFFFFF;
}

.gvid-meta { padding-right: 50px; margin-bottom: 16px; }

.gvid-category {
  font-family: 'Poppins', sans-serif;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--g-gold);
  margin-bottom: 5px;
}

.gvid-title {
  margin: 0 0 4px;
  font-family: 'Playfair Display', serif;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--g-text);
}

.gvid-desc {
  margin: 0;
  font-family: 'Inter', sans-serif;
  font-size: 0.85rem;
  color: var(--g-text-sec);
}

.gvid-player-wrap {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: var(--g-radius-sm);
  overflow: hidden;
  background: #000;
  margin-bottom: 16px;
}

.gvid-player {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.gvid-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

/* ============================================================
   SECTION PANEL TRANSITIONS
   ============================================================ */
.g-section-panel { display: none; }
.g-section-panel.active {
  display: block;
  animation: gFadeIn 0.4s ease;
}

/* ============================================================
   GALLERY CTA SECTION — Premium Gold Gradient
   ============================================================ */
.gallery-cta-section {
  background: linear-gradient(135deg, #B8892F 0%, var(--g-gold) 30%, var(--g-saffron) 70%, #E67E22 100%);
  color: #FFFFFF;
  text-align: center;
  padding: 90px 0;
  position: relative;
  overflow: hidden;
}

.gallery-cta-section::before {
  content: "ॐ";
  position: absolute;
  left: 4%;
  top: 50%;
  transform: translateY(-50%) rotate(-10deg);
  font-family: 'Tiro Devanagari Sanskrit', serif;
  font-size: 16rem;
  opacity: 0.07;
  color: #FFFFFF;
  pointer-events: none;
}

.gallery-cta-section::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 500px 400px at 80% 20%, rgba(255,255,255,0.08) 0%, transparent 60%),
    radial-gradient(ellipse 400px 300px at 20% 80%, rgba(0,0,0,0.06) 0%, transparent 50%);
  pointer-events: none;
}

.gallery-cta-section h2 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.6rem, 3vw, 2.3rem);
  color: #FFFFFF;
  margin: 0 0 14px;
  position: relative;
  z-index: 1;
}

.gallery-cta-section .cta-subtitle {
  font-family: 'Inter', sans-serif;
  font-size: 1.08rem;
  color: rgba(255,255,255,0.9);
  max-width: 520px;
  margin: 0 auto 34px;
  line-height: 1.65;
  position: relative;
  z-index: 1;
}

.gallery-cta-section .btn-white {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #FFFFFF;
  color: var(--g-gold);
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  font-size: 0.95rem;
  padding: 15px 36px;
  border-radius: var(--g-radius-pill);
  text-decoration: none;
  transition: all 0.35s var(--g-ease);
  box-shadow: 0 8px 28px rgba(0,0,0,0.18);
  position: relative;
  z-index: 1;
}
.gallery-cta-section .btn-white:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 16px 40px rgba(0,0,0,0.25);
}

.gallery-cta-section .btn-outline-white {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  color: #FFFFFF;
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 15px 36px;
  border-radius: var(--g-radius-pill);
  border: 2px solid rgba(255,255,255,0.45);
  text-decoration: none;
  transition: all 0.35s var(--g-ease);
  position: relative;
  z-index: 1;
}
.gallery-cta-section .btn-outline-white:hover {
  background: rgba(255,255,255,0.15);
  border-color: #FFFFFF;
  transform: translateY(-3px);
}

/* ============================================================
   ANIMATIONS
   ============================================================ */
@keyframes gFadeUp {
  from { opacity: 0.8; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes gFadeIn {
  from { opacity: 0.8; }
  to { opacity: 1; }
}

/* Stagger delays removed for instant crisp rendering */

/* ============================================================
   FOCUS STATES (ACCESSIBILITY)
   ============================================================ */
.g-album-card:focus-visible,
.g-video-card:focus-visible,
.g-tab:focus-visible,
.g-filter-chip:focus-visible {
  outline: 3px solid var(--g-gold);
  outline-offset: 3px;
}

/* ============================================================
   VIEW ALL SECTION
   ============================================================ */
.gva-type-label {
  grid-column: 1 / -1;
  padding: 14px 0 6px;
  font-family: 'Poppins', sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--g-text-muted);
  border-bottom: 1px solid var(--g-border);
  margin-bottom: 8px;
}

/* ============================================================
   GALLERY BOTTOM NOTE
   ============================================================ */
.gallery-bottom-note {
  text-align: center;
  margin-top: 60px;
  font-family: 'Inter', sans-serif;
  font-size: 0.88rem;
  color: var(--g-text-muted);
  line-height: 1.7;
  position: relative;
  z-index: 2;
}

/* ============================================================
   DARK MODE COMPATIBILITY
   ============================================================ */
[data-theme="dark"] .gallery-hero { background: linear-gradient(175deg, #0f172a 0%, #111827 50%, #0f172a 100%); }
[data-theme="dark"] .gallery-hero::after { color: rgba(200,155,60,0.06); }
[data-theme="dark"] .gallery-hero h1 { color: #f8fafc; }
[data-theme="dark"] .gallery-hero .hero-subtitle { color: #94a3b8; }
[data-theme="dark"] .gallery-hero .breadcrumb { color: #64748b; }
[data-theme="dark"] .gallery-main-section { background: #0a0f1c; }
[data-theme="dark"] .g-tab { background: rgba(30,41,59,0.85); border-color: rgba(200,155,60,0.2); color: #94a3b8; }
[data-theme="dark"] .g-tab:hover { color: var(--g-gold); }
[data-theme="dark"] .g-tab.active { color: #fff; }
[data-theme="dark"] .g-search { background: rgba(30,41,59,0.85); color: #f8fafc; border-color: rgba(200,155,60,0.2); }
[data-theme="dark"] .g-search:focus { background: #1e293b; }
[data-theme="dark"] .g-sort { background: rgba(30,41,59,0.85); color: #f8fafc; border-color: rgba(200,155,60,0.2); }
[data-theme="dark"] .g-filter-chip { background: rgba(30,41,59,0.85); border-color: rgba(200,155,60,0.2); color: #94a3b8; }
[data-theme="dark"] .g-filter-chip.active { color: #fff; }
[data-theme="dark"] .g-album-card { background: #1e293b; border-color: rgba(200,155,60,0.12); }
[data-theme="dark"] .g-album-card:hover { border-color: rgba(200,155,60,0.3); }
[data-theme="dark"] .g-album-title { color: #f8fafc; }
[data-theme="dark"] .g-album-info::before { background: linear-gradient(90deg, transparent, rgba(200,155,60,0.15), transparent); }
[data-theme="dark"] .g-video-card { background: #1e293b; border-color: rgba(200,155,60,0.12); }
[data-theme="dark"] .g-video-card:hover { border-color: rgba(200,155,60,0.3); }
[data-theme="dark"] .g-video-title { color: #f8fafc; }
[data-theme="dark"] .g-video-desc { color: #64748b; }
[data-theme="dark"] .g-video-info::before { background: linear-gradient(90deg, transparent, rgba(200,155,60,0.15), transparent); }
[data-theme="dark"] .gvid-content { background: #1e293b; border-color: rgba(200,155,60,0.2); }
[data-theme="dark"] .gvid-close { background: rgba(255,255,255,0.08); color: #fff; }
[data-theme="dark"] .gvid-title { color: #f8fafc; }
[data-theme="dark"] .gvid-desc { color: #94a3b8; }
[data-theme="dark"] .gallery-bottom-note { color: #64748b; }
[data-theme="dark"] .g-album-thumb-wrap { background: linear-gradient(135deg, #1a2332, #151d2b); }
[data-theme="dark"] .g-video-thumb-wrap { background: linear-gradient(135deg, #1a2332, #151d2b); }
