/* ==========================================================================
   1. CORE VARIABLES & THEMES
   ========================================================================== */
:root {
  /* Dark Mode (Default) */
  --bg: #0A0A12;
  --surface: #121222;
  --surface-hover: #18182E;
  --blue-primary: #2E4B9C;
  --purple-primary: #3C3585;
  --blue-accent: #4A6FD4;
  --blue-border: rgba(46, 75, 156, 0.35);
  --blue-glow: rgba(46, 75, 156, 0.15);
  
  /* Typography Colors - Dark Mode */
  --text-main: #FFFFFF;
  --text-secondary: rgba(255, 255, 255, 0.75);
  --text-muted: rgba(255, 255, 255, 0.65);
  --text-tertiary: rgba(255, 255, 255, 0.45);
  
  /* Statuses */
  --success: #22C55E;
  --error: #EF4444;
  --shadow: rgba(0, 0, 0, 0.5);
  --radius-lg: 16px;
  --radius-md: 12px;
  --radius-sm: 8px;
  --transition-fast: 150ms ease;
  --transition-normal: 250ms ease;
}

:root.light-theme, html.light-theme {
  /* Premium Light Mode Overrides */
  --bg: #F8FAFC;
  --surface: #FFFFFF;
  --surface-hover: #F1F5F9;
  --blue-primary: #1E3A8A;
  --purple-primary: #4338CA;
  --blue-accent: #2563EB;
  --blue-border: rgba(37, 99, 235, 0.12);
  --blue-glow: rgba(37, 99, 235, 0.04);
  
  /* Typography Colors - Light Mode (High Contrast & Professional WCAG AA) */
  --text-main: #0F172A;        /* Deep Slate */
  --text-secondary: #334155;   /* Slate 700 */
  --text-muted: #475569;       /* Slate 600 */
  --text-tertiary: #64748B;    /* Slate 500 (Contrast >= 4.5:1) */
  
  --shadow: rgba(15, 23, 42, 0.06);
}

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

body {
  background-color: var(--bg);
  color: var(--text-main);
  font-family: 'Inter', sans-serif;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  transition: background-color 300ms ease, color 300ms ease;
}

/* Prevent default image border/glitch when src is empty */
img:not([src]), img[src=""] {
  opacity: 0 !important;
}

/* ==========================================================================
   2. NAVBAR
   ========================================================================== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: calc(64px + env(safe-area-inset-top));
  padding-top: env(safe-area-inset-top);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  background: rgba(10, 10, 18, 0.75);
  border-bottom: 1px solid var(--blue-border); /* taste-skill-ignore */
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-left: 24px;
  padding-right: 24px;
  transition: background-color 300ms ease, border-color 300ms ease;
}

.light-theme .navbar {
  background: rgba(248, 250, 252, 0.80);
}

.navbar-left, .navbar-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.navbar-brand-link {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: inherit;
  transition: opacity 180ms ease;
}

.navbar-brand-link:hover {
  opacity: 0.88;
}

.navbar-logo-img {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  object-fit: contain;
  flex-shrink: 0;
}

.navbar-title {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 700;
  font-size: 15px;
  color: var(--text-main);
  letter-spacing: 0.2px;
}

.nav-badge {
  background: rgba(46, 75, 156, 0.15);
  border: 1px solid var(--blue-border);
  border-radius: 6px;
  padding: 5px 12px;
  font-size: 11px;
  font-weight: 600;
  color: var(--blue-accent);
  letter-spacing: 0.3px;
}

.light-theme .nav-badge {
  background: rgba(37, 99, 235, 0.08);
}

.sound-btn {
  width: 44px;
  height: 44px;
  min-width: 44px;
  min-height: 44px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--blue-border);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--text-secondary);
  transition: transform var(--transition-fast), background-color var(--transition-fast), border-color var(--transition-fast), color var(--transition-fast);
}

.sound-btn:hover {
  background: var(--blue-primary);
  color: #FFFFFF;
  border-color: transparent;
}

.light-theme .sound-btn {
  background: rgba(15, 23, 42, 0.04);
}

/* ==========================================================================
   3. HERO SECTION
   ========================================================================== */
.hero-outer {
  position: relative;
  overflow: hidden;
  height: 85vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

#hero {
  position: absolute;
  inset: -40px;
  background: var(--bg);
  transform: translate3d(0, 0, 0);
}

.hero-mesh {
  position: absolute;
  inset: 0;
  background:
    /* taste-skill-ignore */ radial-gradient(ellipse 60% 50% at 30% 40%, rgba(46, 75, 156, 0.22) 0%, transparent 75%),
    radial-gradient(ellipse 50% 60% at 75% 65%, rgba(60, 53, 133, 0.18) 0%, transparent 75%); /* taste-skill-ignore */
  animation: meshMove 10s ease-in-out infinite alternate;
}

.light-theme .hero-mesh {
  background:
    /* taste-skill-ignore */ radial-gradient(ellipse 60% 50% at 30% 40%, rgba(37, 99, 235, 0.10) 0%, transparent 75%),
    radial-gradient(ellipse 50% 60% at 75% 65%, rgba(67, 56, 202, 0.06) 0%, transparent 75%); /* taste-skill-ignore */
}

@keyframes meshMove {
  0%   { opacity: 0.8; transform: scale(1) rotate(0deg); }
  100% { opacity: 1;   transform: scale(1.04) rotate(1.5deg); }
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    /* taste-skill-ignore */ linear-gradient(rgba(46, 75, 156, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(46, 75, 156, 0.05) 1px, transparent 1px); /* taste-skill-ignore */
  background-size: 54px 54px;
  mask-image: linear-gradient(to bottom, transparent 0%, black 25%, black 75%, transparent 100%); /* taste-skill-ignore */
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, black 25%, black 75%, transparent 100%); /* taste-skill-ignore */
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 0 24px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(46, 75, 156, 0.15);
  border: 1px solid var(--blue-border);
  border-radius: 100px;
  padding: 6px 18px;
  font-size: 12px;
  font-weight: 600;
  color: var(--blue-accent);
  letter-spacing: 0.5px;
  margin-bottom: 24px;
}

.hero-badge-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background-color: var(--blue-accent);
  animation: pulse 2s ease-in-out infinite;
}

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

.hero-title {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 800;
  font-size: clamp(34px, 7vw, 80px);
  line-height: 1.05;
  letter-spacing: -2px;
  color: var(--text-main);
  margin-bottom: 20px;
}

.hero-title-accent {
  color: var(--blue-accent);
}

.light-theme .hero-title-accent {
  color: #1D4ED8;
}

body[data-event="wedding-ardi-salimah"] .hero-title-accent {
  color: var(--wedding-burgundy);
}

.hero-subtitle {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 600;
  font-size: clamp(15px, 2vw, 22px);
  color: var(--text-secondary);
  margin-bottom: 10px;
}

.hero-sub2 {
  font-size: 13px;
  color: var(--text-muted);
  letter-spacing: 0.2px;
}

.hero-scroll {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  font-size: 11px;
  color: var(--text-tertiary);
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

.hero-scroll-line {
  width: 1px;
  height: 35px;
  background: linear-gradient(to bottom, var(--blue-accent), transparent); /* taste-skill-ignore */
}

/* ==========================================================================
   4. MAIN LAYOUT & STATS BAR
   ========================================================================== */
.main {
  max-width: 1440px;
  margin: 0 auto;
  padding: 40px 24px 80px;
}

.stats-bar {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 48px;
}

.stat-card {
  background: var(--surface);
  border: 1px solid var(--blue-border);
  /* resting clean */
  border-radius: var(--radius-lg);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  transition: border-color 200ms ease, transform 200ms ease, box-shadow 200ms ease;
}

.stat-card:hover {
  border-color: var(--blue-accent);
  transform: translateY(-2px);
  box-shadow: 0 12px 28px -10px var(--shadow); /* taste-skill-ignore */
}

.stat-icon {
  color: var(--blue-accent);
  margin-bottom: 4px;
}

.stat-value {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 800;
  font-size: clamp(24px, 3vw, 36px);
  color: var(--text-main);
  line-height: 1.1;
}

.stat-label {
  font-size: 13px;
  color: var(--text-muted);
  font-weight: 500;
}

/* ==========================================================================
   4B. EVENT DIRECTORY & MULTI-EVENT SHOWCASE
   ========================================================================== */
.events-section {
  margin-bottom: 52px;
}

.events-header {
  margin-bottom: 24px;
}

.events-badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(46, 75, 156, 0.12);
  border: 1px solid var(--blue-border);
  border-radius: 100px;
  padding: 4px 14px;
  font-size: 11px;
  font-weight: 700;
  color: var(--blue-accent);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-bottom: 12px;
}

.events-title {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: clamp(20px, 3vw, 28px);
  font-weight: 800;
  color: var(--text-main);
  letter-spacing: -0.5px;
  margin-bottom: 6px;
}

.events-desc {
  font-size: 14px;
  color: var(--text-muted);
  max-width: 650px;
  line-height: 1.5;
}

.events-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
}

.event-card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--blue-border);
  border-radius: var(--radius-lg);
  padding: 24px;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 190px;
  overflow: hidden;
  /* resting clean */
  transition: transform 300ms cubic-bezier(0.16, 1, 0.3, 1), border-color 200ms ease, box-shadow 250ms ease;
}

.event-card:hover {
  transform: translateY(-4px);
  border-color: var(--blue-accent);
  box-shadow: 0 20px 40px -15px rgba(46, 75, 156, 0.25); /* taste-skill-ignore */
}

.event-card-active {
  background: #141724;
  border-color: rgba(74, 111, 212, 0.45);
}

.light-theme .event-card-active {
  background: #FFFFFF;
}

.event-badge-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.badge-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 100px;
  letter-spacing: 0.3px;
}

.badge-live {
  background: rgba(34, 197, 94, 0.15);
  border: 1px solid rgba(34, 197, 94, 0.3);
  color: var(--success);
}

.badge-pulse {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--success);
  animation: pulse 1.5s infinite;
}

.badge-upcoming {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--blue-border);
  color: var(--text-secondary);
}

.light-theme .badge-upcoming {
  background: rgba(15, 23, 42, 0.05);
}

.event-count-chip {
  font-family: inherit;
  font-variant-numeric: tabular-nums;
  font-size: 11px;
  font-weight: 600;
  color: var(--blue-accent);
  background: rgba(46, 75, 156, 0.12);
  padding: 3px 8px;
  border-radius: 6px;
}

.event-name {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 17px;
  font-weight: 700;
  color: var(--text-main);
  line-height: 1.35;
  margin-bottom: 8px;
}

.event-description {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 20px;
}

.event-card-action {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
  font-weight: 600;
  color: var(--blue-accent);
  padding-top: 14px;
  border-top: none;
  transition: color 200ms ease;
}

.event-card:hover .event-card-action {
  color: #FFFFFF;
}

.light-theme .event-card:hover .event-card-action {
  color: var(--blue-primary);
}

.event-breadcrumb {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
  margin-bottom: 24px;
}

.event-breadcrumb a {
  color: var(--blue-accent);
  text-decoration: none;
}

.event-breadcrumb a:hover {
  text-decoration: underline;
}

/* ==========================================================================
   5. SEARCH & FILTER CONTROLS
   ========================================================================== */
.search-bar {
  display: flex;
  gap: 16px;
  margin-bottom: 32px;
  flex-wrap: wrap;
  align-items: center;
  position: sticky;
  top: calc(64px + env(safe-area-inset-top) + 12px);
  z-index: 90;
  background: rgba(18, 18, 34, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  padding: 14px 20px;
  border-radius: var(--radius-md);
  border: 1px solid var(--blue-border);
  box-shadow: 0 16px 36px -12px rgba(0,0,0,0.25); /* taste-skill-ignore */
}

.light-theme .search-bar {
  background: rgba(255, 255, 255, 0.90);
  box-shadow: 0 12px 30px -10px var(--shadow); /* taste-skill-ignore */
}

.search-wrap {
  position: relative;
  flex: 1;
  min-width: 260px;
}

.search-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-tertiary);
  pointer-events: none;
  display: flex;
  align-items: center;
}

.search-clear-btn {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--blue-border);
  border-radius: 50%;
  color: var(--text-tertiary);
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  transition: color 150ms ease, background-color 150ms ease, border-color 150ms ease;
  z-index: 2;
}

.light-theme .search-clear-btn {
  background: rgba(15, 23, 42, 0.06);
}

.search-clear-btn:hover {
  color: #FFFFFF;
  background: var(--blue-accent);
  border-color: transparent;
}

.search-input {
  width: 100%;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  padding: 12px 44px 12px 42px;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  color: var(--text-main);
  outline: none;
  transition: border-color 200ms ease, background-color 200ms ease, box-shadow 200ms ease;
}

.light-theme .search-input {
  background: rgba(15, 23, 42, 0.03);
  border-color: rgba(15, 23, 42, 0.08);
}

.search-input::placeholder {
  color: var(--text-tertiary);
}

.search-input:focus {
  border-color: var(--blue-accent);
  background: var(--surface);
  box-shadow: 0 0 0 3px var(--blue-glow); /* taste-skill-ignore */
}

.filter-btns {
  display: flex;
  gap: 8px;
}

.filter-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 11px 18px;
  border-radius: 10px;
  border: 1px solid var(--blue-border);
  background: transparent;
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 200ms ease, color 200ms ease, border-color 200ms ease;
}

.filter-btn:hover {
  background: rgba(46, 75, 156, 0.1);
  color: var(--text-main);
}

.filter-btn.active {
  background: var(--blue-primary);
  border-color: transparent;
  color: #FFFFFF;
}

.search-count {
  font-size: 13px;
  color: var(--text-muted);
  font-weight: 500;
}

/* ==========================================================================
   6. GALLERY & PHOTO CARDS
   ========================================================================== */
.gallery-heading-title,
.gallery-section-label {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 700;
  font-size: 20px;
  color: var(--text-main);
  margin-bottom: 24px;
}

.gallery {
  columns: 1;
  column-gap: 20px;
  width: 100%;
}

@media (min-width: 560px)  { .gallery { columns: 2; } }
@media (min-width: 960px)  { .gallery { columns: 3; } }
@media (min-width: 1200px) { .gallery { columns: 4; } }

.photo-card {
  break-inside: avoid;
  margin-bottom: 20px;
  background: var(--surface);
  border: 1px solid var(--blue-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  cursor: pointer;
  transform: perspective(1000px) rotateX(0deg) rotateY(0deg) scale(1);
  transition: transform 300ms cubic-bezier(0.25, 1, 0.5, 1), border-color 250ms ease, box-shadow 250ms ease;
  /* resting clean */
}

.photo-card:hover, .photo-card:focus-within {
  border-color: var(--blue-accent);
  box-shadow: 0 15px 35px -10px var(--shadow); /* taste-skill-ignore */
}

/* Progressive Image Wrapping & Skeleton Fixing */
.smooth-img-wrap {
  position: relative;
  width: 100%;
  overflow: hidden;
  display: block;
}

/* Skeleton Loading Layer */
.smooth-img-skeleton {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(255,255,255,0.03) 25%, rgba(255,255,255,0.08) 50%, rgba(255,255,255,0.03) 75%); /* taste-skill-ignore */
  background-size: 200% 100%;
  animation: skeletonLoading 1.5s infinite;
  z-index: 2;
}

.light-theme .smooth-img-skeleton {
  background: linear-gradient(90deg, rgba(15, 23, 42, 0.03) 25%, rgba(15, 23, 42, 0.08) 50%, rgba(15, 23, 42, 0.03) 75%); /* taste-skill-ignore */
}

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

.smooth-img {
  opacity: 0;
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  transition: opacity 350ms ease-in-out, filter 250ms ease;
}

/* CRITICAL BUG FIX FOR THE GREY BOX GLITCH */
.smooth-img-wrap.loaded .smooth-img-skeleton {
  display: none !important;
  opacity: 0 !important;
  pointer-events: none;
}

.smooth-img-wrap.loaded .smooth-img {
  opacity: 1;
}

.photo-thumb-container {
  aspect-ratio: 16 / 9;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.photo-card:hover .smooth-img {
  filter: brightness(1.05);
}

.photo-thumb-wrap {
  position: relative;
  aspect-ratio: 16 / 9;
  width: 100%;
  overflow: hidden;
}

.photo-overlay {
  position: absolute;
  inset: 0;
  background: rgba(10, 10, 18, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  z-index: 3;
  transition: opacity 250ms ease;
  color: #FFFFFF;
}

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

.photo-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px;
  background: var(--surface);
}

.photo-number {
  font-family: inherit;
  font-variant-numeric: tabular-nums;
  font-size: 13px;
  color: var(--blue-accent);
  font-weight: 600;
}

.photo-time {
  font-size: 11px;
  color: var(--text-muted);
}

/* Realtime Item Animation */
.photo-card-new {
  animation: cardEnter 500ms cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

@keyframes cardEnter {
  0%   { opacity: 0; transform: scale(0.9) translateY(20px); }
  100% { opacity: 1; transform: scale(1) translateY(0); }
}

/* ==========================================================================
   7. LOADERS & EMPTY STATES
   ========================================================================== */
.gallery-loader {
  text-align: center;
  padding: 48px 0;
  width: 100%;
}

.loader-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--blue-accent);
  margin: 0 4px;
  animation: dotBounce 1.2s infinite ease-in-out;
}

.loader-dot:nth-child(2) { animation-delay: 0.2s; }
.loader-dot:nth-child(3) { animation-delay: 0.4s; }

@keyframes dotBounce {
  0%, 80%, 100% { transform: translateY(0); opacity: 0.4; }
  40%           { transform: translateY(-10px); opacity: 1; }
}

.gallery-empty {
  text-align: center;
  padding: 60px 24px;
  font-size: 15px;
  color: var(--text-muted);
  width: 100%;
  background: var(--surface);
  border: 1px dashed var(--blue-border);
  border-radius: var(--radius-lg);
  margin: 24px 0 40px;
  line-height: 1.6;
}

/* ==========================================================================
   8. MODAL WINDOW
   ========================================================================== */
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(8, 8, 14, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: fadeIn 250ms ease-out;
}

.light-theme .modal-backdrop {
  background: rgba(241, 245, 249, 0.85);
}

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.modal-container {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--blue-border);
  box-shadow: 0 30px 70px -15px var(--shadow); /* taste-skill-ignore */
  border-radius: var(--radius-lg);
  overflow: hidden;
  width: 100%;
  max-width: 980px;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  animation: scaleUp 350ms cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes scaleUp {
  from { opacity: 0; transform: scale(0.96) translateY(15px); }
  to   { opacity: 1; transform: scale(1) translateY(0); }
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 220;
  width: 44px;
  height: 44px;
  min-width: 44px;
  min-height: 44px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--blue-border);
  color: var(--text-secondary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 150ms ease, color 150ms ease, border-color 150ms ease, transform 150ms ease;
}

.light-theme .modal-close {
  background: #FFFFFF;
  box-shadow: 0 4px 12px var(--shadow); /* taste-skill-ignore */
}

.modal-close:hover {
  background: var(--error);
  color: #FFFFFF;
  border-color: transparent;
}

.modal-body {
  display: flex;
  flex-direction: row;
  height: 100%;
  overflow: hidden;
}

.modal-img-wrap {
  position: relative;
  flex: 7;
  background-color: #05050B;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 350px;
}

.light-theme .modal-img-wrap {
  background-color: #E2E8F0;
}

.modal-img-wrap .smooth-img-wrap {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.modal-img-container, #modal-img {
  max-width: 100%;
  max-height: 78vh;
  width: auto;
  height: auto;
  object-fit: contain !important;
  margin: 0 auto;
  display: block;
}

.modal-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 210;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(10, 10, 18, 0.6);
  backdrop-filter: blur(4px);
  border: 1px solid var(--blue-border);
  color: #FFFFFF;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 200ms ease, color 200ms ease, border-color 200ms ease, transform 200ms ease;
}

.light-theme .modal-nav {
  background: rgba(255,255,255,0.8);
  color: #0F172A;
}

.modal-nav:hover {
  background: var(--blue-accent);
  color: #FFFFFF;
  border-color: transparent;
}

.modal-nav:disabled {
  opacity: 0.2;
  cursor: not-allowed;
}

.modal-prev { left: 16px; }
.modal-next { right: 16px; }

/* Slide Navigation Classes */
.slide-left { animation: slideLeft 250ms cubic-bezier(0.25, 1, 0.5, 1) forwards; }
.slide-right { animation: slideRight 250ms cubic-bezier(0.25, 1, 0.5, 1) forwards; }

@keyframes slideLeft {
  0% { transform: translateX(20px); opacity: 0; }
  100% { transform: translateX(0); opacity: 1; }
}
@keyframes slideRight {
  0% { transform: translateX(-20px); opacity: 0; }
  100% { transform: translateX(0); opacity: 1; }
}

.modal-info {
  flex: 3;
  min-width: 280px;
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border-left: 1px solid var(--blue-border); /* taste-skill-ignore */
  background: var(--surface);
  overflow-y: auto;
}

.modal-info-top {
  padding-right: 48px;
}

.modal-badge {
  background: rgba(46, 75, 156, 0.12);
  border: 1px solid var(--blue-border);
  border-radius: 6px;
  padding: 4px 10px;
  font-size: 10px;
  font-weight: 700;
  color: var(--blue-accent);
  letter-spacing: 0.5px;
  display: inline-block;
  margin-bottom: 16px;
  max-width: 100%;
  word-break: break-word;
}

.modal-photo-name {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 700;
  font-size: 15px;
  color: var(--text-main);
  line-height: 1.4;
  word-break: break-all;
  margin-bottom: 24px;
}

.modal-detail-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid var(--blue-border); /* taste-skill-ignore */
  gap: 12px;
}

.modal-detail-label {
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 500;
}

.modal-detail-value {
  font-size: 13px;
  color: var(--text-main);
  font-weight: 600;
  text-align: right;
}

.modal-detail-value.mono {
  font-family: inherit;
  font-variant-numeric: tabular-nums;
  color: var(--blue-accent);
}

.modal-actions {
  display: flex;
  gap: 12px;
  margin-top: 28px;
}

/* Buttons System */
.btn-primary {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--blue-primary);
  border-radius: 10px;
  padding: 14px 24px;
  font-size: 14px;
  font-weight: 600;
  color: #FFFFFF;
  cursor: pointer;
  border: none;
  transition: background-color 200ms ease, filter 200ms ease, transform 200ms ease, opacity 200ms ease;
}

.btn-primary:hover:not(:disabled) {
  filter: brightness(1.12);
  transform: translateY(-1px);
}

.btn-primary:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.btn-secondary {
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--blue-border);
  border-radius: 10px;
  padding: 0 16px;
  color: var(--text-main);
  cursor: pointer;
  transition: background-color 200ms ease, color 200ms ease, border-color 200ms ease, transform 200ms ease;
}

.light-theme .btn-secondary {
  background: rgba(15, 23, 42, 0.04);
}

.btn-secondary:hover {
  background: rgba(46, 75, 156, 0.15);
  color: var(--blue-accent);
}

.spinner {
  display: inline-block;
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255, 255, 255, 0.25);
  border-top-color: #FFFFFF;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
}

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

/* ==========================================================================
   9. TOAST NOTIFICATIONS
   ========================================================================== */
#toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.toast {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--surface);
  border-radius: var(--radius-md);
  padding: 14px 20px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-main);
  box-shadow: 0 15px 30px -5px rgba(0,0,0,0.3); /* taste-skill-ignore */
  animation: toastIn 300ms cubic-bezier(0.16, 1, 0.3, 1) forwards;
  max-width: 340px;
}

.light-theme .toast {
  box-shadow: 0 10px 25px -5px var(--shadow); /* taste-skill-ignore */
}

@keyframes toastIn {
  from { opacity: 0; transform: translateX(30px); }
  to   { opacity: 1; transform: translateX(0); }
}

.toast-success { border-left: 4px solid var(--success); }
.toast-error   { border-left: 4px solid var(--error); }
.toast-info    { border-left: 4px solid var(--blue-accent); }

/* ==========================================================================
   10. FOOTER
   ========================================================================== */
.footer {
  padding: 64px 24px 32px;
  border-top: none;
  margin-top: 80px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 40px;
  background: var(--surface);
}

.footer-info-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  max-width: 1050px;
  width: 100%;
}

.footer-info-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px;
  background: var(--surface);
  border: 1px solid var(--blue-border);
  border-radius: var(--radius-md);
  text-decoration: none;
  transition: transform 300ms cubic-bezier(0.16, 1, 0.3, 1), border-color 200ms ease, background-color 200ms ease, box-shadow 250ms ease;
  flex: 1;
  min-width: 260px;
  max-width: 330px;
  /* resting clean */
}

.footer-info-item:hover {
  border-color: var(--blue-accent);
  transform: translateY(-4px);
  box-shadow: 0 15px 30px -10px var(--shadow); /* taste-skill-ignore */
}

.footer-info-icon {
  color: var(--blue-accent);
  flex-shrink: 0;
  background: rgba(46, 75, 156, 0.1);
  padding: 10px;
  border-radius: 10px;
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.footer-info-text {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.footer-info-title {
  font-weight: 700;
  color: var(--text-muted);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.8px;
}

.footer-info-value {
  color: var(--text-main);
  font-weight: 600;
  font-size: 12px;
  line-height: 1.4;
}

.footer-bottom {
  text-align: center;
  font-size: 13px;
  color: var(--text-muted);
  padding-top: 24px;
  border-top: 1px solid var(--blue-border); /* taste-skill-ignore */
  width: 100%;
  max-width: 1050px;
  line-height: 1.7;
}

.footer-link {
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 600;
  transition: color 200ms;
}

.footer-link:hover {
  color: var(--blue-accent);
  text-decoration: underline;
}

.footer-author {
  font-style: italic;
  color: var(--blue-accent);
}

/* ==========================================================================
   11. RESPONSIVE MEDIA QUERIES
   ========================================================================== */
@media (max-width: 768px) {
  .stats-bar {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  
  .stat-card {
    padding: 16px 20px;
    flex-direction: row;
    align-items: center;
    gap: 16px;
  }
  
  .stat-icon { margin-bottom: 0; }
  
  .modal-container {
    max-height: 94vh;
  }

  .modal-body {
    flex-direction: column;
    overflow-y: auto;
    max-height: 85vh;
  }
  
  .modal-img-wrap {
    flex: none;
    height: auto !important;
    min-height: 260px;
    padding: 16px 12px 24px 12px;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .modal-img-wrap .smooth-img-wrap {
    width: auto !important;
    height: auto !important;
    max-width: 100%;
    overflow: visible;
  }

  .modal-img-container, #modal-img {
    max-height: 52vh;
    width: auto;
    max-width: 100%;
    object-fit: contain !important;
    margin: 0 auto;
    border-radius: 8px;
  }

  #modal-img-wrap.modal-is-photostrip {
    max-height: 65vh;
  }

  #modal-img-wrap.modal-is-photostrip .smooth-img-wrap,
  #modal-img-wrap.modal-is-photostrip .modal-img-container {
    max-height: 58vh !important;
    width: auto !important;
    aspect-ratio: 9 / 16 !important;
    object-fit: contain !important;
  }

  #modal-img-wrap.modal-is-single .smooth-img-wrap,
  #modal-img-wrap.modal-is-single .modal-img-container {
    max-height: 44vh !important;
    width: auto !important;
    object-fit: contain !important;
  }
  
  .modal-info {
    flex: none;
    border-left: none;
    border-top: 1px solid var(--blue-border); /* taste-skill-ignore */
    padding: 20px;
    max-height: none;
    overflow-y: visible;
  }
  
  .modal-nav {
    top: 50% !important;
    transform: translateY(-50%) !important;
    bottom: auto !important;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 215;
  }
  
  .modal-prev { left: 8px !important; }
  .modal-next { right: 8px !important; }
  
  .navbar {
    padding-left: 16px;
    padding-right: 16px;
  }
  .navbar-left {
    min-width: 0;
    flex: 1;
  }
  .navbar-brand-link {
    min-width: 0;
  }
  .navbar-title {
    font-size: 13px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .nav-badge {
    display: none;
  }
  .main { padding: 24px 16px 60px; }
  
  #toast-container {
    left: 16px;
    right: 16px;
    bottom: 16px;
  }
  .toast { max-width: 100%; }
}

@media (max-width: 540px) {
  .search-bar {
    padding: 12px;
    gap: 10px;
  }
  .search-wrap {
    min-width: 100%;
  }
  .filter-btns {
    width: 100%;
    gap: 8px;
  }
  .filter-btn {
    flex: 1;
    justify-content: center;
    padding: 10px 12px;
    font-size: 12px;
  }
}

/* Guard agar hover 3D tidak tersangkut di layar sentuh mobile/tablet */
@media (hover: none) {
  .photo-card {
    transform: none !important;
  }
}

/* ==========================================================================
   13. WEDDING OF ARDI & SALIMAH — MAROON & SOFT CREAM LUXURY DESIGN SYSTEM
   Master Frame Palette:
   - Primary: #4F0B0A (Deep Royal Burgundy / Dark Maroon)
   - Supportive: #FEF0D1 (Soft Warm Champagne Cream)
   - Neutral: #FFFFFF (Pure Crisp White for Cards & Content Areas)
   ========================================================================== */
body[data-event="wedding-ardi-salimah"] {
  --bg: #FEF0D1;
  --surface: #FFFFFF;
  --surface-hover: #FFFDF9;
  --wedding-maroon: #4F0B0A;
  --wedding-cream: #FEF0D1;
  --wedding-cream-dark: #F5E4BE;
  --wedding-burgundy: #4F0B0A;
  --wedding-rose: #7A1413;
  --wedding-gold: #4F0B0A;
  --wedding-gold-light: rgba(254, 240, 209, 0.7);
  --wedding-gold-border: rgba(79, 11, 10, 0.16);
  --blue-primary: #4F0B0A;
  --purple-primary: #7A1413;
  --blue-accent: #4F0B0A;
  --blue-border: rgba(79, 11, 10, 0.15);
  --blue-glow: rgba(79, 11, 10, 0.12);
  
  --text-main: #260505;
  --text-secondary: #4A1414;
  --text-muted: #6E3A3A;
  --text-tertiary: #8C5555;
  --shadow: rgba(79, 11, 10, 0.08);
  background-color: var(--bg);
  color: var(--text-main);
}

body[data-event="wedding-ardi-salimah"] .navbar {
  background: rgba(254, 240, 209, 0.94);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(79, 11, 10, 0.14);
}

body[data-event="wedding-ardi-salimah"] .navbar-brand-link {
  color: #4F0B0A;
}

body[data-event="wedding-ardi-salimah"] .navbar-title {
  color: #4F0B0A;
  font-weight: 700;
}

body[data-event="wedding-ardi-salimah"] .nav-badge {
  background: #4F0B0A;
  border: 1px solid #4F0B0A;
  color: #FEF0D1;
  font-family: 'Plus Jakarta Sans', sans-serif;
  letter-spacing: 0.05em;
  font-weight: 700;
}

body[data-event="wedding-ardi-salimah"] .sound-btn {
  background: #FFFFFF;
  border: 1px solid rgba(79, 11, 10, 0.18);
  color: #4F0B0A;
}

body[data-event="wedding-ardi-salimah"] .sound-btn:hover {
  background: #FEF0D1;
  border-color: #4F0B0A;
  color: #4F0B0A;
}

/* Wedding Hero Customization */
.wedding-hero-outer {
  position: relative;
  min-height: 480px;
  height: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  background: radial-gradient(circle at 50% 30%, #FFFDF8 0%, #FEF0D1 70%, #F5E4BE 100%);
  border-bottom: 1px solid rgba(79, 11, 10, 0.16);
  padding: calc(72px + env(safe-area-inset-top)) 20px 48px;
}

.wedding-hero-mesh {
  position: absolute;
  inset: 0;
  opacity: 0.35;
  background-image: 
    radial-gradient(at 20% 25%, rgba(79, 11, 10, 0.08) 0px, transparent 50%),
    radial-gradient(at 80% 20%, rgba(79, 11, 10, 0.06) 0px, transparent 50%),
    radial-gradient(at 50% 85%, rgba(79, 11, 10, 0.07) 0px, transparent 50%);
  pointer-events: none;
}

.wedding-corner-flourish {
  position: absolute;
  pointer-events: none;
  z-index: 5;
  opacity: 0.85;
}

.wedding-corner-flourish.corner-tl {
  top: 12px;
  left: 12px;
}

.wedding-corner-flourish.corner-tr {
  top: 12px;
  right: 12px;
}

.wedding-hero-content {
  position: relative;
  z-index: 10;
  max-width: 820px;
  padding: 0 16px;
  margin: 0 auto;
}

.wedding-hero-tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-bottom: 14px;
}

.wedding-tag-line {
  width: 32px;
  height: 1px;
  background: #4F0B0A;
  opacity: 0.5;
}

.wedding-tag-text {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #4F0B0A;
}

.wedding-names-wrap {
  margin-bottom: 10px;
}

.wedding-prefix {
  display: block;
  font-family: 'Cormorant Garamond', 'Playfair Display', serif;
  font-size: clamp(14px, 2vw, 18px);
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #4F0B0A;
  margin-bottom: 2px;
}

.wedding-names {
  font-family: 'Alex Brush', 'Cormorant Garamond', cursive, serif;
  font-size: clamp(52px, 10vw, 98px);
  font-weight: 400;
  color: #4F0B0A;
  line-height: 1.15;
  letter-spacing: 0.01em;
  word-break: keep-all;
  margin: 0;
  padding: 2px 0 8px;
}

.wedding-amp {
  font-family: 'Alex Brush', 'Cormorant Garamond', cursive, serif;
  font-style: normal;
  font-weight: 400;
  color: #4F0B0A;
  margin: 0 4px;
}

.wedding-formal-names {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #6E3A3A;
  margin-top: 2px;
  margin-bottom: 14px;
}

.wedding-hashtag-wrap {
  margin: 10px auto 14px;
}

.wedding-hashtag {
  display: inline-flex;
  align-items: center;
  font-family: 'Cormorant Garamond', 'Playfair Display', serif;
  font-style: italic;
  font-weight: 700;
  font-size: 16px;
  letter-spacing: 0.08em;
  color: #4F0B0A;
  background: rgba(79, 11, 10, 0.06);
  border: 1px solid rgba(79, 11, 10, 0.14);
  padding: 4px 18px;
  border-radius: 999px;
  box-shadow: 0 2px 8px rgba(79, 11, 10, 0.04);
}

html:not(.light-theme) body[data-event="wedding-ardi-salimah"] .wedding-formal-names {
  color: #FEF0D1;
  opacity: 0.85;
}

html:not(.light-theme) body[data-event="wedding-ardi-salimah"] .wedding-hashtag {
  color: #FEF0D1;
  background: rgba(254, 240, 209, 0.1);
  border-color: rgba(254, 240, 209, 0.22);
}

/* 3-Column Metadata Badge matching the Photobooth Frame */
.wedding-frame-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #FFFFFF;
  border: 1px solid rgba(79, 11, 10, 0.22);
  border-radius: 8px;
  padding: 8px 16px;
  margin: 14px auto 12px;
  box-shadow: 0 4px 14px rgba(79, 11, 10, 0.05);
}

.frame-badge-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 16px;
}

.badge-sub {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: #6E3A3A;
  text-transform: uppercase;
  margin-bottom: 2px;
}

.badge-main {
  font-family: 'Cormorant Garamond', 'Playfair Display', serif;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #4F0B0A;
  text-transform: uppercase;
}

.frame-badge-divider {
  width: 1px;
  height: 28px;
  background: rgba(79, 11, 10, 0.16);
}

@media (max-width: 768px) {
  .wedding-frame-badge {
    padding: 6px 8px;
    margin: 12px auto 10px;
  }
  .frame-badge-col {
    padding: 0 8px;
  }
  .badge-sub {
    font-size: 8.5px;
    letter-spacing: 0.12em;
  }
  .badge-main {
    font-size: 13px;
    letter-spacing: 0.05em;
  }
  .frame-badge-divider {
    height: 22px;
  }
}

.wedding-subtitle {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 13px;
  color: #6E3A3A;
  font-weight: 500;
  line-height: 1.6;
  margin-top: 6px;
}

/* Wedding Stat Card Overrides */
body[data-event="wedding-ardi-salimah"] .stat-card {
  background: var(--surface);
  border: 1px solid rgba(79, 11, 10, 0.14);
  border-radius: 16px;
  box-shadow: 0 6px 20px -4px rgba(79, 11, 10, 0.06);
}

body[data-event="wedding-ardi-salimah"] .stat-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: #FEF0D1;
  color: #4F0B0A;
  border-radius: 12px;
  margin-bottom: 8px;
}

body[data-event="wedding-ardi-salimah"] .stat-value {
  font-family: 'Cormorant Garamond', 'Times New Roman', serif;
  font-size: 38px;
  font-weight: 700;
  color: #4F0B0A;
}

body[data-event="wedding-ardi-salimah"] .stat-label {
  color: #6E3A3A;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 600;
}

/* Wedding Breadcrumb */
body[data-event="wedding-ardi-salimah"] .event-breadcrumb a {
  color: #4F0B0A;
  font-weight: 600;
}

body[data-event="wedding-ardi-salimah"] .event-breadcrumb span {
  color: #6E3A3A;
}

/* Wedding Search Bar */
body[data-event="wedding-ardi-salimah"] .search-bar {
  background: rgba(254, 240, 209, 0.92);
  border: 1px solid rgba(79, 11, 10, 0.16);
  box-shadow: 0 8px 24px -8px rgba(79, 11, 10, 0.1);
}

body[data-event="wedding-ardi-salimah"] .search-wrap {
  background: #FFFFFF;
  border: 1px solid rgba(79, 11, 10, 0.18);
  border-radius: 12px;
}

body[data-event="wedding-ardi-salimah"] .search-wrap:focus-within {
  border-color: #4F0B0A;
  box-shadow: 0 0 0 3px rgba(79, 11, 10, 0.12);
}

body[data-event="wedding-ardi-salimah"] .search-icon {
  color: #4F0B0A;
}

body[data-event="wedding-ardi-salimah"] .search-input {
  color: #260505;
}

body[data-event="wedding-ardi-salimah"] .search-input::placeholder {
  color: #8C5555;
}

body[data-event="wedding-ardi-salimah"] .filter-btn {
  background: #FFFFFF;
  border: 1px solid rgba(79, 11, 10, 0.16);
  color: #4F0B0A;
  border-radius: 10px;
}

body[data-event="wedding-ardi-salimah"] .filter-btn:hover {
  background: #FEF0D1;
  color: #4F0B0A;
  border-color: #4F0B0A;
}

body[data-event="wedding-ardi-salimah"] .filter-btn.active {
  background: #4F0B0A;
  color: #FEF0D1;
  border-color: #4F0B0A;
  box-shadow: 0 3px 10px rgba(79, 11, 10, 0.2);
}

/* Wedding Category Tabs Light */
body[data-event="wedding-ardi-salimah"] .category-tabs {
  background: #FFFFFF;
  border: 1px solid rgba(79, 11, 10, 0.15);
  box-shadow: 0 4px 14px rgba(79, 11, 10, 0.05);
}

body[data-event="wedding-ardi-salimah"] .category-tab {
  color: #6E3A3A;
}

body[data-event="wedding-ardi-salimah"] .category-tab:hover {
  color: #4F0B0A;
  background: #FEF0D1;
}

body[data-event="wedding-ardi-salimah"] .category-tab.active {
  background: #4F0B0A;
  color: #FEF0D1;
  box-shadow: 0 3px 10px rgba(79, 11, 10, 0.25);
}

body[data-event="wedding-ardi-salimah"] .category-tab:not(.active) .tab-badge {
  background: #FEF0D1;
  color: #4F0B0A;
}

body[data-event="wedding-ardi-salimah"] .category-tab.active .tab-badge {
  background: rgba(254, 240, 209, 0.25);
  color: #FEF0D1;
}

/* Wedding Gallery Section Title */
body[data-event="wedding-ardi-salimah"] .gallery-heading-title,
body[data-event="wedding-ardi-salimah"] .gallery-section-label {
  font-family: 'Cormorant Garamond', 'Times New Roman', serif;
  font-style: italic;
  font-size: 28px;
  font-weight: 700;
  color: #4F0B0A;
  letter-spacing: 0.02em;
  border-left: 3px solid #4F0B0A;
  padding-left: 14px;
}

/* Wedding Photo Cards */
body[data-event="wedding-ardi-salimah"] .photo-card {
  background: #FFFFFF;
  border: 1px solid rgba(79, 11, 10, 0.14);
  border-radius: 16px;
  box-shadow: 0 6px 20px -6px rgba(79, 11, 10, 0.06);
}

body[data-event="wedding-ardi-salimah"] .photo-card:hover {
  border-color: #4F0B0A;
  box-shadow: 0 18px 36px -10px rgba(79, 11, 10, 0.18);
}

body[data-event="wedding-ardi-salimah"] .photo-number {
  font-family: 'Cormorant Garamond', 'Times New Roman', serif;
  font-style: italic;
  font-weight: 700;
  font-size: 17px;
  color: #4F0B0A;
}

body[data-event="wedding-ardi-salimah"] .photo-time {
  color: #6E3A3A;
}

body[data-event="wedding-ardi-salimah"] .photo-overlay {
  background: rgba(79, 11, 10, 0.45);
  color: #FEF0D1;
}

/* Wedding Modal Actions */
body[data-event="wedding-ardi-salimah"] .btn-primary {
  background: #4F0B0A;
  color: #FEF0D1;
  border: 1px solid #4F0B0A;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 600;
}

body[data-event="wedding-ardi-salimah"] .btn-primary:hover {
  background: #3B0807;
  color: #FFFFFF;
  box-shadow: 0 6px 20px rgba(79, 11, 10, 0.35);
  transform: translateY(-1px);
}

body[data-event="wedding-ardi-salimah"] .btn-secondary {
  background: #FFFFFF;
  border: 1px solid rgba(79, 11, 10, 0.22);
  color: #4F0B0A;
}

body[data-event="wedding-ardi-salimah"] .btn-secondary:hover {
  background: #FEF0D1;
  border-color: #4F0B0A;
  color: #4F0B0A;
}

body[data-event="wedding-ardi-salimah"] .modal-close {
  background: #FFFFFF;
  border: 1px solid rgba(79, 11, 10, 0.2);
  color: #4F0B0A;
}

body[data-event="wedding-ardi-salimah"] .modal-close:hover {
  background: #4F0B0A;
  color: #FEF0D1;
}

body[data-event="wedding-ardi-salimah"] .modal-nav {
  background: rgba(255, 255, 255, 0.9);
  color: #4F0B0A;
  border: 1px solid rgba(79, 11, 10, 0.18);
}

body[data-event="wedding-ardi-salimah"] .modal-nav:hover {
  background: #4F0B0A;
  color: #FEF0D1;
}

body[data-event="wedding-ardi-salimah"] .modal-img-wrap {
  background-color: #FAF4E8;
}

/* Wedding Empty State */
body[data-event="wedding-ardi-salimah"] .gallery-empty {
  background: #FFFFFF;
  border: 1px dashed rgba(79, 11, 10, 0.25);
  border-radius: 18px;
  color: #4F0B0A;
  padding: 48px 24px;
  text-align: center;
}

body[data-event="wedding-ardi-salimah"] .gallery-empty .empty-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #FEF0D1;
  color: #4F0B0A;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
}

body[data-event="wedding-ardi-salimah"] .gallery-empty .empty-title {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 24px;
  font-weight: 700;
  color: #4F0B0A;
  margin-bottom: 8px;
}

body[data-event="wedding-ardi-salimah"] .gallery-empty .empty-desc {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 14px;
  color: #6E3A3A;
  max-width: 440px;
  margin: 0 auto;
  line-height: 1.6;
}

body[data-event="wedding-ardi-salimah"] .loader-dot {
  background: #4F0B0A;
}

/* Wedding Footer Light */
body[data-event="wedding-ardi-salimah"] .footer {
  border-top: 1px solid rgba(79, 11, 10, 0.16);
  background: #F9ECD0;
}

body[data-event="wedding-ardi-salimah"] .footer-connect-title {
  color: #260505;
}

body[data-event="wedding-ardi-salimah"] .footer-connect-italic {
  color: #4F0B0A;
}

body[data-event="wedding-ardi-salimah"] .footer-connect-plain {
  color: #260505;
}

body[data-event="wedding-ardi-salimah"] .footer-connect-subtitle {
  color: #6E3A3A;
}

body[data-event="wedding-ardi-salimah"] .footer-info-item {
  background: #FFFFFF;
  border: 1px solid rgba(79, 11, 10, 0.14);
}

body[data-event="wedding-ardi-salimah"] .footer-info-item:hover {
  border-color: #4F0B0A;
  box-shadow: 0 8px 24px -6px rgba(79, 11, 10, 0.12);
}

body[data-event="wedding-ardi-salimah"] .footer-info-icon {
  background: #FEF0D1;
  color: #4F0B0A;
  border: 1px solid rgba(79, 11, 10, 0.15);
}

body[data-event="wedding-ardi-salimah"] .footer-info-title {
  color: #4F0B0A;
}

body[data-event="wedding-ardi-salimah"] .footer-info-value {
  color: #6E3A3A;
}

body[data-event="wedding-ardi-salimah"] .footer-bottom {
  color: #6E3A3A;
}

body[data-event="wedding-ardi-salimah"] .footer-link {
  color: #4F0B0A;
}

body[data-event="wedding-ardi-salimah"] .footer-author {
  color: #4F0B0A;
}

/* ==========================================================================
   WEDDING OF ARDI & SALIMAH - COMPLETE DARK MODE OVERRIDES
   ========================================================================== */
html:not(.light-theme) body[data-event="wedding-ardi-salimah"] {
  --bg: #1A0404;
  --surface: #270808;
  --surface-hover: #350C0C;
  --surface-active: #400F0F;
  --wedding-maroon: #E68A8A;
  --wedding-cream: #FEF0D1;
  --wedding-burgundy: #E68A8A;
  --wedding-rose: #FB7185;
  --wedding-gold: #FEF0D1;
  --wedding-gold-light: rgba(254, 240, 209, 0.12);
  --wedding-gold-border: rgba(254, 240, 209, 0.22);
  --blue-primary: #731312;
  --purple-primary: #8C1C1B;
  --blue-accent: #E68A8A;
  --blue-border: rgba(254, 240, 209, 0.18);
  --text-main: #FFF6E5;
  --text-secondary: rgba(254, 240, 209, 0.88);
  --text-muted: rgba(254, 240, 209, 0.72);
  --text-tertiary: rgba(254, 240, 209, 0.5);
  --shadow: rgba(0, 0, 0, 0.55);
}

/* Navbar Dark */
html:not(.light-theme) body[data-event="wedding-ardi-salimah"] .navbar {
  background: rgba(26, 4, 4, 0.94);
  border-bottom: 1px solid rgba(254, 240, 209, 0.15);
}

html:not(.light-theme) body[data-event="wedding-ardi-salimah"] .navbar-title,
html:not(.light-theme) body[data-event="wedding-ardi-salimah"] .navbar-brand-link {
  color: #FEF0D1;
}

html:not(.light-theme) body[data-event="wedding-ardi-salimah"] .nav-badge {
  background: #350C0C;
  border-color: rgba(254, 240, 209, 0.25);
  color: #FEF0D1;
}

html:not(.light-theme) body[data-event="wedding-ardi-salimah"] .sound-btn {
  background: #270808;
  border-color: rgba(254, 240, 209, 0.2);
  color: #FEF0D1;
}

html:not(.light-theme) body[data-event="wedding-ardi-salimah"] .sound-btn:hover {
  background: #350C0C;
  border-color: #FEF0D1;
  color: #FFF6E5;
}

/* Hero Section Dark */
html:not(.light-theme) body[data-event="wedding-ardi-salimah"] .wedding-hero-outer {
  background: radial-gradient(circle at 50% 30%, #350C0C 0%, #200505 75%, #140202 100%);
  border-bottom: 1px solid rgba(254, 240, 209, 0.15);
}

html:not(.light-theme) body[data-event="wedding-ardi-salimah"] .wedding-corner-flourish {
  opacity: 0.35;
}

html:not(.light-theme) body[data-event="wedding-ardi-salimah"] .wedding-tag-line {
  background: #FEF0D1;
  opacity: 0.6;
}

html:not(.light-theme) body[data-event="wedding-ardi-salimah"] .wedding-tag-text {
  color: #FEF0D1;
}

html:not(.light-theme) body[data-event="wedding-ardi-salimah"] .wedding-prefix {
  color: #FEF0D1;
}

html:not(.light-theme) body[data-event="wedding-ardi-salimah"] .wedding-names {
  color: #FEF0D1;
}

html:not(.light-theme) body[data-event="wedding-ardi-salimah"] .wedding-amp {
  color: #FEF0D1;
}

html:not(.light-theme) body[data-event="wedding-ardi-salimah"] .wedding-frame-badge {
  background: #270808;
  border-color: rgba(254, 240, 209, 0.25);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
}

html:not(.light-theme) body[data-event="wedding-ardi-salimah"] .badge-sub {
  color: rgba(254, 240, 209, 0.7);
}

html:not(.light-theme) body[data-event="wedding-ardi-salimah"] .badge-main {
  color: #FEF0D1;
}

html:not(.light-theme) body[data-event="wedding-ardi-salimah"] .frame-badge-divider {
  background: rgba(254, 240, 209, 0.2);
}

html:not(.light-theme) body[data-event="wedding-ardi-salimah"] .wedding-subtitle {
  color: rgba(254, 240, 209, 0.75);
}

/* Breadcrumb Dark */
html:not(.light-theme) body[data-event="wedding-ardi-salimah"] .event-breadcrumb a {
  color: #FEF0D1;
}

html:not(.light-theme) body[data-event="wedding-ardi-salimah"] .event-breadcrumb span {
  color: rgba(254, 240, 209, 0.65);
}

/* Stats Dark */
html:not(.light-theme) body[data-event="wedding-ardi-salimah"] .stat-card {
  background: var(--surface);
  border-color: rgba(254, 240, 209, 0.18);
  box-shadow: 0 6px 20px -4px rgba(0, 0, 0, 0.35);
}

html:not(.light-theme) body[data-event="wedding-ardi-salimah"] .stat-card:hover {
  border-color: rgba(254, 240, 209, 0.35);
}

html:not(.light-theme) body[data-event="wedding-ardi-salimah"] .stat-icon {
  background: rgba(254, 240, 209, 0.12);
  color: #FEF0D1;
  border: 1px solid rgba(254, 240, 209, 0.16);
}

html:not(.light-theme) body[data-event="wedding-ardi-salimah"] .stat-value {
  color: #FFF6E5;
}

html:not(.light-theme) body[data-event="wedding-ardi-salimah"] .stat-label {
  color: rgba(254, 240, 209, 0.72);
}

/* Search Bar Dark */
html:not(.light-theme) body[data-event="wedding-ardi-salimah"] .search-bar {
  background: rgba(26, 4, 4, 0.92);
  border-color: rgba(254, 240, 209, 0.18);
  box-shadow: 0 12px 30px -10px rgba(0, 0, 0, 0.55);
}

html:not(.light-theme) body[data-event="wedding-ardi-salimah"] .search-wrap {
  background: #270808;
  border-color: rgba(254, 240, 209, 0.22);
}

html:not(.light-theme) body[data-event="wedding-ardi-salimah"] .search-wrap:focus-within {
  border-color: #FEF0D1;
  box-shadow: 0 0 0 3px rgba(254, 240, 209, 0.15);
}

html:not(.light-theme) body[data-event="wedding-ardi-salimah"] .search-input {
  color: #FFF6E5;
}

html:not(.light-theme) body[data-event="wedding-ardi-salimah"] .search-input::placeholder {
  color: rgba(254, 240, 209, 0.45);
}

html:not(.light-theme) body[data-event="wedding-ardi-salimah"] .search-icon {
  color: #FEF0D1;
}

html:not(.light-theme) body[data-event="wedding-ardi-salimah"] .search-clear-btn {
  color: rgba(254, 240, 209, 0.7);
}

/* Filter Sort Buttons Dark */
html:not(.light-theme) body[data-event="wedding-ardi-salimah"] .filter-btn {
  background: #270808;
  border-color: rgba(254, 240, 209, 0.2);
  color: #FEF0D1;
}

html:not(.light-theme) body[data-event="wedding-ardi-salimah"] .filter-btn:hover {
  background: #350C0C;
  color: #FFF6E5;
  border-color: rgba(254, 240, 209, 0.35);
}

html:not(.light-theme) body[data-event="wedding-ardi-salimah"] .filter-btn.active {
  background: #731312;
  color: #FEF0D1;
  border-color: rgba(254, 240, 209, 0.35);
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.4);
}

/* Category Tabs Dark */
html:not(.light-theme) body[data-event="wedding-ardi-salimah"] .category-tabs {
  background: #270808;
  border-color: rgba(254, 240, 209, 0.2);
}

html:not(.light-theme) body[data-event="wedding-ardi-salimah"] .category-tab {
  color: rgba(254, 240, 209, 0.7);
}

html:not(.light-theme) body[data-event="wedding-ardi-salimah"] .category-tab:hover {
  color: #FEF0D1;
  background: rgba(254, 240, 209, 0.08);
}

html:not(.light-theme) body[data-event="wedding-ardi-salimah"] .category-tab.active {
  background: #731312;
  color: #FEF0D1;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4);
}

html:not(.light-theme) body[data-event="wedding-ardi-salimah"] .category-tab:not(.active) .tab-badge {
  background: rgba(254, 240, 209, 0.12);
  color: #FEF0D1;
}

/* Gallery Heading Dark */
html:not(.light-theme) body[data-event="wedding-ardi-salimah"] .gallery-heading-title,
html:not(.light-theme) body[data-event="wedding-ardi-salimah"] .gallery-section-label {
  color: #FEF0D1;
  border-left-color: #E68A8A;
}

/* Photo Cards Dark */
html:not(.light-theme) body[data-event="wedding-ardi-salimah"] .photo-card {
  background: #270808;
  border-color: rgba(254, 240, 209, 0.16);
  box-shadow: 0 6px 20px -6px rgba(0, 0, 0, 0.35);
}

html:not(.light-theme) body[data-event="wedding-ardi-salimah"] .photo-card:hover {
  border-color: rgba(254, 240, 209, 0.35);
  box-shadow: 0 18px 36px -10px rgba(0, 0, 0, 0.6);
}

html:not(.light-theme) body[data-event="wedding-ardi-salimah"] .photo-number {
  color: #FEF0D1;
}

html:not(.light-theme) body[data-event="wedding-ardi-salimah"] .photo-time {
  color: rgba(254, 240, 209, 0.65);
}

/* Empty State Dark */
html:not(.light-theme) body[data-event="wedding-ardi-salimah"] .gallery-empty {
  background: #270808;
  border-color: rgba(254, 240, 209, 0.22);
  color: #FEF0D1;
}

html:not(.light-theme) body[data-event="wedding-ardi-salimah"] .gallery-empty .empty-icon {
  background: rgba(254, 240, 209, 0.12);
  color: #FEF0D1;
}

html:not(.light-theme) body[data-event="wedding-ardi-salimah"] .gallery-empty .empty-title {
  color: #FEF0D1;
}

html:not(.light-theme) body[data-event="wedding-ardi-salimah"] .gallery-empty .empty-desc {
  color: rgba(254, 240, 209, 0.72);
}

/* Modal Dark */
html:not(.light-theme) body[data-event="wedding-ardi-salimah"] .modal-container {
  background: #270808;
  border-color: rgba(254, 240, 209, 0.22);
  box-shadow: 0 30px 70px -15px rgba(0, 0, 0, 0.7);
}

html:not(.light-theme) body[data-event="wedding-ardi-salimah"] .modal-img-wrap {
  background-color: #140202;
}

html:not(.light-theme) body[data-event="wedding-ardi-salimah"] .modal-info {
  background: #270808;
  border-left-color: rgba(254, 240, 209, 0.15);
}

html:not(.light-theme) body[data-event="wedding-ardi-salimah"] .modal-badge {
  background: rgba(254, 240, 209, 0.12);
  border-color: rgba(254, 240, 209, 0.2);
  color: #FEF0D1;
}

html:not(.light-theme) body[data-event="wedding-ardi-salimah"] .modal-photo-name {
  color: #FFF6E5;
}

html:not(.light-theme) body[data-event="wedding-ardi-salimah"] .modal-detail-row {
  border-bottom-color: rgba(254, 240, 209, 0.14);
}

html:not(.light-theme) body[data-event="wedding-ardi-salimah"] .modal-detail-label {
  color: rgba(254, 240, 209, 0.7);
}

html:not(.light-theme) body[data-event="wedding-ardi-salimah"] .modal-detail-value {
  color: #FFF6E5;
}

html:not(.light-theme) body[data-event="wedding-ardi-salimah"] .modal-detail-value.mono {
  color: #E68A8A;
}

html:not(.light-theme) body[data-event="wedding-ardi-salimah"] .btn-primary {
  background: #731312;
  color: #FEF0D1;
  border-color: rgba(254, 240, 209, 0.3);
}

html:not(.light-theme) body[data-event="wedding-ardi-salimah"] .btn-primary:hover {
  background: #8C1C1B;
  color: #FFFFFF;
}

html:not(.light-theme) body[data-event="wedding-ardi-salimah"] .btn-secondary {
  background: #270808;
  border-color: rgba(254, 240, 209, 0.22);
  color: #FEF0D1;
}

html:not(.light-theme) body[data-event="wedding-ardi-salimah"] .btn-secondary:hover {
  background: #350C0C;
  border-color: #FEF0D1;
}

html:not(.light-theme) body[data-event="wedding-ardi-salimah"] .modal-close {
  background: #270808;
  border-color: rgba(254, 240, 209, 0.2);
  color: #FEF0D1;
}

html:not(.light-theme) body[data-event="wedding-ardi-salimah"] .modal-close:hover {
  background: #731312;
  color: #FFFFFF;
}

html:not(.light-theme) body[data-event="wedding-ardi-salimah"] .modal-nav {
  background: rgba(39, 8, 8, 0.85);
  border-color: rgba(254, 240, 209, 0.2);
  color: #FEF0D1;
}

html:not(.light-theme) body[data-event="wedding-ardi-salimah"] .modal-nav:hover {
  background: #731312;
  color: #FEF0D1;
}

/* Footer Dark */
html:not(.light-theme) body[data-event="wedding-ardi-salimah"] .footer {
  background: #140202;
  border-top-color: rgba(254, 240, 209, 0.16);
}

html:not(.light-theme) body[data-event="wedding-ardi-salimah"] .footer-connect-title {
  color: #FFF6E5;
}

html:not(.light-theme) body[data-event="wedding-ardi-salimah"] .footer-connect-italic {
  color: #E68A8A;
}

html:not(.light-theme) body[data-event="wedding-ardi-salimah"] .footer-connect-plain {
  color: #FFF6E5;
}

html:not(.light-theme) body[data-event="wedding-ardi-salimah"] .footer-connect-subtitle {
  color: rgba(254, 240, 209, 0.68);
}

html:not(.light-theme) body[data-event="wedding-ardi-salimah"] .footer-info-item {
  background: #270808;
  border-color: rgba(254, 240, 209, 0.16);
}

html:not(.light-theme) body[data-event="wedding-ardi-salimah"] .footer-info-item:hover {
  border-color: rgba(254, 240, 209, 0.35);
  box-shadow: 0 8px 24px -6px rgba(0, 0, 0, 0.4);
}

html:not(.light-theme) body[data-event="wedding-ardi-salimah"] .footer-info-icon {
  background: rgba(254, 240, 209, 0.1);
  color: #FEF0D1;
  border: 1px solid rgba(254, 240, 209, 0.16);
}

html:not(.light-theme) body[data-event="wedding-ardi-salimah"] .footer-info-title {
  color: #FEF0D1;
}

html:not(.light-theme) body[data-event="wedding-ardi-salimah"] .footer-info-value {
  color: rgba(254, 240, 209, 0.72);
}

html:not(.light-theme) body[data-event="wedding-ardi-salimah"] .footer-bottom {
  color: rgba(254, 240, 209, 0.6);
}

html:not(.light-theme) body[data-event="wedding-ardi-salimah"] .footer-link {
  color: #FEF0D1;
}

html:not(.light-theme) body[data-event="wedding-ardi-salimah"] .footer-author {
  color: #E68A8A;
}

/* ==========================================================================
   WEDDING MOBILE OPTIMIZATIONS (<= 600px)
   ========================================================================== */
@media (max-width: 768px) {
  body[data-event="wedding-ardi-salimah"] .wedding-hero-outer {
    min-height: auto;
    padding: calc(88px + env(safe-area-inset-top)) 16px 36px;
  }

  body[data-event="wedding-ardi-salimah"] .wedding-corner-flourish {
    top: calc(58px + env(safe-area-inset-top));
    opacity: 0.35;
  }

  body[data-event="wedding-ardi-salimah"] .wedding-corner-flourish svg {
    width: 48px;
    height: 48px;
  }

  body[data-event="wedding-ardi-salimah"] .wedding-hero-tag {
    margin-bottom: 12px;
    gap: 10px;
  }

  body[data-event="wedding-ardi-salimah"] .wedding-tag-line {
    width: 22px;
  }

  body[data-event="wedding-ardi-salimah"] .wedding-tag-text {
    font-size: 9.5px;
    letter-spacing: 0.14em;
  }

  body[data-event="wedding-ardi-salimah"] .wedding-prefix {
    font-size: 11.5px;
    letter-spacing: 0.18em;
  }

  body[data-event="wedding-ardi-salimah"] .wedding-names {
    font-size: clamp(38px, 10vw, 54px);
    line-height: 1.15;
    padding: 2px 0 4px;
  }

  body[data-event="wedding-ardi-salimah"] .wedding-formal-names {
    font-size: 10px;
    letter-spacing: 0.15em;
    margin-top: 2px;
    margin-bottom: 12px;
  }

  body[data-event="wedding-ardi-salimah"] .wedding-frame-badge {
    padding: 6px 8px;
    margin: 8px auto 10px;
    border-radius: 8px;
  }

  body[data-event="wedding-ardi-salimah"] .frame-badge-col {
    padding: 0 8px;
  }

  body[data-event="wedding-ardi-salimah"] .badge-sub {
    font-size: 8px;
    letter-spacing: 0.1em;
  }

  body[data-event="wedding-ardi-salimah"] .badge-main {
    font-size: 11.5px;
    letter-spacing: 0.04em;
  }

  body[data-event="wedding-ardi-salimah"] .frame-badge-divider {
    height: 20px;
  }

  body[data-event="wedding-ardi-salimah"] .wedding-hashtag-wrap {
    margin: 8px auto 10px;
  }

  body[data-event="wedding-ardi-salimah"] .wedding-hashtag {
    font-size: 13px;
    padding: 3px 12px;
  }

  body[data-event="wedding-ardi-salimah"] .wedding-subtitle {
    font-size: 9.5px;
    line-height: 1.35;
    margin-top: 10px;
    opacity: 0.75;
  }

  body[data-event="wedding-ardi-salimah"] .stats-bar {
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 8px !important;
    margin-bottom: 24px;
  }

  body[data-event="wedding-ardi-salimah"] .stat-card {
    padding: 12px 6px !important;
    flex-direction: column !important;
    align-items: center !important;
    text-align: center !important;
    gap: 4px !important;
    border-radius: 14px;
  }

  body[data-event="wedding-ardi-salimah"] .stat-icon {
    width: 36px;
    height: 36px;
    margin-bottom: 2px;
    border-radius: 10px;
  }

  body[data-event="wedding-ardi-salimah"] .stat-icon svg {
    width: 18px;
    height: 18px;
  }

  body[data-event="wedding-ardi-salimah"] .stat-value {
    font-size: 24px;
    line-height: 1.1;
  }

  body[data-event="wedding-ardi-salimah"] .stat-label {
    font-size: 10px;
    line-height: 1.25;
  }

  body[data-event="wedding-ardi-salimah"] .search-bar {
    padding: 10px 12px;
    gap: 10px;
    top: calc(60px + env(safe-area-inset-top) + 6px);
  }

  body[data-event="wedding-ardi-salimah"] .search-wrap {
    min-width: 100%;
    flex: 1 1 100%;
  }

  body[data-event="wedding-ardi-salimah"] .filter-btns {
    width: 100%;
    display: flex;
    gap: 8px;
  }

  body[data-event="wedding-ardi-salimah"] .filter-btn {
    flex: 1;
    justify-content: center;
    padding: 9px 12px;
    font-size: 12.5px;
  }

  /* Segmented 3-Column Tabs on Mobile: Fits 100% without horizontal scroll */
  body[data-event="wedding-ardi-salimah"] .category-tabs {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    width: 100% !important;
    max-width: 100% !important;
    padding: 4px !important;
    gap: 4px !important;
    overflow-x: visible !important;
    box-sizing: border-box !important;
    margin: 14px 0 20px 0 !important;
  }

  body[data-event="wedding-ardi-salimah"] .category-tab {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 8px 4px !important;
    font-size: 11px !important;
    gap: 4px !important;
    min-width: 0 !important;
    border-radius: 8px !important;
    text-align: center !important;
  }

  body[data-event="wedding-ardi-salimah"] .category-tab i {
    width: 12px !important;
    height: 12px !important;
    flex-shrink: 0 !important;
  }

  body[data-event="wedding-ardi-salimah"] .tab-label-full {
    display: none !important;
  }

  body[data-event="wedding-ardi-salimah"] .tab-label-short {
    display: inline !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    font-weight: 700 !important;
  }

  body[data-event="wedding-ardi-salimah"] .tab-badge {
    padding: 1px 5px !important;
    font-size: 9.5px !important;
    min-width: 15px !important;
    line-height: 1.2 !important;
  }

  body[data-event="wedding-ardi-salimah"] .gallery-heading-title {
    font-size: 22px;
  }
}

/* ==========================================================================
   12. FOOTER CONNECT HEADER
   ========================================================================== */
.footer-connect-header {
  text-align: center;
  max-width: 600px;
  margin-bottom: -10px;
}

.footer-connect-title {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: clamp(24px, 4vw, 32px);
  font-weight: 700;
  color: var(--text-main);
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}

.footer-connect-italic {
  font-family: 'Cormorant Garamond', 'Playfair Display', Georgia, serif;
  font-style: italic;
  font-weight: 700;
  color: var(--blue-accent);
}

.light-theme .footer-connect-italic {
  color: #1D4ED8;
}

body[data-event="wedding-ardi-salimah"] .footer-connect-italic {
  color: var(--wedding-maroon, #4F0B0A);
}

.footer-connect-plain {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-style: normal;
  font-weight: 700;
}

.footer-connect-subtitle {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.5;
}

/* ==========================================================================
   13. QR SHARE MODAL
#qr-modal {
  z-index: 300 !important;
}

.qr-modal-container {
  max-width: 420px;
  padding: 32px 28px;
  text-align: center;
  align-items: center;
  box-shadow: 0 30px 70px -15px var(--shadow); /* taste-skill-ignore */
}

.qr-modal-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

.qr-modal-title {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 18px;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 8px;
}

.qr-modal-desc {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 20px;
}

.qr-canvas-wrap {
  background: #FFFFFF;
  padding: 16px;
  border-radius: var(--radius-md);
  border: 1px solid var(--blue-border);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

.qr-photo-meta {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 20px;
}

.qr-copy-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 12px 18px;
  justify-content: center;
}

/* ==========================================================================
   15. CATEGORY TABS & DUAL-RATIO CARDS (9:16 PHOTOSTRIP & 16:9 SINGLE PHOTO)
   ========================================================================== */
.category-tabs {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 18px 0 24px 0;
  padding: 6px;
  background: var(--surface);
  border: 1px solid var(--blue-border);
  border-radius: var(--radius-md);
  width: fit-content;
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

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

body[data-event="wedding-ardi-salimah"] .category-tabs {
  border-color: var(--wedding-gold-border);
  background: #FFFFFF;
  box-shadow: 0 4px 16px -4px rgba(197, 155, 39, 0.08);
}

.dark-theme body[data-event="wedding-ardi-salimah"] .category-tabs,
html:not(.light-theme) body[data-event="wedding-ardi-salimah"] .category-tabs {
  background: #1A1420;
  border-color: rgba(197, 155, 39, 0.25);
}

.category-tab {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  border: none;
  background: transparent;
  color: var(--text-muted);
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: all 200ms cubic-bezier(0.16, 1, 0.3, 1);
  outline: none;
}

.category-tab:hover {
  color: var(--text-main);
  background: rgba(0, 0, 0, 0.03);
}

html:not(.light-theme) .category-tab:hover {
  background: rgba(255, 255, 255, 0.05);
}

.category-tab.active {
  background: var(--blue-primary);
  color: #FFFFFF;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}

body[data-event="wedding-ardi-salimah"] .category-tab.active {
  background: var(--wedding-burgundy);
  color: #FFFFFF;
  box-shadow: 0 4px 14px rgba(131, 24, 67, 0.28);
}

.tab-badge {
  display: inline-block;
  padding: 2px 7px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.2);
  color: inherit;
  transition: all 200ms ease;
}

.category-tab:not(.active) .tab-badge {
  background: rgba(15, 23, 42, 0.06);
  color: var(--text-muted);
}

html:not(.light-theme) .category-tab:not(.active) .tab-badge {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-secondary);
}

.tab-label-short {
  display: none;
}

.tab-label-full {
  display: inline;
}

/* Photostrip Vertical 9:16 Card Styling */
.photo-card.card-photostrip .photo-thumb-wrap {
  aspect-ratio: 9 / 16;
}

.photo-card.card-photostrip .photo-thumb-container {
  aspect-ratio: 9 / 16;
  object-fit: cover;
}

/* Master Satuan Horizontal 16:9 Card Styling */
.photo-card.card-single .photo-thumb-wrap {
  aspect-ratio: 16 / 9;
}

.photo-card.card-single .photo-thumb-container {
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

/* Chic Type Pill Badge on Cards */
.card-type-pill {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 4;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 9px;
  border-radius: 6px;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.3px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35);
  pointer-events: none;
}

.card-type-pill svg {
  display: block;
}

.card-type-pill.pill-photostrip {
  background: rgba(79, 11, 10, 0.92);
  color: #FEF0D1;
  border: 1px solid rgba(254, 240, 209, 0.4);
}

.card-type-pill.pill-single {
  background: rgba(30, 41, 59, 0.85);
  color: #F8FAFC;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

body[data-event="wedding-ardi-salimah"] .card-type-pill.pill-photostrip {
  background: rgba(79, 11, 10, 0.92);
  color: #FEF0D1;
  border: 1px solid rgba(254, 240, 209, 0.45);
}

/* Modal Adaptive Aspect Ratio */
#modal-img-wrap.modal-is-photostrip .smooth-img-wrap,
#modal-img-wrap.modal-is-photostrip .modal-img-container {
  aspect-ratio: 9 / 16 !important;
  max-height: 80vh;
}

#modal-img-wrap.modal-is-single .smooth-img-wrap,
#modal-img-wrap.modal-is-single .modal-img-container {
  aspect-ratio: auto !important;
  max-height: 80vh;
}

/* ==========================================================================
   WEDDING MODAL LUXURY BADGE & CONTROLS
   ========================================================================== */
body[data-event="wedding-ardi-salimah"] .modal-badge {
  background: rgba(79, 11, 10, 0.08) !important;
  border: 1px solid rgba(79, 11, 10, 0.22) !important;
  color: #4F0B0A !important;
  border-radius: 999px !important;
  padding: 6px 14px !important;
  font-size: 11px !important;
  font-weight: 700 !important;
  letter-spacing: 0.3px !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;
  line-height: 1 !important;
  margin-bottom: 16px !important;
}

body[data-event="wedding-ardi-salimah"] .modal-badge .badge-icon-item {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  color: #4F0B0A !important;
}

body[data-event="wedding-ardi-salimah"] .modal-badge .badge-icon-item svg {
  width: 14px !important;
  height: 14px !important;
  stroke: #4F0B0A !important;
  stroke-width: 2.2 !important;
  display: block !important;
}

body[data-event="wedding-ardi-salimah"] .modal-badge .badge-text-item {
  color: #4F0B0A !important;
  font-size: 11px !important;
  font-weight: 700 !important;
}

html:not(.light-theme) body[data-event="wedding-ardi-salimah"] .modal-badge {
  background: rgba(254, 240, 209, 0.12) !important;
  border-color: rgba(254, 240, 209, 0.28) !important;
  color: #FEF0D1 !important;
}

html:not(.light-theme) body[data-event="wedding-ardi-salimah"] .modal-badge .badge-icon-item svg {
  stroke: #FEF0D1 !important;
}

html:not(.light-theme) body[data-event="wedding-ardi-salimah"] .modal-badge .badge-text-item {
  color: #FEF0D1 !important;
}

/* Wedding Modal Close & Nav Elegance */
body[data-event="wedding-ardi-salimah"] .modal-close {
  background: #FFFFFF;
  color: #4F0B0A;
  border: 1px solid rgba(79, 11, 10, 0.18);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
  transition: all 0.2s ease;
}

body[data-event="wedding-ardi-salimah"] .modal-close:hover {
  background: #4F0B0A;
  color: #FEF0D1;
}

body[data-event="wedding-ardi-salimah"] .modal-nav {
  background: rgba(254, 240, 209, 0.92);
  color: #4F0B0A;
  border: 1px solid rgba(79, 11, 10, 0.2);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

body[data-event="wedding-ardi-salimah"] .modal-nav:hover {
  background: #4F0B0A;
  color: #FEF0D1;
}


