/*
Theme Name: Swarna Majapahit - Undangan Pernikahan Jawa Timur
Theme URI: https://example.com/swarna-majapahit-wedding
Author: Studio Budaya Digital Jawa Timur
Author URI: https://example.com
Description: Tema WordPress Undangan Pernikahan Online (Digital Wedding Invitation) dengan Ornamen Khas Jawa Timur (Surya Majapahit, Gapura Candi Bentar Wringin Lawang & Bajang Ratu Trowulan, Gunungan Wayang Kulit Jawa Timuran, dan Motif Batik Surya Citra Majapahit). Dilengkapi fitur unggah foto mempelai & galeri multi-foto (via WordPress Customizer, Custom Post Type Galeri, & Live Photo Uploader), animasi buka gerbang (Smooth Split-Gate Animation), partikel emas, hitung mundur, kisah cinta, amplop digital, dan buku tamu RSVP.
Version: 1.2.0
Requires at least: 5.8
Tested up to: 6.7
Requires PHP: 7.4
License: GPL v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: swarna-majapahit
Tags: wedding, invitation, east-java, jawa-timur, majapahit, one-page, custom-background, custom-colors, featured-images, theme-options
*/

:root {
  --bg-deep: #180C07;
  --bg-sogan: #26130C;
  --bg-card: rgba(44, 21, 13, 0.86);
  --bg-lontar: #FDF6E9;
  --terracotta: #8B2E16;
  --terracotta-light: #B84222;
  --gold-light: #F7E594;
  --gold-main: #D4AF37;
  --gold-dark: #9B7419;
  --text-cream: #F9EFE3;
  --text-muted: #D5C1AA;
  --border-gold: rgba(212, 175, 55, 0.38);
  --shadow-gold: 0 14px 40px rgba(0, 0, 0, 0.55), 0 0 25px rgba(212, 175, 55, 0.14);
  --ease-smooth: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-gate: cubic-bezier(0.65, 0, 0.35, 1);
  --font-serif: 'Cormorant Garamond', 'Playfair Display', Georgia, 'Times New Roman', serif;
  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  background-color: var(--bg-deep);
  color: var(--text-cream);
  font-family: var(--font-sans);
  line-height: 1.65;
  overflow-x: hidden;
}

body {
  background-color: var(--bg-deep);
  background-image:
    radial-gradient(circle at 50% 12%, rgba(139, 46, 22, 0.32) 0%, transparent 58%),
    radial-gradient(circle at 15% 80%, rgba(212, 175, 55, 0.10) 0%, transparent 45%),
    repeating-linear-gradient(45deg, rgba(212, 175, 55, 0.025) 0px, rgba(212, 175, 55, 0.025) 2px, transparent 2px, transparent 18px);
  color: var(--text-cream);
  overflow-x: hidden;
  position: relative;
}

body.locked-scroll {
  overflow: hidden;
  height: 100vh;
}

/* Particle Canvas Layer */
#majapahit-particles {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

/* Typography */
h1, h2, h3, h4, .font-serif {
  font-family: var(--font-serif);
  font-weight: 700;
  letter-spacing: 0.02em;
}

.gold-gradient-text {
  background: linear-gradient(135deg, #FFF3B0 0%, #D4AF37 50%, #F7E594 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.aksara-subtitle {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.24em;
  color: var(--gold-main);
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  margin-bottom: 0.65rem;
}

.aksara-subtitle::before,
.aksara-subtitle::after {
  content: "";
  width: 28px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold-main), transparent);
}

/* -------------------------------------------------------------------------
   OPENING COVER & SPLIT GATE (GAPURA WRINGIN LAWANG / CANDI BENTAR)
   ------------------------------------------------------------------------- */
.opening-cover {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at center, #3A160C 0%, #160905 80%);
  transition: opacity 1.1s var(--ease-smooth), visibility 1.1s var(--ease-smooth);
  overflow: hidden;
}

.opening-cover.is-opened {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.gate-wing {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 50%;
  z-index: 2;
  pointer-events: none;
  display: flex;
  align-items: flex-end;
  transition: transform 1.45s var(--ease-gate), opacity 1.2s var(--ease-smooth);
}

.gate-wing-left {
  left: 0;
  justify-content: flex-end;
  padding-right: 120px;
}

.gate-wing-right {
  right: 0;
  justify-content: flex-start;
  padding-left: 120px;
}

.opening-cover.is-opened .gate-wing-left {
  transform: translateX(-105%) scale(1.06);
  opacity: 0;
}

.opening-cover.is-opened .gate-wing-right {
  transform: translateX(105%) scale(1.06);
  opacity: 0;
}

.gate-candi-svg {
  height: 82vh;
  max-height: 680px;
  width: auto;
  opacity: 0.35;
  filter: drop-shadow(0 0 25px rgba(0, 0, 0, 0.8));
}

.cover-surya-bg {
  position: absolute;
  width: min(76vw, 520px);
  height: min(76vw, 520px);
  opacity: 0.16;
  z-index: 1;
  animation: spinSlow 65s linear infinite;
}

.cover-card {
  position: relative;
  z-index: 5;
  max-width: 500px;
  width: 92%;
  padding: 2.5rem 2rem;
  text-align: center;
  background: rgba(28, 13, 8, 0.84);
  border: 1.5px solid var(--border-gold);
  border-radius: 24px;
  box-shadow: var(--shadow-gold);
  backdrop-filter: blur(12px);
  transition: transform 0.9s var(--ease-smooth), opacity 0.8s var(--ease-smooth);
}

.opening-cover.is-opened .cover-card {
  transform: translateY(-40px) scale(0.94);
  opacity: 0;
}

.cover-photo-frame {
  width: 156px;
  height: 196px;
  margin: 0.75rem auto 1.25rem;
  position: relative;
  border-radius: 90px 90px 18px 18px;
  padding: 6px;
  background: linear-gradient(180deg, var(--gold-light), var(--terracotta), var(--gold-main));
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
}

.cover-photo-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 84px 84px 14px 14px;
  display: block;
}

.cover-couple-names {
  font-size: clamp(2rem, 5vw, 2.85rem);
  line-height: 1.15;
  margin: 0.35rem 0 0.5rem;
}

.cover-guest-box {
  margin: 1.15rem auto 1.35rem;
  padding: 0.85rem 1.25rem;
  background: rgba(139, 46, 22, 0.24);
  border: 1px solid var(--border-gold);
  border-radius: 14px;
  max-width: 340px;
}

.cover-guest-label {
  font-size: 0.78rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.cover-guest-name {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  color: var(--gold-light);
  margin-top: 0.2rem;
}

.btn-majapahit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.88rem 1.85rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  color: #1A0B05;
  background: linear-gradient(135deg, #FFF3B0 0%, #D4AF37 55%, #B8860B 100%);
  border: 1px solid #FFF3B0;
  cursor: pointer;
  box-shadow: 0 8px 25px rgba(212, 175, 55, 0.35);
  transition: transform 0.35s var(--ease-smooth), box-shadow 0.35s var(--ease-smooth);
  text-decoration: none;
}

.btn-majapahit:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 12px 32px rgba(212, 175, 55, 0.55);
}

.btn-outline-gold {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.68rem 1.35rem;
  border-radius: 999px;
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--gold-light);
  background: rgba(139, 46, 22, 0.28);
  border: 1px solid var(--gold-main);
  cursor: pointer;
  text-decoration: none;
  transition: all 0.3s var(--ease-smooth);
}

.btn-outline-gold:hover {
  background: var(--gold-main);
  color: #1A0B05;
  transform: translateY(-2px);
}

/* -------------------------------------------------------------------------
   SECTIONS & EAST JAVA ARCHITECTURAL CONTAINERS
   ------------------------------------------------------------------------- */
.section-wrap {
  position: relative;
  z-index: 2;
  padding: 5.5rem 1.25rem;
  max-width: 1080px;
  margin: 0 auto;
}

.section-header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 3.2rem;
}

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

.section-desc {
  color: var(--text-muted);
  font-size: 0.98rem;
}

/* Ornament Divider with Surya Majapahit */
.surya-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin: 1.2rem auto;
}

.surya-divider::before,
.surya-divider::after {
  content: "";
  width: 90px;
  height: 1.5px;
  background: linear-gradient(90deg, transparent, var(--gold-main), transparent);
}

.surya-divider svg {
  width: 38px;
  height: 38px;
  animation: spinSlow 36s linear infinite;
}

/* Corner Wayang Gunungan Ornaments */
.gunungan-corner {
  position: absolute;
  width: 120px;
  pointer-events: none;
  opacity: 0.22;
  z-index: 0;
}

.gunungan-corner.left {
  left: -20px;
  top: 40px;
  animation: swayLeft 8s ease-in-out infinite;
}

.gunungan-corner.right {
  right: -20px;
  top: 40px;
  animation: swayRight 8s ease-in-out infinite;
}

/* Hero Section */
.hero-banner {
  min-height: 92vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  padding: 6rem 1.25rem 4rem;
  overflow: hidden;
}

.hero-arch-frame {
  position: relative;
  max-width: 780px;
  width: 100%;
  padding: 3.2rem 2rem;
  background: linear-gradient(180deg, rgba(58, 22, 12, 0.82) 0%, rgba(26, 12, 7, 0.92) 100%);
  border: 2px solid var(--border-gold);
  border-radius: 220px 220px 28px 28px;
  box-shadow: var(--shadow-gold);
}

.hero-couple-portrait {
  width: 220px;
  height: 270px;
  margin: 0 auto 1.5rem;
  border-radius: 120px 120px 20px 20px;
  padding: 7px;
  background: linear-gradient(180deg, var(--gold-light), var(--terracotta), var(--gold-main));
  position: relative;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.55);
}

.hero-couple-portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 114px 114px 15px 15px;
}

/* Countdown Timer */
.countdown-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.85rem;
  max-width: 500px;
  margin: 2rem auto 1.75rem;
}

.countdown-box {
  background: rgba(139, 46, 22, 0.34);
  border: 1px solid var(--border-gold);
  border-radius: 16px;
  padding: 0.9rem 0.5rem;
  text-align: center;
  box-shadow: inset 0 0 15px rgba(212, 175, 55, 0.08);
}

.countdown-num {
  font-family: var(--font-serif);
  font-size: clamp(1.65rem, 3.5vw, 2.35rem);
  font-weight: 700;
  color: var(--gold-light);
  line-height: 1.1;
}

.countdown-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-top: 0.25rem;
}

/* Couple Profile Cards (Gebyok / Paduraksa Frame) */
.couple-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 2.2rem;
  align-items: stretch;
}

.couple-card {
  background: var(--bg-card);
  border: 1.5px solid var(--border-gold);
  border-radius: 28px;
  padding: 2.4rem 1.75rem;
  text-align: center;
  position: relative;
  box-shadow: var(--shadow-gold);
  transition: transform 0.45s var(--ease-smooth), border-color 0.45s var(--ease-smooth);
}

.couple-card:hover {
  transform: translateY(-6px);
  border-color: var(--gold-main);
}

.couple-avatar-wrap {
  width: 190px;
  height: 235px;
  margin: 0 auto 1.35rem;
  position: relative;
  border-radius: 100px 100px 22px 22px;
  padding: 6px;
  background: linear-gradient(160deg, var(--gold-light), var(--terracotta), var(--gold-main));
}

.couple-avatar-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 95px 95px 17px 17px;
}

.couple-name {
  font-size: 1.85rem;
  color: var(--gold-light);
  margin-bottom: 0.35rem;
}

.couple-parents {
  font-size: 0.92rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

/* Events (Akad & Resepsi) */
.events-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.event-card {
  background: linear-gradient(180deg, rgba(64, 24, 14, 0.88) 0%, rgba(28, 13, 8, 0.94) 100%);
  border: 1.5px solid var(--border-gold);
  border-radius: 24px;
  padding: 2.3rem 1.8rem;
  text-align: center;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-gold);
}

.event-badge {
  display: inline-block;
  padding: 0.35rem 1rem;
  border-radius: 999px;
  background: rgba(212, 175, 55, 0.16);
  border: 1px solid var(--gold-main);
  color: var(--gold-light);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 0.85rem;
}

/* Love Story Timeline */
.story-timeline {
  position: relative;
  max-width: 820px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
}

.story-item {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 1.5rem;
  align-items: center;
  background: var(--bg-card);
  border: 1px solid var(--border-gold);
  border-radius: 20px;
  padding: 1.35rem;
  box-shadow: var(--shadow-gold);
}

.story-item img {
  width: 160px;
  height: 130px;
  object-fit: cover;
  border-radius: 14px;
  border: 2px solid var(--gold-main);
}

/* -------------------------------------------------------------------------
   INTERACTIVE PHOTO GALLERY & LIVE PHOTO UPLOADER
   ------------------------------------------------------------------------- */
.gallery-controls {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0.65rem;
  margin-bottom: 1.85rem;
}

.filter-btn {
  padding: 0.55rem 1.2rem;
  border-radius: 999px;
  border: 1px solid var(--border-gold);
  background: rgba(44, 21, 13, 0.75);
  color: var(--text-cream);
  font-size: 0.86rem;
  cursor: pointer;
  transition: all 0.3s var(--ease-smooth);
}

.filter-btn.active,
.filter-btn:hover {
  background: linear-gradient(135deg, var(--gold-light), var(--gold-main));
  color: #1A0B05;
  font-weight: 600;
  border-color: var(--gold-light);
}

.photo-upload-bar {
  background: linear-gradient(135deg, rgba(139, 46, 22, 0.38), rgba(44, 21, 13, 0.9));
  border: 1.5px dashed var(--gold-main);
  border-radius: 18px;
  padding: 1.25rem 1.5rem;
  margin-bottom: 2rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.photo-upload-info h4 {
  font-size: 1.15rem;
  color: var(--gold-light);
  margin-bottom: 0.2rem;
}

.photo-upload-info p {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.photo-upload-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  align-items: center;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(275px, 1fr));
  gap: 1.35rem;
}

.gallery-item {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  border: 1.5px solid var(--border-gold);
  background: #140804;
  aspect-ratio: 4 / 3;
  cursor: pointer;
  box-shadow: var(--shadow-gold);
  transition: transform 0.5s var(--ease-smooth), border-color 0.4s var(--ease-smooth), opacity 0.4s ease;
}

.gallery-item:hover {
  transform: translateY(-6px) scale(1.015);
  border-color: var(--gold-light);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s var(--ease-smooth);
}

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

.gallery-caption {
  position: absolute;
  inset: auto 0 0 0;
  padding: 1.6rem 1rem 0.85rem;
  background: linear-gradient(0deg, rgba(18, 7, 4, 0.95) 0%, rgba(18, 7, 4, 0.55) 65%, transparent 100%);
  color: var(--text-cream);
  transform: translateY(6px);
  transition: transform 0.35s var(--ease-smooth);
}

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

.gallery-caption h4 {
  font-size: 1.05rem;
  color: var(--gold-light);
}

.gallery-caption span {
  font-size: 0.76rem;
  color: var(--text-muted);
}

/* Lightbox Modal */
.lightbox-modal {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: rgba(12, 5, 3, 0.92);
  backdrop-filter: blur(10px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s var(--ease-smooth), visibility 0.4s var(--ease-smooth);
}

.lightbox-modal.active {
  opacity: 1;
  visibility: visible;
}

.lightbox-modal img {
  max-width: min(92vw, 920px);
  max-height: 76vh;
  border-radius: 16px;
  border: 2px solid var(--gold-main);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.85);
}

.lightbox-close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--gold-main);
  background: rgba(44, 21, 13, 0.9);
  color: var(--gold-light);
  font-size: 1.4rem;
  cursor: pointer;
}

/* Digital Envelope (Amplop Digital) & RSVP */
.gift-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.bank-card {
  background: linear-gradient(145deg, #3A170D 0%, #1C0B06 100%);
  border: 1.5px solid var(--border-gold);
  border-radius: 22px;
  padding: 1.85rem;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-gold);
}

.bank-number {
  font-family: var(--font-serif);
  font-size: 1.6rem;
  letter-spacing: 0.08em;
  color: var(--gold-light);
  margin: 0.65rem 0 0.25rem;
}

.rsvp-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  background: var(--bg-card);
  border: 1.5px solid var(--border-gold);
  border-radius: 26px;
  padding: 2.2rem;
  box-shadow: var(--shadow-gold);
}

.form-group {
  margin-bottom: 1rem;
}

.form-group label {
  display: block;
  font-size: 0.84rem;
  color: var(--gold-light);
  margin-bottom: 0.35rem;
}

.form-control {
  width: 100%;
  padding: 0.78rem 1rem;
  border-radius: 12px;
  border: 1px solid var(--border-gold);
  background: rgba(20, 9, 5, 0.85);
  color: var(--text-cream);
  font-family: inherit;
  font-size: 0.92rem;
}

.form-control:focus {
  outline: none;
  border-color: var(--gold-main);
  box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.2);
}

.wishes-list {
  max-height: 360px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  padding-right: 0.4rem;
}

.wish-item {
  background: rgba(24, 11, 6, 0.78);
  border: 1px solid rgba(212, 175, 55, 0.25);
  border-radius: 14px;
  padding: 0.95rem 1.15rem;
}

.wish-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.3rem;
}

.wish-name {
  font-weight: 700;
  color: var(--gold-light);
  font-size: 0.95rem;
}

.wish-badge {
  font-size: 0.72rem;
  padding: 0.18rem 0.6rem;
  border-radius: 999px;
  background: rgba(212, 175, 55, 0.18);
  color: var(--gold-light);
}

/* Floating Bottom Navigation & Audio Button */
.floating-nav {
  position: fixed;
  bottom: 1.25rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 90;
  display: flex;
  gap: 0.35rem;
  padding: 0.5rem 0.75rem;
  background: rgba(28, 13, 8, 0.92);
  border: 1px solid var(--gold-main);
  border-radius: 999px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(12px);
}

.floating-nav a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.78rem;
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  transition: all 0.3s var(--ease-smooth);
}

.floating-nav a:hover,
.floating-nav a.active {
  background: var(--gold-main);
  color: #1A0B05;
  font-weight: 600;
}

.music-fab {
  position: fixed;
  bottom: 1.35rem;
  right: 1.35rem;
  z-index: 95;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1.5px solid var(--gold-light);
  background: linear-gradient(135deg, var(--terracotta), #2A120A);
  color: var(--gold-light);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.65);
}

.music-fab.playing svg {
  animation: spinSlow 8s linear infinite;
}

/* Toast Notification */
.jatim-toast {
  position: fixed;
  bottom: 5rem;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: linear-gradient(135deg, var(--gold-light), var(--gold-main));
  color: #1A0B05;
  font-weight: 600;
  font-size: 0.88rem;
  padding: 0.65rem 1.35rem;
  border-radius: 999px;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.5);
  opacity: 0;
  visibility: hidden;
  transition: all 0.35s var(--ease-smooth);
  z-index: 9999;
}

.jatim-toast.show {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

/* -------------------------------------------------------------------------
   SMOOTH SCROLL REVEAL & KEYFRAME ANIMATIONS
   ------------------------------------------------------------------------- */
.reveal-up,
.reveal-left,
.reveal-right,
.reveal-scale {
  opacity: 0;
  will-change: transform, opacity;
  transition: opacity 0.95s var(--ease-smooth), transform 0.95s var(--ease-smooth);
}

.reveal-up { transform: translateY(42px); }
.reveal-left { transform: translateX(-42px); }
.reveal-right { transform: translateX(42px); }
.reveal-scale { transform: scale(0.92); }

.reveal-up.is-visible,
.reveal-left.is-visible,
.reveal-right.is-visible,
.reveal-scale.is-visible {
  opacity: 1;
  transform: translate(0, 0) scale(1);
}

.delay-100 { transition-delay: 0.12s; }
.delay-200 { transition-delay: 0.24s; }
.delay-300 { transition-delay: 0.36s; }

@keyframes spinSlow {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes swayLeft {
  0%, 100% { transform: rotate(-4deg) translateY(0); }
  50% { transform: rotate(3deg) translateY(-8px); }
}

@keyframes swayRight {
  0%, 100% { transform: rotate(4deg) scaleX(-1) translateY(0); }
  50% { transform: rotate(-3deg) scaleX(-1) translateY(-8px); }
}

@media (max-width: 768px) {
  .story-item {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .story-item img {
    margin: 0 auto;
  }
  .rsvp-container {
    grid-template-columns: 1fr;
  }
  .gate-wing-left { padding-right: 10px; }
  .gate-wing-right { padding-left: 10px; }
  .floating-nav a {
    padding: 0.4rem 0.6rem;
    font-size: 0.72rem;
  }
}
