/* ==========================================================================
   REVANTH & VIKASINI WEDDING GALLERY — LUXURY DESIGN SYSTEM
   ========================================================================== */

:root {
  /* Color Palette - Dark Obsidian & Champagne Gold (Default) */
  --bg-primary: #0c0a0c;
  --bg-secondary: #141013;
  --bg-surface: rgba(26, 21, 25, 0.75);
  --bg-surface-elevated: rgba(36, 30, 35, 0.88);
  --bg-glass: rgba(22, 18, 22, 0.82);
  --bg-card: #181317;

  --gold-primary: #dcb35c;
  --gold-light: #f5d78e;
  --gold-dark: #b58d34;
  --gold-glow: rgba(220, 179, 92, 0.35);
  --gold-border: rgba(220, 179, 92, 0.22);
  --gold-subtle: rgba(220, 179, 92, 0.08);

  --rose-accent: #e2738d;
  --rose-glow: rgba(226, 115, 141, 0.3);

  --text-primary: #fcf9f5;
  --text-secondary: #c9bfb5;
  --text-muted: #8c8279;
  --text-inverse: #100d0e;

  --border-subtle: rgba(255, 255, 255, 0.07);
  --border-focus: rgba(220, 179, 92, 0.5);

  --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.35);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.45);
  --shadow-lg: 0 16px 40px rgba(0, 0, 0, 0.6);
  --shadow-gold: 0 0 25px rgba(220, 179, 92, 0.2);

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-pill: 9999px;

  --font-serif: 'Playfair Display', 'Cormorant Garamond', Georgia, serif;
  --font-cursive: 'Great Vibes', cursive;
  --font-sans: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-smooth: 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-spring: 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Light Mode: Pearl Ivory & Rose Gold */
[data-theme="light"] {
  --bg-primary: #fbf8f4;
  --bg-secondary: #f2ece4;
  --bg-surface: rgba(255, 255, 255, 0.85);
  --bg-surface-elevated: rgba(255, 255, 255, 0.95);
  --bg-glass: rgba(250, 246, 240, 0.88);
  --bg-card: #ffffff;

  --gold-primary: #9e7526;
  --gold-light: #c29845;
  --gold-dark: #7a5818;
  --gold-glow: rgba(158, 117, 38, 0.25);
  --gold-border: rgba(158, 117, 38, 0.25);
  --gold-subtle: rgba(158, 117, 38, 0.08);

  --rose-accent: #c44d6a;
  --rose-glow: rgba(196, 77, 106, 0.2);

  --text-primary: #1c1719;
  --text-secondary: #574e4c;
  --text-muted: #827876;
  --text-inverse: #fcf9f5;

  --border-subtle: rgba(0, 0, 0, 0.08);
  --border-focus: rgba(158, 117, 38, 0.5);

  --shadow-sm: 0 4px 12px rgba(90, 70, 50, 0.08);
  --shadow-md: 0 8px 24px rgba(90, 70, 50, 0.12);
  --shadow-lg: 0 16px 40px rgba(90, 70, 50, 0.16);
  --shadow-gold: 0 0 25px rgba(158, 117, 38, 0.15);
}

/* Base Reset & Globals */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-tap-highlight-color: transparent;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  transition: background-color var(--transition-smooth), color var(--transition-smooth);
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  image-orientation: from-image;
}

button, input, select {
  font-family: inherit;
  border: none;
  outline: none;
  background: none;
}

button {
  cursor: pointer;
}

/* ==========================================================================
   AMBIENT AUDIO WIDGET
   ========================================================================== */

.ambient-audio-pill {
  position: fixed;
  bottom: 24px;
  left: 24px;
  z-index: 990;
}

.audio-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 18px;
  background: var(--bg-surface-elevated);
  border: 1px solid var(--gold-border);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-radius: var(--radius-pill);
  color: var(--text-primary);
  font-size: 0.85rem;
  font-weight: 500;
  box-shadow: var(--shadow-md);
  transition: all var(--transition-smooth);
}

.audio-btn:hover {
  border-color: var(--gold-primary);
  box-shadow: var(--shadow-gold);
  transform: translateY(-2px);
}

.music-icon {
  font-size: 1rem;
}

.music-wave {
  display: flex;
  align-items: flex-end;
  gap: 3px;
  height: 14px;
}

.music-wave .bar {
  width: 3px;
  height: 4px;
  background-color: var(--gold-primary);
  border-radius: 2px;
  transition: height 0.2s ease;
}

.audio-btn.playing .music-wave .bar:nth-child(1) {
  animation: soundBars 1s ease-in-out infinite alternate;
}
.audio-btn.playing .music-wave .bar:nth-child(2) {
  animation: soundBars 0.8s ease-in-out infinite 0.2s alternate;
}
.audio-btn.playing .music-wave .bar:nth-child(3) {
  animation: soundBars 1.2s ease-in-out infinite 0.4s alternate;
}

@keyframes soundBars {
  0% { height: 4px; }
  100% { height: 14px; }
}

/* ==========================================================================
   LUXURY HEADER & NAVIGATION
   ========================================================================== */

.luxury-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: var(--bg-glass);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--gold-border);
  transition: all var(--transition-smooth);
}

.header-container {
  max-width: 1540px;
  margin: 0 auto;
  padding: 12px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand-crest .crest-link {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.monogram {
  font-family: var(--font-serif);
  font-size: 1.45rem;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--gold-light);
  display: flex;
  align-items: center;
  gap: 8px;
}

[data-theme="light"] .monogram {
  color: var(--gold-primary);
}

.heart-symbol {
  color: var(--rose-accent);
  font-size: 0.9rem;
  animation: pulseHeart 2s infinite ease-in-out;
}

@keyframes pulseHeart {
  0%, 100% { transform: scale(1); opacity: 0.8; }
  50% { transform: scale(1.25); opacity: 1; }
}

.brand-sub {
  font-size: 0.68rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--text-muted);
  font-weight: 400;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.action-icon-btn {
  width: 42px;
  height: 42px;
  border-radius: var(--radius-pill);
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  font-size: 1.1rem;
  transition: all var(--transition-fast);
}

.action-icon-btn:hover {
  border-color: var(--gold-primary);
  background: var(--gold-subtle);
  transform: translateY(-2px);
}

[data-theme="dark"] .theme-icon-light { display: inline-block; }
[data-theme="dark"] .theme-icon-dark { display: none; }
[data-theme="light"] .theme-icon-light { display: none; }
[data-theme="light"] .theme-icon-dark { display: inline-block; }

.action-pill-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: var(--radius-pill);
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  font-size: 0.88rem;
  font-weight: 500;
  transition: all var(--transition-fast);
}

.action-pill-btn:hover {
  border-color: var(--rose-accent);
  background: rgba(226, 115, 141, 0.1);
  transform: translateY(-2px);
}

.fav-count-badge {
  background: var(--rose-accent);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: var(--radius-pill);
}

.explore-btn {
  padding: 9px 20px;
  border-radius: var(--radius-pill);
  background: linear-gradient(135deg, var(--gold-primary), var(--gold-dark));
  color: #16120e;
  font-weight: 600;
  font-size: 0.88rem;
  letter-spacing: 0.5px;
  box-shadow: 0 4px 15px var(--gold-glow);
  transition: all var(--transition-fast);
}

.explore-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px var(--gold-glow);
  filter: brightness(1.1);
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */

.hero-section {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 130px 24px 70px;
  overflow: hidden;
  background: radial-gradient(circle at 50% 30%, var(--bg-secondary) 0%, var(--bg-primary) 80%);
}

.hero-bg-overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.ambient-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.25;
}

.glow-1 {
  width: 600px;
  height: 600px;
  background: var(--gold-primary);
  top: -150px;
  left: 20%;
  animation: floatGlow 14s infinite alternate ease-in-out;
}

.glow-2 {
  width: 500px;
  height: 500px;
  background: var(--rose-accent);
  bottom: -100px;
  right: 15%;
  animation: floatGlow 18s infinite alternate-reverse ease-in-out;
}

.glow-3 {
  width: 400px;
  height: 400px;
  background: #a37b38;
  top: 40%;
  right: 35%;
  opacity: 0.15;
}

@keyframes floatGlow {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(40px, 30px) scale(1.1); }
  100% { transform: translate(-30px, -20px) scale(0.95); }
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 980px;
  margin: 0 auto;
}

.hero-invitation-badge {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 6px 20px;
  background: var(--gold-subtle);
  border: 1px solid var(--gold-border);
  border-radius: var(--radius-pill);
  font-size: 0.85rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--gold-light);
  margin-bottom: 24px;
}

[data-theme="light"] .hero-invitation-badge {
  color: var(--gold-dark);
}

.ornament-leaf {
  color: var(--gold-primary);
  font-size: 1rem;
}

.couple-title {
  font-family: var(--font-serif);
  font-size: clamp(3.2rem, 8vw, 6.2rem);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.5px;
  margin-bottom: 18px;
  background: linear-gradient(135deg, #ffffff 10%, var(--gold-light) 50%, var(--gold-primary) 90%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

[data-theme="light"] .couple-title {
  background: linear-gradient(135deg, #1f1b1d 20%, var(--gold-dark) 80%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.couple-title .ampersand {
  font-family: var(--font-cursive);
  font-weight: 400;
  font-size: 0.9em;
  padding: 0 12px;
  color: var(--rose-accent);
  -webkit-text-fill-color: var(--rose-accent);
}

.hero-tagline {
  font-size: clamp(1.05rem, 2vw, 1.3rem);
  font-weight: 300;
  color: var(--text-secondary);
  max-width: 680px;
  margin: 0 auto 36px;
}

/* Event Milestone Cards */
.event-milestones {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.milestone-card {
  background: var(--bg-surface);
  border: 1px solid var(--gold-border);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 20px 28px;
  border-radius: var(--radius-md);
  text-align: center;
  min-width: 250px;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-smooth);
}

.milestone-card:hover {
  transform: translateY(-4px);
  border-color: var(--gold-primary);
  box-shadow: var(--shadow-gold);
  background: var(--bg-surface-elevated);
}

.milestone-badge {
  font-size: 0.72rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gold-primary);
  font-weight: 600;
  margin-bottom: 4px;
}

.milestone-title {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.milestone-date {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 8px;
}

.milestone-count {
  font-size: 0.8rem;
  color: var(--gold-light);
  font-weight: 500;
  background: var(--gold-subtle);
  display: inline-block;
  padding: 2px 10px;
  border-radius: var(--radius-pill);
}

[data-theme="light"] .milestone-count {
  color: var(--gold-dark);
}

.milestone-divider {
  font-size: 1.8rem;
  animation: pulseHeart 3s infinite ease-in-out;
}

/* Hero CTA buttons */
.hero-cta-group {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-bottom: 50px;
  flex-wrap: wrap;
}

.cta-primary-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 34px;
  border-radius: var(--radius-pill);
  background: linear-gradient(135deg, var(--gold-primary) 0%, #ca9e43 100%);
  color: #120e10;
  font-size: 1rem;
  font-weight: 600;
  box-shadow: 0 8px 25px var(--gold-glow);
  transition: all var(--transition-smooth);
}

.cta-primary-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 30px var(--gold-glow);
  filter: brightness(1.1);
}

.cta-secondary-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--radius-pill);
  background: var(--bg-surface);
  border: 1px solid var(--gold-border);
  color: var(--text-primary);
  font-size: 0.98rem;
  font-weight: 500;
  transition: all var(--transition-smooth);
}

.cta-secondary-btn:hover {
  transform: translateY(-3px);
  border-color: var(--gold-primary);
  background: var(--gold-subtle);
}

/* Hero Statistics Ribbon */
.hero-stat-ribbon {
  display: inline-flex;
  align-items: center;
  gap: 32px;
  padding: 14px 36px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  backdrop-filter: blur(12px);
  border-radius: var(--radius-pill);
}

.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.stat-number {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--gold-light);
}

[data-theme="light"] .stat-number {
  color: var(--gold-primary);
}

.stat-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-muted);
}

.stat-divider {
  width: 1px;
  height: 28px;
  background-color: var(--border-subtle);
}

.hero-scroll-indicator {
  position: absolute;
  bottom: 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  opacity: 0.7;
}

.mouse-icon {
  width: 22px;
  height: 34px;
  border: 2px solid var(--gold-primary);
  border-radius: 12px;
  position: relative;
}

.mouse-icon::after {
  content: '';
  position: absolute;
  top: 6px;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 6px;
  background-color: var(--gold-primary);
  border-radius: 2px;
  animation: scrollWheel 2s infinite ease-in-out;
}

@keyframes scrollWheel {
  0% { transform: translate(-50%, 0); opacity: 1; }
  100% { transform: translate(-50%, 14px); opacity: 0; }
}

.scroll-text {
  font-size: 0.72rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text-muted);
}

/* ==========================================================================
   FILTER CONTROL DOCK & TOOLBAR
   ========================================================================== */

.gallery-wrapper {
  max-width: 1600px;
  margin: 0 auto;
  padding: 40px 24px 80px;
  position: relative;
}

.filter-dock-wrapper {
  position: sticky;
  top: 69px;
  z-index: 800;
  margin-bottom: 24px;
  padding: 12px 0;
  background: var(--bg-glass);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: var(--radius-lg);
  border: 1px solid var(--gold-border);
  box-shadow: var(--shadow-md);
  transition: all var(--transition-smooth);
}

.filter-dock-container {
  padding: 10px 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* Category Tabs */
.category-tabs {
  display: flex;
  align-items: center;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 4px;
  scrollbar-width: none;
}

.category-tabs::-webkit-scrollbar {
  display: none;
}

.cat-tab {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: var(--radius-pill);
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  font-size: 0.9rem;
  font-weight: 500;
  white-space: nowrap;
  transition: all var(--transition-fast);
}

.cat-tab:hover {
  color: var(--text-primary);
  border-color: var(--gold-primary);
  background: var(--gold-subtle);
}

.cat-tab.active {
  background: linear-gradient(135deg, var(--gold-primary), var(--gold-dark));
  color: #120e10;
  font-weight: 600;
  border-color: transparent;
  box-shadow: 0 4px 15px var(--gold-glow);
}

.cat-tab .tab-badge {
  font-size: 0.75rem;
  padding: 2px 8px;
  border-radius: var(--radius-pill);
  background: rgba(0, 0, 0, 0.2);
  color: currentColor;
}

.cat-tab.active .tab-badge {
  background: rgba(0, 0, 0, 0.35);
  color: #ffffff;
}

.cat-tab .fav-badge {
  background: var(--rose-accent);
  color: #fff;
}

/* Secondary Ceremony Pills */
.subfolder-scroller {
  overflow-x: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--gold-border) transparent;
  padding-bottom: 6px;
}

.subfolder-scroller::-webkit-scrollbar {
  height: 4px;
}

.subfolder-scroller::-webkit-scrollbar-thumb {
  background-color: var(--gold-border);
  border-radius: 4px;
}

.subfolder-pills {
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}

.pill-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  font-size: 0.82rem;
  color: var(--text-secondary);
  transition: all var(--transition-fast);
}

.pill-chip:hover {
  border-color: var(--gold-border);
  color: var(--text-primary);
}

.pill-chip.active {
  background: var(--gold-subtle);
  border-color: var(--gold-primary);
  color: var(--gold-light);
  font-weight: 600;
}

[data-theme="light"] .pill-chip.active {
  color: var(--gold-dark);
}

.pill-count {
  font-size: 0.72rem;
  opacity: 0.75;
}

/* Utility Toolbar */
.utility-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding-top: 8px;
  border-top: 1px solid var(--border-subtle);
}

.search-box {
  position: relative;
  flex: 1;
  min-width: 260px;
  max-width: 480px;
}

.search-box .search-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 0.95rem;
  opacity: 0.6;
}

.search-box input {
  width: 100%;
  padding: 9px 36px 9px 40px;
  border-radius: var(--radius-pill);
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  font-size: 0.88rem;
  transition: all var(--transition-fast);
}

.search-box input:focus {
  border-color: var(--gold-primary);
  box-shadow: 0 0 0 3px var(--gold-subtle);
}

.clear-search-btn {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  font-size: 0.85rem;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
}

.clear-search-btn:hover {
  color: var(--text-primary);
  background: var(--border-subtle);
}

.toolbar-right {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.results-counter {
  font-size: 0.84rem;
  color: var(--text-muted);
}

.results-counter strong {
  color: var(--text-primary);
}

/* Density Buttons */
.density-group {
  display: inline-flex;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-pill);
  padding: 2px;
}

.density-btn {
  width: 32px;
  height: 28px;
  border-radius: var(--radius-pill);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  color: var(--text-muted);
  transition: all var(--transition-fast);
}

.density-btn.active {
  background: var(--gold-primary);
  color: #120e10;
  font-weight: 700;
}

/* Sort Select */
.sort-wrapper select {
  padding: 7px 14px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-pill);
  color: var(--text-primary);
  font-size: 0.84rem;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.sort-wrapper select:hover {
  border-color: var(--gold-border);
}

/* Shortlist Trigger Button */
.shortlist-trigger-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 16px;
  border-radius: var(--radius-pill);
  background: var(--bg-surface);
  border: 1px solid var(--rose-glow);
  color: var(--text-primary);
  font-size: 0.84rem;
  font-weight: 500;
  transition: all var(--transition-fast);
}

.shortlist-trigger-btn:hover {
  border-color: var(--rose-accent);
  background: rgba(226, 115, 141, 0.12);
  transform: translateY(-1px);
}

.shortlist-trigger-btn .pill-badge {
  background: var(--rose-accent);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 1px 7px;
  border-radius: var(--radius-pill);
}

/* Active Filter Banner */
.active-filter-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 20px;
  margin-bottom: 20px;
  background: var(--gold-subtle);
  border: 1px dashed var(--gold-border);
  border-radius: var(--radius-md);
  font-size: 0.88rem;
  color: var(--gold-light);
}

[data-theme="light"] .active-filter-banner {
  color: var(--gold-dark);
}

.reset-filter-btn {
  color: var(--text-primary);
  font-size: 0.82rem;
  font-weight: 600;
  padding: 4px 12px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-pill);
}

.reset-filter-btn:hover {
  border-color: var(--rose-accent);
  color: var(--rose-accent);
}

/* ==========================================================================
   MASONRY GALLERY GRID
   ========================================================================== */

.gallery-grid {
  display: grid;
  gap: 18px;
  transition: all var(--transition-smooth);
}

/* Grid Densities */
.gallery-grid.density-comfort {
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
}

.gallery-grid.density-dense {
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 12px;
}

.gallery-grid.density-cinematic {
  grid-template-columns: repeat(auto-fill, minmax(440px, 1fr));
  gap: 26px;
}

/* Photo Card */
.photo-card {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  aspect-ratio: 4 / 3;
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  transform: translateZ(0);
  transition: transform var(--transition-smooth), border-color var(--transition-smooth), box-shadow var(--transition-smooth);
}

.photo-card:hover {
  transform: translateY(-6px) scale(1.015);
  border-color: var(--gold-primary);
  box-shadow: var(--shadow-lg), var(--shadow-gold);
  z-index: 10;
}

.photo-card-inner {
  width: 100%;
  height: 100%;
  position: relative;
  background: linear-gradient(110deg, var(--bg-card) 8%, var(--bg-secondary) 18%, var(--bg-card) 33%);
  background-size: 200% 100%;
  animation: shimmerCard 1.8s infinite linear;
}

@keyframes shimmerCard {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

.photo-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  opacity: 0;
  transition: opacity 0.5s ease-out, transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.photo-thumb.loaded {
  opacity: 1;
}

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

/* Card Hover Overlay */
.card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(12, 10, 12, 0.88) 0%, rgba(12, 10, 12, 0.3) 50%, rgba(12, 10, 12, 0.5) 100%);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 14px;
  opacity: 0;
  transition: opacity var(--transition-fast);
}

.photo-card:hover .card-overlay {
  opacity: 1;
}

.overlay-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.photo-badge {
  font-size: 0.72rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 3px 10px;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(8px);
  border: 1px solid var(--gold-border);
  border-radius: var(--radius-pill);
  color: var(--gold-light);
  font-weight: 500;
}

.card-fav-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-size: 1.1rem;
  transition: all var(--transition-fast);
}

.card-fav-btn:hover {
  transform: scale(1.15);
  background: var(--rose-accent);
  border-color: var(--rose-accent);
}

.card-fav-btn.is-fav {
  background: var(--rose-accent);
  color: #fff;
  border-color: var(--rose-accent);
}

.overlay-bottom {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
}

.photo-meta {
  display: flex;
  flex-direction: column;
}

.photo-filename {
  font-size: 0.84rem;
  font-weight: 600;
  color: #ffffff;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8);
}

.photo-folder {
  font-size: 0.72rem;
  color: var(--gold-light);
  opacity: 0.9;
}

.card-zoom-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--gold-subtle);
  border: 1px solid var(--gold-border);
  color: var(--gold-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
}

/* ==========================================================================
   LOADING SENTINEL & SPINNER
   ========================================================================== */

.loading-sentinel {
  padding: 50px 0;
  text-align: center;
  min-height: 100px;
}

.shimmer-loader {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.loader-ring {
  width: 36px;
  height: 36px;
  border: 3px solid var(--border-subtle);
  border-top-color: var(--gold-primary);
  border-radius: 50%;
  animation: spinRing 0.9s infinite linear;
}

@keyframes spinRing {
  to { transform: rotate(360deg); }
}

.loader-text {
  font-size: 0.88rem;
  color: var(--text-muted);
  font-weight: 400;
  letter-spacing: 0.5px;
}

.end-of-gallery {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  color: var(--text-muted);
}

.end-flourish {
  font-size: 1.8rem;
  color: var(--gold-primary);
}

.back-top-btn {
  padding: 8px 20px;
  border-radius: var(--radius-pill);
  background: var(--bg-surface);
  border: 1px solid var(--gold-border);
  color: var(--gold-light);
  font-size: 0.84rem;
  font-weight: 500;
  margin-top: 8px;
  transition: all var(--transition-fast);
}

.back-top-btn:hover {
  background: var(--gold-primary);
  color: #120e10;
}

/* ==========================================================================
   LIGHTBOX / THEATER MODAL
   ========================================================================== */

.lightbox-modal {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  flex-direction: column;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-smooth);
}

.lightbox-modal.open {
  opacity: 1;
  pointer-events: auto;
}

.lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(8, 6, 8, 0.96);
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
}

/* Lightbox Header */
.lightbox-header {
  position: relative;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 28px;
  border-bottom: 1px solid var(--border-subtle);
}

.lightbox-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.lightbox-tag {
  font-size: 0.72rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--gold-primary);
  background: var(--gold-subtle);
  border: 1px solid var(--gold-border);
  padding: 2px 10px;
  border-radius: var(--radius-pill);
}

.lightbox-title {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-weight: 600;
  color: #ffffff;
}

.lightbox-index {
  font-size: 0.82rem;
  color: var(--text-muted);
}

.lightbox-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.lb-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-pill);
  color: #ffffff;
  font-size: 0.85rem;
  font-weight: 500;
  transition: all var(--transition-fast);
}

.lb-btn:hover {
  background: rgba(255, 255, 255, 0.18);
  border-color: var(--gold-primary);
  color: var(--gold-light);
}

.lb-btn.lb-close-btn {
  width: 38px;
  height: 38px;
  padding: 0;
  justify-content: center;
  font-size: 1.1rem;
}

.lb-btn.lb-fav-btn.is-fav {
  background: var(--rose-accent);
  border-color: var(--rose-accent);
}

.lb-btn.active {
  background: var(--gold-primary);
  color: #120e10;
  border-color: var(--gold-primary);
}

/* Lightbox Stage */
.lightbox-stage {
  position: relative;
  z-index: 5;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 20px 80px;
}

.stage-img-container {
  max-width: 100%;
  max-height: 100%;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.stage-img {
  max-width: 90vw;
  max-height: 75vh;
  object-fit: contain;
  border-radius: var(--radius-sm);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8);
  transition: transform 0.25s ease-out, opacity 0.3s ease;
  user-select: none;
}

.stage-img.zoomed {
  cursor: zoom-out;
  transform: scale(1.8);
}

.stage-loader {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(4px);
  z-index: 2;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.stage-loader.active {
  opacity: 1;
}

/* Stage Navigation */
.stage-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(20, 16, 18, 0.8);
  border: 1px solid var(--gold-border);
  color: #ffffff;
  font-size: 2.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 20;
  box-shadow: var(--shadow-md);
  transition: all var(--transition-fast);
}

.stage-nav:hover {
  background: var(--gold-primary);
  color: #120e10;
  transform: translateY(-50%) scale(1.1);
  border-color: var(--gold-primary);
}

.stage-nav.prev-nav { left: 24px; }
.stage-nav.next-nav { right: 24px; }

/* Slideshow Progress Bar */
.slideshow-progress-bar {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 3px;
  background: var(--gold-primary);
  width: 0%;
  transition: width 0.1s linear;
}

/* Lightbox Filmstrip Scrubber */
.lightbox-footer {
  position: relative;
  z-index: 10;
  padding: 12px 24px;
  background: rgba(12, 10, 12, 0.85);
  border-top: 1px solid var(--border-subtle);
  overflow: hidden;
}

.filmstrip-drawer {
  display: flex;
  align-items: center;
  gap: 10px;
  overflow-x: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--gold-border) transparent;
  padding: 4px 0;
}

.filmstrip-drawer::-webkit-scrollbar {
  height: 4px;
}

.filmstrip-drawer::-webkit-scrollbar-thumb {
  background: var(--gold-border);
  border-radius: 4px;
}

.film-thumb {
  width: 60px;
  height: 45px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 2px solid transparent;
  cursor: pointer;
  flex-shrink: 0;
  opacity: 0.55;
  transition: all var(--transition-fast);
}

.film-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.film-thumb:hover {
  opacity: 0.85;
}

.film-thumb.active {
  opacity: 1;
  border-color: var(--gold-primary);
  box-shadow: 0 0 10px var(--gold-glow);
  transform: scale(1.1);
}

/* ==========================================================================
   SHORTLIST / FAVORITES DRAWER
   ========================================================================== */

.shortlist-drawer {
  position: fixed;
  inset: 0;
  z-index: 2100;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-smooth);
}

.shortlist-drawer.open {
  opacity: 1;
  pointer-events: auto;
}

.drawer-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(8px);
}

.drawer-content {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(520px, 100vw);
  background: var(--bg-surface-elevated);
  border-left: 1px solid var(--gold-border);
  backdrop-filter: blur(25px);
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform var(--transition-spring);
  box-shadow: var(--shadow-lg);
}

.shortlist-drawer.open .drawer-content {
  transform: translateX(0);
}

.drawer-header {
  padding: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border-subtle);
}

.drawer-title-box {
  display: flex;
  align-items: center;
  gap: 10px;
}

.drawer-title-box h3 {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  font-weight: 700;
}

.drawer-count {
  font-size: 0.85rem;
  color: var(--rose-accent);
  font-weight: 600;
  background: rgba(226, 115, 141, 0.12);
  padding: 2px 10px;
  border-radius: var(--radius-pill);
}

.close-drawer-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 1.1rem;
  transition: all var(--transition-fast);
}

.close-drawer-btn:hover {
  color: var(--text-primary);
  background: var(--border-subtle);
}

.drawer-body {
  flex: 1;
  padding: 24px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.drawer-desc {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

.drawer-action-bar {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.drawer-btn {
  padding: 9px 16px;
  border-radius: var(--radius-pill);
  font-size: 0.85rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all var(--transition-fast);
}

.drawer-btn.primary {
  background: linear-gradient(135deg, var(--gold-primary), var(--gold-dark));
  color: #120e10;
}

.drawer-btn.primary:hover {
  filter: brightness(1.1);
  transform: translateY(-2px);
}

.drawer-btn.secondary {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
}

.drawer-btn.secondary:hover {
  border-color: var(--gold-primary);
  color: var(--gold-light);
}

.drawer-btn.danger {
  background: rgba(226, 115, 141, 0.12);
  border: 1px solid rgba(226, 115, 141, 0.3);
  color: var(--rose-accent);
}

.drawer-btn.danger:hover {
  background: var(--rose-accent);
  color: #fff;
}

.shortlist-preview-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 12px;
}

.shortlist-item {
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid var(--border-subtle);
}

.shortlist-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.shortlist-item .remove-btn {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.7);
  color: #ffffff;
  font-size: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.shortlist-item .remove-btn:hover {
  background: var(--rose-accent);
}

/* ==========================================================================
   TOAST NOTIFICATION SYSTEM
   ========================================================================== */

.toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 3000;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
}

.toast {
  padding: 12px 20px;
  background: var(--bg-surface-elevated);
  border: 1px solid var(--gold-border);
  backdrop-filter: blur(16px);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-size: 0.88rem;
  font-weight: 500;
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 10px;
  pointer-events: auto;
  animation: slideToast 0.35s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes slideToast {
  from {
    opacity: 0;
    transform: translateY(20px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.toast.toast-leave {
  animation: fadeToast 0.3s ease-out forwards;
}

@keyframes fadeToast {
  to {
    opacity: 0;
    transform: translateY(-10px) scale(0.95);
  }
}

/* ==========================================================================
   LUXURY FOOTER
   ========================================================================== */

.luxury-footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--gold-border);
  padding: 80px 24px 50px;
  text-align: center;
}

.footer-container {
  max-width: 900px;
  margin: 0 auto;
}

.footer-monogram .initials {
  font-family: var(--font-serif);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--gold-light);
  letter-spacing: 3px;
}

[data-theme="light"] .footer-monogram .initials {
  color: var(--gold-dark);
}

.footer-couple-name {
  font-family: var(--font-serif);
  font-size: 2.2rem;
  margin: 12px 0 6px;
  background: linear-gradient(135deg, #ffffff, var(--gold-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

[data-theme="light"] .footer-couple-name {
  background: linear-gradient(135deg, #221c1f, var(--gold-dark));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.footer-dates {
  font-size: 0.95rem;
  color: var(--text-secondary);
  margin-bottom: 30px;
}

.footer-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 36px;
}

.drive-link-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-pill);
  font-size: 0.85rem;
  color: var(--text-secondary);
  transition: all var(--transition-fast);
}

.drive-link-badge:hover {
  border-color: var(--gold-primary);
  color: var(--gold-light);
  transform: translateY(-2px);
}

.footer-signature {
  font-size: 0.8rem;
  color: var(--text-muted);
  border-top: 1px solid var(--border-subtle);
  padding-top: 24px;
}

/* ==========================================================================
   RESPONSIVE MEDIA QUERIES
   ========================================================================== */

@media (max-width: 900px) {
  .header-container {
    padding: 10px 18px;
  }
  .nav-actions .explore-btn {
    display: none;
  }
  .hero-section {
    padding: 110px 18px 50px;
  }
  .hero-stat-ribbon {
    gap: 16px;
    padding: 10px 20px;
  }
  .filter-dock-wrapper {
    top: 61px;
  }
  .lightbox-stage {
    padding: 10px 20px;
  }
  .stage-nav {
    width: 44px;
    height: 44px;
    font-size: 1.8rem;
  }
  .stage-nav.prev-nav { left: 10px; }
  .stage-nav.next-nav { right: 10px; }
}

@media (max-width: 600px) {
  .brand-crest .monogram {
    font-size: 1.2rem;
  }
  .brand-sub {
    display: none;
  }
  .ambient-audio-pill {
    bottom: 16px;
    left: 16px;
  }
  .audio-btn .music-label {
    display: none;
  }
  .event-milestones {
    flex-direction: column;
    gap: 12px;
  }
  .milestone-card {
    width: 100%;
  }
  .milestone-divider {
    display: none;
  }
  .hero-cta-group {
    flex-direction: column;
    width: 100%;
  }
  .hero-cta-group a, .hero-cta-group button {
    width: 100%;
    justify-content: center;
  }
  .utility-toolbar {
    flex-direction: column;
    align-items: stretch;
  }
  .search-box {
    max-width: 100%;
  }
  .toolbar-right {
    justify-content: space-between;
  }
  .lightbox-header {
    padding: 12px 16px;
  }
  .lightbox-info .lightbox-tag {
    display: none;
  }
  .lb-btn .btn-text {
    display: none;
  }
}
