@font-face {
  font-family: "Vazirmatn";
  src: url("../fonts/vazirmatn-arabic-400.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Vazirmatn";
  src: url("../fonts/vazirmatn-arabic-600.woff2") format("woff2");
  font-style: normal;
  font-weight: 500 700;
  font-display: swap;
}

@font-face {
  font-family: "Mina Miremad";
  src: url("../fonts/Miremad.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Wedding Script";
  src: url("../fonts/english-font.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

:root {
  --ivory: #f7f3ec;
  --cream: #eee6dc;
  --paper: #fffdf9;
  --paper-glass: rgba(255, 253, 249, .9);
  --ink: #514943;
  --muted: #81766e;
  --rose: #bd9b98;
  --rose-deep: #92706f;
  --sage: #7a8272;
  --sage-deep: #5e6758;
  --champagne: #b59b75;
  --line: rgba(122, 103, 84, .2);
  --soft-line: rgba(122, 103, 84, .11);
  --shadow: 0 24px 65px rgba(84, 70, 58, .1);
  --fa: Vazirmatn, Tahoma, "Segoe UI", Arial, sans-serif;
}

* { box-sizing: border-box; }
html {
  width: 100%;
  max-width: 100%;
  overflow-x: clip;
  scroll-behavior: smooth;
}
body {
  position: relative;
  width: 100%;
  max-width: 100%;
  margin: 0;
  overflow-x: clip;
  color: var(--ink);
  background: var(--ivory);
  font-family: var(--fa);
  line-height: 1.9;
  -webkit-font-smoothing: antialiased;
}
body.intro-locked { overflow: hidden; }
button, input, textarea, select { max-width: 100%; font: inherit; }
img, video, iframe, svg { max-width: 100%; }
a { color: inherit; }

/* Opening film */
.wedding-intro {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  width: 100%;
  max-width: 100%;
  place-items: center;
  overflow: hidden;
  color: #fff;
  background: #251014;
  cursor: pointer;
  transition: opacity 1.05s ease, visibility 1.05s ease;
}
.intro-backdrop {
  position: absolute;
  inset: -5%;
  background-position: center;
  background-size: cover;
  filter: blur(26px) brightness(.38) saturate(.75);
  transform: scale(1.08);
}
.intro-stage {
  position: relative;
  width: min(100vw, 45svh);
  max-width: 100%;
  height: 100svh;
  max-height: 100vh;
  overflow: hidden;
  background: #4d1821;
  box-shadow: 0 0 90px rgba(0, 0, 0, .42);
}
.intro-video { display: block; width: 100%; height: 100%; object-fit: cover; }
.intro-vignette {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(20, 6, 8, .2), transparent 28%, transparent 70%, rgba(20, 6, 8, .42));
}
.intro-hint {
  position: absolute;
  right: 50%;
  bottom: max(5.5%, env(safe-area-inset-bottom));
  display: flex;
  align-items: center;
  gap: .65rem;
  width: max-content;
  max-width: calc(100% - 2rem);
  padding: .74rem 1.1rem;
  color: #fffaf2;
  background: rgba(45, 18, 23, .58);
  border: 1px solid rgba(255, 245, 229, .48);
  border-radius: 999px;
  font-size: clamp(.82rem, 3.4vw, .95rem);
  line-height: 1.7;
  transform: translateX(50%);
  backdrop-filter: blur(8px);
  transition: opacity .45s ease, transform .45s ease;
}
.intro-hint i {
  width: 7px;
  height: 7px;
  flex: 0 0 auto;
  background: #eadbc4;
  border-radius: 50%;
  animation: hintPulse 1.8s infinite;
}
.wedding-intro.playing .intro-hint { opacity: 0; transform: translate(50%, 12px); pointer-events: none; }
.intro-personal {
  position: absolute;
  top: clamp(1.3rem, 4.5svh, 3.1rem);
  left: 50%;
  display: flex;
  width: min(calc(100% - 2.5rem), 390px);
  flex-direction: column;
  align-items: center;
  margin: 0;
  padding: 0;
  color: #fffaf2;
  text-align: center;
  text-shadow: 0 1px 6px rgba(31, 8, 12, .72);
  transform: translateX(-50%);
  transition: opacity .4s ease, transform .4s ease;
  pointer-events: none;
}
.intro-personal span,
.intro-personal strong { display: block; font-family: "Mina Miremad", var(--fa); font-weight: 400; line-height: 1.65; }
.intro-personal span { font-size: clamp(1.2rem, 5vw, 1.6rem); }
.intro-personal strong { color: #ead2a2; font-size: clamp(1.6rem, 6.4vw, 2.25rem); overflow-wrap: anywhere; }
.wedding-intro.playing .intro-personal { opacity: 0; transform: translate(-50%, -10px); }
.wedding-intro.finishing { opacity: 0; pointer-events: none; }
.wedding-intro.done { visibility: hidden; }

/* Shared layout and motion */
#invitation, .site-footer { width: 100%; max-width: 100%; opacity: 0; transition: opacity .85s ease; }
body.entered #invitation,
body.entered .site-footer { opacity: 1; }
#invitation { overflow: clip; background: var(--ivory); }
#invitation > section { width: 100%; max-width: 100%; }
.section-pad { position: relative; padding: clamp(5.2rem, 11vw, 8rem) clamp(1rem, 6vw, 4rem); }
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 1s cubic-bezier(.2, .72, .2, 1), transform 1s cubic-bezier(.2, .72, .2, 1);
  transition-delay: var(--delay, 0ms);
}
.reveal.visible { opacity: 1; transform: none; }
.section-heading { position: relative; z-index: 2; margin: 0 auto 2.5rem; text-align: center; }
.section-heading > p,
.section-kicker { margin: 0 0 .35rem; color: var(--rose-deep); font-size: clamp(.75rem, 2.2vw, .88rem); line-height: 1.9; letter-spacing: .02em; }
.section-heading h2,
.message-card h2,
.venue-card h2 {
  margin: 0;
  padding: .12em .05em .2em;
  color: var(--ink);
  font-family: "Mina Miremad", var(--fa);
  font-size: clamp(2.45rem, 7vw, 4.15rem);
  font-weight: 400;
  line-height: 1.65;
}

/* Ivory editorial hero */
.hero {
  position: relative;
  display: grid;
  width: 100%;
  min-height: 100svh;
  place-items: center;
  overflow: hidden;
  isolation: isolate;
  background:
    radial-gradient(circle at 50% 8%, rgba(255,255,255,.95), transparent 33%),
    linear-gradient(180deg, #faf7f2, #eee7de);
}
.hero-media {
  position: absolute;
  inset: clamp(.8rem, 2.2vw, 1.5rem) auto;
  left: 50%;
  z-index: -2;
  width: min(calc(100% - 1.5rem), 760px);
  margin: 0;
  overflow: hidden;
  background: #d8cec3;
  border: 8px solid rgba(255, 253, 249, .9);
  border-radius: min(30vw, 220px) min(30vw, 220px) 26px 26px;
  box-shadow: 0 25px 80px rgba(70, 57, 48, .17);
  transform: translateX(-50%);
}
.hero-media img,
.hero-shade { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-media img { object-fit: cover; object-position: 50% 50%; filter: saturate(.72) contrast(.96) brightness(1.03); }
.hero-shade {
  background:
    linear-gradient(180deg, rgba(255, 252, 247, .18), transparent 32%, rgba(59, 49, 44, .08) 56%, rgba(52, 43, 39, .6) 100%),
    linear-gradient(90deg, rgba(255,255,255,.16), transparent 26%, transparent 74%, rgba(255,255,255,.13));
}
.hero-frame { position: absolute; inset: 1.55rem; z-index: -1; border: 1px solid rgba(181, 155, 117, .3); border-radius: 30px; pointer-events: none; }
.hero-lace { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.hero-lace span {
  position: absolute;
  top: 0;
  bottom: 0;
  width: clamp(62px, 10vw, 112px);
  opacity: 0;
  background: url("../img/lace-theme/lace-border.jpg") center / auto 100% no-repeat;
  mix-blend-mode: screen;
  filter: contrast(.92) brightness(1.04);
}
.hero-lace span:first-child { right: -18px; transform: translateY(-55px); }
.hero-lace span:last-child { left: -18px; transform: scaleX(-1) translateY(55px); }
body.entered .hero-lace span:first-child { animation: laceEnterTop 1.7s .15s ease-out both; }
body.entered .hero-lace span:last-child { animation: laceEnterBottom 1.7s .28s ease-out both; }
.hero-flower {
  position: absolute;
  z-index: 1;
  width: clamp(120px, 22vw, 220px);
  aspect-ratio: 1;
  opacity: 0;
  background: url("../img/lace-theme/floral-sprigs.jpg") 17% 22% / 350% auto no-repeat;
  border-radius: 50%;
  mix-blend-mode: screen;
  filter: saturate(.7) contrast(.95);
  pointer-events: none;
}
.hero-flower-one { top: 2%; left: -3%; transform: rotate(-10deg) scale(.65); }
.hero-flower-two { right: -4%; bottom: 4%; background-position: 82% 78%; transform: rotate(12deg) scale(.65); }
body.entered .hero-flower-one { animation: flowerArriveLeft 1.45s .5s cubic-bezier(.2,.72,.2,1) both, floralBreeze 8s 2.2s ease-in-out infinite; }
body.entered .hero-flower-two { animation: flowerArriveRight 1.45s .7s cubic-bezier(.2,.72,.2,1) both, floralBreezeReverse 9s 2.4s ease-in-out infinite; }
.hero-content {
  position: relative;
  z-index: 3;
  width: min(calc(100% - 3rem), 620px);
  margin-top: auto;
  margin-bottom: clamp(6.2rem, 13vh, 8.5rem);
  padding: 1.1rem 1rem 1.25rem;
  text-align: center;
  background: linear-gradient(135deg, rgba(255,253,249,.91), rgba(255,253,249,.72));
  border: 1px solid rgba(255,255,255,.75);
  border-radius: 24px;
  box-shadow: 0 16px 45px rgba(54, 44, 39, .11);
  backdrop-filter: blur(10px);
}
.hero-kicker { margin: 0; color: var(--sage-deep); font-family: Georgia, "Times New Roman", serif; font-size: clamp(.68rem, 2vw, .85rem); letter-spacing: .3em; line-height: 1.8; }
.hero-content h1,
.footer-couple {
  direction: ltr;
  display: grid;
  grid-template-columns: minmax(0,1fr) auto minmax(0,1fr);
  align-items: center;
  column-gap: .16em;
  width: 100%;
  margin: .1rem 0 0;
  padding: .22em .02em .12em;
  color: #61534d;
  font-family: "Wedding Script", "Brush Script MT", cursive;
  font-size: clamp(2.8rem, 8.3vw, 6.6rem);
  font-weight: 400;
  line-height: 1.08;
  white-space: nowrap;
}
.hero-content h1 span,
.footer-couple span { display: inline-block; width: max-content; padding-inline: .13em; }
.hero-content h1 span:first-child,
.footer-couple span:first-child { justify-self: end; }
.hero-content h1 span:last-child,
.footer-couple span:last-child { justify-self: start; }
.hero-content h1 b,
.footer-couple b { margin: 0; color: var(--champagne); font-family: Georgia, serif; font-size: .46em; font-style: normal; font-weight: 400; line-height: 1.2; }
.hero-date { display: flex; align-items: center; justify-content: center; gap: .8rem; color: var(--muted); font-family: Georgia, serif; font-size: clamp(.72rem, 2.4vw, .88rem); letter-spacing: .1em; line-height: 1.9; }
.scroll-cue {
  position: absolute;
  right: 50%;
  bottom: max(1.1rem, env(safe-area-inset-bottom));
  z-index: 5;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .35rem;
  color: #5e544f;
  font-size: clamp(.68rem, 2.4vw, .8rem);
  line-height: 1.7;
  text-decoration: none;
  transform: translateX(50%);
}
.scroll-cue > i { position: relative; display: block; width: 21px; height: 32px; border: 1px solid rgba(91,77,69,.42); border-radius: 20px; background: rgba(255,253,249,.45); }
.scroll-cue > i b { position: absolute; top: 6px; left: 50%; width: 3px; height: 6px; background: var(--rose-deep); border-radius: 4px; transform: translateX(-50%); animation: scrollDot 1.8s ease-in-out infinite; }

/* Angels and flowers bridge */
.fairy-bridge { position: relative; height: clamp(210px, 46vw, 390px); margin-top: -1px; overflow: hidden; background: linear-gradient(180deg, #eee7de 0%, #f7f3ec 30%, #f7f3ec 100%); }
.fairy-scene { position: absolute; inset: 0; overflow: hidden; }
.fairy-scene img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center bottom;
  mix-blend-mode: multiply;
  filter: saturate(.72) contrast(.95) brightness(1.03);
  -webkit-mask-image: linear-gradient(180deg, transparent 0, rgba(0,0,0,.3) 15%, #000 42%, #000 100%);
  mask-image: linear-gradient(180deg, transparent 0, rgba(0,0,0,.3) 15%, #000 42%, #000 100%);
  animation: fairyFloat 7s 1.1s ease-in-out infinite;
}
.fairy-spark { position: absolute; width: 5px; height: 5px; background: #fff; border-radius: 50%; box-shadow: 0 0 10px rgba(196,166,130,.8); animation: sparkFloat 4.5s ease-in-out infinite; }
.fairy-spark-one { right: 25%; bottom: 35%; }
.fairy-spark-two { left: 28%; bottom: 28%; animation-delay: 1.2s; }
.fairy-spark-three { left: 52%; bottom: 18%; animation-delay: 2.1s; }

/* Invitation text */
.invitation-message { display: grid; min-height: 760px; place-items: center; overflow: hidden; isolation: isolate; background: #f8f4ee; }
.invitation-message::before {
  position: absolute;
  inset: 0;
  z-index: -2;
  background: url("../img/lace-theme/lace-frame.jpg") center / cover no-repeat;
  opacity: .22;
  filter: saturate(.25) contrast(.85) brightness(1.06);
  content: "";
}
.invitation-message::after { position: absolute; inset: 0; z-index: -1; background: radial-gradient(ellipse at center, rgba(255,253,249,.97) 0 38%, rgba(248,244,238,.7) 72%, rgba(248,244,238,.4)); content: ""; }
.lace-curtain { position: absolute; top: 4%; bottom: 4%; width: clamp(74px, 13vw, 150px); opacity: .46; background: url("../img/lace-theme/lace-border.jpg") center / auto 100% no-repeat; mix-blend-mode: multiply; pointer-events: none; }
.lace-curtain-right { right: -26px; }
.lace-curtain-left { left: -26px; transform: scaleX(-1); }
.message-card {
  position: relative;
  z-index: 2;
  width: min(100%, 650px);
  padding: clamp(3.2rem, 9vw, 5.2rem) clamp(1.35rem, 7vw, 4.6rem);
  text-align: center;
  background: rgba(255,253,249,.88);
  border: 1px solid var(--line);
  border-radius: 26px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(8px);
}
.message-card::before { position: absolute; inset: 9px; border: 1px solid rgba(181,155,117,.2); border-radius: 19px; content: ""; pointer-events: none; }
.message-card::after { position: absolute; top: -1px; right: 18%; left: 18%; height: 18px; background: url("../img/lace-theme/lace-border.jpg") center 48% / 100% auto no-repeat; opacity: .55; content: ""; }
.message-monogram { display: grid; width: 82px; height: 82px; margin: 0 auto 1rem; place-content: center; color: var(--ink); background: rgba(255,255,255,.72); border: 1px solid rgba(181,155,117,.48); border-radius: 50%; font-family: Georgia, serif; line-height: 1; box-shadow: 0 8px 24px rgba(84,70,58,.08); }
.message-monogram span { display: block; line-height: .92; }
.message-monogram .monogram-letter { font-size: 1rem; }
.message-monogram .monogram-amp { margin: 2px 0; color: var(--champagne); font-family: "Wedding Script", Georgia, serif; font-size: 1.1rem; }
.message-card h2 { padding: .16em .05em .36em; line-height: 1.82; }
.ornament { display: block; margin: .25rem 0 1rem; color: var(--champagne); letter-spacing: .16em; }
.invitation-copy { margin: 0 auto 1.2rem; color: #655b55; font-size: clamp(.96rem, 3.1vw, 1.08rem); line-height: 2.35; }
.message-card > strong { display: block; color: var(--rose-deep); font-size: .86rem; font-weight: 500; line-height: 2; }
.flower-sprig {
  position: absolute;
  z-index: 1;
  display: block;
  width: clamp(140px, 27vw, 280px);
  aspect-ratio: 1.05;
  background: url("../img/lace-theme/floral-sprigs.jpg") 12% 16% / 310% auto no-repeat;
  border-radius: 50%;
  mix-blend-mode: multiply;
  filter: saturate(.72) contrast(.94);
  -webkit-mask-image: radial-gradient(circle, #000 45%, transparent 72%);
  mask-image: radial-gradient(circle, #000 45%, transparent 72%);
}
.flower-sprig-top { top: 4%; left: -2%; transform-origin: 20% 100%; }
.flower-sprig-bottom { right: -3%; bottom: 2%; background-position: 88% 84%; transform-origin: 80% 100%; }
.flower-sprig.visible { animation: sprigSettle 1.25s cubic-bezier(.18,.76,.24,1) both, floralBreeze 8s 1.35s ease-in-out infinite; }

/* Program */
.program-section { overflow: hidden; background: linear-gradient(180deg, #f2ece4, #faf7f2 18%, #faf7f2 82%, #f0e9e0); }
.program-paper {
  position: relative;
  width: min(100%, 780px);
  margin: auto;
  padding: clamp(3rem, 8vw, 4.8rem) clamp(.65rem, 5vw, 3rem);
  overflow: hidden;
  background: rgba(255,253,249,.95);
  border: 1px solid var(--soft-line);
  border-radius: 30px;
  box-shadow: 0 24px 60px rgba(84,70,58,.08);
}
.program-paper::before,
.program-paper::after { position: absolute; top: 0; bottom: 0; width: clamp(48px, 10vw, 86px); background: url("../img/lace-theme/lace-border.jpg") center / auto 100% no-repeat; opacity: .28; mix-blend-mode: multiply; content: ""; pointer-events: none; }
.program-paper::before { right: -24px; }
.program-paper::after { left: -24px; transform: scaleX(-1); }
.line-bow { display: block; width: clamp(58px, 9vw, 78px); margin: 0 auto .8rem; opacity: .72; filter: grayscale(.28) sepia(.16); }
.line-bow img { display: block; width: 100%; height: auto; }
.section-heading.visible .line-bow img { animation: ribbonAppear 1s ease-out both; }
.program-timeline { --timeline-y: 0%; --timeline-rotation: 0deg; position: relative; z-index: 2; width: min(100%, 630px); margin: auto; padding: .3rem 1rem; }
.timeline-track { position: absolute; top: 54px; bottom: 54px; left: calc(1rem + 88px); width: 1px; background: #ded5ca; }
.timeline-progress { position: absolute; top: 0; left: 0; width: 100%; height: var(--timeline-y); background: linear-gradient(var(--rose), var(--sage)); }
.timeline-runner {
  position: absolute;
  top: var(--timeline-y);
  left: 50%;
  z-index: 4;
  display: grid;
  width: 58px;
  height: 58px;
  place-items: center;
  background: transparent;
  border: 0;
  box-shadow: none;
  transform: translate(-50%, -50%);
  pointer-events: none;
}
.timeline-runner-flower {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 6px 9px rgba(103, 81, 58, .2));
  transform: rotate(var(--timeline-rotation));
  transform-origin: 50% 50%;
  backface-visibility: hidden;
  will-change: transform;
}
.program-item { direction: ltr; display: grid; grid-template-columns: 70px 36px minmax(0,1fr); align-items: center; min-height: 128px; }
.program-icon { display: grid; width: 54px; height: 54px; place-items: center; justify-self: center; color: #898177; background: transparent; border: 1px solid #ddd4c9; border-radius: 50%; transition: color .45s ease, background .45s ease, border-color .45s ease, transform .45s ease; }
.program-icon svg { width: 27px; height: 27px; }
.program-marker { position: relative; z-index: 3; display: block; width: 9px; height: 9px; justify-self: center; background: var(--paper); border: 1px solid #bfb4a7; border-radius: 50%; box-shadow: 0 0 0 5px var(--paper); transition: background .35s ease, border-color .35s ease, transform .35s ease; }
.program-copy { direction: rtl; min-width: 0; padding: 1rem 1.1rem; text-align: right; }
.program-copy time { display: inline-block; color: var(--rose-deep); font-family: Georgia, var(--fa); font-size: .9rem; font-weight: 700; line-height: 1.8; }
.program-copy h3 { margin: .05rem 0 .2rem; padding: .08em 0 .14em; color: var(--ink); font-family: "Mina Miremad", var(--fa); font-size: clamp(1.6rem, 4.2vw, 2.05rem); font-weight: 400; line-height: 1.65; }
.program-copy p { margin: 0; color: var(--muted); font-size: .78rem; line-height: 1.9; }
.program-item.passed .program-icon { color: #fffdf9; background: var(--sage); border-color: var(--sage); transform: scale(1.04); }
.program-item.passed .program-marker { background: var(--rose); border-color: var(--rose); transform: scale(1.16); }

/* Venue */
.venue-section { isolation: isolate; overflow: hidden; background: #f5efe8; }
.venue-section::before { position: absolute; inset: 0; z-index: -2; background: url("../img/lace-theme/floral-sprigs.jpg") center / cover; opacity: .13; filter: saturate(.65); content: ""; }
.venue-section::after { position: absolute; inset: 0; z-index: -1; background: radial-gradient(ellipse at center, rgba(247,243,236,.96) 0 38%, rgba(247,243,236,.78) 75%); content: ""; }
.venue-card { position: relative; width: min(100%, 680px); margin: auto; padding: clamp(2.4rem, 7vw, 4rem) clamp(1.05rem, 6vw, 3.2rem); text-align: center; background: rgba(255,253,249,.9); border: 1px solid var(--line); border-radius: 28px; box-shadow: var(--shadow); backdrop-filter: blur(8px); }
.venue-card::before { position: absolute; top: 0; right: 18%; left: 18%; height: 17px; background: url("../img/lace-theme/lace-border.jpg") center / 100% auto no-repeat; opacity: .48; content: ""; }
.venue-card h2 { max-width: 100%; margin-inline: auto; padding: .18em .05em .4em; font-size: clamp(2.2rem, 7vw, 3.9rem); line-height: 1.8; overflow-wrap: anywhere; }
.venue-pin { display: grid; width: 48px; height: 48px; margin: .65rem auto .9rem; place-items: center; color: #fff; background: var(--sage); border: 3px solid #ece2d5; border-radius: 50%; font-size: 1.3rem; box-shadow: 0 0 0 4px rgba(122,130,114,.1); }
.venue-card address { max-width: 470px; margin: 1.2rem auto 1.5rem; color: var(--muted); font-size: .88rem; font-style: normal; line-height: 2; }
.map-preview { position: relative; width: 100%; aspect-ratio: 16/10; overflow: hidden; border: 6px solid #fff; border-radius: 20px; box-shadow: 0 14px 34px rgba(79,64,52,.1); }
.map-preview iframe { display: block; width: 100%; height: 100%; pointer-events: none; border: 0; filter: sepia(.16) saturate(.55); }
.map-click-layer { position: absolute; inset: 0; display: flex; align-items: flex-end; justify-content: center; padding: .7rem; color: #fff; text-decoration: none; background: linear-gradient(180deg, transparent 48%, rgba(78,72,65,.58)); }
.map-click-layer span { padding: .44rem .85rem; background: rgba(94,103,88,.88); border: 1px solid rgba(255,255,255,.38); border-radius: 999px; font-size: .73rem; line-height: 1.7; backdrop-filter: blur(6px); }
.neshan-route { display: flex; width: min(100%, 350px); align-items: center; gap: .8rem; margin: 1.2rem auto 0; padding: .72rem 1rem; color: #fff; text-align: right; text-decoration: none; background: linear-gradient(135deg, #808a78, #5d6658); border: 1px solid rgba(255,255,255,.34); border-radius: 999px; box-shadow: 0 10px 24px rgba(77,84,72,.18); transition: transform .25s ease, box-shadow .25s ease; }
.neshan-route:hover { transform: translateY(-2px); box-shadow: 0 14px 28px rgba(77,84,72,.23); }
.neshan-route svg { width: 28px; height: 28px; flex: 0 0 auto; fill: none; stroke: currentColor; stroke-width: 1.45; }
.neshan-route span { display: flex; min-width: 0; flex-direction: column; }
.neshan-route b { font-size: .8rem; line-height: 1.7; }
.neshan-route small { color: rgba(255,255,255,.75); font-size: .66rem; line-height: 1.6; }
.neshan-route i { margin-right: auto; font-style: normal; }

/* Gallery */
.gallery-section { background: #faf7f2; }
.gallery-grid { display: grid; grid-template-columns: repeat(12,1fr); gap: .75rem; width: min(100%,760px); margin: auto; }
.gallery-card { grid-column: span 6; position: relative; aspect-ratio: 4/5; padding: 0; overflow: hidden; background: #ddd4ca; border: 7px solid #fffdf9; border-radius: 22px; box-shadow: 0 15px 34px rgba(73,59,49,.1); cursor: zoom-in; }
.gallery-card:nth-child(3n + 1) { grid-column: span 12; aspect-ratio: 7/5; }
.gallery-card img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.86); transition: transform .7s ease, filter .5s ease; }
.gallery-card:hover img { transform: scale(1.035); filter: saturate(1); }
.empty-album { display: grid; min-height: 220px; width: min(100%,620px); margin: auto; place-items: center; align-content: center; color: var(--muted); background: rgba(255,253,249,.68); border: 1px dashed rgba(122,103,84,.28); border-radius: 24px; }
.empty-album span { color: var(--rose-deep); font-size: 2.2rem; }
.empty-album p { margin: .3rem 0 0; font-size: .86rem; text-align: center; }

/* RSVP and guestbook */
.participation { overflow: hidden; background: linear-gradient(180deg, #ece5dc, #f8f4ee); }
.participation::before { position: absolute; right: 0; left: 0; bottom: 0; height: min(36vw,310px); background: url("../img/lace-theme/fairy-garden.jpg") center bottom / cover no-repeat; opacity: .12; mix-blend-mode: multiply; content: ""; pointer-events: none; }
.forms-layout { position: relative; z-index: 2; display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; width: min(100%,760px); margin: auto; }
.forms-layout > form:only-child { grid-column: 1/-1; width: min(100%,520px); margin: auto; }
.wedding-form { padding: clamp(1.3rem,4vw,2rem); background: rgba(255,253,249,.92); border: 1px solid var(--line); border-radius: 24px; box-shadow: 0 18px 44px rgba(78,64,53,.08); backdrop-filter: blur(8px); }
.wedding-form h3 { margin: 0 0 1rem; padding: .1em 0 .18em; color: var(--ink); font-family: "Mina Miremad", var(--fa); font-size: 2rem; font-weight: 400; line-height: 1.6; }
.wedding-form label,
.wedding-form legend { display: block; color: #675f59; font-size: .8rem; line-height: 1.8; }
.wedding-form label { margin: .82rem 0; }
.wedding-form input,
.wedding-form textarea { width: 100%; margin-top: .38rem; padding: .68rem .15rem; color: var(--ink); background: transparent; border: 0; border-bottom: 1px solid rgba(122,103,84,.26); border-radius: 0; outline: none; }
.wedding-form textarea { resize: vertical; line-height: 1.9; }
.wedding-form input:focus,
.wedding-form textarea:focus { border-color: var(--sage); }
.wedding-form fieldset { margin: 1rem 0; padding: 0; border: 0; }
.wedding-form .choice { display: inline-flex; align-items: center; gap: .4rem; margin: .65rem 0 0 .6rem; }
.wedding-form .choice input { width: auto; margin: 0; accent-color: var(--sage); }
.wedding-form button { margin-top: .8rem; padding: .72rem 1.4rem; color: #fff; background: var(--sage); border: 1px solid var(--sage); border-radius: 999px; cursor: pointer; transition: background .2s ease, transform .2s ease; }
.wedding-form button:hover { background: var(--sage-deep); transform: translateY(-1px); }
.wedding-form button:disabled { opacity: .55; }
.form-result { min-height: 1.5rem; margin: .7rem 0 0; color: var(--sage-deep); font-size: .76rem; line-height: 1.8; }
.guestbook-wall { position: relative; z-index: 2; width: min(100%,760px); margin: 1.3rem auto 0; padding: 1.35rem 1rem 1rem; background: rgba(255,253,249,.72); border: 1px solid var(--line); border-radius: 24px; box-shadow: 0 16px 40px rgba(78,64,53,.07); backdrop-filter: blur(8px); }
.guestbook-wall > header { display: flex; align-items: center; justify-content: center; gap: .8rem; margin-bottom: 1rem; color: var(--rose); text-align: center; }
.guestbook-wall header p { margin: 0; color: var(--rose-deep); font-size: .7rem; line-height: 1.8; }
.guestbook-wall header h3 { margin: 0; padding: .1em 0 .18em; color: var(--ink); font-family: "Mina Miremad", var(--fa); font-size: 2rem; font-weight: 400; line-height: 1.55; }
.guest-notes { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(240px,calc((100% - .8rem)/2)); gap: .8rem; padding: .2rem .1rem .55rem; overflow-x: auto; scroll-snap-type: inline mandatory; scrollbar-color: rgba(181,155,117,.38) transparent; scrollbar-width: thin; }
.guest-notes blockquote { position: relative; min-height: 130px; margin: 0; padding: 1.15rem; overflow: hidden; color: #655b55; background: rgba(255,253,249,.95); border-right: 2px solid var(--rose); border-radius: 16px; scroll-snap-align: start; }
.guest-notes p { margin: 0 0 .5rem; font-size: .84rem; line-height: 1.9; }
.guest-notes cite { color: var(--sage-deep); font-size: .74rem; font-style: normal; }
.guestbook-empty { width: min(100%,390px); margin: .2rem auto .5rem !important; padding: 1rem; color: var(--muted); text-align: center; border: 1px dashed rgba(122,103,84,.3); border-radius: 15px; }
.guest-note-new { animation: newNote 1.2s ease both; }

/* Footer and controls */
.site-footer {
  position: relative;
  /* پدینگ پایین را بیشتر کردم تا فضای کافی برای گل‌ها و محتوا وجود داشته باشد */
  padding: 4rem 1rem 8rem; 
  overflow: hidden;
  color: #756a63;
  text-align: center;
  /* بک‌گراند ساده قبلی را نگه می‌داریم */
  background: #faf7f2;
  border-top: 1px solid var(--soft-line);
}
.site-footer::before { position: absolute; top: 0; right: 10%; left: 10%; height: 22px; background: url("../img/lace-theme/lace-border.jpg") center / 100% auto no-repeat; opacity: .4; content: ""; }
.footer-couple { width: min(100%,620px); margin: 0 auto .35rem; font-size: clamp(2.45rem,8vw,3.9rem); }
.footer-stars { color: var(--champagne); font-size: .82rem; }
.footer-logo-link { display: grid; width: 92px; height: 92px; margin: .75rem auto .65rem; place-items: center; background: rgba(255,253,249,.68); border: 1px solid rgba(181,155,117,.32); border-radius: 50%; text-decoration: none; transition: transform .25s ease, box-shadow .25s ease; }
.footer-logo-link img { width: 80px; height: 80px; object-fit: contain; mix-blend-mode: multiply; }
.footer-logo-link:hover { transform: translateY(-2px); box-shadow: 0 11px 28px rgba(77,61,50,.1); }
.footer-instagram { display: inline-block; margin-top: .3rem; padding: .24rem .6rem; color: var(--sage-deep); font-family: Georgia, serif; font-size: .82rem; text-decoration: none; border-bottom: 1px solid rgba(94,103,88,.26); }
.music-toggle { position: fixed; right: max(1rem,env(safe-area-inset-right)); bottom: max(1rem,env(safe-area-inset-bottom)); z-index: 20; display: grid; width: 44px; height: 44px; padding: 0; place-items: center; color: #fff; background: rgba(94,103,88,.9); border: 1px solid rgba(255,255,255,.6); border-radius: 50%; box-shadow: 0 9px 25px rgba(63,68,58,.2); cursor: pointer; backdrop-filter: blur(8px); }
.music-toggle[aria-pressed="true"] { opacity: .58; }
.lightbox { max-width: min(94vw,920px); max-height: 90vh; padding: 0; overflow: visible; background: transparent; border: 0; }
.lightbox::backdrop { background: rgba(40,34,31,.9); backdrop-filter: blur(8px); }
.lightbox img { max-height: 88vh; object-fit: contain; border-radius: 14px; }
.lightbox button { position: absolute; top: -46px; left: 0; display: grid; width: 38px; height: 38px; padding: 0; place-items: center; color: #fff; background: transparent; border: 1px solid rgba(255,255,255,.65); border-radius: 50%; font-size: 1.4rem; cursor: pointer; }

@keyframes hintPulse { 0%,100% { box-shadow: 0 0 0 0 rgba(234,219,196,.42); } 50% { box-shadow: 0 0 0 9px rgba(234,219,196,0); } }
@keyframes scrollDot { 0% { opacity: 0; transform: translate(-50%,0); } 25%,75% { opacity: 1; } 100% { opacity: 0; transform: translate(-50%,12px); } }
@keyframes laceEnterTop { from { opacity: 0; transform: translateY(-55px); } to { opacity: .62; transform: none; } }
@keyframes laceEnterBottom { from { opacity: 0; transform: scaleX(-1) translateY(55px); } to { opacity: .62; transform: scaleX(-1); } }
@keyframes flowerArriveLeft { from { opacity: 0; transform: translate(-40px,-25px) rotate(-18deg) scale(.65); } to { opacity: .72; transform: rotate(-4deg) scale(1); } }
@keyframes flowerArriveRight { from { opacity: 0; transform: translate(40px,25px) rotate(20deg) scale(.65); } to { opacity: .72; transform: rotate(5deg) scale(1); } }
@keyframes floralBreeze { 0%,100% { rotate: -1.2deg; } 50% { rotate: 1.4deg; } }
@keyframes floralBreezeReverse { 0%,100% { rotate: 1.2deg; } 50% { rotate: -1.4deg; } }
@keyframes fairyFloat { 0%,100% { transform: translateY(0) scale(1.01); } 50% { transform: translateY(-5px) scale(1.012); } }
@keyframes sparkFloat { 0%,100% { opacity: .15; transform: translateY(5px) scale(.7); } 50% { opacity: .85; transform: translateY(-12px) scale(1.1); } }
@keyframes sprigSettle { from { opacity: 0; translate: 0 30px; scale: .82; } to { opacity: .76; translate: 0 0; scale: 1; } }
@keyframes ribbonAppear { from { opacity: 0; transform: translateY(-7px) scale(.94); } to { opacity: 1; transform: none; } }
@keyframes newNote { from { opacity: 0; transform: translateY(12px) scale(.97); } to { opacity: 1; transform: none; } }

@media (max-width: 720px) {
  .section-pad { padding-inline: 1rem; }
  .intro-stage { width: 100vw; }
  .hero-media { width: calc(100% - 1rem); inset-block: .5rem; border-width: 5px; }
  .hero-frame { inset: .95rem; }
  .hero-content { width: calc(100% - 2.4rem); margin-bottom: max(6.3rem,13vh); padding-inline: .65rem; }
  .hero-content h1 { font-size: clamp(2.55rem,12vw,3.85rem); }
  .hero-lace span { width: 72px; opacity: .55; }
  .hero-flower { width: 125px; }
  .fairy-bridge { height: 245px; }
  .lace-curtain { width: 82px; opacity: .34; }
  .message-card { width: calc(100% - .5rem); }
  .forms-layout { grid-template-columns: 1fr; }
  .program-paper { border-radius: 24px; }
  .program-timeline { padding-inline: .35rem; }
  .timeline-track { left: calc(.35rem + 67px); }
  .program-item { grid-template-columns: 53px 28px minmax(0,1fr); min-height: 120px; }
  .program-icon { width: 45px; height: 45px; }
  .program-icon svg { width: 23px; height: 23px; }
  .program-copy { padding-inline: .75rem .35rem; }
  .timeline-runner { width: 48px; height: 48px; }
}

@media (max-width: 430px) {
  .hero-content h1 { font-size: clamp(2.3rem,11.5vw,3.1rem); }
  .hero-date { flex-direction: column; gap: 0; }
  .fairy-bridge { height: 220px; }
  .message-card { padding-inline: 1.15rem; }
  .flower-sprig { width: 150px; }
  .gallery-grid { gap: .5rem; }
  .gallery-card { border-width: 4px; }
  .guest-notes { grid-auto-columns: minmax(230px,88%); }
  .footer-couple { font-size: clamp(2.1rem,11.5vw,2.9rem); }
}

@media (max-height: 640px) and (orientation: landscape) {
  .intro-stage { width: 45svh; }
  .hero-content { margin-bottom: 4.5rem; }
  .scroll-cue { bottom: .55rem; }
  .scroll-cue > span { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; }
  .reveal, .hero-lace span, .hero-flower { opacity: 1; transform: none; transition: none; }
  .hero-lace span:last-child { transform: scaleX(-1); }
  .timeline-runner { transition: none; }
  .timeline-runner-flower { transform: none; }
}

/* v2.2.3 — centered responsive layout, larger portrait and clipped wide ornaments */
.hero {
  display: flex;
  min-height: 100svh;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: clamp(.8rem, 2.2svh, 1.7rem) 1rem clamp(4.6rem, 8svh, 5.4rem);
  color: var(--ink);
  background:
    radial-gradient(circle at 54% 18%, rgba(255,255,255,.98), transparent 42%),
    linear-gradient(155deg, #fffdfa 0%, #f8f3ec 56%, #eee6dc 100%);
}
.hero::after {
  position: absolute;
  inset: auto 0 0;
  z-index: -1;
  height: 28%;
  background: linear-gradient(transparent, rgba(224,212,199,.34));
  content: "";
  pointer-events: none;
}
.hero-media {
  position: relative;
  inset: auto;
  left: auto;
  z-index: 2;
  width: min(56vw, 51svh, 590px);
  max-height: none;
  aspect-ratio: 2 / 3;
  flex: 0 1 auto;
  margin: 0;
  overflow: visible;
  isolation: isolate;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  transform: none;
}
.hero-media img { filter: none; }
.hero-photo-window {
  position: absolute;
  /* Measured from the transparent inner opening of the 1024×1536 frame. */
  top: 17.58%;
  left: 24.52%;
  z-index: 1;
  width: 56.93%;
  height: 62.44%;
  overflow: hidden;
  background: #eee4da;
  border-radius: 3px;
  box-shadow: inset 0 0 24px rgba(75,60,48,.12);
  clip-path: inset(0 round 3px);
  contain: paint;
}
.hero-photo-window::after {
  position: absolute;
  inset: 0;
  z-index: 3;
  background: linear-gradient(180deg, rgba(255,255,255,.06), transparent 24%, transparent 78%, rgba(91,68,52,.04));
  box-shadow: inset 0 0 18px rgba(76,59,47,.08);
  content: "";
  pointer-events: none;
}
#top .hero-photo-window .hero-couple-photo,
#top .hero-photo-window .hero-couple-photo-backdrop {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 0;
}
#top .hero-photo-window .hero-couple-photo-backdrop {
  z-index: 0;
  object-fit: cover;
  object-position: 50% 50%;
  opacity: .3;
  filter: blur(8px) saturate(.54) brightness(1.08);
  transform: scale(1.06);
}
#top .hero-photo-window .hero-couple-photo {
  z-index: 1;
  object-fit: contain;
  object-position: 50% 50%;
}
#top .hero-photo-frame {
  position: absolute;
  inset: 0;
  z-index: 4;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  pointer-events: none;
}
.hero-content {
  position: relative;
  z-index: 3;
  width: min(calc(100% - 2rem), 640px);
  margin: clamp(-.45rem, -1vw, -.15rem) auto 0;
  padding: .1rem .4rem .25rem;
  color: var(--ink);
  text-align: center;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  backdrop-filter: none;
}
.hero-content::before { display: none; }
.hero-kicker { display: none; }
.hero-content h1 {
  margin: 0;
  padding: .14em .02em .08em;
  color: #5c5049;
  font-size: clamp(2.65rem, 10vw, 5.2rem);
  text-shadow: none;
}
.hero-date {
  gap: 0;
  color: #8d7865;
  font-size: clamp(.72rem, 2.5vw, .9rem);
  letter-spacing: .16em;
}
.scroll-cue { z-index: 7; bottom: max(.85rem, env(safe-area-inset-bottom)); color: #665d57; }
.scroll-cue > i { background: rgba(255,253,249,.72); }
.butterfly-companion {
  position: absolute;
  top: 6.8%;
  right: 3.2%;
  z-index: 6;
  display: block;
  width: clamp(62px, 20%, 108px);
  height: auto;
  aspect-ratio: 1.25;
  overflow: hidden;
  opacity: 1;
  pointer-events: none;
  transform: rotate(-3deg);
  transform-origin: 50% 72%;
}
.butterfly-companion video {
  position: absolute;
  top: 0;
  left: -50%;
  display: block;
  width: 200%;
  max-width: none;
  height: auto;
  mix-blend-mode: screen;
  filter: brightness(1.14) contrast(.9) saturate(.82);
}

.invitation-message {
  z-index: 2;
  min-height: clamp(690px, 106svh, 860px);
  padding-top: clamp(7.2rem, 18vw, 10rem);
  padding-bottom: clamp(7.2rem, 18vw, 10rem);
  overflow: visible;
  background: linear-gradient(180deg, #faf7f2, #fffdfa 50%, #f7f2eb);
}
.invitation-message::before,
.invitation-message::after { display: none; }
.invitation-floral-line {
  position: absolute;
  right: 50%;
  z-index: 5;
  display: block;
  width: min(1120px, 116vw);
  max-width: none;
  height: auto;
  opacity: 0;
  filter: saturate(.82) brightness(1.03);
  pointer-events: none;
}
.invitation-floral-top { top: 0; transform: translate(50%, -50%); }
.invitation-floral-bottom { bottom: 0; transform: translate(50%, 50%) rotate(180deg); }
.invitation-floral-top.visible { animation: floralLineTop 1.15s cubic-bezier(.2,.72,.2,1) both; }
.invitation-floral-bottom.visible { animation: floralLineBottom 1.15s cubic-bezier(.2,.72,.2,1) both; }
.message-card { z-index: 6; }

.calendar-section {
  position: relative;
  z-index: 1;
}

.program-paper::before,
.program-paper::after {
  top: 0;
  bottom: 0;
  z-index: 0;
  width: clamp(128px, 18vw, 178px);
  height: auto;
  background: url("../img/lace-theme/program-lace-vertical.webp") center / 100% 100% no-repeat;
  opacity: .8;
  mix-blend-mode: multiply;
}
.program-paper::before {
  right: -70px;
  transform: none;
  -webkit-mask-image: linear-gradient(to left, #000 0 74%, transparent 100%);
  mask-image: linear-gradient(to left, #000 0 74%, transparent 100%);
}
.program-paper::after {
  left: -70px;
  transform: scaleX(-1);
  -webkit-mask-image: linear-gradient(to right, #000 0 74%, transparent 100%);
  mask-image: linear-gradient(to right, #000 0 74%, transparent 100%);
}
.program-paper > * { position: relative; z-index: 2; }

.venue-section { background: linear-gradient(180deg, #f5efe8, #fbf8f4); }
.venue-section::before,
.venue-section::after { display: none; }

.participation {
  isolation: isolate;
  background: #f4e9df;
}
.participation::before {
  position: absolute;
  inset: 0;
  z-index: -2;
  height: auto;
  background: url("../img/lace-theme/forms-floral-bg.jpg") center / cover repeat-y;
  opacity: 1;
  mix-blend-mode: normal;
}
.participation::after {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgba(255,250,245,.4);
  content: "";
  pointer-events: none;
}
.site-footer { background: #faf7f2; }
.site-footer::before { display: none; }

@keyframes floralLineTop {
  from { opacity: 0; transform: translate(50%, calc(-50% - 30px)) scale(.97); }
  to { opacity: .94; transform: translate(50%, -50%) scale(1); }
}
@keyframes floralLineBottom {
  from { opacity: 0; transform: translate(50%, calc(50% + 30px)) rotate(180deg) scale(.97); }
  to { opacity: .94; transform: translate(50%, 50%) rotate(180deg) scale(1); }
}

@media (max-width: 720px) {
  .wedding-intro { width: 100%; max-width: 100%; }
  .intro-stage { width: 100%; max-width: 100%; height: 100svh; }
  .hero { padding-top: max(.75rem, 1.8svh); padding-inline: .75rem; }
  .hero-media { width: min(88vw, 46svh, 420px); max-height: none; }
  .hero-content { width: calc(100% - 1.4rem); margin-top: -.3rem; padding-inline: .2rem; }
  .hero-content h1 { font-size: clamp(2.45rem, 12vw, 3.7rem); }
  .invitation-floral-line { width: 146vw; }
  .program-paper { padding-inline: clamp(3.4rem, 15vw, 4.6rem); }
  .program-paper::before,
  .program-paper::after { width: 132px; height: auto; opacity: .78; }
  .program-paper::before { right: -24px; }
  .program-paper::after { left: -24px; }
}

@media (max-width: 430px) {
  .hero-media { width: min(88vw, 46svh, 380px); max-height: none; }
  .hero-content h1 { font-size: clamp(2.25rem, 11.7vw, 3.15rem); }
  .butterfly-companion { top: 6.6%; right: 2.8%; width: clamp(62px, 20%, 78px); height: auto; }
  .invitation-message { padding-top: 7rem; padding-bottom: 7rem; }
  .invitation-floral-line { width: 168vw; }
}

@media (min-width: 721px) and (max-height: 700px) {
  .hero { padding-top: .65rem; padding-bottom: 4.4rem; }
  .hero-media { width: min(50vw, 47svh, 420px); max-height: none; }
  .hero-content h1 { font-size: clamp(2.15rem, 8vw, 3.4rem); }
}

@media (max-width: 720px) and (max-height: 700px) {
  .hero { padding-top: .55rem; padding-bottom: 4.2rem; }
  .hero-media { width: min(86vw, 45svh, 340px); max-height: none; }
  .hero-content { margin-top: -.45rem; }
  .hero-content h1 { font-size: clamp(2.15rem, 11vw, 3.1rem); }
}

@media (max-height: 640px) and (orientation: landscape) {
  .intro-stage { width: 45svh; max-width: 100%; }
}

@supports not (overflow: clip) {
  html,
  body,
  #invitation { overflow-x: hidden; }
}

@media (prefers-reduced-motion: reduce) {
  .invitation-floral-line { opacity: .94; }
  .invitation-floral-top { transform: translate(50%, -50%); }
  .invitation-floral-bottom { transform: translate(50%, 50%) rotate(180deg); }
}




.site-footer::after {
  content: "";
  position: absolute;
  /* گل‌ها را دقیقاً به پایین فوتر می‌چسبانیم */
  bottom: 0;
  left: 0;
  right: 0;
  /* این z-index منفی باعث می‌شود گل‌ها پشت لوگو و نوشته‌ها قرار بگیرند */
  z-index: 0; 
  /* ارتفاع عکس؛ قابل تنظیم است */
  height: 35vw; 
  min-height: 250px;
  background: url("../img/lace-theme/floral-divider.webp") center bottom / 100% auto no-repeat;
  /* پس‌زمینه سفید عکس را محو می‌کند */
  mix-blend-mode: multiply;
  /* این خط بسیار مهم است: باعث می‌شود گل‌ها مانع کلیک روی لوگو نشوند */
  pointer-events: none; 
}

/* اطمینان از اینکه نوشته‌ها و لوگو روی گل‌ها قرار می‌گیرند و قابل کلیک هستند */
.site-footer > * {
  position: relative;
  z-index: 2;
}


/* حذف نوار دانتل از بالای کارت دعوت و کارت لوکیشن */
.message-card::after,
.venue-card::before {
  display: none !important;
}


/* اصلاح چیدمان و فونت مونوگرام (دایره حروف اول نام عروس و داماد) */
.message-monogram {
  display: flex !important; /* تغییر چیدمان به افقی */
  align-items: center;
  justify-content: center;
  gap: 6px; /* فاصله ملایم بین حروف و علامت & */
  width: 95px !important; /* کمی بزرگ‌تر شدن دایره برای جا گرفتن حروف کنار هم */
  height: 95px !important;
  direction: ltr; /* برای اطمینان از اینکه حرف انگلیسی اول سمت چپ می‌افتد */
}

.message-monogram span {
  display: inline-block !important; /* جلوگیری از افتادن حروف به خط بعد */
  line-height: 1 !important;
}

.message-monogram .monogram-letter {
  font-family: Georgia, "Times New Roman", serif !important; /* یک فونت کلاسیک و خوانا برای حروف */
  font-size: 1.8rem !important; /* بزرگ‌تر و نمایان‌تر شدن حروف */
  font-weight: 500;
  color: var(--ink);
}

.message-monogram .monogram-amp {
  font-family: "Wedding Script", Georgia, cursive !important; /* فونت فانتزی برای علامت & */
  font-size: 2rem !important; /* سایز بزرگ‌تر برای زیبایی بیشتر */
  color: var(--champagne) !important; /* رنگ طلایی/شامپاینی */
  margin: 0 !important;
  transform: translateY(-2px); /* کمی بالا بردن & برای هم‌تراز شدن با حروف */
}

/* استایل‌های متن و خطوط زیر شمارش معکوس */
.countdown-extra-details {
  width: min(100%, 550px);
  margin: 2.5rem auto 1rem;
  padding: 0 1.5rem;
  text-align: center;
}

.ornate-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
}

.ornate-divider::before,
.ornate-divider::after {
  content: "";
  height: 1px;
  flex: 1;
  max-width: 170px;
  background: var(--champagne);
  opacity: 0.65;
}

.ornate-divider span {
  color: var(--champagne);
  margin: 0 12px;
  font-size: 0.75rem;
}

.ceremony-time-text {
  color: var(--ink);
  font-size: 1.05rem;
  line-height: 2.1;
  margin: 0 0 1.8rem;
}

.ceremony-time-text strong {
  display: block;
  font-size: 1.15rem;
  font-weight: bold;
  margin-bottom: 0.3rem;
}

.dashed-divider {
  border: 0;
  border-top: 1px dashed rgba(122, 103, 84, 0.35);
  width: 100%;
  margin: 1.8rem auto;
}

.ceremony-message {
  color: var(--ink);
  font-size: 0.95rem;
  line-height: 2.2;
  margin: 0;
}

/* استایل نام خانواده‌ها زیر تیتر دعوت */
.families-name {
  margin: -0.2rem auto 1.2rem; /* تنظیم فاصله از تیتر بالا و المان پایین */
  color: var(--sage-deep); /* رنگ ملایم و شیک (سبز/خاکستری تیره تم سایت) */
  font-family: "Mina Miremad", var(--fa); /* استفاده از فونت زیبای میرعماد */
  font-size: clamp(1.4rem, 4vw, 2.1rem); /* سایز واکنش‌گرا (بزرگتر در دسکتاپ، کوچکتر در موبایل) */
  font-weight: 400;
  line-height: 1.6;
}

/* v2.2.5 — Pinterest-minimal ceremony program */
.program-section {
  padding-block: clamp(5.8rem, 10vw, 8rem);
  background:
    radial-gradient(circle at 50% 0%, rgba(255, 255, 255, .94), transparent 38%),
    linear-gradient(180deg, #f6f0e9 0%, #fcfaf6 48%, #f2ebe3 100%);
}

.program-paper {
  width: min(100%, 760px);
  padding: clamp(3.6rem, 7vw, 5rem) clamp(2.4rem, 6vw, 4.6rem);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, .72), rgba(255, 252, 247, .38)),
    rgba(255, 253, 249, .82);
  border: 1px solid rgba(181, 155, 117, .16);
  border-radius: 38px;
  box-shadow:
    0 30px 80px rgba(84, 70, 58, .065),
    inset 0 0 0 7px rgba(255, 255, 255, .2);
  backdrop-filter: blur(8px);
}

.program-paper::before,
.program-paper::after {
  top: 2rem;
  bottom: 2rem;
  width: clamp(76px, 10vw, 96px);
  height: auto;
  background: url("../img/lace-theme/program-lace-vertical.webp") center / 100% 100% no-repeat;
  opacity: .23;
  filter: grayscale(.18) sepia(.08);
  mix-blend-mode: multiply;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, #000 12%, #000 88%, transparent 100%);
  mask-image: linear-gradient(to bottom, transparent 0%, #000 12%, #000 88%, transparent 100%);
}

.program-paper::before {
  right: -52px;
  transform: none;
}

.program-paper::after {
  left: -52px;
  transform: scaleX(-1);
}

.program-heading {
  max-width: 480px;
  margin-bottom: clamp(2.7rem, 6vw, 4rem);
}

.program-heading::before {
  display: block;
  width: 44px;
  height: 1px;
  margin: 0 auto 1.05rem;
  background: linear-gradient(90deg, transparent, rgba(181, 155, 117, .82), transparent);
  content: "";
}

.program-heading > p {
  margin-bottom: .2rem;
  color: #9a7f79;
  font-size: clamp(.72rem, 2vw, .84rem);
  letter-spacing: .035em;
}

.program-heading h2 {
  font-size: clamp(2.55rem, 6.6vw, 3.9rem);
  line-height: 1.55;
}

.program-heading h2::after {
  display: block;
  width: 52px;
  height: 1px;
  margin: .25rem auto 0;
  background: linear-gradient(90deg, transparent, rgba(181, 155, 117, .58), transparent);
  content: "";
  transform: scaleX(0);
  transform-origin: center;
}

.program-heading.visible h2::after {
  animation: programRuleDraw .9s .18s cubic-bezier(.2, .72, .2, 1) both;
}

.program-timeline {
  width: min(100%, 600px);
  padding: .2rem 1rem;
}

.program-section .timeline-track {
  top: 54px;
  bottom: 54px;
  left: calc(1rem + 81px);
  background: rgba(181, 155, 117, .23);
}

.program-section .timeline-track::before,
.program-section .timeline-track::after {
  position: absolute;
  left: 50%;
  width: 5px;
  height: 5px;
  background: #fdfaf5;
  border: 1px solid rgba(181, 155, 117, .48);
  border-radius: 50%;
  content: "";
  transform: translateX(-50%);
}

.program-section .timeline-track::before { top: -2px; }
.program-section .timeline-track::after { bottom: -2px; }

.program-section .timeline-progress {
  background: linear-gradient(180deg, #cbb28f, #b98f91 72%, #a7aa99);
  box-shadow: 0 0 10px rgba(185, 143, 145, .14);
}

.program-item {
  position: relative;
  grid-template-columns: 64px 34px minmax(0, 1fr);
  min-height: 116px;
}

.program-item + .program-item::before {
  position: absolute;
  top: 0;
  right: .25rem;
  left: 104px;
  height: 1px;
  background: linear-gradient(90deg, rgba(181, 155, 117, .18), rgba(181, 155, 117, .06), transparent);
  content: "";
}

.program-section .program-icon {
  width: 42px;
  height: 42px;
  color: #91877d;
  background: rgba(255, 255, 255, .34);
  border: 1px solid rgba(181, 155, 117, .18);
  box-shadow: 0 7px 18px rgba(84, 70, 58, .035);
  opacity: .66;
  transition:
    color .55s ease,
    background .55s ease,
    border-color .55s ease,
    box-shadow .55s ease,
    opacity .55s ease,
    transform .55s cubic-bezier(.2, .72, .2, 1);
}

.program-section .program-icon svg {
  width: 22px;
  height: 22px;
}

.program-section .program-marker {
  width: 7px;
  height: 7px;
  background: #fffdf9;
  border-color: rgba(181, 155, 117, .62);
  box-shadow: 0 0 0 6px rgba(255, 253, 249, .9);
  transition:
    background .42s ease,
    border-color .42s ease,
    box-shadow .42s ease,
    transform .42s cubic-bezier(.2, .72, .2, 1);
}

.program-section .program-marker::after {
  position: absolute;
  inset: -8px;
  border: 1px solid rgba(185, 143, 145, .5);
  border-radius: 50%;
  content: "";
  opacity: 0;
  transform: scale(.45);
  pointer-events: none;
}

.program-section .program-copy {
  position: relative;
  padding: 1rem .75rem 1rem 1.1rem;
  opacity: .64;
  transform: translateX(6px);
  transition:
    opacity .6s ease,
    transform .6s cubic-bezier(.2, .72, .2, 1);
}

.program-section .program-copy::before {
  position: absolute;
  top: 50%;
  left: -13px;
  width: 18px;
  height: 1px;
  background: linear-gradient(90deg, rgba(181, 155, 117, .64), rgba(181, 155, 117, .12));
  content: "";
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .55s .08s cubic-bezier(.2, .72, .2, 1);
}

.program-section .program-copy time {
  color: #9a7775;
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .06em;
}

.program-section .program-copy h3 {
  margin-top: 0;
  margin-bottom: .08rem;
  font-size: clamp(1.5rem, 4vw, 1.9rem);
  line-height: 1.65;
}

.program-section .program-copy p {
  color: #8c8178;
  font-size: .74rem;
  line-height: 1.85;
}

.program-section .program-item.passed .program-icon {
  color: #856f69;
  background: rgba(189, 155, 152, .09);
  border-color: rgba(189, 155, 152, .22);
  box-shadow: 0 10px 24px rgba(117, 88, 82, .075);
  opacity: 1;
  transform: translateY(-2px) rotate(-5deg);
}

.program-section .program-item.passed .program-marker {
  background: #c1a27b;
  border-color: #c1a27b;
  box-shadow: 0 0 0 6px rgba(255, 253, 249, .92), 0 0 12px rgba(185, 143, 145, .2);
  transform: scale(1.12);
}

.program-section .program-item.passed .program-marker::after {
  animation: programMarkerHalo .9s cubic-bezier(.18, .76, .24, 1) both;
}

.program-section .program-item.passed .program-copy {
  opacity: 1;
  transform: none;
}

.program-section .program-item.passed .program-copy::before {
  transform: scaleX(1);
}

.program-section .program-item.reveal {
  opacity: 0;
  filter: blur(5px);
  transform: translate3d(16px, 10px, 0);
  transition:
    opacity .85s cubic-bezier(.2, .72, .2, 1),
    transform .95s cubic-bezier(.2, .72, .2, 1),
    filter .85s ease;
  transition-delay: var(--delay, 0ms);
}

.program-section .program-item:nth-of-type(even).reveal {
  transform: translate3d(-16px, 10px, 0);
}

.program-section .program-item.reveal.visible {
  opacity: 1;
  filter: none;
  transform: none;
}

@keyframes programRuleDraw {
  from { opacity: 0; transform: scaleX(0); }
  to { opacity: 1; transform: scaleX(1); }
}

@keyframes programMarkerHalo {
  0% { opacity: 0; transform: scale(.45); }
  28% { opacity: .72; }
  100% { opacity: 0; transform: scale(1.65); }
}

@media (max-width: 720px) {
  .program-section {
    padding: 5.4rem .65rem;
  }

  .program-paper {
    padding: 3.35rem 1.05rem 3.55rem;
    border-radius: 30px;
    box-shadow: 0 24px 62px rgba(84, 70, 58, .06);
  }

  .program-paper::before,
  .program-paper::after {
    top: 1.7rem;
    bottom: 1.7rem;
    width: 70px;
    opacity: .2;
  }

  .program-paper::before { right: -48px; }
  .program-paper::after { left: -48px; }

  .program-heading {
    margin-bottom: 2.55rem;
    padding-inline: .5rem;
  }

  .program-timeline {
    padding-inline: .25rem;
  }

  .program-section .timeline-track {
    left: calc(.25rem + 61px);
  }

  .program-item {
    grid-template-columns: 48px 26px minmax(0, 1fr);
    min-height: 112px;
  }

  .program-item + .program-item::before {
    left: 80px;
  }

  .program-section .program-icon {
    width: 38px;
    height: 38px;
  }

  .program-section .program-icon svg {
    width: 20px;
    height: 20px;
  }

  .program-section .program-copy {
    padding: .95rem .35rem .95rem 1rem;
  }

  .program-section .program-copy h3 {
    font-size: clamp(1.4rem, 6.3vw, 1.72rem);
  }
}

@media (max-width: 380px) {
  .program-paper {
    padding-inline: .7rem;
  }

  .program-timeline {
    padding-inline: .1rem;
  }

  .program-section .timeline-track {
    left: calc(.1rem + 59px);
  }

  .program-item {
    grid-template-columns: 46px 26px minmax(0, 1fr);
  }

  .program-item + .program-item::before {
    left: 77px;
  }

  .program-section .program-copy {
    padding-right: .25rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .program-heading.visible h2::after,
  .program-section .program-item.passed .program-marker::after {
    animation: none;
    opacity: .35;
    transform: none;
  }

  .program-section .program-item.reveal,
  .program-section .program-item.reveal.visible,
  .program-section .program-copy,
  .program-section .program-icon,
  .program-section .program-marker,
  .program-section .program-copy::before {
    filter: none;
    transform: none;
    transition: none;
  }

  .program-section .program-item.reveal,
  .program-section .program-item.reveal.visible {
    opacity: 1;
  }
}
/* ۱. اجازه خروج گل‌ها از کادر برنامه و قرارگیری روی بخش لوکیشن */
.program-section {
  overflow: visible !important;
  position: relative;
  z-index: 10; /* این خط باعث می‌شود گل‌ها زیر کادر لوکیشن مخفی نشوند */
}

/* ۲. تزریق تصویر ترانسپرنت روی خط مرزی */
.program-section::after {
  content: "";
  position: absolute;
  /* کشیدن عکس به سمت پایین تا دقیقاً روی خط مرز قرار بگیرد (نصف ارتفاع عکس) */
  bottom: -15vw; 
  left: 0;
  right: 0;
  height: 30vw; /* ارتفاع کلی عکس */
  min-height: 200px;
  /* فراخوانی عکس جدید؛ مطمئن شو نام فایل با عکسی که ذخیره کردی یکی باشد */
  background: url("../img/lace-theme/floral-middle.webp") center center / 100% auto no-repeat;
  pointer-events: none; /* تا مزاحم کلیک روی آیتم‌های دیگر نشود */
}

/* استایل متن اطلاع‌رسانی در بخش فرم‌ها */
.rsvp-notice {
  margin: 1.2rem auto 0 !important; /* ایجاد فاصله مناسب از تیتر اصلی */
  color: #655b55 !important; /* رنگی خوانا و هماهنگ با تم سایت */
  font-family: var(--fa); /* استفاده از فونت اصلی خوانا */
  font-size: clamp(0.85rem, 2.5vw, 0.95rem) !important; /* سایز مناسب برای موبایل و دسکتاپ */
  line-height: 2 !important;
  max-width: 500px; /* جلوگیری از کشیده شدن بیش از حد متن در مانیتورهای بزرگ */
  letter-spacing: normal !important;
}


/* تنظیم کادر دربرگیرنده تیتر و پروانه */
.program-title-wrapper {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
}
/* استایل و موقعیت پروانه (سمت چپ تیتر) */
.butterfly-program {
  position: absolute;
  top: 10%; /* 👈 این عدد را از 50% به 10% تغییر دادیم تا پروانه بالاتر برود */
  left: -110px; /* هل دادن پروانه به سمت چپ تیتر */
  z-index: 6;
  display: block;
  /* تنظیم سایز: بزرگ‌تر از پروانه بخش اول سایت */
  width: clamp(100px, 25vw, 150px); 
  height: auto;
  aspect-ratio: 1.25;
  overflow: hidden;
  opacity: 1;
  pointer-events: none; /* جلوگیری از تداخل با کلیک‌ها */
  transform: translateY(-50%) rotate(15deg); /* چرخش ملایم برای بال زدن طبیعی‌تر */
}

/* تنظیمات خود ویدئوی پروانه (مثل پروانه قبلی) */
.butterfly-program video {
  position: absolute;
  top: 0;
  left: -50%;
  display: block;
  width: 200%;
  max-width: none;
  height: auto;
  mix-blend-mode: screen; /* حذف کادر مشکی ویدئو */
  filter: brightness(1.14) contrast(0.9) saturate(0.82);
}

/* رسپانسیو برای موبایل */
@media (max-width: 720px) {
  .butterfly-program {
    left: -70px; /* نزدیک‌تر شدن به تیتر در موبایل */
    width: clamp(80px, 22vw, 110px); /* سایز مناسب‌تر در موبایل تا بیرون نزند */
  }
}
/* تنظیم جایگاه دقیق نوار گل میانی فقط برای موبایل */
@media (max-width: 720px) {
  .program-section::after {
    /* چون حداقل ارتفاع عکس روی موبایل ۲۰۰ پیکسل است، منفی ۱۰۰ پیکسل آن را دقیقاً وسط خط مرزی می‌اندازد */
    bottom: -100px !important; 
  }
}

/* تنظیم جایگاه و بزرگ‌نمایی نوار گل میانی فقط برای موبایل */
@media (max-width: 720px) {
  .program-section::after {
    /* زوم کردن روی عکس تا گل‌ها درشت‌تر شوند (از 100% به 160%) */
    background-size: 160% auto !important; 
    /* افزایش ارتفاع کادر برای جا شدن گل‌های بزرگ‌تر */
    height: 45vw !important; 
    min-height: 240px !important; 
    /* هل دادن به پایین تا دقیقاً وسط خط برنامه و نقشه قرار بگیرد (معمولاً نصف مقدار min-height) */
    bottom: -120px !important; 
  }
}


/* ۱. اجازه خروج گل‌ها از کادر گالری و قرارگیری روی بخش فرم‌ها */
.gallery-section {
  overflow: visible !important;
  position: relative;
  z-index: 10; /* قرارگیری بالاتر از بخش فرم‌ها */
}

/* ۲. تزریق تصویر ترانسپرنت روی خط مرزی گالری و فرم‌ها */
.gallery-section::after {
  content: "";
  position: absolute;
  /* کشیدن عکس به سمت پایین برای قرارگیری روی خط مرز */
  bottom: -15vw; 
  left: 0;
  right: 0;
  height: 30vw;
  min-height: 200px;
  /* فراخوانی همان عکس بدون پس‌زمینه */
  background: url("../img/lace-theme/floral-middle.webp") center center / 100% auto no-repeat;
  pointer-events: none;
}

/* ۳. تنظیم جایگاه و بزرگ‌نمایی برای نسخه موبایل (دقیقاً مشابه نوار قبلی) */
@media (max-width: 720px) {
  .gallery-section::after {
    background-size: 160% auto !important; 
    height: 45vw !important; 
    min-height: 240px !important; 
    /* هل دادن به پایین تا دقیقاً وسط خط مرزی روی گوشی قرار بگیرد */
    bottom: -120px !important; 
  }
}


/* ===== 2.3 ===== */
[hidden] { display: none !important; }
.hero-content:focus { outline: none; }

/* Intro video: ivory tones instead of the old burgundy while the video loads. */
.wedding-intro { background: #2c2522; }
.intro-stage { background: #e9e1d6; }
.intro-hint { background: rgba(58, 48, 42, .55); }
.intro-start {
  position: absolute;
  inset: 0;
  z-index: 6;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}
.intro-start:focus-visible { outline: 3px solid #fffaf2; outline-offset: -8px; }
.intro-status,
.intro-skip {
  position: absolute;
  left: 50%;
  bottom: max(5.5%, env(safe-area-inset-bottom));
  max-width: calc(100% - 2rem);
  padding: .75rem 1.15rem;
  color: #fffaf2;
  background: rgba(58, 48, 42, .85);
  border: 1px solid rgba(234, 219, 196, .7);
  border-radius: 999px;
  font-size: clamp(.88rem, 3.4vw, 1rem);
  text-align: center;
  transform: translateX(-50%);
}
.intro-status { z-index: 7; margin: 0; pointer-events: none; }
.intro-skip { z-index: 8; cursor: pointer; }
.intro-status:not([hidden]) + .intro-skip:not([hidden]) { bottom: calc(max(5.5%, env(safe-area-inset-bottom)) + 5.5rem); }
/* A custom intro video without a poster shows the couple's photo, softly blurred, while it loads. */
.intro-backdrop.is-portrait { filter: blur(18px) brightness(.55) saturate(.9); }

/* Tulle veil entrance: the guest's name rests on the veil until it is lifted. */
.veil-name{position:fixed;z-index:10000;inset:0;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:14px;padding:0 28px 12dvh;text-align:center;pointer-events:none;color:var(--ink);opacity:0;transform:translateY(10px);transition:opacity 1.1s ease .25s,transform 1.1s ease .25s;background:radial-gradient(ellipse 85% 30% at 50% 44%,#fffdfaf2 0%,#fffdfad0 50%,transparent 100%)}
.veil-name.is-visible{opacity:1;transform:none}
.veil-name.is-leaving{opacity:0;transform:translateY(-14px);transition:opacity .7s ease,transform .9s ease}
.veil-name-kicker{font-size:13px;color:var(--champagne);letter-spacing:.3px}
.veil-name strong{font-family:"Mina Miremad",var(--fa);font-weight:400;font-size:clamp(34px,10vw,52px);line-height:1.6;max-width:100%;overflow-wrap:anywhere;color:var(--ink);text-shadow:0 1px 18px #fffdfa}
.veil-name-note{font-size:13px;color:var(--muted)}
@media (prefers-reduced-motion:reduce){.veil-name,.veil-name.is-leaving{transform:none;transition:opacity .5s ease}}

/* Hero and countdown date: Persian in the card's text font, Gregorian as before. */
.hero-date span.date-jalali { font-family: var(--fa); font-size: clamp(.86rem, 3vw, 1rem); letter-spacing: 0; }
.ceremony-time-text .calendar-date { display: inline-block; margin-top: .3rem; }
.ceremony-time-text .calendar-date.date-gregorian { font-family: Georgia, serif; letter-spacing: .08em; direction: ltr; }

/* After the wedding day the countdown gives way to a thank-you note. */
.after-event-note { position: relative; z-index: 2; width: min(100%, 560px); margin: 0 auto 1rem; padding: 1.1rem 1.25rem; color: var(--ink); font-size: clamp(.95rem, 4vw, 1.1rem); line-height: 2.1; text-align: center; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

/* Venue: an optional photo of the hall or garden, and Neshan / Google Maps buttons. */
.venue-pin svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.6; }
.venue-photo { margin: 1.1rem auto 1.2rem; padding: 6px; overflow: hidden; background: #fffdf9; border: 1px solid rgba(181, 155, 117, .32); border-radius: 22px; box-shadow: 0 14px 34px rgba(84, 70, 58, .12); }
.venue-photo img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 17px; }
.route-buttons { display: grid; gap: .75rem; justify-items: center; margin-top: 1.2rem; }
.route-buttons .neshan-route { margin: 0; }
.google-route { color: var(--ink) !important; background: linear-gradient(135deg, #fffdf9, #efe7dc) !important; border-color: rgba(122, 103, 84, .3) !important; }
.google-route small { color: var(--muted) !important; }

/* Gallery: one photo at a time; swipe left or right, or use the arrows. */
.gallery-carousel { position: relative; width: min(100%, 560px); margin: auto; }
.gallery-track { display: flex; gap: 0; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scrollbar-width: none; -webkit-overflow-scrolling: touch; border-radius: 26px; }
.gallery-track::-webkit-scrollbar { display: none; }
.gallery-track:focus-visible { outline: 2px solid var(--champagne); outline-offset: 4px; }
.gallery-slide { flex: 0 0 100%; margin: 0; padding: 0 2px; scroll-snap-align: center; scroll-snap-stop: always; }
.gallery-carousel .gallery-card { display: block; width: 100%; aspect-ratio: 4 / 5; grid-column: auto; }
.gallery-carousel .gallery-card:nth-child(3n + 1) { aspect-ratio: 4 / 5; }
.gallery-nav { position: absolute; top: calc(50% - 1.6rem); z-index: 2; display: grid; width: 42px; height: 42px; padding: 0 0 4px; place-items: center; color: var(--ink); background: rgba(255, 253, 249, .88); border: 1px solid rgba(181, 155, 117, .4); border-radius: 50%; font-size: 1.7rem; line-height: 1; box-shadow: 0 8px 20px rgba(73, 59, 49, .14); cursor: pointer; transition: opacity .25s ease; }
.gallery-prev { right: 10px; }
.gallery-next { left: 10px; }
.gallery-nav:disabled { opacity: 0; pointer-events: none; }
.gallery-dots { display: flex; justify-content: center; gap: 6px; margin-top: .9rem; }
.gallery-dots i { width: 7px; height: 7px; background: rgba(181, 155, 117, .35); border-radius: 50%; transition: background .25s ease, transform .25s ease; }
.gallery-dots i.active { background: var(--champagne); transform: scale(1.3); }
.gallery-counter { margin: .3rem 0 0; color: var(--muted); font-size: .76rem; text-align: center; }

/* Small layout fixes: calligraphy tails, guestbook heading and empty note, footer logo, gap before the program. */
.program-section .program-copy h3 { padding-bottom: .42em; margin-bottom: .15rem; }
.program-section .program-copy time { position: relative; z-index: 1; display: block; margin-bottom: .25rem; }
.guestbook-wall header p { margin-bottom: .7rem; }
.guestbook-wall header h3 { padding-top: .25em; }
.guest-notes:has(> .guestbook-empty) { display: block; }
.footer-logo-link { overflow: hidden; padding: 0; }
.footer-logo-link img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; mix-blend-mode: normal; }
@media (max-width: 720px) {
  .program-section { padding-top: 2.4rem; }
}

/* Decorations of the lower sections load once the guest is inside the card. */
body:not(.entered) .invitation-message::before,
body:not(.entered) .invitation-message::after,
body:not(.entered) .program-section::before,
body:not(.entered) .program-section::after,
body:not(.entered) .program-paper::before,
body:not(.entered) .program-paper::after,
body:not(.entered) .venue-section::before,
body:not(.entered) .gallery-section::after,
body:not(.entered) .participation,
body:not(.entered) .participation::before,
body:not(.entered) .site-footer::after,
body:not(.entered) .calendar-card::before,
body:not(.entered) .calendar-card::after { background-image: none !important; }

.intro-status:not([hidden]) ~ .intro-hint { opacity: 0; }
.program-section .program-copy p { margin-top: .4rem; }
@media (max-width: 720px) {
  .calendar-section { padding-bottom: 2.6rem; }
}
.gallery-nav { padding: 0; }
.gallery-nav svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
/* The butterflies wait under the veil, leaves, flowers or clouds until the entrance is gone. */
.intro-veil:not(.overlay-done) .ambient-video,
.intro-leaves:not(.overlay-done) .ambient-video,
.intro-flowers:not(.overlay-done) .ambient-video,
.intro-clouds:not(.overlay-done) .ambient-video { visibility: hidden; }
