
/* ================================================================
   GIAO DIỆN LƯỚT WEB EDITORIAL TẠP CHÍ CƯỚI (CINELOVE STYLE)
   ================================================================ */

body.editorial-body {
  overflow-x: hidden;
  background: #f2eee6;
  color: var(--ink);
  margin: 0;
  padding: 0;
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
}

.editorial-main {
  width: 100%;
  max-width: 640px;
  margin-inline: auto;
  background: var(--paper);
  box-shadow: 0 0 70px rgba(0, 0, 0, 0.08);
  min-height: 100vh;
  position: relative;
  overflow: hidden;
}

/* Thanh điều hướng cố định trên đầu trang */
.editorial-nav {
  position: sticky;
  top: 0;
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px;
  background: rgba(246, 244, 238, 0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(46, 77, 67, 0.09);
  max-width: 640px;
  margin-inline: auto;
}

.editorial-nav__actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Thanh chữ phân cách chuẩn mẫu ảnh: WEDDING | INVITATION | 2026 */
.editorial-meta-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 20px 24px;
  font-family: var(--serif);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 3.5px;
  color: var(--green-dark);
  border-bottom: 1px solid rgba(46, 77, 67, 0.12);
  text-transform: uppercase;
  background: #ffffff;
}

.editorial-meta-bar__dot {
  color: var(--rose);
  font-size: 18px;
}

/* Từng trang Story theo chiều dọc (Editorial Page) */
.editorial-page {
  position: relative;
  padding: 0 0 60px;
}

/* Trang 1: Bìa mở đầu (Page Cover) */
.page-cover {
  padding-bottom: 40px;
}

.page-cover__photo-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 4.8;
  overflow: hidden;
  background: #e8e3d8;
}

.page-cover__photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 25%;
  display: block;
}

.page-cover__date-pill {
  position: absolute;
  bottom: 18px;
  right: 18px;
  background: rgba(20, 32, 26, 0.55);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #ffffff;
  font-family: var(--serif);
  font-size: 15px;
  letter-spacing: 2px;
  padding: 6px 16px;
  border-radius: 20px;
}

.page-cover__content {
  padding: 36px 24px 20px;
  text-align: center;
}

.editorial-eyebrow {
  font-size: 10px;
  letter-spacing: 2.5px;
  font-weight: 600;
  color: var(--rose);
  text-transform: uppercase;
  margin: 0 0 12px;
}

.editorial-couple-title {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 0 0 16px;
  color: var(--green-dark);
  font-family: var(--script);
  font-size: clamp(56px, 15vw, 84px);
  font-weight: 400;
  line-height: 0.94;
}

.editorial-couple-title i {
  margin: 6px 0;
  color: var(--rose);
  font-family: var(--serif);
  font-size: 0.38em;
  font-style: italic;
}

/* Câu Quote chuẩn ảnh mẫu: Right love | Right reason | Right for you */
.editorial-quote {
  font-family: var(--serif);
  font-size: clamp(17px, 4.5vw, 22px);
  font-style: italic;
  font-weight: 500;
  letter-spacing: 1px;
  color: var(--green);
  margin: 16px 0 10px;
  line-height: 1.4;
}

.editorial-dedication {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 300;
  line-height: 1.9;
  color: var(--ink-soft);
  max-width: 440px;
  margin: 0 auto 20px;
  padding-inline: 10px;
}

.page-cover__calendar {
  font-size: 12px;
  font-weight: 500;
  color: var(--green-dark);
  letter-spacing: 1px;
  margin: 0 0 28px;
}

.editorial-scroll-hint {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 18px;
  border-radius: 20px;
  border: 1px solid rgba(46, 77, 67, 0.2);
  color: var(--green-dark);
  font-size: 11px;
  letter-spacing: 0.5px;
  text-decoration: none;
  transition: all 0.2s ease;
}

.editorial-scroll-hint:hover {
  background: var(--green-dark);
  color: #ffffff;
  border-color: var(--green-dark);
}

.bounce-arrow {
  animation: bounceDown 1.8s infinite;
}

@keyframes bounceDown {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(5px); }
}

/* Thanh phân trang phân cách giữa các trang (Page Dividers) */
.editorial-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 40px 24px 28px;
  font-family: var(--serif);
  font-size: 11px;
  letter-spacing: 2.8px;
  color: var(--rose);
  text-transform: uppercase;
}

.editorial-divider__line {
  flex: 1;
  height: 1px;
  background: rgba(46, 77, 67, 0.14);
}

.editorial-divider--light {
  color: #e5b4aa;
}

.editorial-divider--light .editorial-divider__line {
  background: rgba(255, 255, 255, 0.2);
}

/* Khối tiêu đề từng trang Story */
.editorial-header {
  padding: 0 24px 22px;
  text-align: center;
}

.editorial-heading {
  font-family: var(--serif);
  font-size: clamp(34px, 8vw, 46px);
  line-height: 1.05;
  color: var(--green-dark);
  margin: 0 0 12px;
  font-weight: 500;
}

.editorial-heading em {
  color: var(--rose);
  font-style: italic;
  font-weight: 400;
}

.editorial-heading-lg {
  font-family: var(--serif);
  font-size: clamp(32px, 7.5vw, 44px);
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--green-dark);
  margin: 0 0 6px;
  font-weight: 500;
}

.editorial-sub {
  font-size: 12.5px;
  font-weight: 300;
  line-height: 1.8;
  color: var(--ink-soft);
  max-width: 460px;
  margin: 0 auto;
}

.editorial-sub-script {
  font-family: var(--serif);
  font-size: 16px;
  font-style: italic;
  color: var(--rose);
  margin: 4px 0 0;
  letter-spacing: 0.5px;
}

/* Thẻ Story Magazine chứa ảnh và nội dung */
.editorial-story-card {
  padding: 0 24px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.editorial-photo-frame {
  width: 100%;
  aspect-ratio: 4 / 4.2;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.08);
  background: #e8e3d8;
}

.editorial-photo-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.editorial-photo-frame:hover img {
  transform: scale(1.03);
}

.editorial-story-body {
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(46, 77, 67, 0.1);
  border-radius: 18px;
  padding: 24px 20px;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.04);
}

.editorial-tagline {
  font-family: var(--serif);
  font-size: 18px;
  font-style: italic;
  color: var(--green-dark);
  margin: 0 0 10px;
  line-height: 1.35;
}

.editorial-text {
  font-size: 13px;
  line-height: 2;
  color: var(--ink-soft);
  font-weight: 300;
  margin: 0;
}

/* Thư mời (Invitation Card) */
.editorial-card {
  margin: 0 24px;
  background: #ffffff;
  border: 1px solid rgba(46, 77, 67, 0.12);
  border-radius: 20px;
  padding: 36px 24px 32px;
  text-align: center;
  position: relative;
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.05);
}

/* Trang Countdown */
.page-date {
  background: var(--green-dark);
  color: var(--paper);
  padding: 10px 0 60px;
}

/* Trang Timeline, Venue, Gallery, Gift, RSVP */
.page-schedule, .page-venue, .page-gallery, .page-gift, .page-rsvp, .page-wishes {
  padding-bottom: 50px;
}

.page-venue .venue__photo-wrap {
  margin: 0 24px 20px;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.08);
}

.page-venue .venue__details {
  margin: 0 24px;
  background: #ffffff;
  border: 1px solid rgba(46, 77, 67, 0.1);
  border-radius: 18px;
  padding: 28px 20px;
  text-align: center;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.04);
}

.page-rsvp .rsvp__intro, .page-wishes .wishes__heading {
  padding: 0 24px 20px;
  text-align: center;
}

.page-rsvp .rsvp__form, .page-wishes .wishes__form {
  margin: 0 24px;
  background: #ffffff;
  border: 1px solid rgba(46, 77, 67, 0.1);
  border-radius: 20px;
  padding: 28px 20px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.04);
}

.wishes__list-wrap {
  margin: 32px 24px 0;
}

.page-gift .gift__grid {
  padding: 0 24px;
}

/* ================================================================
   WIDGET LỜI CHÚC CHẠY NỔI CỐ ĐỊNH GÓC DƯỚI (FLOATING WISHES WIDGET)
   ================================================================ */

.floating-wishes-widget {
  position: fixed;
  bottom: 22px;
  left: clamp(14px, calc(50vw - 306px), 24px);
  z-index: 85;
  width: min(340px, calc(100vw - 28px));
  pointer-events: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
  user-select: none;
}

.floating-wishes-widget__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 4px;
  pointer-events: auto;
}

.floating-wishes-widget__tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 9.5px;
  letter-spacing: 1px;
  font-weight: 600;
  color: var(--rose-soft);
  background: rgba(20, 32, 26, 0.7);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 12px;
  padding: 3px 9px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.live-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #ff5252;
  box-shadow: 0 0 6px #ff5252;
  animation: pulseDot 1.5s infinite;
}

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

.floating-wishes-widget__toggle {
  background: rgba(20, 32, 26, 0.75);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #ffffff;
  border-radius: 50%;
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  font-size: 12px;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
  transition: transform 0.15s, background 0.2s;
}

.floating-wishes-widget__toggle:hover {
  background: rgba(20, 32, 26, 0.95);
  transform: scale(1.1);
}

.floating-wishes-stream {
  display: flex;
  flex-direction: column;
  gap: 6px;
  justify-content: flex-end;
  max-height: 200px;
  overflow: hidden;
  transition: opacity 0.3s ease;
}

.floating-wishes-widget.is-collapsed .floating-wishes-stream {
  display: none !important;
}

body.is-typing-mode .floating-wishes-widget {
  opacity: 0 !important;
  pointer-events: none !important;
}

/* Thẻ bình luận nổi */
.story-comment-bubble {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  max-width: 100%;
  background: rgba(16, 28, 22, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 18px;
  padding: 5px 12px 5px 6px;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.3);
  pointer-events: auto;
  user-select: none;
  transform-origin: left bottom;
  transition: opacity 0.4s ease, transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), max-height 0.35s ease, margin 0.35s ease;
  overflow: hidden;
}

.story-comment-bubble.is-entering {
  animation: commentSlideUp 0.42s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.story-comment-bubble.is-fading-out {
  opacity: 0 !important;
  transform: translateY(-16px) scale(0.85) !important;
  max-height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  border-width: 0 !important;
}

.story-comment-bubble__avatar {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--rose), #d88995);
  color: #ffffff;
  display: grid;
  place-items: center;
  font-size: 10px;
  font-weight: 700;
  flex-shrink: 0;
}

.story-comment-bubble__body {
  display: flex;
  align-items: baseline;
  gap: 4px;
  min-width: 0;
  line-height: 1.3;
}

.story-comment-bubble__author {
  font-weight: 600;
  font-size: 11px;
  color: #fce8a8;
  white-space: nowrap;
  flex-shrink: 0;
}

.story-comment-bubble__text {
  font-size: 11.5px;
  color: rgba(255, 255, 255, 0.94);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: clamp(150px, 42vw, 240px);
}

/* Bậc thang độ mờ mờ dần cho 3-4 bình luận */
.floating-wishes-stream .story-comment-bubble:nth-last-child(1) {
  opacity: 1;
  transform: scale(1);
}

.floating-wishes-stream .story-comment-bubble:nth-last-child(2) {
  opacity: 0.88;
  transform: scale(0.98);
}

.floating-wishes-stream .story-comment-bubble:nth-last-child(3) {
  opacity: 0.68;
  transform: scale(0.95);
}

.floating-wishes-stream .story-comment-bubble:nth-last-child(4) {
  opacity: 0.42;
  transform: scale(0.92);
}

.floating-wishes-stream .story-comment-bubble:nth-last-child(n+5) {
  opacity: 0.15;
  transform: scale(0.88);
}

:root {
  color-scheme: light;
  --ink: #203b33;
  --ink-soft: #52635b;
  --green: #35584c;
  --green-dark: #233d35;
  --rose: #a44f59;
  --rose-light: #ead4d0;
  --paper: #f7f5ef;
  --paper-pink: #f3e7e3;
  --line: rgba(32, 59, 51, .2);
  --serif: 'Cormorant Garamond', 'Times New Roman', serif;
  --sans: 'Be Vietnam Pro', 'Segoe UI', sans-serif;
  --script: 'Great Vibes', 'Alex Brush', cursive;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--paper);
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  scroll-behavior: smooth;
}

* { box-sizing: border-box; }
html { min-width: 320px; }
body { margin: 0; min-width: 320px; }
button, a { font: inherit; }
a { color: inherit; }
button { color: inherit; }
img { display: block; max-width: 100%; }
::selection { color: white; background: var(--rose); }

.skip-link {
  position: fixed;
  z-index: 20;
  top: 12px;
  left: 12px;
  padding: 12px 16px;
  color: white;
  background: var(--green-dark);
  transform: translateY(-160%);
}
.skip-link:focus { transform: translateY(0); }
:focus-visible { outline: 2px solid var(--rose); outline-offset: 4px; }

.cover {
  position: relative;
  display: grid;
  min-height: 740px;
  height: 100svh;
  max-height: 1100px;
  overflow: hidden;
  isolation: isolate;
  background: #d7dad4;
}
.cover__photo, .cover__veil { position: absolute; inset: 0; width: 100%; height: 100%; }
.cover__photo { z-index: -2; object-fit: cover; object-position: center 41%; }
.cover__veil { z-index: -1; background: rgba(244, 241, 231, .28); }
.topline {
  position: absolute;
  top: 0;
  left: 0;
  display: grid;
  width: 100%;
  grid-template-columns: 1fr 1fr 1fr;
  align-items: center;
  padding: 26px clamp(22px, 5vw, 76px);
  color: var(--ink);
}
.wordmark {
  display: inline-flex;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  border: 1px solid currentColor;
  border-radius: 50%;
  font-family: var(--serif);
  font-size: 15px;
  text-decoration: none;
}
.wordmark span { margin: 0 2px; color: var(--rose); font-size: 12px; }
.topline__label, .eyebrow, .vertical-note, .section-number, .cover__index, .venue__photo-caption {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 1.4px;
}
.topline__label { justify-self: center; white-space: nowrap; }
.share-button {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border: 1px solid currentColor;
  border-radius: 0;
  background: transparent;
  cursor: pointer;
  transition: color .2s ease, background-color .2s ease;
}
.share-button:hover { color: white; background: var(--green-dark); }
.topline__actions { display: flex; align-items: center; justify-self: end; gap: 8px; }
.share-button--top { padding: 0 16px; font-size: 12px; }
.share-button span { font-size: 16px; }
.cover__content {
  align-self: center;
  justify-self: center;
  width: min(900px, calc(100% - 40px));
  margin-top: 26px;
  text-align: center;
}
.eyebrow { margin: 0 0 20px; color: var(--rose); }
.eyebrow--cover { color: var(--green-dark); }
.cover h1 {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 0;
  color: var(--green-dark);
  font-family: var(--script);
  font-size: clamp(68px, 12vw, 142px);
  font-weight: 400;
  line-height: .92;
  text-shadow: 0 1px 18px rgba(248, 247, 241, .48);
}
.cover h1 i { margin: 8px 0 6px; color: var(--rose); font-family: var(--serif); font-size: .4em; font-style: italic; font-weight: 400; line-height: 1; }
.cover__date { margin: 34px 0 0; color: var(--green-dark); font-size: 12px; font-weight: 500; letter-spacing: 1px; }
.cover__date span { padding: 0 9px; color: var(--rose); }
.cover__link {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  margin-top: 52px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--green);
  color: var(--green-dark);
  font-size: 11px;
  letter-spacing: .3px;
  text-decoration: none;
}
.cover__link span { color: var(--rose); font-size: 17px; }
.cover__index { position: absolute; right: clamp(22px, 5vw, 76px); bottom: 24px; color: var(--green-dark); }

.section-wrap { width: min(1100px, calc(100% - 64px)); margin-inline: auto; }
.invitation {
  position: relative;
  display: grid;
  min-height: 590px;
  grid-template-columns: 100px minmax(0, 1fr) 150px;
  align-items: center;
  gap: clamp(28px, 7vw, 110px);
  padding-block: 112px;
}
.invitation__side { display: flex; height: 260px; flex-direction: column; align-items: center; justify-content: space-between; }
.vertical-note { writing-mode: vertical-rl; color: var(--ink-soft); }
.section-number { color: var(--rose); font-size: 9px; }
.invitation__body { max-width: 620px; }
.invitation h2, .schedule h2, .venue h2, .gallery h2, .closing h2 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 500;
  line-height: .98;
}
.invitation h2 { font-size: clamp(54px, 7vw, 90px); }
.invitation h2 em, .schedule h2 em, .venue h2 em, .gallery h2 em, .closing h2 em { color: var(--rose); font-weight: 400; }
.invitation__copy { max-width: 490px; margin: 32px 0 0; color: var(--ink-soft); font-size: 13px; font-weight: 300; line-height: 2.1; }
.signature { display: flex; flex-direction: column; gap: 5px; margin-top: 34px; color: var(--ink-soft); font-size: 11px; }
.signature__names { color: var(--green); font-family: var(--script); font-size: 34px; font-weight: 400; font-style: normal; letter-spacing: .5px; }
.invitation__stamp {
  display: grid;
  width: 120px;
  height: 120px;
  place-content: center;
  border: 1px solid var(--rose-light);
  border-radius: 50%;
  color: var(--rose);
  text-align: center;
  transform: rotate(9deg);
}
.invitation__stamp span { font-family: var(--serif); font-size: 32px; line-height: .8; }
.invitation__stamp small { margin-top: 9px; font-size: 8px; line-height: 1.3; letter-spacing: 1px; }

.date-band {
  position: relative;
  display: grid;
  min-height: 450px;
  overflow: hidden;
  place-items: center;
  color: var(--paper);
  background: var(--green-dark);
  text-align: center;
}
.date-band__inner { position: relative; z-index: 1; padding: 78px 20px; }
.eyebrow--light { color: #e5b4aa; }
.date-band h2 { margin: 0; font-family: var(--serif); font-size: clamp(42px, 6vw, 70px); font-weight: 400; }
.date-band h2 span { color: #e5b4aa; }
.date-band__time { margin: 12px 0 0; color: rgba(247,245,239,.76); font-size: 12px; }
.countdown { display: flex; align-items: center; justify-content: center; gap: clamp(15px, 4vw, 38px); margin: 42px 0 31px; }
.countdown div { display: grid; min-width: 62px; gap: 5px; }
.countdown strong { font-family: var(--serif); font-size: 42px; font-weight: 400; line-height: 1; }
.countdown span { color: rgba(247,245,239,.68); font-size: 9px; letter-spacing: 1px; }
.countdown > b { color: #e5b4aa; font-family: var(--serif); font-size: 24px; font-weight: 400; }
.text-link { display: inline-flex; align-items: center; gap: 13px; padding-bottom: 8px; border-bottom: 1px solid currentColor; font-size: 11px; text-decoration: none; }
.text-link--light { color: var(--paper); }
.text-link span { color: #e5b4aa; }
.date-band__ornament { position: absolute; right: -25px; bottom: -132px; color: rgba(244, 241, 231, .035); font-family: var(--serif); font-size: 330px; white-space: nowrap; }

.schedule { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(50px, 10vw, 150px); padding-block: 145px; }
.schedule__intro { max-width: 410px; }
.schedule h2 { font-size: clamp(54px, 6.5vw, 78px); }
.schedule__intro > p:last-child { max-width: 340px; margin: 26px 0 0; color: var(--ink-soft); font-size: 12px; font-weight: 300; line-height: 2; }
.timeline { position: relative; display: grid; align-content: center; margin: 0; padding: 0; list-style: none; }
.timeline::before { position: absolute; top: 18px; bottom: 18px; left: 78px; width: 1px; background: var(--line); content: ''; }
.timeline__item { position: relative; display: grid; grid-template-columns: 65px 1fr; gap: 34px; padding: 22px 0; }
.timeline__item time { color: var(--rose); font-family: var(--serif); font-size: 23px; }
.timeline__item h3 { margin: 0; font-family: var(--serif); font-size: 27px; font-weight: 500; }
.timeline__item p { margin: 6px 0 0; color: var(--ink-soft); font-size: 11px; font-weight: 300; line-height: 1.8; }
.timeline__dot { position: absolute; top: 34px; left: 74px; width: 9px; height: 9px; border: 1px solid var(--rose); border-radius: 50%; background: var(--paper); }

.venue { display: grid; min-height: 610px; grid-template-columns: 1.15fr .85fr; background: var(--paper-pink); }
.venue__photo-wrap { position: relative; min-height: 560px; overflow: hidden; }
.venue__photo { position: absolute; width: 100%; height: 100%; object-fit: cover; object-position: center; }
.venue__photo-caption { position: absolute; bottom: 24px; left: 28px; color: white; text-shadow: 0 1px 8px rgba(0,0,0,.4); }
.venue__details { display: flex; flex-direction: column; justify-content: center; align-items: flex-start; padding: clamp(44px, 8vw, 112px); }
.venue h2 { font-size: clamp(54px, 6vw, 76px); }
.venue address { margin-top: 28px; color: var(--ink); font-size: 12px; font-style: normal; line-height: 2; }
.venue__note { margin: 12px 0 24px; color: var(--ink-soft); font-size: 11px; }
.map-link { display: inline-flex; min-height: 44px; align-items: center; gap: 10px; padding-bottom: 5px; border-bottom: 1px solid var(--rose); color: var(--green-dark); font-size: 11px; text-decoration: none; }
.map-link span:first-child { color: var(--rose); font-size: 20px; }
.map-link span:last-child { margin-left: 5px; color: var(--rose); }

/* --- RSVP Section --- */
.rsvp {
  padding-block: 130px 140px;
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: clamp(40px, 8vw, 110px);
  align-items: start;
}
.rsvp__intro { max-width: 420px; }
.rsvp h2 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(52px, 6.5vw, 76px);
  font-weight: 500;
  line-height: .98;
}
.rsvp h2 em { color: var(--rose); font-weight: 400; }
.rsvp__desc {
  margin: 24px 0 0;
  color: var(--ink-soft);
  font-size: 13px;
  font-weight: 300;
  line-height: 2;
}
.rsvp__desc strong { color: var(--green-dark); font-weight: 600; }
.rsvp__form {
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding: clamp(24px, 5vw, 42px);
  background: #fffdfa;
  border: 1px solid rgba(32, 59, 51, .14);
  border-radius: 8px;
  box-shadow: 0 12px 32px rgba(32, 59, 51, .07);
}
.form-group { display: flex; flex-direction: column; gap: 9px; }
.form-label { font-size: 13px; font-weight: 500; color: var(--ink); }
.form-label .required { color: var(--rose); }
.form-input, .form-select {
  width: 100%;
  min-height: 50px;
  padding: 12px 15px;
  font-family: inherit;
  font-size: 13px;
  color: var(--ink);
  background: #ffffff;
  border: 1px solid rgba(32, 59, 51, .2);
  border-radius: 5px;
  transition: border-color .2s ease, box-shadow .2s ease, background-color .2s ease;
}
.form-select-wrap { position: relative; }
.form-select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 44px;
  cursor: pointer;
}
.form-select-wrap::after {
  position: absolute;
  top: 50%;
  right: 17px;
  width: 8px;
  height: 8px;
  border-right: 1.5px solid var(--ink-soft);
  border-bottom: 1.5px solid var(--ink-soft);
  content: '';
  pointer-events: none;
  transform: translateY(-70%) rotate(45deg);
}
.form-input:focus, .form-select:focus {
  outline: none;
  border-color: var(--green-dark);
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(35, 61, 53, .12);
}
.form-input.is-invalid, .form-select.is-invalid {
  border-color: var(--rose);
  background: #fff8f8;
}
.form-error { font-size: 11px; color: var(--rose); line-height: 1.4; }
.rsvp__choices { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.rsvp__choice { position: relative; display: flex; cursor: pointer; }
.rsvp__choice input[type="radio"] { position: absolute; opacity: 0; width: 0; height: 0; }
.rsvp__choice-box {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 5px;
  width: 100%;
  min-height: 88px;
  padding: 15px 40px 15px 16px;
  background: #ffffff;
  border: 1px solid rgba(32, 59, 51, .17);
  border-radius: 6px;
  transition: border-color .2s ease, background-color .2s ease, box-shadow .2s ease;
}
.rsvp__choice-box::after {
  position: absolute;
  top: 15px;
  right: 14px;
  width: 16px;
  height: 16px;
  border: 1px solid rgba(32, 59, 51, .34);
  border-radius: 50%;
  content: '';
}
.rsvp__choice:hover .rsvp__choice-box { border-color: rgba(35, 61, 53, .48); }
.rsvp__choice-title { font-size: 13px; font-weight: 600; color: var(--ink); line-height: 1.4; }
.rsvp__choice-sub { font-size: 11px; color: var(--ink-soft); line-height: 1.5; }
.rsvp__choice input[type="radio"]:checked + .rsvp__choice-box {
  border-color: var(--green-dark);
  background: rgba(35, 61, 53, .045);
  box-shadow: inset 0 0 0 1px rgba(35, 61, 53, .7);
}
.rsvp__choice input[type="radio"]:checked + .rsvp__choice-box::after {
  border: 5px solid var(--green-dark);
  background: #ffffff;
}
.rsvp__choice input[type="radio"]:focus-visible + .rsvp__choice-box {
  outline: 2px solid var(--rose);
  outline-offset: 2px;
}
.rsvp__message { padding: 14px 16px; font-size: 12px; line-height: 1.6; border-left: 3px solid; }
.rsvp__message--success { background: #edf6f2; border-color: var(--green); color: #1a4233; }
.rsvp__message--error { background: #fdf2f2; border-color: var(--rose); color: #832731; }
.rsvp__submit { width: 100%; min-height: 48px; border-radius: 6px; font-size: 13px; font-weight: 500; }
.rsvp__submit:disabled { cursor: wait; opacity: .8; }
.rsvp__spinner {
  display: inline-block;
  width: 14px;
  height: 14px;
  border: 2px solid rgba(255, 255, 255, .3);
  border-top-color: #ffffff;
  border-radius: 50%;
  animation: rsvpSpin .6s linear infinite;
}
.rsvp__spinner[hidden] { display: none; }
@keyframes rsvpSpin { to { transform: rotate(360deg); } }

/* --- Wishes Section --- */
.wishes {
  padding-block: 130px 140px;
}
.wishes__heading {
  text-align: center;
  max-width: 620px;
  margin: 0 auto 56px;
}
.wishes h2 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(48px, 6vw, 72px);
  font-weight: 500;
  line-height: .98;
}
.wishes h2 em { color: var(--rose); font-weight: 400; }
.wishes__subtitle {
  margin: 20px 0 0;
  color: var(--ink-soft);
  font-size: 13px;
  font-weight: 300;
  line-height: 1.8;
}
.wishes__grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: clamp(32px, 6vw, 64px);
  align-items: start;
}
.wishes__form-card,
.wishes__list-card {
  padding: clamp(24px, 4vw, 36px);
  background: #ffffff;
  border: 1px solid var(--line);
  box-shadow: 0 8px 28px rgba(32, 59, 51, .06);
}
.wishes__form-title,
.wishes__list-title {
  margin: 0 0 20px;
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 500;
  color: var(--green-dark);
}
.wishes__form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.form-textarea {
  width: 100%;
  padding: 12px 14px;
  font-family: inherit;
  font-size: 13px;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 0;
  resize: vertical;
  min-height: 100px;
  line-height: 1.6;
  transition: border-color .2s ease, box-shadow .2s ease, background-color .2s ease;
}
.form-textarea:focus {
  outline: none;
  border-color: var(--green-dark);
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(35, 61, 53, .12);
}
.form-textarea.is-invalid {
  border-color: var(--rose);
  background: #fff8f8;
}
.form-char-count {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11px;
  color: var(--ink-soft);
}
.form-char-num {
  margin-left: auto;
}
.wishes__message {
  padding: 12px 14px;
  font-size: 12px;
  line-height: 1.5;
  border-left: 3px solid;
}
.wishes__message--success {
  background: #edf6f2;
  border-color: var(--green);
  color: #1a4233;
}
.wishes__message--error {
  background: #fdf2f2;
  border-color: var(--rose);
  color: #832731;
}
.wishes__submit {
  width: 100%;
  min-height: 46px;
}
.wishes__submit:disabled { cursor: wait; opacity: .8; }
.wishes__list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-height: 480px;
  overflow-y: auto;
  padding-right: 4px;
}
.wish-card {
  padding: 14px 16px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-left: 3px solid var(--rose);
}
.wish-card__header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 6px;
}
.wish-card__author {
  font-family: var(--serif);
  font-size: 17px;
  font-weight: 600;
  color: var(--green-dark);
}
.wish-card__time {
  font-size: 10px;
  color: var(--ink-soft);
}
.wish-card__content {
  margin: 0;
  font-size: 13px;
  font-weight: 300;
  line-height: 1.6;
  color: var(--ink);
  white-space: pre-wrap;
  word-break: break-word;
}
.wishes__empty,
.wishes__loading {
  padding: 32px 16px;
  text-align: center;
  color: var(--ink-soft);
  font-size: 13px;
  font-style: italic;
}
.wishes__pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}
.btn--sm {
  min-height: 34px;
  padding: 0 12px;
  font-size: 11px;
}
.wishes__page-info {
  font-size: 11px;
  color: var(--ink-soft);
}

/* ========================================================
   GIFT / HỘP MỪNG CƯỚI & VIETQR
   ======================================================== */
.gift {
  padding-block: 100px 120px;
}
.gift__heading {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 48px;
}
.gift h2 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(48px, 6vw, 72px);
  font-weight: 500;
  line-height: .98;
}
.gift__subtitle {
  margin: 20px 0 0;
  color: var(--ink-soft);
  font-size: 13px;
  font-weight: 300;
  line-height: 1.8;
}
.gift__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: clamp(24px, 4vw, 40px);
  max-width: 860px;
  margin: 0 auto 40px;
  align-items: stretch;
}
.gift__card {
  background: #ffffff;
  border: 1px solid var(--line);
  box-shadow: 0 8px 28px rgba(32, 59, 51, .06);
  padding: clamp(24px, 4vw, 36px);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
  border-radius: 4px;
}
.gift__role-badge {
  display: inline-block;
  padding: 4px 14px;
  background: var(--paper);
  border: 1px solid var(--line);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--green-dark);
  margin-bottom: 16px;
  border-radius: 20px;
}
.gift__role-badge--bride {
  color: var(--rose);
}
.gift__holder-name {
  font-family: var(--serif);
  font-size: 24px;
  font-weight: 600;
  color: var(--green-dark);
  margin: 0 0 6px;
  letter-spacing: .02em;
}
.gift__bank-name {
  font-size: 13px;
  color: var(--ink-soft);
  margin-bottom: 20px;
  font-weight: 400;
}
.gift__qr-box {
  width: 220px;
  height: 220px;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 8px;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 10px rgba(0,0,0,.04);
}
.gift__qr-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 4px;
}
.gift__account-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  background: var(--paper);
  padding: 10px 14px;
  border: 1px dashed var(--line);
  border-radius: 4px;
  margin-bottom: 12px;
  gap: 10px;
}
.gift__account-num {
  font-family: monospace;
  font-size: 15px;
  font-weight: 700;
  color: var(--green-dark);
  letter-spacing: .06em;
}
.gift__copy-btn {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 5px 10px;
  font-size: 11px;
  font-weight: 500;
  cursor: pointer;
  color: var(--green-dark);
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: all .2s;
}
.gift__copy-btn:hover {
  background: var(--green-dark);
  color: #ffffff;
  border-color: var(--green-dark);
}
.gift__transfer-note {
  font-size: 12px;
  color: var(--ink-soft);
  margin-bottom: 20px;
  line-height: 1.5;
}
.gift__transfer-note strong {
  color: var(--ink);
}
.gift__actions {
  display: flex;
  gap: 10px;
  width: 100%;
  margin-top: auto;
}
.gift__download-btn {
  flex: 1;
  min-height: 38px;
  font-size: 12px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}
.gift__disclaimer {
  max-width: 760px;
  margin: 0 auto;
  padding: 18px 24px;
  background: #faf8f5;
  border-left: 3px solid var(--rose);
  border-radius: 2px;
  font-size: 12px;
  line-height: 1.7;
  color: var(--ink-soft);
}
.gift__disclaimer p {
  margin: 0 0 8px;
}
.gift__disclaimer p:last-child {
  margin: 0;
}

/* ========================================================
   LARGE WEDDING PHOTO SLIDESHOW — CHUYỆN CỦA CHÚNG MÌNH
   ======================================================== */
.gallery {
  padding-block: 85px 105px;
  overflow: hidden;
  position: relative;
  background: var(--paper);
}

.gallery__heading {
  margin-bottom: 36px;
  text-align: center;
}

.gallery__heading .eyebrow {
  margin-bottom: 12px;
}

.gallery h2 {
  font-size: clamp(42px, 5.5vw, 68px);
  margin-bottom: 8px;
}

.gallery__subtitle {
  color: var(--ink-soft);
  font-size: clamp(14px, 1.8vw, 16px);
  max-width: 580px;
  margin: 0 auto;
  line-height: 1.6;
}

.wedding-slideshow {
  position: relative;
  width: 100%;
  max-width: 1040px;
  margin: 0 auto;
  box-sizing: border-box;
}

/* Khung hiển thị ảnh cưới chính lớn ở trung tâm */
.wedding-slideshow__stage {
  position: relative;
  width: 100%;
  height: clamp(380px, 60vh, 580px);
  border-radius: 8px;
  background: #faf8f5;
  border: 1px solid rgba(229, 224, 216, 0.85);
  box-shadow: 0 16px 40px rgba(32, 59, 51, 0.08);
  overflow: hidden;
  user-select: none;
  -webkit-user-select: none;
  touch-action: pan-y pinch-zoom;
}

.wedding-slideshow__stage:focus-visible {
  outline: 2px solid var(--rose);
  outline-offset: 3px;
}

.wedding-slideshow__track {
  position: relative;
  width: 100%;
  height: 100%;
}

/* Từng slide ảnh: hiển thị một ảnh chính lớn tại mỗi thời điểm */
.slideshow-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0 !important;
  pointer-events: none;
  transform: scale(0.96) !important;
  transition: opacity 0.85s cubic-bezier(0.25, 1, 0.5, 1), transform 0.85s cubic-bezier(0.25, 1, 0.5, 1) !important;
  z-index: 1;
  will-change: opacity, transform;
}

.slideshow-slide.is-active {
  opacity: 1 !important;
  pointer-events: auto;
  transform: scale(1) !important;
  z-index: 2;
}

.slideshow-slide.is-leaving {
  opacity: 0 !important;
  transform: scale(1.03) !important;
  z-index: 1;
}

.slideshow-slide__btn {
  display: flex;
  width: 100%;
  height: 100%;
  padding: 0;
  border: none;
  background: transparent;
  cursor: zoom-in;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.slideshow-slide__btn:focus-visible {
  outline: 2px solid var(--rose);
  outline-offset: -2px;
}

.slideshow-slide__frame {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  box-sizing: border-box;
}

/* CRITICAL: object-fit: contain để giữ nguyên tỉ lệ gốc, không cắt mặt hay váy cưới */
.slideshow-slide__img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
  border-radius: 4px;
  box-shadow: 0 8px 24px rgba(32, 59, 51, 0.06);
  transition: transform 0.4s ease;
  pointer-events: none;
}

.slideshow-slide__btn:hover .slideshow-slide__img {
  transform: scale(1.015);
}

/* Huy hiệu xem ảnh lớn góc ảnh */
.slideshow-slide__badge {
  position: absolute;
  bottom: 24px;
  right: 24px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 15px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border: 1px solid rgba(229, 224, 216, 0.95);
  color: var(--green-dark);
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 500;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
  opacity: 0.85;
  transition: opacity 0.25s ease, transform 0.25s ease, background 0.25s ease;
}

.slideshow-slide__btn:hover .slideshow-slide__badge {
  opacity: 1;
  transform: translateY(-2px);
  background: #ffffff;
  color: var(--rose);
  border-color: var(--rose);
}

.slideshow-slide__badge .badge-icon {
  font-size: 14px;
  line-height: 1;
}

/* Nút điều hướng chuyển ảnh trái / phải */
.slideshow-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  border: 1px solid rgba(229, 224, 216, 0.9);
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: var(--green-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
  z-index: 10;
  transition: all 0.25s ease;
  font-size: 32px;
  line-height: 1;
  padding: 0;
}

.slideshow-nav--prev {
  left: 20px;
  padding-right: 2px;
}

.slideshow-nav--next {
  right: 20px;
  padding-left: 2px;
}

.slideshow-nav:hover {
  background: var(--green-dark);
  color: #ffffff;
  border-color: var(--green-dark);
  transform: translateY(-50%) scale(1.08);
  box-shadow: 0 8px 24px rgba(32, 59, 51, 0.2);
}

/* Thanh thông tin & điều khiển bên dưới ảnh */
.wedding-slideshow__meta {
  margin-top: 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 0 4px;
}

.wedding-slideshow__info {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.wedding-slideshow__counter {
  font-family: var(--sans);
  font-size: 13px;
  color: var(--rose);
  font-weight: 600;
  letter-spacing: 0.08em;
  white-space: nowrap;
}

.wedding-slideshow__divider {
  color: var(--line);
  font-size: 11px;
}

.wedding-slideshow__title {
  font-family: var(--serif);
  font-size: clamp(17px, 2.2vw, 20px);
  font-style: italic;
  font-weight: 500;
  color: var(--green-dark);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.wedding-slideshow__controls {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-shrink: 0;
}

.wedding-slideshow__dots {
  display: flex;
  align-items: center;
  gap: 7px;
}

.slideshow-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: 1px solid var(--rose);
  background: transparent;
  padding: 0;
  cursor: pointer;
  transition: all 0.3s ease;
}

.slideshow-dot.is-active {
  width: 22px;
  border-radius: 6px;
  background: var(--rose);
}

.slideshow-play-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: #ffffff;
  color: var(--green-dark);
  cursor: pointer;
  font-size: 11px;
  transition: all 0.2s ease;
  padding: 0;
}

.slideshow-play-btn:hover {
  background: var(--paper);
  border-color: var(--rose);
  color: var(--rose);
}

.gallery__empty {
  margin: 24px 0 0;
  color: var(--ink-soft);
  font-size: 14px;
  text-align: center;
  font-style: italic;
}

/* Responsive cho tablet và mobile */
@media (max-width: 768px) {
  .wedding-slideshow__stage {
    height: clamp(300px, 52vh, 420px);
    border-radius: 6px;
  }

  .slideshow-slide__frame {
    padding: 10px;
  }

  .slideshow-slide__badge {
    bottom: 14px;
    right: 14px;
    padding: 5px 11px;
    font-size: 11px;
  }

  .slideshow-nav {
    width: 38px;
    height: 38px;
    font-size: 24px;
  }

  .slideshow-nav--prev {
    left: 8px;
  }

  .slideshow-nav--next {
    right: 8px;
  }

  .wedding-slideshow__meta {
    flex-direction: column;
    align-items: center;
    gap: 12px;
    text-align: center;
  }

  .wedding-slideshow__info {
    justify-content: center;
  }
}

.lightbox { width: 100vw; height: 100vh; max-width: none; max-height: none; margin: 0; padding: 24px; border: 0; color: var(--paper); background: transparent; overflow: hidden; }
.lightbox::backdrop { background: rgba(20, 29, 25, .92); backdrop-filter: blur(5px); }
.lightbox[open] { display: grid; place-items: center; }
.lightbox__layout { position: relative; display: grid; width: min(100%, 1320px); height: 100%; grid-template-columns: 52px minmax(0, 1fr) 52px; align-items: center; gap: 18px; }
.lightbox__figure { display: grid; min-width: 0; min-height: 0; width: 100%; height: 100%; grid-column: 2; grid-row: 1; grid-template-rows: minmax(0, 1fr) auto; justify-items: center; align-items: center; margin: 0; }
.lightbox__image { display: block; max-width: 100%; max-height: calc(100dvh - 100px); width: auto; height: auto; object-fit: contain; }
.lightbox__image[hidden] { display: none; }
.lightbox__error { align-self: center; color: var(--paper); font-size: 14px; text-align: center; }
.lightbox__caption { display: flex; width: 100%; justify-content: space-between; gap: 16px; margin-top: 12px; color: var(--paper); font-family: var(--serif); font-size: 18px; }
.lightbox__caption span:last-child { color: rgba(247,245,239,.68); font-family: var(--sans); font-size: 11px; }
.lightbox__control { display: grid; width: 48px; aspect-ratio: 1; place-items: center; padding: 0; border: 1px solid rgba(247,245,239,.55); border-radius: 50%; color: var(--paper); background: rgba(35,61,53,.42); cursor: pointer; }
.lightbox__control:hover:not(:disabled) { color: var(--green-dark); background: var(--paper); }
.lightbox__control:disabled { opacity: .38; cursor: default; }
.lightbox__control span { font-family: var(--serif); font-size: 32px; line-height: 1; }
.lightbox__close { position: absolute; z-index: 1; top: 0; right: 0; font-size: 26px; line-height: 1; }
.lightbox__previous { grid-column: 1; grid-row: 1; }
.lightbox__next { grid-column: 3; grid-row: 1; }

.qr-dialog {
  margin: auto;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--ink);
  overflow: visible;
  max-width: none;
  max-height: none;
}
.qr-dialog::backdrop {
  background: rgba(20, 29, 25, .88);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.qr-dialog[open] {
  display: grid;
  place-items: center;
  width: 100vw;
  height: 100vh;
}
.qr-dialog__card {
  position: relative;
  width: min(440px, calc(100vw - 36px));
  max-height: calc(100dvh - 48px);
  overflow-y: auto;
  padding: 36px clamp(20px, 5vw, 36px) 28px;
  background: var(--paper);
  border: 1px solid var(--line);
  box-shadow: 0 16px 40px rgba(32, 59, 51, .24);
  text-align: center;
}
.qr-dialog__close {
  position: absolute;
  top: 14px;
  right: 14px;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--ink-soft);
  background: transparent;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  transition: color .2s ease, border-color .2s ease;
}
.qr-dialog__close:hover {
  color: var(--rose);
  border-color: var(--rose);
}
.qr-dialog__header .eyebrow { margin: 0 0 10px; }
.qr-dialog__title {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(26px, 6vw, 32px);
  font-weight: 500;
  line-height: 1.1;
  color: var(--green-dark);
}
.qr-dialog__note {
  max-width: 320px;
  margin: 10px auto 0;
  color: var(--ink-soft);
  font-size: 12px;
  font-weight: 300;
  line-height: 1.6;
}
.qr-dialog__body { margin-top: 22px; }
.qr-dialog__graphic-wrap {
  display: inline-flex;
  padding: 16px;
  background: #ffffff;
  border: 1px solid rgba(32, 59, 51, .15);
  box-shadow: 0 4px 16px rgba(32, 59, 51, .06);
}
.qr-dialog__graphic {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 175px;
  min-height: 175px;
}
.qr-dialog__graphic svg { display: block; max-width: 100%; height: auto; }
.qr-dialog__tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 16px 0 0;
  padding: 6px 14px;
  color: var(--green-dark);
  background: rgba(53, 88, 76, .08);
  border: 1px solid rgba(53, 88, 76, .18);
  font-size: 11px;
  font-weight: 400;
}
.qr-dialog__tag span { color: var(--rose); }
.qr-dialog__local-warning,
.qr-dialog__unconfigured-alert {
  margin-top: 14px;
  padding: 10px 14px;
  background: #fff8eb;
  border: 1px solid #e0c896;
  text-align: left;
  font-size: 11px;
  line-height: 1.5;
}
.qr-dialog__warning-title { margin: 0; font-weight: 600; color: #8c5d15; }
.qr-dialog__warning-desc { margin: 4px 0 0; color: #6d5423; }
.qr-dialog__warning-desc code { font-family: monospace; padding: 1px 4px; background: rgba(0,0,0,.06); }
.qr-dialog__url-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin: 16px 0 0;
  padding: 8px 12px;
  background: rgba(32, 59, 51, .04);
  border: 1px solid var(--line);
}
.qr-dialog__url-text {
  font-family: monospace;
  font-size: 11px;
  color: var(--green-dark);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-align: left;
}
.qr-dialog__copy-btn {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--ink);
  font-size: 11px;
  cursor: pointer;
  transition: color .2s ease, border-color .2s ease;
}
.qr-dialog__copy-btn:hover { color: var(--green-dark); border-color: var(--green-dark); }
.qr-dialog__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 22px;
}
.btn {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 20px;
  font-size: 12px;
  cursor: pointer;
  transition: background-color .2s ease, color .2s ease, border-color .2s ease;
}
.btn--primary {
  color: var(--paper);
  background: var(--green-dark);
  border: 1px solid var(--green-dark);
}
.btn--primary:hover {
  background: var(--rose);
  border-color: var(--rose);
}
.btn--ghost {
  color: var(--ink);
  background: transparent;
  border: 1px solid var(--line);
}
.btn--ghost:hover {
  color: var(--green-dark);
  border-color: var(--green-dark);
  background: rgba(32, 59, 51, .05);
}

.closing { display: grid; min-height: 475px; justify-items: center; align-content: center; padding: 80px 24px 32px; color: var(--paper); background: var(--green-dark); text-align: center; }
.closing h2 { font-size: clamp(52px, 7vw, 84px); }
.closing h2 em { color: #e5b4aa; }
.closing__names { margin: 30px 0 22px; font-family: var(--script); font-size: 38px; font-weight: 400; letter-spacing: .5px; }
.closing__names span { padding: 0 8px; color: #e5b4aa; font-family: var(--serif); font-size: 24px; vertical-align: middle; }
.closing__actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 12px; }
.share-button--footer { min-width: 150px; padding: 0 20px; border-color: rgba(247,245,239,.55); color: var(--paper); font-size: 11px; }
.share-button--footer:hover { border-color: var(--paper); color: var(--green-dark); background: var(--paper); }
.share-button--qr { border-color: rgba(247,245,239,.55); }
.closing__date { margin: 42px 0 0; color: rgba(247,245,239,.72); font-size: 9px; letter-spacing: 1.5px; }
.closing__date span { padding-inline: 8px; color: #e5b4aa; }
.closing__credit { margin: 25px 0 0; color: rgba(247,245,239,.4); font-family: var(--serif); font-size: 14px; font-style: italic; }
.toast { position: fixed; z-index: 30; right: 20px; bottom: 20px; max-width: min(360px, calc(100% - 40px)); padding: 14px 18px; color: white; background: var(--green-dark); font-size: 12px; opacity: 0; pointer-events: none; transform: translateY(10px); transition: opacity .2s ease, transform .2s ease; }
.toast.is-visible { opacity: 1; transform: translateY(0); }

.music-toggle {
  position: fixed;
  z-index: 25;
  bottom: 24px;
  left: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--ink-soft);
  background: rgba(247, 245, 239, .92);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 4px 14px rgba(32, 59, 51, .12);
  cursor: pointer;
  transition: color .2s ease, border-color .2s ease, background-color .2s ease, transform .2s ease, box-shadow .2s ease, opacity .2s ease;
}
.music-toggle:hover {
  color: var(--green-dark);
  border-color: var(--green-dark);
  box-shadow: 0 6px 18px rgba(32, 59, 51, .18);
  transform: scale(1.04);
}
.music-toggle:active { transform: scale(.96); }
.music-toggle__icon { display: flex; align-items: center; justify-content: center; width: 20px; height: 20px; }
.music-toggle .music-icon--playing { display: none; }
.music-toggle .music-icon--paused { display: block; }
.music-toggle.is-playing {
  color: var(--paper);
  background: var(--green-dark);
  border-color: var(--green-dark);
  box-shadow: 0 4px 16px rgba(35, 61, 53, .28);
}
.music-toggle.is-playing:hover { background: var(--rose); border-color: var(--rose); }
.music-toggle.is-playing .music-icon--paused { display: none; }
.music-toggle.is-playing .music-icon--playing { display: block; }
.music-toggle.is-playing .music-toggle__icon { animation: musicRotate 6s linear infinite; }
.music-toggle.is-loading { opacity: .75; cursor: wait; animation: musicPulse 1.2s ease-in-out infinite; }
.music-toggle.is-error { opacity: .4; cursor: not-allowed; border-color: var(--line); }

@keyframes musicRotate {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes musicPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(.96); }
}

html.js .reveal { opacity: 0; transform: translateY(16px); transition: opacity .7s ease, transform .7s ease; }
html.js .reveal.is-visible { opacity: 1; transform: translateY(0); }

@media (max-width: 760px) {
  .cover { min-height: 700px; height: 92svh; max-height: 900px; }
  .cover__photo { object-fit: cover; object-position: 51% center; }
  .cover__veil { background: rgba(244, 241, 231, .42); }
  .topline { grid-template-columns: auto 1fr auto; padding: 18px 20px; }
  .topline__label { font-size: 8px; letter-spacing: .8px; }
  .topline__actions { gap: 5px; }
  .share-button--top { min-height: 38px; padding-inline: 8px; font-size: 10px; }
  .qr-dialog__card { padding: 30px 16px 20px; }
  .wordmark { width: 38px; height: 38px; }
  .cover__content { margin-top: 15px; }
  .cover h1 { font-size: clamp(56px, 14vw, 98px); line-height: .95; }
  .cover__date { margin-top: 28px; font-size: 10px; }
  .cover__link { margin-top: 40px; }
  .cover__index { right: 20px; bottom: 18px; }
  .section-wrap { width: min(100% - 44px, 520px); }
  .invitation { min-height: 0; grid-template-columns: 24px 1fr; gap: 20px; padding-block: 92px 100px; }
  .invitation__side { height: 235px; }
  .vertical-note { font-size: 8px; letter-spacing: .9px; }
  .invitation h2 { font-size: clamp(52px, 13vw, 70px); }
  .invitation__copy { margin-top: 24px; font-size: 12px; }
  .invitation__stamp { position: absolute; right: 0; bottom: 25px; width: 88px; height: 88px; min-width: 0; }
  .invitation__stamp span { font-size: 16px; white-space: nowrap; }
  .invitation__stamp span { font-size: 32px; }
  .invitation__stamp small { margin-top: 6px; font-size: 7px; }
  .date-band { min-height: 400px; }
  .date-band__inner { padding-block: 68px; }
  .date-band h2 { font-size: clamp(38px, 9.5vw, 54px); }
  .countdown { gap: 13px; margin-block: 34px 26px; }
  .countdown div { min-width: 54px; }
  .countdown strong { font-size: 36px; }
  .schedule { grid-template-columns: 1fr; gap: 40px; padding-block: 100px; }
  .schedule h2 { font-size: 64px; }
  .timeline { padding-left: 0; }
  .venue { grid-template-columns: 1fr; }
  .venue__photo-wrap { min-height: 360px; }
  .venue__details { min-height: 390px; padding: 58px 32px 66px; }
  .venue h2 { font-size: 64px; }
  .rsvp { grid-template-columns: 1fr; gap: 36px; padding-block: 90px 100px; }
  .rsvp__choices { grid-template-columns: 1fr; }
  .rsvp h2 { font-size: 54px; }
  .wishes { padding-block: 90px 100px; }
  .wishes__grid { grid-template-columns: 1fr; gap: 32px; }
  .wishes h2 { font-size: 50px; }
  .gift { padding-block: 80px 90px; }
  .gift h2 { font-size: 50px; }
  .gift__grid { grid-template-columns: 1fr; gap: 24px; }
  .gift__card { padding: 24px 18px; }
  .gift__qr-box { width: 190px; height: 190px; }
  .gift__disclaimer { padding: 14px 16px; font-size: 11.5px; }
  .gallery { padding-block: 70px 85px; }
  .gallery__heading { margin-bottom: 24px; }
  .gallery h2 { font-size: 50px; }
  .carousel-slide {
    flex: 0 0 calc(100% - 36px);
    max-width: calc(100% - 36px);
    padding: 10px;
  }
  .carousel-slide__media {
    height: clamp(280px, 48vh, 380px);
  }
  .carousel-slide__title {
    font-size: 17px;
  }
  .carousel-btn {
    width: 38px;
    height: 38px;
  }
  .carousel-btn span {
    font-size: 24px;
  }
  .lightbox { padding: 56px 10px 12px; }
  .lightbox__layout { grid-template-columns: 38px minmax(0, 1fr) 38px; gap: 7px; }
  .lightbox__image { max-width: calc(100vw - 130px); max-height: calc(100dvh - 132px); }
  .lightbox__control { width: 38px; }
  .lightbox__close { top: -44px; right: 2px; }
  .lightbox__caption { font-size: 15px; }
  .closing { min-height: 425px; }
  .closing__date { letter-spacing: .8px; }
  .music-toggle { bottom: 18px; left: 18px; }
  .toast { bottom: 72px; right: 18px; }
}

@media (max-width: 390px) {
  .topline { padding-inline: 14px; }
  .topline__label { font-size: 7px; }
  .topline__actions { gap: 4px; }
  .share-button--top { gap: 3px; padding-inline: 6px; font-size: 9px; }
  .section-wrap { width: calc(100% - 36px); }
  .carousel-slide {
    flex: 0 0 calc(100% - 24px);
    max-width: calc(100% - 24px);
  }
  .carousel-slide__media {
    height: clamp(260px, 45vh, 340px);
  }
}

@media (prefers-reduced-motion: reduce) {
  *:not(.slideshow-slide):not(.slideshow-slide *):not(.wedding-slideshow *):not(.wedding-slideshow) { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  html.js .reveal { opacity: 1; transform: none; }
  .music-toggle.is-playing .music-toggle__icon { animation: none !important; }
  .wedding-carousel__track { transition: none !important; }
  .carousel-slide { transition: none !important; }
}


/* ================================================================
   CHẾ ĐỘ STORY CHUYỂN ĐỘNG (ANIMATED STORY MODE)
   ================================================================ */

body.is-story-mode {
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
  background: #0f1c16;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  touch-action: pan-y;
}

.story-ambient-bg {
  display: none;
}

@media (min-width: 640px) {
  body.is-story-mode .story-ambient-bg {
    display: block;
    position: fixed;
    inset: -40px;
    background-image: url('images/cover.webp');
    background-size: cover;
    background-position: center;
    filter: blur(60px) brightness(0.28) saturate(1.2);
    transform: scale(1.15);
    z-index: 0;
    pointer-events: none;
  }
}

.story-arrow {
  display: none;
}

@media (min-width: 640px) {
  body.is-story-mode .story-arrow {
    display: grid;
    place-items: center;
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid rgba(255, 255, 255, 0.28);
    color: #ffffff;
    font-size: 32px;
    line-height: 1;
    cursor: pointer;
    z-index: 40;
    transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), background 0.2s, box-shadow 0.2s;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    user-select: none;
  }

  body.is-story-mode .story-arrow:hover {
    background: rgba(255, 255, 255, 0.28);
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 14px 40px rgba(0, 0, 0, 0.55);
  }

  body.is-story-mode .story-arrow--prev {
    left: clamp(20px, calc(50vw - 320px), 160px);
  }

  body.is-story-mode .story-arrow--next {
    right: clamp(20px, calc(50vw - 320px), 160px);
  }
}

body.is-story-mode main.story-viewport {
  position: relative;
  z-index: 10;
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  max-width: 100vw;
  max-height: 100dvh;
  overflow: hidden;
  background: var(--paper);
  border-radius: 0;
  box-shadow: none;
  user-select: none;
}

@media (min-width: 520px) {
  body.is-story-mode main.story-viewport {
    max-width: 440px;
    height: min(92vh, 880px);
    max-height: 880px;
    border-radius: 30px;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.65), 0 0 0 1px rgba(255, 255, 255, 0.15);
  }
}

.story-top-bar {
  display: none;
}

body.is-story-mode .story-top-bar {
  display: block;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  padding: 14px 14px 12px;
  background: linear-gradient(180deg, rgba(16, 28, 23, 0.88) 0%, rgba(16, 28, 23, 0.5) 75%, transparent 100%);
  pointer-events: none;
}

.story-progress-container {
  display: flex;
  gap: 4px;
  width: 100%;
  height: 3px;
  margin-bottom: 10px;
}

.story-progress-seg {
  flex: 1;
  height: 100%;
  background: rgba(255, 255, 255, 0.28);
  border-radius: 3px;
  overflow: hidden;
  position: relative;
}

.story-progress-seg__fill {
  height: 100%;
  width: 0%;
  background: #ffffff;
  border-radius: 3px;
  box-shadow: 0 0 8px rgba(255, 255, 255, 0.7);
  transition: width 0.06s linear;
}

.story-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  color: #ffffff;
  pointer-events: auto;
}

.story-header__user {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
}

.story-header__avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1.5px solid var(--rose-soft);
  background: var(--green-dark);
  color: var(--paper);
  display: grid;
  place-items: center;
  font-family: var(--serif);
  font-size: 13px;
  font-weight: 600;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

.story-header__info {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
  min-width: 0;
}

.story-header__title {
  font-family: var(--serif);
  font-size: 14px;
  font-weight: 600;
  color: #ffffff;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.6);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.story-header__badge {
  font-size: 9px;
  color: var(--rose-soft);
  letter-spacing: 0.6px;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}

.story-header__actions {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.story-ctrl-btn {
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.28);
  color: #ffffff;
  border-radius: 20px;
  padding: 5px 9px;
  font-size: 11px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  transition: background 0.2s, transform 0.15s;
  user-select: none;
}

.story-ctrl-btn:hover {
  background: rgba(255, 255, 255, 0.35);
  transform: scale(1.05);
}

.story-ctrl-btn:active {
  transform: scale(0.96);
}

.story-ctrl-btn--mode {
  padding: 5px 10px;
  font-weight: 500;
  font-size: 10px;
  letter-spacing: 0.3px;
  background: rgba(229, 180, 170, 0.25);
  border-color: rgba(229, 180, 170, 0.5);
  color: #fcece8;
}

.story-ctrl-btn--mode:hover {
  background: rgba(229, 180, 170, 0.4);
}

.story-tap-zone {
  display: none;
}

body.is-story-mode .story-tap-zone {
  display: block;
  position: absolute;
  top: 65px;
  bottom: 0;
  width: 25%;
  z-index: 25;
  cursor: pointer;
}

body.is-story-mode .story-tap-zone--left {
  left: 0;
}

body.is-story-mode .story-tap-zone--right {
  right: 0;
}

body.is-story-mode .story-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateX(100%) scale(0.96);
  transition: transform 0.45s cubic-bezier(0.25, 1, 0.5, 1), opacity 0.4s ease, visibility 0.45s;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  box-sizing: border-box;
  padding: 72px 18px 44px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  z-index: 1;
}

body.is-story-mode .story-slide.is-active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(0) scale(1);
  z-index: 10;
}

body.is-story-mode .story-slide.is-prev {
  transform: translateX(-100%) scale(0.96);
  opacity: 0;
  visibility: hidden;
  z-index: 1;
}

body.is-story-mode .story-slide.is-next {
  transform: translateX(100%) scale(0.96);
  opacity: 0;
  visibility: hidden;
  z-index: 1;
}

@keyframes storyFadeUp {
  0% {
    opacity: 0;
    transform: translateY(24px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

body.is-story-mode .story-slide.is-active .reveal,
body.is-story-mode .story-slide.is-active h1,
body.is-story-mode .story-slide.is-active h2,
body.is-story-mode .story-slide.is-active .cover__content {
  animation: storyFadeUp 0.55s cubic-bezier(0.16, 1, 0.3, 1) both;
}

body.is-story-mode .cover.story-slide {
  padding: 0;
  justify-content: space-between;
  text-align: center;
  height: 100%;
  min-height: 0;
}

body.is-story-mode .cover__photo {
  animation: storyKenBurns 20s infinite alternate ease-in-out;
}

@keyframes storyKenBurns {
  0% { transform: scale(1); }
  100% { transform: scale(1.08); }
}

body.is-story-mode .cover .topline {
  margin-top: 54px;
  padding: 10px 16px;
  position: relative;
  z-index: 15;
}

body.is-story-mode .cover__content {
  position: relative;
  z-index: 15;
  padding-inline: 16px;
  margin-block: auto;
}

body.is-story-mode .cover h1 {
  font-size: clamp(54px, 14vw, 76px);
  line-height: 0.94;
}

body.is-story-mode .story-swipe-prompt {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 11px;
  letter-spacing: 0.8px;
  color: var(--green-dark);
  font-weight: 600;
  margin-bottom: 24px;
  position: relative;
  z-index: 15;
  animation: storyPulsePrompt 2.2s infinite ease-in-out;
}

@keyframes storyPulsePrompt {
  0%, 100% { transform: translateX(0); opacity: 0.85; }
  50% { transform: translateX(6px); opacity: 1; }
}

body.is-story-mode .story-swipe-arrow {
  color: var(--rose);
  font-size: 14px;
}

body.is-story-mode .invitation.story-slide {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 74px 18px 40px;
  min-height: 0;
}

body.is-story-mode .invitation__side {
  display: none;
}

body.is-story-mode .invitation__body {
  width: 100%;
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(46, 77, 67, 0.16);
  border-radius: 20px;
  padding: 28px 20px 24px;
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.06);
  text-align: center;
}

body.is-story-mode .invitation__body h2 {
  font-size: clamp(34px, 8vw, 44px);
}

body.is-story-mode .invitation__copy {
  margin: 18px auto 0;
  font-size: 12.5px;
  line-height: 1.9;
}

body.is-story-mode .invitation .signature {
  margin-top: 22px;
  align-items: center;
}

body.is-story-mode .invitation__stamp {
  margin-top: 18px;
  width: 80px;
  height: 80px;
}

body.is-story-mode .invitation__stamp span {
  font-size: 22px;
}

body.is-story-mode .date-band.story-slide {
  padding: 72px 18px 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #1e332a;
}

body.is-story-mode .date-band__inner {
  padding: 20px 0;
  width: 100%;
}

body.is-story-mode .date-band h2 {
  font-size: clamp(36px, 9vw, 52px);
}

body.is-story-mode .countdown {
  gap: 12px;
  margin: 28px 0 24px;
}

body.is-story-mode .countdown div {
  min-width: 50px;
  padding: 8px 4px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 10px;
}

body.is-story-mode .countdown strong {
  font-size: 32px;
}

body.is-story-mode .schedule.story-slide {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: stretch;
  padding: 72px 18px 40px;
  gap: 20px;
}

body.is-story-mode .schedule__intro {
  text-align: center;
  max-width: 100%;
}

body.is-story-mode .schedule h2 {
  font-size: clamp(34px, 8vw, 44px);
}

body.is-story-mode .timeline {
  margin-top: 10px;
  padding: 0;
}

body.is-story-mode .timeline::before {
  left: 64px;
}

body.is-story-mode .timeline__item {
  grid-template-columns: 56px 1fr;
  gap: 18px;
  padding-bottom: 22px;
}

body.is-story-mode .timeline__time {
  font-size: 15px;
}

body.is-story-mode .timeline__card {
  padding: 12px 14px;
  border-radius: 12px;
}

body.is-story-mode .timeline__title {
  font-size: 16px;
}

body.is-story-mode .venue.story-slide {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: stretch;
  padding: 72px 18px 40px;
  gap: 18px;
}

body.is-story-mode .venue__photo-wrap {
  border-radius: 16px;
  overflow: hidden;
  max-height: 220px;
}

body.is-story-mode .venue__details {
  background: rgba(255, 255, 255, 0.78);
  border-radius: 18px;
  padding: 22px 18px;
  text-align: center;
}

body.is-story-mode .venue h2 {
  font-size: clamp(32px, 8vw, 40px);
}

body.is-story-mode .rsvp.story-slide,
body.is-story-mode .wishes.story-slide {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: stretch;
  padding: 72px 18px 40px;
  gap: 16px;
}

body.is-story-mode .rsvp__intro,
body.is-story-mode .wishes__heading {
  text-align: center;
}

body.is-story-mode .rsvp h2,
body.is-story-mode .wishes h2 {
  font-size: clamp(32px, 8vw, 40px);
}

body.is-story-mode .rsvp__form,
body.is-story-mode .wishes__form-wrap {
  background: rgba(255, 255, 255, 0.85);
  border-radius: 18px;
  padding: 20px 16px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

body.is-story-mode .gallery.story-slide {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: stretch;
  padding: 72px 18px 40px;
}

body.is-story-mode .gallery__heading {
  text-align: center;
  margin-bottom: 14px;
}

body.is-story-mode .gallery h2 {
  font-size: clamp(32px, 8vw, 40px);
}

body.is-story-mode .wedding-slideshow__stage {
  height: clamp(260px, 48vh, 380px);
}

body.is-story-mode .gift.story-slide {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: stretch;
  padding: 72px 18px 40px;
  gap: 16px;
}

body.is-story-mode .gift__heading {
  text-align: center;
}

body.is-story-mode .gift h2 {
  font-size: clamp(32px, 8vw, 40px);
}

body.is-story-mode .gift__grid {
  grid-template-columns: 1fr;
  gap: 16px;
}

body.is-story-mode .closing.story-slide {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 72px 18px 40px;
  min-height: 0;
  text-align: center;
}

body.is-story-mode .closing h2 {
  font-size: clamp(36px, 8vw, 48px);
}

body.is-story-mode .closing__names {
  margin: 18px 0;
}

body.is-story-mode .share-button--replay {
  background: var(--rose);
  border-color: var(--rose);
  color: #ffffff;
  font-weight: 500;
}

body.is-story-mode .share-button--replay:hover {
  background: #c9828d;
}

.floating-story-toggle {
  position: fixed;
  bottom: 24px;
  right: 20px;
  z-index: 90;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, var(--green-dark), #1c352a);
  color: #ffffff;
  border: 1px solid rgba(229, 180, 170, 0.5);
  border-radius: 30px;
  padding: 11px 18px;
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.3px;
  cursor: pointer;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.28), 0 2px 8px rgba(0, 0, 0, 0.16);
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.2s;
  user-select: none;
}

.floating-story-toggle:hover {
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.36);
  border-color: var(--rose-soft);
}

.floating-story-toggle:active {
  transform: translateY(0) scale(0.98);
}

.story-sparkle {
  color: #f7d58b;
  font-size: 15px;
  animation: storySparkleSpin 3s infinite linear;
}

@keyframes storySparkleSpin {
  0% { transform: scale(1) rotate(0deg); }
  50% { transform: scale(1.2) rotate(180deg); }
  100% { transform: scale(1) rotate(360deg); }
}

body.is-scroll-mode .story-top-bar,
body.is-scroll-mode .story-tap-zone,
body.is-scroll-mode .story-arrow,
body.is-scroll-mode .story-ambient-bg {
  display: none !important;
}

body.is-scroll-mode .story-slide {
  position: static !important;
  opacity: 1 !important;
  visibility: visible !important;
  transform: none !important;
  pointer-events: auto !important;
  display: block;
}

body.is-scroll-mode .invitation.story-slide {
  display: grid;
}

body.is-scroll-mode .schedule.story-slide {
  display: grid;
}

body.is-scroll-mode .closing.story-slide {
  display: grid;
}


/* ================================================================
   LUỒNG BÌNH LUẬN & LỜI CHÚC NỔI CHẠY MỜ DẦN (FLOATING WISHES STREAM)
   ================================================================ */

.story-comments-stream {
  display: none;
}

body.is-story-mode .story-comments-stream {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: flex-start;
  gap: 7px;
  position: absolute;
  bottom: 22px;
  left: 14px;
  right: 14px;
  max-width: calc(100% - 28px);
  max-height: 230px;
  overflow: hidden;
  z-index: 35;
  pointer-events: none;
  transition: opacity 0.35s ease, transform 0.35s ease;
}

/* Ẩn khi đang gõ biểu mẫu hoặc người dùng chủ động tắt */
body.is-story-mode.is-typing-mode .story-comments-stream,
body.is-story-mode .story-comments-stream.is-hidden {
  opacity: 0 !important;
  pointer-events: none !important;
  visibility: hidden;
}

/* Bong bóng từng bình luận lời chúc */
.story-comment-bubble {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  max-width: 92%;
  background: rgba(16, 28, 22, 0.78);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 20px;
  padding: 5px 12px 5px 6px;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.35);
  pointer-events: auto;
  user-select: none;
  transform-origin: left bottom;
  transition: opacity 0.4s ease, transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), max-height 0.35s ease, margin 0.35s ease, padding 0.35s ease;
  overflow: hidden;
}

/* Hiệu ứng trượt vào của bình luận mới */
@keyframes commentSlideUp {
  0% {
    opacity: 0;
    transform: translateY(22px) scale(0.9);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.story-comment-bubble.is-entering {
  animation: commentSlideUp 0.42s cubic-bezier(0.16, 1, 0.3, 1) both;
}

/* Hiệu ứng mờ dần và trượt lên khi bình luận cũ rời đi */
.story-comment-bubble.is-fading-out {
  opacity: 0 !important;
  transform: translateY(-16px) scale(0.85) !important;
  max-height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  border-width: 0 !important;
}

/* Avatar biểu tượng của khách */
.story-comment-bubble__avatar {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--rose), #d88995);
  color: #ffffff;
  display: grid;
  place-items: center;
  font-size: 11px;
  font-weight: 700;
  flex-shrink: 0;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
}

/* Nội dung bình luận */
.story-comment-bubble__body {
  display: flex;
  align-items: baseline;
  gap: 4px;
  min-width: 0;
  line-height: 1.3;
}

.story-comment-bubble__author {
  font-weight: 600;
  font-size: 11px;
  color: #fce8a8;
  white-space: nowrap;
  flex-shrink: 0;
}

.story-comment-bubble__text {
  font-size: 11.5px;
  color: rgba(255, 255, 255, 0.94);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: clamp(160px, 45vw, 260px);
}

/* Bậc thang mờ dần (Gradual Opacity Ladder) cho 3-4 bình luận */
/* Bình luận thứ 4 (dưới cùng, mới nhất): Opacity 1.0 */
.story-comments-stream .story-comment-bubble:nth-last-child(1) {
  opacity: 1;
  transform: scale(1);
}

/* Bình luận thứ 3: Opacity 0.88 */
.story-comments-stream .story-comment-bubble:nth-last-child(2) {
  opacity: 0.88;
  transform: scale(0.98);
}

/* Bình luận thứ 2: Opacity 0.68 */
.story-comments-stream .story-comment-bubble:nth-last-child(3) {
  opacity: 0.68;
  transform: scale(0.95);
}

/* Bình luận thứ 1 (trên cùng, chuẩn bị mờ dần): Opacity 0.42 */
.story-comments-stream .story-comment-bubble:nth-last-child(4) {
  opacity: 0.42;
  transform: scale(0.92);
}

/* Bất kỳ bình luận nào vượt quá 4 sẽ nhanh chóng mờ */
.story-comments-stream .story-comment-bubble:nth-last-child(n+5) {
  opacity: 0.15;
  transform: scale(0.88);
}

/* Nút bật/tắt bình luận trong Header */
.story-ctrl-btn--wishes.is-disabled {
  opacity: 0.55;
  text-decoration: line-through;
}

body.is-scroll-mode .story-comments-stream {
  display: none !important;
}


/* Khối chi tiết tham dự (ẩn/hiện có animation) */
.rsvp-attending-details {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-top: 18px;
  padding: 18px;
  background: rgba(46, 77, 67, 0.04);
  border: 1px dashed rgba(46, 77, 67, 0.22);
  border-radius: 12px;
  transition: all 0.3s ease;
}

.rsvp-attending-details[hidden] {
  display: none !important;
}

/* Lựa chọn ngày tham dự (Thứ 7 / Chủ Nhật / Cả hai) */
.rsvp__day-choices {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

@media (min-width: 520px) {
  .rsvp__day-choices {
    grid-template-columns: 1fr 1fr 1fr;
  }
}

.rsvp__day-choice {
  position: relative;
  display: flex;
  cursor: pointer;
}

.rsvp__day-choice input[type="radio"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.rsvp__day-box {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 5px;
  width: 100%;
  min-height: 74px;
  padding: 12px 14px;
  background: #ffffff;
  border: 1px solid rgba(32, 59, 51, 0.18);
  border-radius: 8px;
  transition: all 0.2s ease;
}

.rsvp__day-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.35;
}

.rsvp__day-sub {
  font-size: 11px;
  color: var(--ink-soft);
  line-height: 1.4;
}

.rsvp__day-choice:hover .rsvp__day-box {
  border-color: rgba(35, 61, 53, 0.45);
}

.rsvp__day-choice input[type="radio"]:checked + .rsvp__day-box {
  border-color: var(--green-dark);
  background: rgba(35, 61, 53, 0.05);
  box-shadow: inset 0 0 0 1.5px var(--green-dark);
}

.rsvp__day-choice input[type="radio"]:checked + .rsvp__day-box .rsvp__day-title {
  color: var(--green-dark);
}


/* ================================================================
   MÀN CHÀO KIỂU MỞ RÈM (WEDDING CURTAIN WELCOME OVERLAY)
   ================================================================ */

body.curtain-closed {
  overflow: hidden !important;
  touch-action: none;
}

.wedding-curtain {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  user-select: none;
  -webkit-user-select: none;
  perspective: 1000px;
}

.wedding-curtain.is-hidden {
  display: none !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

/* 2 cánh rèm nhung lụa đỏ sang trọng */
.curtain-panel {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 50.5%;
  height: 100%;
  z-index: 1;
  transition: transform 1.25s cubic-bezier(0.77, 0, 0.175, 1);
  will-change: transform;
  overflow: hidden;
}

.curtain-panel--left {
  left: 0;
  transform: translateX(0);
  background: 
    radial-gradient(ellipse at 10% 50%, rgba(255, 255, 255, 0.08) 0%, transparent 60%),
    repeating-linear-gradient(
      to right,
      #4a0e14 0px,
      #6c1821 24px,
      #8c222d 48px,
      #5d131b 72px,
      #4a0e14 96px
    );
  box-shadow: inset -15px 0 35px rgba(0, 0, 0, 0.7);
  border-right: 3px solid #d4af37;
}

.curtain-panel--right {
  right: 0;
  transform: translateX(0);
  background: 
    radial-gradient(ellipse at 90% 50%, rgba(255, 255, 255, 0.08) 0%, transparent 60%),
    repeating-linear-gradient(
      to left,
      #4a0e14 0px,
      #6c1821 24px,
      #8c222d 48px,
      #5d131b 72px,
      #4a0e14 96px
    );
  box-shadow: inset 15px 0 35px rgba(0, 0, 0, 0.7);
  border-left: 3px solid #d4af37;
}

/* Tua rua vàng kim & viền chỉ vàng dọc mép giữa của 2 cánh rèm */
.curtain-tassel {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 8px;
  background: repeating-linear-gradient(
    to bottom,
    #d4af37 0px,
    #f8e79b 5px,
    #997300 10px,
    transparent 10px,
    transparent 14px
  );
  opacity: 0.9;
  z-index: 2;
}

.curtain-panel--left .curtain-tassel {
  right: 1px;
}

.curtain-panel--right .curtain-tassel {
  left: 1px;
}

/* Ánh bóng lụa mềm mại trên rèm */
.curtain-sheen {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.07) 0%,
    transparent 35%,
    rgba(0, 0, 0, 0.3) 100%
  );
  pointer-events: none;
}

/* Khi bấm mở rèm: 2 cánh trượt mượt mà sang 2 bên */
.wedding-curtain.is-opening .curtain-panel--left {
  transform: translateX(-102%);
}

.wedding-curtain.is-opening .curtain-panel--right {
  transform: translateX(102%);
}

/* Thiệp mời trung tâm phong cách hoàng gia */
.curtain-card {
  position: relative;
  z-index: 10;
  width: calc(100% - 48px);
  max-width: 390px;
  margin: 0 auto;
  padding: 38px 24px 34px;
  text-align: center;
  background: #fbf9f4;
  border-radius: 24px;
  box-shadow: 
    0 25px 70px rgba(0, 0, 0, 0.55),
    0 0 0 1px rgba(212, 175, 55, 0.45),
    inset 0 0 0 6px #fbf9f4,
    inset 0 0 0 8px rgba(212, 175, 55, 0.4);
  transition: opacity 0.55s ease, transform 0.65s cubic-bezier(0.25, 1, 0.5, 1);
  will-change: opacity, transform;
}

.wedding-curtain.is-opening .curtain-card {
  opacity: 0;
  transform: scale(0.88) translateY(-20px);
  pointer-events: none;
}

/* Con dấu sáp cưới Wax Seal */
.curtain-card__seal {
  display: flex;
  justify-content: center;
  margin-bottom: 12px;
}

.curtain-wax-seal {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #b93b4a, #781c25 70%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #f7e7a9;
  font-family: var(--script, 'Great Vibes', cursive);
  font-size: 24px;
  font-weight: 700;
  box-shadow: 
    0 6px 18px rgba(120, 28, 37, 0.4),
    inset 0 2px 4px rgba(255, 255, 255, 0.3),
    inset 0 -2px 6px rgba(0, 0, 0, 0.4);
  border: 2px dashed rgba(247, 231, 169, 0.6);
  letter-spacing: 1px;
}

.curtain-card__sub {
  font-family: var(--serif, 'Cormorant Garamond', serif);
  font-size: 13px;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: #8c7247;
  margin: 0 0 8px 0;
  font-weight: 600;
}

.curtain-card__title {
  font-family: var(--script, 'Great Vibes', cursive);
  font-size: 38px;
  line-height: 1.15;
  color: #3d2314;
  margin: 0 0 8px 0;
  font-weight: 400;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.curtain-card__amp {
  font-style: italic;
  font-family: var(--serif, serif);
  font-size: 24px;
  color: #a44f59;
}

.curtain-card__divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin: 12px 0 14px;
}

.curtain-div-line {
  display: inline-block;
  width: 45px;
  height: 1px;
  background: rgba(164, 79, 89, 0.35);
}

.curtain-div-heart {
  color: #a44f59;
  font-size: 13px;
}

.curtain-card__date {
  font-family: var(--serif, serif);
  font-size: 19px;
  letter-spacing: 3px;
  color: #203b33;
  margin: 0 0 8px 0;
  font-weight: 600;
}

.curtain-card__message {
  font-size: 14px;
  line-height: 1.5;
  color: #666;
  margin: 0 0 24px 0;
  padding: 0 10px;
}

/* NÚT MỞ THIỆP Ở GIỮA MÀN HÌNH */
.curtain-open-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  max-width: 270px;
  padding: 15px 28px;
  background: linear-gradient(135deg, #a44f59 0%, #7d2632 100%);
  color: #ffffff;
  border: none;
  border-radius: 999px;
  font-family: var(--sans, sans-serif);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 1.5px;
  cursor: pointer;
  box-shadow: 
    0 10px 25px rgba(164, 79, 89, 0.45),
    0 0 0 2px rgba(255, 255, 255, 0.25);
  transition: transform 0.25s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.25s ease;
  overflow: visible;
}

.curtain-open-btn:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 
    0 14px 32px rgba(164, 79, 89, 0.6),
    0 0 0 3px rgba(212, 175, 55, 0.5);
}

.curtain-open-btn:active {
  transform: translateY(1px) scale(0.98);
}

/* Vòng sáng xung quanh nút */
.curtain-open-btn__pulse {
  position: absolute;
  inset: -6px;
  border-radius: 999px;
  border: 2px solid rgba(212, 175, 55, 0.6);
  animation: curtainBtnPulse 2.2s infinite ease-out;
  pointer-events: none;
}

@keyframes curtainBtnPulse {
  0% {
    transform: scale(0.96);
    opacity: 0.8;
  }
  50% {
    transform: scale(1.06);
    opacity: 0.3;
  }
  100% {
    transform: scale(1.14);
    opacity: 0;
  }
}

.curtain-open-btn__icon {
  font-size: 19px;
}

.curtain-open-btn__sparkle {
  color: #f7e7a9;
  font-size: 14px;
}

.curtain-card__hint {
  font-size: 12.5px;
  color: #8c7f73;
  margin: 16px 0 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.curtain-card__hint .hint-icon {
  color: #a44f59;
}

/* ================================================================
   1. HIỆU ỨNG LƯỚT ĐẾN ĐÂU NỘI DUNG LẦN LƯỢT XUẤT HIỆN (SCROLL REVEAL)
   ================================================================ */

/* Mặc định phần tử chưa lướt tới sẽ ẩn và dịch xuống 40px */
.reveal {
  opacity: 0 !important;
  transform: translateY(40px) !important;
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.85s cubic-bezier(0.16, 1, 0.3, 1) !important;
  will-change: opacity, transform;
}

/* Khi lướt tới: trượt lên mượt mà và hiển thị rõ ràng */
.reveal.is-visible {
  opacity: 1 !important;
  transform: translateY(0) !important;
}

/* 1.1. HIỆU ỨNG RIÊNG CHO ẢNH CƯỚI: Zoom nhẹ + trượt nổi bật */
.editorial-photo-frame.reveal {
  opacity: 0 !important;
  transform: translateY(45px) scale(0.92) !important;
  transition: opacity 0.85s ease-out, transform 0.9s cubic-bezier(0.16, 1, 0.3, 1) !important;
  will-change: opacity, transform;
}

.editorial-photo-frame.reveal.is-visible {
  opacity: 1 !important;
  transform: translateY(0) scale(1) !important;
}

/* 1.2. HIỆU ỨNG RIÊNG CHO CÂU CHUYỆN / LỜI DẪN (Chậm hơn ảnh 0.15s) */
.editorial-story-body.reveal {
  opacity: 0 !important;
  transform: translateY(35px) !important;
  transition: opacity 0.8s ease-out 0.15s, transform 0.85s cubic-bezier(0.16, 1, 0.3, 1) 0.15s !important;
  will-change: opacity, transform;
}

.editorial-story-body.reveal.is-visible {
  opacity: 1 !important;
  transform: translateY(0) !important;
}

/* 1.3. HIỆU ỨNG CHO TIÊU ĐỀ & TIÊU ĐỀ CHƯƠNG */
.editorial-header.reveal,
.editorial-card.reveal {
  opacity: 0 !important;
  transform: translateY(35px) !important;
  transition: opacity 0.75s ease-out, transform 0.8s cubic-bezier(0.16, 1, 0.3, 1) !important;
  will-change: opacity, transform;
}

.editorial-header.reveal.is-visible,
.editorial-card.reveal.is-visible {
  opacity: 1 !important;
  transform: translateY(0) !important;
}

/* 1.4. HIỆU ỨNG RIÊNG CHO DÒNG THỜI GIAN (TIMELINE): Trượt ngang từ bên cạnh với độ trễ so le từng mốc giờ */
.timeline__item.reveal {
  opacity: 0 !important;
  transform: translateX(-35px) !important;
  transition: opacity 0.75s ease-out, transform 0.8s cubic-bezier(0.16, 1, 0.3, 1) !important;
  will-change: opacity, transform;
}

.timeline__item.reveal.is-visible {
  opacity: 1 !important;
  transform: translateX(0) !important;
}

.timeline__item:nth-child(1).reveal { transition-delay: 0.06s !important; }
.timeline__item:nth-child(2).reveal { transition-delay: 0.20s !important; }
.timeline__item:nth-child(3).reveal { transition-delay: 0.34s !important; }
.timeline__item:nth-child(4).reveal { transition-delay: 0.48s !important; }

/* 1.5. HIỆU ỨNG CHO THẺ NHÀ TRAI VÀ NHÀ GÁI */
.venue-card.reveal {
  opacity: 0 !important;
  transform: translateY(35px) !important;
  transition: opacity 0.8s ease-out, transform 0.85s cubic-bezier(0.16, 1, 0.3, 1) !important;
  will-change: opacity, transform;
}

.venue-card.reveal.is-visible {
  opacity: 1 !important;
  transform: translateY(0) !important;
}

.venue-card--groom.reveal { transition-delay: 0.1s !important; }
.venue-card--bride.reveal { transition-delay: 0.26s !important; }

/* ================================================================
   2. BỎ MỤC NEXT TRANG TRƯỚC VÀ SAU (HIDE PREV / NEXT NAVIGATION)
   ================================================================ */
.wishes__pagination,
.slideshow-nav,
.slideshow-nav--prev,
.slideshow-nav--next {
  display: none !important;
}

/* ================================================================
   3. GIAO DIỆN GOOGLE MAP CHO NHÀ TRAI VÀ NHÀ GÁI
   ================================================================ */
.venue__intro-sub {
  font-size: 14px;
  line-height: 1.6;
  color: var(--ink-soft);
  max-width: 480px;
  margin: 0 auto 24px;
  text-align: center;
}

.venue__cards-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  margin-top: 10px;
  text-align: left;
}

.venue-card {
  background: #ffffff;
  border: 1px solid rgba(46, 77, 67, 0.14);
  border-radius: 18px;
  padding: 22px 20px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.04);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.venue-card--groom {
  border-top: 4px solid var(--green);
}

.venue-card--bride {
  border-top: 4px solid var(--rose);
}

.venue-card__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.venue-card__role {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1px;
  color: var(--green-dark);
}

.venue-card--bride .venue-card__role {
  color: var(--rose);
}

.venue-card__badge {
  font-size: 11px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(46, 77, 67, 0.08);
  color: var(--green-dark);
  letter-spacing: 0.5px;
}

.venue-card--bride .venue-card__badge {
  background: rgba(164, 79, 89, 0.1);
  color: var(--rose);
}

.venue-card__title {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 600;
  color: var(--ink);
  margin: 0 0 10px 0;
}

.venue-card__time {
  font-size: 13.5px;
  color: var(--ink);
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}

.venue-card__address {
  font-style: normal;
  font-size: 13px;
  line-height: 1.5;
  color: var(--ink-soft);
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-bottom: 18px;
  flex-grow: 1;
}

.venue-card__action {
  margin-top: auto;
}

.btn--map {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 12px 16px;
  font-size: 13.5px;
  font-weight: 600;
  border-radius: 10px;
  text-decoration: none;
}

.btn--map-bride {
  background: var(--rose) !important;
  border-color: var(--rose) !important;
}

.btn--map-bride:hover {
  background: #8b3c45 !important;
}

/* ================================================================
   4. CĂN GIỮA ĐOẠN XÁC NHẬN THAM DỰ (RSVP CENTER-ALIGNED)
   ================================================================ */

.page-rsvp {
  text-align: center !important;
}

.page-rsvp .editorial-divider {
  justify-content: center !important;
}

.page-rsvp .rsvp__intro {
  text-align: center !important;
  margin-inline: auto !important;
  max-width: 520px !important;
}

.page-rsvp .rsvp__form {
  text-align: center !important;
  margin-inline: auto !important;
  max-width: 540px !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
}

.page-rsvp .rsvp__form .form-group {
  width: 100% !important;
  text-align: center !important;
}

.page-rsvp .form-label {
  text-align: center !important;
  display: block !important;
  margin-bottom: 10px !important;
  font-weight: 600 !important;
}

.page-rsvp .form-input {
  text-align: center !important;
  max-width: 380px !important;
  margin-inline: auto !important;
}

.page-rsvp .form-select {
  text-align: center !important;
  text-align-last: center !important;
  max-width: 380px !important;
  margin-inline: auto !important;
}

.page-rsvp .rsvp__choices {
  justify-content: center !important;
  margin-inline: auto !important;
  max-width: 480px !important;
}

.page-rsvp .rsvp__choice-box {
  text-align: center !important;
  padding: 16px !important;
  align-items: center !important;
}

.page-rsvp .rsvp__choice-box::after {
  display: none !important;
}

.page-rsvp .rsvp__choice input[type="radio"]:checked + .rsvp__choice-box {
  border: 2px solid var(--green-dark) !important;
  background: rgba(35, 61, 53, 0.08) !important;
  box-shadow: 0 4px 15px rgba(35, 61, 53, 0.12) !important;
}

.page-rsvp .rsvp-attending-details {
  width: 100% !important;
  text-align: center !important;
}

.page-rsvp .rsvp__day-choices {
  justify-content: center !important;
  margin-inline: auto !important;
  max-width: 480px !important;
}

.page-rsvp .rsvp__day-box {
  text-align: center !important;
  align-items: center !important;
  padding: 14px 12px !important;
}

.page-rsvp .rsvp__submit {
  max-width: 320px !important;
  margin: 14px auto 0 !important;
}

.page-rsvp .rsvp__message {
  max-width: 420px !important;
  margin-inline: auto !important;
  text-align: center !important;
}


/* ================================================================
   TÙY BIẾN GIAO DIỆN TONE HỒNG HOA VĂN & SAVE THE DATE
   ================================================================ */

/* 1. NỀN TONE HỒNG HOA VĂN LÃNG MẠN (ROMANTIC PINK FLORAL BACKGROUND) */
body.editorial-body {
  background-color: #faecef !important;
  background-image: 
    radial-gradient(circle at 10% 15%, rgba(244, 194, 203, 0.45) 0%, transparent 45%),
    radial-gradient(circle at 90% 85%, rgba(240, 184, 195, 0.45) 0%, transparent 45%),
    url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23c85a6a' fill-opacity='0.045' fill-rule='evenodd'%3E%3Cpath d='M30 30c0-8.284-6.716-15-15-15S0 21.716 0 30s6.716 15 15 15 15-6.716 15-15zm0 0c0 8.284 6.716 15 15 15s15-6.716 15-15-6.716-15-15-15-15 6.716-15 15zm-15-6c3.314 0 6 2.686 6 6s-2.686 6-6 6-6-2.686-6-6 2.686-6 6-6zm30 0c3.314 0 6 2.686 6 6s-2.686 6-6 6-6-2.686-6-6 2.686-6 6-6zM15 0C6.716 0 0 6.716 0 15s6.716 15 15 15 15-6.716 15-15S23.284 0 15 0zm30 0c-8.284 0-15 6.716-15 15s6.716 15 15 15 15-6.716 15-15S53.284 0 45 0z'/%3E%3C/g%3E%3C/svg%3E") !important;
}

.editorial-main {
  background-color: #fff6f7 !important;
  background-image: 
    radial-gradient(circle at 15% 10%, rgba(255, 235, 239, 0.7) 0%, transparent 50%),
    radial-gradient(circle at 85% 90%, rgba(255, 230, 236, 0.7) 0%, transparent 50%),
    url("data:image/svg+xml,%3Csvg width='80' height='80' viewBox='0 0 80 80' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M40 12c1.8 8 8 14 16 16-8 1.8-14 8-16 16-1.8-8-8-14-16-16 8-1.8 14-8 16-16zm0 40c1.2 5.5 5.5 9.5 11 11-5.5 1.2-9.5 5.5-11 11-1.2-5.5-5.5-9.5-11-11 5.5-1.2 9.5-5.5 11-11z' fill='%23c85a6a' fill-opacity='0.035'/%3E%3C/svg%3E") !important;
  box-shadow: 0 0 75px rgba(184, 95, 108, 0.15) !important;
}

.editorial-nav {
  background: rgba(255, 246, 247, 0.94) !important;
  border-bottom: 1px solid rgba(184, 95, 108, 0.12) !important;
}

.editorial-meta-bar {
  background: #fff8f9 !important;
  border-bottom: 1px solid rgba(184, 95, 108, 0.12) !important;
  color: var(--rose) !important;
}

.editorial-card,
.venue-card,
.rsvp__form,
.wishes__form,
.wishes__list-wrap {
  background: #fffbfc !important;
  border-color: rgba(184, 95, 108, 0.16) !important;
  box-shadow: 0 10px 30px rgba(184, 95, 108, 0.06) !important;
}

.editorial-divider {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 12px !important;
  padding: 24px 20px !important;
  font-family: var(--serif) !important;
  font-size: 13px !important;
  letter-spacing: 2.5px !important;
  color: var(--rose) !important;
  text-transform: uppercase !important;
}

.editorial-divider__tag {
  white-space: nowrap !important;
  font-weight: 600 !important;
  color: #9c3b48 !important;
}

.editorial-divider__line {
  flex: 1 !important;
  max-width: 110px !important;
  height: 1px !important;
  background: rgba(184, 95, 108, 0.28) !important;
}

/* 2. TIÊU ĐỀ SAVE THE DATE CHỮ SCRIPT Ở GIỮA ẢNH ĐẦU & NGÀY TỔ CHỨC */
.cover-hero-center-badge {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 20px 30px 18px;
  background: rgba(255, 245, 247, 0.62);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: 26px;
  border: 1.5px solid rgba(255, 255, 255, 0.85);
  box-shadow: 
    0 16px 40px rgba(100, 30, 42, 0.22),
    0 0 0 1px rgba(212, 175, 55, 0.35);
  z-index: 5;
  width: max-content;
  max-width: 88%;
  pointer-events: none;
}

.cover-hero__script-title {
  font-family: var(--script, 'Great Vibes', cursive);
  font-size: clamp(44px, 11vw, 66px);
  line-height: 1.05;
  color: #4a151e;
  text-shadow: 0 1px 2px rgba(255, 255, 255, 0.85);
  margin-bottom: 4px;
}

.cover-hero__divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin: 6px 0 8px;
  width: 100%;
}

.cover-div-line {
  display: inline-block;
  width: 40px;
  height: 1px;
  background: rgba(164, 79, 89, 0.4);
}

.cover-div-heart {
  color: #a44f59;
  font-size: 13px;
}

.cover-hero__date-box {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.cover-hero__date-text {
  font-family: var(--serif, 'Cormorant Garamond', serif);
  font-size: clamp(20px, 5vw, 26px);
  font-weight: 700;
  letter-spacing: 3.5px;
  color: #203b33;
}

.cover-hero__lunar-text {
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #8c424d;
  font-weight: 600;
}

/* Ẩn date-pill cũ góc dưới ảnh để không trùng lặp */
.page-cover__date-pill {
  display: none !important;
}

/* 3. BỎ PHẦN PHÓNG TO ẢNH VÀ NÚT PAUSE */
.wedding-slideshow__actions,
[data-lightbox-trigger],
[data-slideshow-toggle],
.slideshow-action-btn {
  display: none !important;
}


/* ================================================================
   1. BACKGROUND HÌNH CÔ DÂU CHÚ RỂ CỐ ĐỊNH Ở NGOÀI KHI LƯỚT
   ================================================================ */
body.editorial-body {
  background-color: #2b1116 !important;
  background-image: 
    linear-gradient(rgba(35, 12, 18, 0.52), rgba(35, 12, 18, 0.62)),
    url("images/photo2.jpg?v=2") !important;
  background-attachment: fixed !important;
  background-position: center center !important;
  background-repeat: no-repeat !important;
  background-size: cover !important;
  overflow-x: hidden;
}

.editorial-main {
  box-shadow: 0 0 90px rgba(0, 0, 0, 0.45) !important;
}

/* ================================================================
   2. CĂN GIỮA TUYỆT ĐỐI TIÊU ĐỀ SAVE THE DATE TRÊN ẢNH ĐẦU
   ================================================================ */
.page-cover__photo-wrap {
  position: relative !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

.cover-hero-center-badge {
  position: absolute !important;
  inset: 0 !important;
  margin: auto !important;
  width: max-content !important;
  max-width: 86% !important;
  height: max-content !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  text-align: center !important;
  padding: 22px 28px 20px !important;
  background: rgba(255, 245, 247, 0.68) !important;
  backdrop-filter: blur(12px) !important;
  -webkit-backdrop-filter: blur(12px) !important;
  border-radius: 26px !important;
  border: 1.5px solid rgba(255, 255, 255, 0.9) !important;
  box-shadow: 0 16px 40px rgba(60, 15, 25, 0.28) !important;
  z-index: 5 !important;
  pointer-events: none !important;
  transform: none !important;
}

.cover-hero__script-title {
  font-family: var(--script, 'Great Vibes', cursive) !important;
  font-size: clamp(42px, 10vw, 62px) !important;
  line-height: 1.05 !important;
  color: #4a151e !important;
  text-shadow: 0 1px 2px rgba(255, 255, 255, 0.9) !important;
  margin: 0 auto 4px !important;
  text-align: center !important;
  display: block !important;
}

.cover-hero__divider {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 10px !important;
  margin: 6px auto 8px !important;
  width: 100% !important;
}

.cover-hero__date-box {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  text-align: center !important;
  gap: 3px !important;
  margin: 0 auto !important;
}

.cover-hero__date-text {
  font-family: var(--serif, 'Cormorant Garamond', serif) !important;
  font-size: clamp(20px, 5vw, 26px) !important;
  font-weight: 700 !important;
  letter-spacing: 3.5px !important;
  color: #203b33 !important;
  text-align: center !important;
  display: block !important;
}

.cover-hero__lunar-text {
  font-size: 11px !important;
  letter-spacing: 2px !important;
  text-transform: uppercase !important;
  color: #8c424d !important;
  font-weight: 600 !important;
  text-align: center !important;
  display: block !important;
}

/* ================================================================
   3. CĂN GIỮA PHẦN SAVE THE DATE & ĐẾM NGƯỢC (TRANG 6)
   ================================================================ */
.page-date {
  text-align: center !important;
  padding: 10px 0 60px !important;
  background: linear-gradient(180deg, #781c25 0%, #5a141b 100%) !important;
}

.page-date .editorial-divider {
  justify-content: center !important;
}

.page-date .date-band__inner {
  text-align: center !important;
  margin-inline: auto !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 20px 20px 10px !important;
}

.page-date h2 {
  text-align: center !important;
  margin: 0 auto 8px !important;
  font-family: var(--serif) !important;
  font-size: clamp(38px, 9vw, 56px) !important;
}

.page-date .date-band__sub {
  text-align: center !important;
  margin: 0 auto 24px !important;
}

.countdown-grid {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: clamp(10px, 3vw, 16px) !important;
  margin: 10px auto 0 !important;
  max-width: 480px !important;
}

.countdown-card {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  min-width: 68px !important;
  padding: 14px 10px !important;
  background: rgba(255, 255, 255, 0.12) !important;
  border: 1px solid rgba(255, 255, 255, 0.22) !important;
  border-radius: 14px !important;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15) !important;
  backdrop-filter: blur(6px) !important;
}

.countdown-num {
  font-family: var(--serif, serif) !important;
  font-size: clamp(26px, 6vw, 34px) !important;
  font-weight: 700 !important;
  color: #ffffff !important;
  line-height: 1 !important;
  margin-bottom: 4px !important;
}

.countdown-lbl {
  font-size: 10px !important;
  font-weight: 600 !important;
  letter-spacing: 1.5px !important;
  color: rgba(255, 255, 255, 0.85) !important;
  text-transform: uppercase !important;
}


/* ================================================================
   MŨI TÊN CHUYỂN ẢNH SANG TRÁI / PHẢI CHO BỘ SƯU TẬP 30 ẢNH
   ================================================================ */
.wedding-slideshow__stage {
  position: relative !important;
}

.slideshow-nav {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  position: absolute !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
  width: 46px !important;
  height: 46px !important;
  border-radius: 50% !important;
  background: rgba(255, 255, 255, 0.88) !important;
  backdrop-filter: blur(8px) !important;
  -webkit-backdrop-filter: blur(8px) !important;
  border: 1.5px solid rgba(184, 95, 108, 0.3) !important;
  color: #781c25 !important;
  font-size: 28px !important;
  line-height: 1 !important;
  cursor: pointer !important;
  z-index: 25 !important;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.18) !important;
  transition: all 0.25s cubic-bezier(0.2, 0.8, 0.2, 1) !important;
  user-select: none !important;
  -webkit-user-select: none !important;
  padding: 0 !important;
}

.slideshow-nav:hover {
  background: #ffffff !important;
  color: #a44f59 !important;
  transform: translateY(-50%) scale(1.1) !important;
  box-shadow: 0 8px 25px rgba(184, 95, 108, 0.35) !important;
  border-color: #a44f59 !important;
}

.slideshow-nav:active {
  transform: translateY(-50%) scale(0.95) !important;
}

.slideshow-nav--prev {
  left: 12px !important;
}

.slideshow-nav--next {
  right: 12px !important;
}

@media (max-width: 600px) {
  .slideshow-nav {
    width: 40px !important;
    height: 40px !important;
    font-size: 24px !important;
  }
  .slideshow-nav--prev {
    left: 8px !important;
  }
  .slideshow-nav--next {
    right: 8px !important;
  }
}
