/* Thiệp: mỗi mẫu một thế giới màu riêng (biến --i-* đặt inline theo mẫu). Dùng cho trang thiệp và khung xem thử. */
[hidden] { display: none !important; }
* { box-sizing: border-box; }
/* =================== THIỆP =================== */
.inv-root { position: absolute; inset: 0; overflow: hidden; background: var(--i-bg); color: var(--i-ink); font-family: var(--f-body); font-size: 15px; line-height: 1.6; }
.mode-guest .inv-root { position: fixed; }
.phone .inv-scroll { scrollbar-width: none; }
.phone .inv-scroll::-webkit-scrollbar { display: none; }
.inv-scroll { position: absolute; inset: 0; overflow-y: auto; overflow-x: hidden; -webkit-overflow-scrolling: touch; scroll-behavior: smooth; }
.inv-page { max-width: 480px; margin: 0 auto; background: var(--i-paper); min-height: 100%; position: relative; padding-bottom: env(safe-area-inset-bottom, 0px); }
.inv-root .sec { padding: 56px 28px; text-align: center; position: relative; display: flex; flex-direction: column; align-items: center; gap: 14px; }
.inv-root .sec.alt { background: var(--i-tint); }
.eyebrow { font-family: var(--f-body); font-size: 11px; letter-spacing: .32em; text-transform: uppercase; color: var(--i-accent); font-weight: 600; }
.inv-root h2 { font-family: var(--f-display); font-weight: var(--w-display, 600); font-size: 30px; line-height: 1.15; margin: 0; text-wrap: balance; color: var(--i-ink); }
.inv-root p { margin: 0; }
.orn { width: 120px; height: 14px; color: var(--i-accent); }
.mutedt { color: var(--i-muted); }

/* Hero */
.hero { padding: 40px 24px 48px !important; }
.frame { width: 100%; max-width: 340px; aspect-ratio: var(--frame-ar, 4 / 5); border-radius: var(--frame-r); overflow: hidden; position: relative; background: var(--i-tint); box-shadow: var(--frame-shadow, none); }
.frame img { width: 100%; height: 100%; object-fit: cover; display: block; }
.frame.ph { display: grid; place-items: center; background: radial-gradient(circle at 30% 20%, var(--i-paper), var(--i-tint) 70%); }
.frame.ph .mono { font-family: var(--f-script); font-size: 88px; color: var(--i-accent); line-height: 1; }
.frame-wrap { position: relative; width: 100%; max-width: 340px; }
.frame-wrap::after { content: ""; position: absolute; inset: -10px; border: 1px solid var(--i-accent); border-radius: var(--frame-r2, var(--frame-r)); pointer-events: none; opacity: .7; }
.names { font-family: var(--f-script); font-weight: var(--w-script, 400); font-size: calc(var(--names-size, 52px) * var(--ns, 1)); line-height: 1.05; color: var(--i-ink); display: flex; flex-direction: column; align-items: center; gap: 0; margin-top: 10px; }
.names .amp { font-size: .6em; color: var(--i-accent); font-family: var(--f-display); font-style: italic; }
.bigdate { font-family: var(--f-display); font-size: 26px; letter-spacing: .18em; color: var(--i-ink); font-variant-numeric: tabular-nums; }
.lunar { font-size: 13px; color: var(--i-muted); font-style: italic; }

/* Gia đình */
.fam { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; width: 100%; }
.fam > div { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.fam .fl { font-size: 11px; letter-spacing: .28em; color: var(--i-accent); font-weight: 600; margin-bottom: 4px; }
.fam .pp { font-family: var(--f-display); font-size: 16px; }
.fam .ad { font-size: 12px; color: var(--i-muted); margin-top: 4px; }
.couple { display: flex; flex-direction: column; gap: 6px; align-items: center; width: 100%; }
.couple .full { font-family: var(--f-script); font-size: 40px; line-height: 1.1; color: var(--i-ink); }
.couple .role { font-size: 11px; letter-spacing: .3em; text-transform: uppercase; color: var(--i-muted); }
.couple .amp { font-family: var(--f-display); font-style: italic; color: var(--i-accent); font-size: 26px; }
.quote { font-family: var(--f-display); font-style: italic; font-size: 17px; color: var(--i-muted); max-width: 32ch; line-height: 1.55; }

/* Sự kiện */
.evs { display: flex; flex-direction: column; gap: 16px; width: 100%; }
.ev { border: 1px solid var(--i-line); border-radius: var(--card-r, 16px); padding: 22px 18px; background: var(--i-paper); display: flex; flex-direction: column; align-items: center; gap: 8px; }
.ev .nm { font-family: var(--f-display); font-size: 22px; color: var(--i-accent); }
.ev .when { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 12px; width: 100%; font-variant-numeric: tabular-nums; }
.ev .when .side { font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--i-muted); border-block: 1px solid var(--i-line); padding: 6px 0; }
.ev .when .day { font-family: var(--f-display); font-size: 44px; line-height: 1; color: var(--i-ink); }
.ev .time { font-size: 13px; letter-spacing: .2em; color: var(--i-ink); font-weight: 600; }
.ev .place { font-weight: 600; }
.ev .addr { font-size: 13px; color: var(--i-muted); }
.ev .lnks { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; margin-top: 4px; }
.ibtn { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--i-accent); color: var(--i-accent); background: transparent; border-radius: var(--btn-r, 999px); padding: 8px 16px; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; text-decoration: none; cursor: pointer; font-family: var(--f-body); font-weight: 600; }
.ibtn.fill { background: var(--i-accent); color: var(--i-on-accent); }

/* Lịch + đếm ngược */
.cal { width: 100%; max-width: 330px; }
.cal .mh { font-family: var(--f-display); font-size: 20px; margin-bottom: 10px; }
.cal .g { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; font-variant-numeric: tabular-nums; }
.cal .g span { aspect-ratio: 1; display: grid; place-items: center; font-size: 13px; border-radius: 50%; position: relative; }
.cal .g .wd { font-size: 10px; letter-spacing: .1em; color: var(--i-muted); aspect-ratio: auto; padding-bottom: 6px; }
.cal .g .on { background: var(--i-accent); color: var(--i-on-accent); font-weight: 700; }
.cal .g .on::after { content: "♥"; position: absolute; top: -7px; right: -3px; font-size: 11px; color: var(--i-accent); }
.cd { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; width: 100%; max-width: 330px; }
.cd div { border: 1px solid var(--i-line); border-radius: 12px; padding: 10px 0; display: flex; flex-direction: column; font-variant-numeric: tabular-nums; }
.cd b { font-family: var(--f-display); font-size: 26px; line-height: 1.1; font-weight: 600; }
.cd small { font-size: 10px; letter-spacing: .18em; color: var(--i-muted); }

/* Album */
.album { width: calc(100% + 56px); margin: 0 -28px; display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px 28px 12px; scrollbar-width: none; }
.album::-webkit-scrollbar { display: none; }
.album button { flex: 0 0 72%; aspect-ratio: 3 / 4; border: 0; padding: 0; border-radius: var(--card-r, 16px); overflow: hidden; scroll-snap-align: center; cursor: zoom-in; background: var(--i-tint); }
.album img { width: 100%; height: 100%; object-fit: cover; display: block; }
.album-hint { font-size: 12px; color: var(--i-muted); }

/* Lịch trình */
.tl { width: 100%; max-width: 320px; display: flex; flex-direction: column; text-align: left; }
.tl div { display: grid; grid-template-columns: 70px 14px 1fr; gap: 12px; align-items: center; padding: 10px 0; position: relative; }
.tl b { font-family: var(--f-display); font-size: 20px; text-align: right; font-variant-numeric: tabular-nums; font-weight: 600; }
.tl i { width: 10px; height: 10px; border-radius: 50%; background: var(--i-accent); justify-self: center; box-shadow: 0 0 0 4px var(--i-tint); }
.tl div:not(:last-child)::after { content: ""; position: absolute; left: 88px; top: 50%; height: 100%; width: 1px; background: var(--i-line); }

.sw { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.sw span { width: 38px; height: 38px; border-radius: 50%; border: 2px solid var(--i-paper); box-shadow: 0 0 0 1px var(--i-line); }

/* RSVP */
.rsvp { width: 100%; display: flex; flex-direction: column; gap: 12px; text-align: left; }
.rsvp label { display: flex; flex-direction: column; gap: 5px; font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--i-muted); font-weight: 600; }
.rsvp input, .rsvp select, .rsvp textarea { font-family: var(--f-body); font-size: 15px; text-transform: none; letter-spacing: 0; padding: 10px 12px; border: 1px solid var(--i-line); border-radius: 10px; background: var(--i-paper); color: var(--i-ink); width: 100%; }
.seg { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.seg button { padding: 10px; border-radius: 10px; border: 1px solid var(--i-line); background: var(--i-paper); color: var(--i-ink); cursor: pointer; font-family: var(--f-body); font-size: 14px; }
.seg button.on { background: var(--i-accent); color: var(--i-on-accent); border-color: var(--i-accent); }
.out { border: 1px dashed var(--i-accent); border-radius: 10px; padding: 12px; font-size: 13px; line-height: 1.5; white-space: pre-wrap; user-select: all; text-align: left; }

/* Mừng cưới */
.gifts { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 12px; width: 100%; }
.gift { border: 1px solid var(--i-line); border-radius: var(--card-r, 16px); padding: 18px 10px; background: var(--i-paper); display: flex; flex-direction: column; align-items: center; gap: 8px; cursor: pointer; color: var(--i-ink); font-family: var(--f-body); }
.gift .env { width: 54px; height: 70px; border-radius: 6px; background: var(--i-accent); color: var(--i-on-accent); display: grid; place-items: center; font-family: "Noto Serif SC", var(--f-display); font-size: 24px; position: relative; overflow: hidden; }
.gift .env::before { content: ""; position: absolute; left: -10%; right: -10%; top: -40%; height: 70%; border-radius: 50%; background: rgba(255,255,255,.14); }
.gift small { font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--i-muted); }
.qrbox { width: 100%; display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 16px; border-radius: var(--card-r, 16px); background: #fff; color: #1d1d1d; }
.qrbox svg, .qrbox img { width: 200px; height: 200px; max-width: 100%; }
.qrbox .acct { font-weight: 700; font-size: 17px; letter-spacing: .06em; font-variant-numeric: tabular-nums; }

.foot { padding: 64px 28px 80px !important; }
.foot .ty { font-family: var(--f-script); font-size: 46px; color: var(--i-accent); line-height: 1.1; }
.credit { font-size: 10px; letter-spacing: .3em; text-transform: uppercase; color: var(--i-muted); margin-top: 18px; }
.ver { display: none; }

/* Nút nhạc, nút sửa */
.fab { position: absolute; right: calc(14px + env(safe-area-inset-right, 0px)); bottom: calc(16px + env(safe-area-inset-bottom, 0px)); width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--i-line); background: var(--i-paper); color: var(--i-accent); display: grid; place-items: center; cursor: pointer; z-index: 6; box-shadow: 0 6px 16px rgba(0,0,0,.15); }
.fab.playing svg { animation: spin 4s linear infinite; }
.back-ed { position: absolute; left: calc(12px + env(safe-area-inset-left, 0px)); top: calc(12px + env(safe-area-inset-top, 0px)); z-index: 40; border-radius: 999px; padding: 7px 14px; border: 0; background: rgba(0,0,0,.65); color: #fff; font-size: 13px; cursor: pointer; font-family: "Be Vietnam Pro", system-ui, sans-serif; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Xem ảnh lớn */
.lb { position: absolute; inset: 0; background: rgba(10,8,6,.92); z-index: 30; display: grid; place-items: center; }
.lb img { max-width: 94%; max-height: 82%; border-radius: 8px; }
.lb button { position: absolute; background: rgba(255,255,255,.14); color: #fff; border: 0; width: 44px; height: 44px; border-radius: 50%; font-size: 22px; cursor: pointer; }
.lb .cl { top: calc(14px + env(safe-area-inset-top, 0px)); right: 14px; }
.lb .pv { left: 10px; top: 50%; transform: translateY(-50%); }
.lb .nx { right: 10px; top: 50%; transform: translateY(-50%); }
.lb .ct { position: absolute; bottom: calc(18px + env(safe-area-inset-bottom, 0px)); color: #fff; font-size: 13px; letter-spacing: .1em; }

/* Bìa thiệp / phong bì */
.cover { position: absolute; inset: 0; z-index: 20; display: grid; place-items: center; perspective: 1200px; }
.cover .ca, .cover .cb { position: absolute; background: var(--cover-bg); transition: transform 1.1s cubic-bezier(.7,0,.2,1); }
.cover.doors .ca { inset: 0 50% 0 0; box-shadow: inset -1px 0 0 var(--cover-line); }
.cover.doors .cb { inset: 0 0 0 50%; box-shadow: inset 1px 0 0 var(--cover-line); }
.cover.split .ca { inset: 0 0 50% 0; }
.cover.split .cb { inset: 50% 0 0 0; }
.cover.fade .ca { inset: 0; }
.cover.fade .cb { display: none; }
.cover.rise .ca, .cover.flip .ca { inset: 0; }
.cover.rise .cb, .cover.flip .cb { display: none; }
.cover .cv-img { position: absolute; background-size: cover; background-position: center; }
.cover .ca .cv-img, .cover .cb .cv-img { inset: 0; }
.cover.doors .ca .cv-img { inset: 0 -100% 0 0; }
.cover.doors .cb .cv-img { inset: 0 0 0 -100%; }
.cover.split .ca .cv-img { inset: 0 0 -100% 0; }
.cover.split .cb .cv-img { inset: -100% 0 0 0; }
.cover .ca, .cover .cb { overflow: hidden; }
.cover .pat { position: absolute; inset: 0; opacity: .5; background-image: var(--cover-pat); background-size: var(--cover-pat-size, 64px 64px); }
.cover.doors .ca .pat, .cover.doors .cb .pat { inset: 18px; border: 1px solid var(--cover-line); }
.cv-card { position: relative; z-index: 2; width: min(86%, 340px); background: var(--cv-card-bg); color: var(--i-ink); border-radius: var(--card-r, 16px); padding: 30px 22px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 8px; box-shadow: 0 20px 50px rgba(0,0,0,.25); transition: opacity .5s, transform .6s; }
.cv-card .to { font-size: 10px; letter-spacing: .3em; text-transform: uppercase; color: var(--i-muted); }
.cv-card .guest-n { font-family: var(--f-display); font-size: 26px; line-height: 1.2; color: var(--i-accent); text-wrap: balance; font-weight: 600; }
.cv-card .cn { font-family: var(--f-script); font-size: 30px; line-height: 1.1; }
.cv-card .cd8 { font-size: 12px; letter-spacing: .3em; font-variant-numeric: tabular-nums; }
.seal { width: 64px; height: 64px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, var(--seal-hi), var(--seal)); color: var(--seal-ink); display: grid; place-items: center; font-family: var(--f-script); font-size: 26px; box-shadow: 0 4px 10px rgba(0,0,0,.25), inset 0 0 0 4px rgba(255,255,255,.12); margin-top: -62px; margin-bottom: 4px; }
.seal.hy { font-family: "Noto Serif SC", serif; font-size: 30px; }
.cover.opening .cv-card { opacity: 0; transform: scale(.92); }
.cover.opening.doors .ca { transform: translateX(-102%) rotateY(-20deg); }
.cover.opening.doors .cb { transform: translateX(102%) rotateY(20deg); }
.cover.opening.split .ca { transform: translateY(-102%); }
.cover.opening.split .cb { transform: translateY(102%); }
.cover.opening.fade .ca { transform: scale(1.15); opacity: 0; transition: transform 1s, opacity 1s; }
.cover.opening.rise .ca { transform: translateY(-102%); }
.cover.flip .cv-card { transition: transform .7s cubic-bezier(.6,0,.3,1), opacity .7s; }
.cover.opening.flip .cv-card { transform: rotateY(90deg) scale(.95); opacity: 0; }
.cover.opening.flip .ca { opacity: 0; transition: opacity .9s .3s; }
.cover.gone { display: none; }

/* Hoạ tiết bay */
.deco { position: absolute; inset: 0; pointer-events: none; z-index: 5; overflow: hidden; }
.deco i { position: absolute; top: -30px; display: block; animation: fall linear infinite; opacity: .8; }
.deco.stars i { top: auto; animation: twinkle ease-in-out infinite; }
@keyframes fall { to { transform: translate3d(var(--dx, 30px), 110vh, 0) rotate(var(--rot, 360deg)); } }
@keyframes twinkle { 0%, 100% { opacity: .15; transform: scale(.7); } 50% { opacity: 1; transform: scale(1); } }
@media (prefers-reduced-motion: reduce) {
  .deco { display: none; }
  .cover .ca, .cover .cb, .cv-card { transition: none; }
  .fab.playing svg { animation: none; }
  .inv-scroll { scroll-behavior: auto; }
}

/* ===== Biến thể từng mẫu ===== */
.t-tap-chi .names { text-transform: uppercase; letter-spacing: .04em; }
.t-tap-chi .names .amp { text-transform: none; }
.t-tap-chi .hero .mast { font-family: var(--f-display); font-size: 64px; font-weight: 700; letter-spacing: -.02em; line-height: .9; color: var(--i-accent); }
.t-tap-chi .couple .full { font-family: var(--f-display); font-weight: 700; font-size: 30px; text-transform: uppercase; letter-spacing: .02em; }
.t-thuy-mac .sec h2::after { content: ""; display: block; width: 28px; height: 28px; margin: 10px auto 0; background: var(--i-accent); border-radius: 4px; transform: rotate(4deg); opacity: .85; }
.t-dem-sao .ev, .t-dem-sao .gift, .t-dem-sao .cd div, .t-dem-sao .rsvp input, .t-dem-sao .rsvp select, .t-dem-sao .rsvp textarea, .t-dem-sao .seg button { background: rgba(255,255,255,.03); }
.mast { display: none; }
.t-tap-chi .mast { display: block; }

/* Số kiểu chữ in (Cormorant mặc định dùng số kiểu cũ) */
.bigdate, .ev .when .day, .cd b, .tl b, .cal, .cv-card .cd8, .tpl-sw .dt { font-variant-numeric: lining-nums tabular-nums; }

/* Sổ lưu bút + trạng thái gửi */
.wishes { width: 100%; display: flex; flex-direction: column; gap: 10px; text-align: left; max-height: 420px; overflow-y: auto; }
.wish { border: 1px solid var(--i-line); border-radius: 12px; padding: 12px 14px; background: var(--i-paper); }
.wish .wh { display: flex; justify-content: space-between; gap: 10px; align-items: baseline; }
.wish .wh b { font-family: var(--f-display); font-size: 17px; color: var(--i-accent); font-weight: 600; min-width: 0; overflow-wrap: anywhere; }
.wish .wh small { color: var(--i-muted); font-size: 11px; font-variant-numeric: tabular-nums; }
.wish p { margin: 4px 0 0; font-size: 14px; line-height: 1.55; overflow-wrap: anywhere; }
[data-rsvp-out], [data-wish-out] { font-size: 13px; text-align: center; color: var(--i-muted); }
[data-rsvp-out].sent, [data-wish-out].sent { color: var(--i-accent); font-weight: 600; font-size: 15px; }
button[disabled] { opacity: .6; }

/* Khung polaroid */
.frame-wrap.polaroid { background: #fffdf8; padding: 12px 12px 46px; transform: rotate(-2deg); box-shadow: 0 14px 30px rgba(0,0,0,.18); max-width: 330px; }
.frame-wrap.polaroid::after { display: none; }
.frame-wrap.polaroid .frame { max-width: none; }
/* Trái tim bay */
.deco i { text-align: center; }
/* Mẫu Chữ Lớn: tên và ngày cưới cỡ lớn */
.t-chu-lon .names { text-transform: uppercase; letter-spacing: .01em; line-height: .95; }
.t-chu-lon .names .amp { font-family: var(--f-body); font-style: normal; font-size: .32em; letter-spacing: .3em; margin: 6px 0; }
.t-chu-lon .bigdate { font-family: var(--f-script); font-size: 54px; letter-spacing: .02em; line-height: 1; }
.t-chu-lon .couple .full { font-family: var(--f-display); text-transform: uppercase; font-size: 30px; }
/* Mẫu Phim Cũ: ảnh ngả màu phim */
.t-phim-cu .frame img, .t-phim-cu .album img { filter: sepia(.35) contrast(1.05) saturate(.9); }
.t-phim-cu .inv-root h2, .t-phim-cu h2 { text-transform: uppercase; letter-spacing: .08em; font-size: 22px; }
/* Mẫu Mocha / Hoàng Hôn: ngày cưới đậm */
.t-mocha .bigdate, .t-hoang-hon .bigdate { font-weight: 700; font-size: 34px; letter-spacing: .08em; }

/* =================== BỐ CỤC =================== */
/* Ảnh giữ chỗ khi chưa có ảnh */
.ph-img { display: grid; place-items: center; background: radial-gradient(circle at 30% 25%, var(--i-paper), var(--i-tint) 70%); color: var(--i-accent); }
.ph-img svg { width: 30%; max-width: 70px; opacity: .55; }
.script-h { font-family: var(--f-script) !important; font-weight: var(--w-script, 400) !important; font-size: 40px !important; }
.loi-ngo { max-width: 34ch; line-height: 1.8; font-size: 15px; }

/* Cô dâu & chú rể (mặc định: hai người cạnh nhau) */
.people { display: grid; grid-template-columns: 1fr auto 1fr; gap: 12px; width: 100%; align-items: start; }
.people-amp { font-family: var(--f-script); font-size: 34px; color: var(--i-accent); align-self: center; padding-top: 40px; }
.person { display: flex; flex-direction: column; align-items: center; gap: 6px; min-width: 0; }
.pf { width: 100%; max-width: 150px; aspect-ratio: 3 / 4; border-radius: 999px 999px 12px 12px; overflow: hidden; }
.pf-img { width: 100%; height: 100%; object-fit: cover; display: block; }
.role-lb { font-size: 10px; letter-spacing: .3em; text-transform: uppercase; color: var(--i-accent); font-weight: 600; margin-top: 4px; }
.pn { font-family: var(--f-script); font-size: 28px; line-height: 1.1; }
.pp-line { font-size: 11px; color: var(--i-muted); line-height: 1.5; }
.bio { font-size: 13px; color: var(--i-muted); line-height: 1.6; }

/* Chuyện tình yêu (mặc định: dòng thời gian dọc) */
.story { width: 100%; display: flex; flex-direction: column; text-align: left; }
.st { display: grid; grid-template-columns: 74px 1fr; gap: 14px; padding: 12px 0; position: relative; }
.st::before { content: ""; position: absolute; left: 86px; top: 18px; width: 9px; height: 9px; border-radius: 50%; background: var(--i-accent); }
.st:not(:last-child)::after { content: ""; position: absolute; left: 90px; top: 28px; bottom: -12px; width: 1px; background: var(--i-line); }
.st-d { font-family: var(--f-display); font-size: 15px; color: var(--i-accent); text-align: right; font-variant-numeric: lining-nums tabular-nums; padding-top: 2px; }
.st-b { padding-left: 14px; }
.st-b b { font-family: var(--f-display); font-size: 17px; font-weight: 600; display: block; }
.st-b p { font-size: 13px; color: var(--i-muted); margin-top: 2px; line-height: 1.6; }
.story-photo { width: 100%; aspect-ratio: 4 / 5; overflow: hidden; border-radius: var(--card-r, 16px); }
.story-img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* Video */
.vid { width: 100%; aspect-ratio: 16 / 9; border-radius: 12px; overflow: hidden; background: #000; }
.vid iframe { width: 100%; height: 100%; border: 0; display: block; }
.vid-ph { width: 100%; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; color: #fff; font-size: 34px; background: linear-gradient(135deg, #2a2320, #4a3a32); }
.vid-ph span { font-size: 12px; letter-spacing: .1em; opacity: .8; }

/* Hộp mừng cưới một hộp */
.gift-box { border: 0; background: transparent; color: var(--i-accent); display: flex; flex-direction: column; align-items: center; gap: 6px; cursor: pointer; font-family: var(--f-body); font-size: 12px; letter-spacing: .2em; text-transform: uppercase; }
.gift-box svg { width: 96px; height: 96px; transition: transform .4s; }
.gift-box:hover svg { transform: rotate(-6deg) scale(1.05); }
.gift-box.opened svg { transform: translateY(-4px); }
.qr-pair { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; width: 100%; }
.qr-pair .qrbox svg, .qr-pair .qrbox img { width: 150px; height: 150px; }
.dem-day { font-size: 13px; }

/* ---------- Bìa: Thiệp in ---------- */
.cv-thiep .ca { inset: 0; background: var(--i-paper); }
.cv-thiep .ca .pat { opacity: .25; }
.cv-thiep .ti { position: relative; z-index: 2; width: min(90%, 360px); display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; color: var(--i-ink); transition: transform .9s cubic-bezier(.6,0,.2,1), opacity .7s; }
.ti-eye { font-size: 11px; letter-spacing: .4em; text-transform: uppercase; color: var(--i-muted); }
.ti-date { font-family: var(--f-display); font-size: 34px; letter-spacing: .06em; color: var(--i-accent); font-variant-numeric: lining-nums; }
.ti-names { font-family: var(--f-script); font-weight: var(--w-script, 400); font-size: 30px; line-height: 1.1; }
.ti-h { color: var(--i-accent); font-size: .7em; }
.ti-photo { width: 100%; aspect-ratio: 3 / 4; max-height: 46vh; border: 6px solid var(--i-paper); outline: 1px solid var(--i-accent); box-shadow: 0 14px 30px rgba(0,0,0,.18); overflow: hidden; margin: 6px 0; }
.ti-img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cv-thiep .to { font-size: 11px; letter-spacing: .3em; text-transform: uppercase; color: var(--i-muted); }
.ti-guest { font-family: var(--f-script); font-size: 30px; color: var(--i-accent); line-height: 1.1; }
.cover.opening.cv-thiep .ti { transform: translateY(-115%); opacity: 0; }
.cover.opening.cv-thiep .ca { opacity: 0; transition: opacity .8s .3s; transform: none; }

/* ---------- Bìa: Dây buộc + dấu sáp ---------- */
.cv-day .ca { background: var(--cover-bg); display: grid; place-items: center; }
.cv-day .cb { background: var(--i-paper); display: grid; place-items: center; }
.cv-day.doors .ca { inset: 0 38% 0 0; }
.cv-day.doors .cb { inset: 0 0 0 62%; }
.d-names { position: relative; z-index: 2; font-family: var(--f-script); font-weight: var(--w-script, 400); font-size: 40px; line-height: 1.05; color: var(--i-paper); text-align: center; display: flex; flex-direction: column; align-items: center; margin-top: -30vh; }
.d-names i { font-style: normal; font-size: .6em; opacity: .8; }
.d-date { display: flex; flex-direction: column; align-items: center; font-family: var(--f-display); font-size: 40px; line-height: 1.05; color: var(--i-accent); margin-top: -30vh; font-variant-numeric: lining-nums; }
.d-string { position: absolute; left: 0; right: 0; top: 52%; height: 3px; z-index: 3; background: repeating-linear-gradient(90deg, rgba(255,255,255,.85) 0 6px, rgba(0,0,0,.15) 6px 8px); box-shadow: 0 6px 0 -1px rgba(255,255,255,.5); transition: opacity .4s; }
.d-seal { position: absolute; z-index: 4; top: calc(52% - 40px); left: calc(62% - 40px); width: 80px; height: 80px; margin: 0; border: 0; cursor: pointer; font-size: 28px; animation: pulse 2.2s ease-in-out infinite; }
.d-hint { position: absolute; z-index: 4; top: calc(52% + 50px); left: 0; right: 0; text-align: center; font-size: 12px; letter-spacing: .12em; color: var(--i-ink); text-shadow: 0 1px 2px rgba(255,255,255,.6); }
.d-guest { position: absolute; z-index: 4; bottom: calc(40px + env(safe-area-inset-bottom, 0px)); left: 0; right: 38%; text-align: center; color: var(--i-paper); display: flex; flex-direction: column; gap: 4px; }
.d-guest .to { font-size: 10px; letter-spacing: .3em; text-transform: uppercase; opacity: .85; }
.d-guest .guest-n { font-family: var(--f-display); font-size: 22px; }
@keyframes pulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.06); } }
.cover.opening.cv-day .d-seal, .cover.opening.cv-day .d-string, .cover.opening.cv-day .d-hint, .cover.opening.cv-day .d-guest { opacity: 0; transition: opacity .3s; }

/* ---------- Bìa: Ảnh mờ + khung vòm ---------- */
.cv-mo .ca { inset: 0; background: var(--cover-bg); }
.cv-blur { position: absolute; inset: -30px; background-size: cover; background-position: center; filter: blur(14px) brightness(.62); }
.mo-in { position: relative; z-index: 2; display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; color: #fff; width: min(88%, 340px); transition: opacity .6s, transform .8s; }
.mo-names { font-family: var(--f-script); font-weight: var(--w-script, 400); font-size: 38px; line-height: 1.1; text-shadow: 0 2px 10px rgba(0,0,0,.3); }
.mo-arch { width: 66%; aspect-ratio: 3 / 4.4; border-radius: 999px; overflow: hidden; border: 2px solid rgba(255,255,255,.7); box-shadow: 0 0 0 8px rgba(255,255,255,.15); }
.arch-img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cv-mo .to { font-size: 10px; letter-spacing: .35em; text-transform: uppercase; opacity: .9; }
.cv-mo .guest-n { font-family: var(--f-display); font-size: 24px; }
.mo-date { font-size: 13px; letter-spacing: .3em; opacity: .9; font-variant-numeric: lining-nums; }
.cover.opening.cv-mo .mo-in { opacity: 0; transform: scale(1.06); }

/* ---------- Bìa: Chữ lớn ---------- */
.cv-chu .ca { inset: 0; background: var(--cover-bg); }
.chu-in { position: relative; z-index: 2; width: 100%; height: 100%; padding: calc(28px + env(safe-area-inset-top, 0px)) 26px calc(34px + env(safe-area-inset-bottom, 0px)); display: flex; flex-direction: column; color: var(--cv-card-bg); transition: transform 1s cubic-bezier(.7,0,.2,1); }
.chu-top { display: flex; justify-content: space-between; font-size: 11px; letter-spacing: .3em; text-transform: uppercase; opacity: .8; }
.chu-d { font-family: var(--f-display); font-weight: 700; font-size: 25vh; line-height: .82; margin-top: auto; letter-spacing: -.02em; font-variant-numeric: lining-nums; }
.chu-n { font-family: var(--f-display); font-size: 30px; line-height: 1.1; margin-top: 16px; text-transform: uppercase; }
.chu-g { display: flex; flex-direction: column; gap: 2px; margin-top: 16px; border-top: 1px solid currentColor; padding-top: 12px; }
.chu-g .to { font-size: 10px; letter-spacing: .3em; text-transform: uppercase; opacity: .75; }
.chu-g .guest-n { font-size: 18px; }
.cv-chu .ibtn { align-self: flex-start; margin-top: 16px; color: var(--cv-card-bg); border-color: currentColor; }
.cover.opening.cv-chu .chu-in { transform: translateY(-102%); }

/* ---------- Bố cục: Thư Tay (giấy xếp chồng) ---------- */
.lay-thu-tay .inv-page { background-color: var(--i-bg); background-image: radial-gradient(rgba(0,0,0,.035) 1px, transparent 1px); background-size: 6px 6px; padding: 0 0 20px; }
.lay-thu-tay .sec, .lay-thu-tay .sec.alt { background: var(--i-paper); margin: 18px 14px; border-radius: 3px; padding: 44px 22px; box-shadow: 0 10px 26px rgba(40,20,10,.10), 0 1px 0 rgba(0,0,0,.04); }
.lay-thu-tay .sec:nth-of-type(even) { transform: rotate(-.35deg); }
.lay-thu-tay .sec:nth-of-type(odd) { transform: rotate(.3deg); }
.hero-tt { position: relative; }
.banner { position: relative; height: 330px; overflow: hidden; color: var(--i-bg); }
.banner-img { width: 100%; height: 100%; object-fit: cover; display: block; }
.banner-edge { position: absolute; left: 0; right: 0; bottom: -1px; width: 100%; height: 30px; }
.hero-sheet { position: relative; margin: -60px 14px 0; background: var(--i-paper); padding: 34px 22px 38px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 10px; box-shadow: 0 10px 26px rgba(40,20,10,.12); }
.letter .fam { margin-top: 6px; }
.letter .formal, .tg-fam .formal { font-size: 12px; letter-spacing: .22em; text-transform: uppercase; color: var(--i-muted); max-width: 30ch; line-height: 1.7; }
.formal-when { display: flex; flex-direction: column; align-items: center; gap: 4px; font-size: 12px; letter-spacing: .2em; text-transform: uppercase; color: var(--i-ink); margin-top: 6px; }
.fw-row { display: grid; grid-template-columns: 1fr auto 1fr; gap: 14px; align-items: center; width: 100%; max-width: 300px; margin: 6px 0; }
.fw-row span { border-block: 1px solid var(--i-line); padding: 6px 0; }
.fw-row b { font-family: var(--f-display); font-size: 48px; line-height: 1; color: var(--i-accent); font-variant-numeric: lining-nums; }
.formal-when .lunar { text-transform: none; letter-spacing: 0; }
.formal-when .addr { text-transform: none; letter-spacing: 0; color: var(--i-muted); }
.ev-tt { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 18px 0; border-bottom: 1px dashed var(--i-line); }
.ev-tt:last-child { border-bottom: 0; }
.ev-tt .nm { font-family: var(--f-display); font-size: 22px; color: var(--i-accent); text-transform: uppercase; letter-spacing: .06em; }
.ev-tt-when { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; }
.ev-tt .place { font-weight: 600; }
.ev-tt .addr { font-size: 13px; color: var(--i-muted); }
.ev-tt .lnks { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; margin-top: 4px; }
.al-pola { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 12px; width: 100%; }
.pola { border: 0; background: #fffdf8; padding: 7px 7px 26px; box-shadow: 0 8px 18px rgba(0,0,0,.14); cursor: zoom-in; aspect-ratio: 4 / 5.2; display: block; }
.pola:nth-child(odd) { transform: rotate(-2.5deg); }
.pola:nth-child(even) { transform: rotate(2deg); margin-top: 14px; }
.pola img, .pola.ph-img svg { width: 100%; height: 100%; object-fit: cover; display: block; }
.pola.ph-img { background-clip: content-box; }
.lay-thu-tay .people { grid-template-columns: 1fr 1fr; }
.lay-thu-tay .people-amp { display: none; }

/* ---------- Bố cục: Điện Ảnh ---------- */
.lay-dien-anh .inv-page { background: var(--i-paper); }
.hero-da { position: relative; min-height: 640px; height: 100vh; max-height: 900px; overflow: hidden; display: flex; align-items: flex-end; color: #fff; }
.da-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-da .ph-img.da-bg, .foot-da .ph-img.da-bg { background: linear-gradient(160deg, var(--i-tint), var(--i-accent)); color: rgba(255,255,255,.7); }
.da-shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.25) 0%, rgba(0,0,0,0) 35%, rgba(0,0,0,.65) 100%); }
.da-txt { position: relative; z-index: 2; padding: 0 26px 70px; display: flex; flex-direction: column; gap: 8px; text-align: left; }
.da-txt .eyebrow { color: rgba(255,255,255,.85); }
.hero-da .names { color: #fff; align-items: flex-start; font-size: calc(var(--names-size, 52px) * var(--ns, 1) * 1.1); margin: 0; display: block; }
.hero-da .names .amp { display: inline; margin: 0 8px; color: #fff; opacity: .8; }
.hero-da .bigdate { color: #fff; font-size: 20px; letter-spacing: .3em; }
.da-city { font-size: 11px; letter-spacing: .35em; text-transform: uppercase; opacity: .85; }
.da-down { position: absolute; z-index: 2; bottom: 18px; left: 50%; transform: translateX(-50%); font-size: 26px; animation: bob 1.8s ease-in-out infinite; }
@keyframes bob { 50% { transform: translate(-50%, 6px); } }
.da-bar { position: absolute; z-index: 8; top: 0; left: 0; right: 0; display: flex; justify-content: space-between; align-items: center; padding: calc(12px + env(safe-area-inset-top, 0px)) 18px 12px; color: #fff; transition: background .3s, color .3s; pointer-events: none; }
.da-bar b { font-family: var(--f-display); letter-spacing: .2em; font-size: 15px; }
.da-bar button { pointer-events: auto; background: transparent; border: 0; color: inherit; font-size: 22px; cursor: pointer; }
.scrolled .da-bar { background: color-mix(in srgb, var(--i-paper) 92%, transparent); color: var(--i-ink); backdrop-filter: blur(6px); }
.da-nav { position: absolute; z-index: 9; top: calc(52px + env(safe-area-inset-top, 0px)); right: 12px; background: var(--i-paper); border-radius: 12px; box-shadow: 0 14px 34px rgba(0,0,0,.2); padding: 8px; display: flex; flex-direction: column; min-width: 200px; max-height: 70%; overflow: auto; }
.da-nav button { text-align: left; border: 0; background: transparent; padding: 9px 12px; border-radius: 8px; cursor: pointer; color: var(--i-ink); font-family: var(--f-body); font-size: 14px; }
.da-nav button:hover { background: var(--i-tint); }
.fab-wish { position: absolute; z-index: 6; right: calc(66px + env(safe-area-inset-right, 0px)); bottom: calc(20px + env(safe-area-inset-bottom, 0px)); border: 0; border-radius: 999px; padding: 9px 16px; background: var(--i-paper); color: var(--i-ink); box-shadow: 0 6px 16px rgba(0,0,0,.18); font-family: var(--f-body); font-size: 13px; cursor: pointer; }
.lay-dien-anh .sec { padding: 64px 26px; }
.lay-dien-anh .sec h2 { font-size: 34px; }
.lay-dien-anh .dem-sec { background: var(--i-ink) !important; color: var(--i-paper); }
.lay-dien-anh .dem-sec h2, .lay-dien-anh .dem-sec .eyebrow { color: var(--i-paper); }
.lay-dien-anh .dem-sec .cd div { border-color: rgba(255,255,255,.25); }
.lay-dien-anh .dem-sec .cd small, .lay-dien-anh .dem-sec .mutedt { color: rgba(255,255,255,.7); }
.lay-dien-anh .video-sec { background: #1c1714 !important; }
.lay-dien-anh .video-sec h2, .lay-dien-anh .video-sec .eyebrow { color: #f4ece4; }
.lay-dien-anh .evs { gap: 0; }
.tl-ev { display: grid; grid-template-columns: 44px 1fr; gap: 14px; text-align: left; padding-bottom: 26px; position: relative; }
.tl-ev:not(:last-child)::after { content: ""; position: absolute; left: 21px; top: 46px; bottom: 4px; width: 1px; background: var(--i-line); }
.tl-ic { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--i-accent); color: var(--i-accent); display: grid; place-items: center; }
.tl-ic svg { width: 22px; height: 22px; }
.tl-body { display: flex; flex-direction: column; gap: 3px; }
.tl-body .nm { font-family: var(--f-display); font-size: 21px; color: var(--i-ink); }
.tl-when { font-size: 13px; color: var(--i-accent); font-weight: 600; font-variant-numeric: tabular-nums; }
.tl-body .lunar { text-align: left; }
.tl-body .place { font-weight: 600; }
.tl-body .addr { font-size: 13px; color: var(--i-muted); }
.tl-body .lnks { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 6px; }
.al-mag { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; width: calc(100% + 52px); margin: 0 -26px; }
.mag { border: 0; padding: 0; aspect-ratio: 3 / 4; overflow: hidden; cursor: zoom-in; display: block; background: var(--i-tint); }
.mag.big { grid-column: 1 / -1; aspect-ratio: 4 / 5; }
.mag img { width: 100%; height: 100%; object-fit: cover; display: block; }
.mag-q { margin-top: 12px; }
.lay-dien-anh .st { grid-template-columns: 1fr; padding: 0 0 22px; }
.lay-dien-anh .st::before, .lay-dien-anh .st::after { display: none; }
.lay-dien-anh .st-d { text-align: left; font-size: 38px; line-height: 1; color: var(--i-accent); opacity: .85; }
.lay-dien-anh .st-b { padding-left: 0; border-left: 2px solid var(--i-accent); padding: 2px 0 2px 14px; }
.lay-dien-anh .people { grid-template-columns: 1fr 1fr; }
.lay-dien-anh .people-amp { display: none; }
.lay-dien-anh .pf { border-radius: 50%; aspect-ratio: 1; }
.foot-da { position: relative; min-height: 540px; display: flex; align-items: flex-end; color: #fff; overflow: hidden; }
.foot-in { position: relative; z-index: 2; padding: 0 26px 60px; display: flex; flex-direction: column; gap: 8px; }
.foot-in .eyebrow { color: rgba(255,255,255,.85); }
.foot-in .ty { font-family: var(--f-script); font-size: 56px; line-height: 1; }
.foot-in .credit { color: rgba(255,255,255,.7); }

/* ---------- Bố cục: Hồ Sơ Đôi ---------- */
.hero-hs { position: relative; overflow: hidden; padding: 40px 0 46px; }
.hs-bg { position: absolute; inset: -30px; background-color: var(--i-accent); background-size: cover; background-position: center; filter: blur(16px) brightness(.6); }
.hs-in { position: relative; z-index: 2; display: flex; flex-direction: column; align-items: center; gap: 14px; text-align: center; color: #fff; padding: 0 24px; }
.hero-hs .names { color: #fff; display: block; font-size: calc(var(--names-size, 52px) * var(--ns, 1) * .85); text-shadow: 0 2px 12px rgba(0,0,0,.3); margin: 0; }
.hero-hs .names .amp { display: inline; color: #fff; }
.hs-arch { width: 70%; max-width: 280px; aspect-ratio: 3 / 4.3; border-radius: 999px; overflow: hidden; border: 1.5px solid rgba(255,255,255,.75); padding: 6px; background: rgba(255,255,255,.12); }
.hs-arch .arch-img { border-radius: 999px; }
.hero-hs .eyebrow { color: #fff; }
.hs-date { display: flex; align-items: center; gap: 12px; font-size: 22px; letter-spacing: .18em; font-variant-numeric: lining-nums; }
.hs-date i { width: 50px; height: 1px; background: rgba(255,255,255,.7); }
.hero-hs .lunar { color: rgba(255,255,255,.85); }
.lay-ho-so .people { grid-template-columns: 1fr; gap: 36px; }
.lay-ho-so .pf { max-width: 240px; }
.lay-ho-so .pn { font-size: 40px; }
.lay-ho-so .bio { max-width: 32ch; }
.al-masonry { columns: 2; column-gap: 8px; width: 100%; }
.mas { border: 0; padding: 0; width: 100%; margin: 0 0 8px; display: block; break-inside: avoid; aspect-ratio: 3 / 4; overflow: hidden; cursor: zoom-in; border-radius: 6px; }
.mas.tall { aspect-ratio: 3 / 5; }
.mas img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ev-photo { padding: 0; overflow: hidden; }
.ev-img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; display: block; }
.ev-in { padding: 18px 16px 22px; display: flex; flex-direction: column; align-items: center; gap: 8px; width: 100%; }

/* ---------- Bố cục: Tối Giản ---------- */
.lay-toi-gian .sec { text-align: left; align-items: stretch; padding: 52px 26px; }
.lay-toi-gian .sec h2 { text-transform: uppercase; letter-spacing: .02em; font-size: 26px; border-bottom: 1px solid var(--i-ink); padding-bottom: 10px; }
.lay-toi-gian .eyebrow { color: var(--i-muted); }
.lay-toi-gian .sec.alt { background: var(--i-paper); }
.lay-toi-gian .sec:not(.alt) { background: var(--i-tint); }
.hero-tg { padding: calc(26px + env(safe-area-inset-top, 0px)) 26px 30px; display: flex; flex-direction: column; gap: 12px; }
.tg-top { display: flex; justify-content: space-between; font-size: 11px; letter-spacing: .3em; text-transform: uppercase; color: var(--i-muted); border-bottom: 1px solid var(--i-ink); padding-bottom: 10px; }
.tg-date { display: flex; flex-direction: column; font-family: var(--f-display); font-weight: 700; font-size: 104px; line-height: .86; letter-spacing: -.02em; color: var(--i-accent); font-variant-numeric: lining-nums; }
.tg-names { font-family: var(--f-display); font-size: 34px; line-height: 1.05; text-transform: uppercase; display: flex; flex-direction: column; }
.tg-names i { font-style: normal; font-family: var(--f-body); font-size: 13px; letter-spacing: .3em; color: var(--i-muted); margin: 6px 0; }
.tg-photo { width: 100%; aspect-ratio: 4 / 5; overflow: hidden; margin-top: 8px; }
.tg-img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hero-tg .lunar { text-align: left; }
.tg-rows { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.tg-rows > div { display: flex; flex-direction: column; gap: 4px; border-top: 1px solid var(--i-line); padding-top: 10px; }
.tg-rows .fl { font-size: 10px; letter-spacing: .3em; text-transform: uppercase; color: var(--i-muted); }
.tg-rows b { font-family: var(--f-display); font-weight: 500; font-size: 16px; line-height: 1.4; }
.tg-rows small { font-size: 12px; color: var(--i-muted); }
.lay-toi-gian .couple { align-items: flex-start; }
.lay-toi-gian .formal { text-align: left; max-width: none; }
.lay-toi-gian .evs { gap: 0; }
.tg-ev { display: grid; grid-template-columns: 92px 1fr; gap: 16px; padding: 16px 0; border-top: 1px solid var(--i-line); }
.tg-t b { font-family: var(--f-display); font-size: 30px; line-height: 1; display: block; font-variant-numeric: lining-nums tabular-nums; }
.tg-t small { font-size: 12px; color: var(--i-muted); font-variant-numeric: tabular-nums; }
.tg-i { display: flex; flex-direction: column; gap: 3px; }
.tg-i .nm { font-weight: 700; text-transform: uppercase; letter-spacing: .08em; font-size: 13px; color: var(--i-accent); }
.tg-i .place { font-family: var(--f-display); font-size: 18px; }
.tg-i .addr { font-size: 13px; color: var(--i-muted); }
.tg-i .lunar { text-align: left; }
.tg-i .lnks { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 6px; }
.al-strip { display: flex; gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory; width: calc(100% + 52px); margin: 0 -26px; padding: 0 26px 8px; scrollbar-width: none; }
.al-strip::-webkit-scrollbar { display: none; }
.strip-i { flex: 0 0 64%; scroll-snap-align: start; display: flex; flex-direction: column; gap: 6px; }
.strip { border: 0; padding: 0; aspect-ratio: 4 / 5; overflow: hidden; cursor: zoom-in; display: block; width: 100%; }
.strip img { width: 100%; height: 100%; object-fit: cover; display: block; }
.strip-i small { font-size: 11px; letter-spacing: .2em; color: var(--i-muted); font-variant-numeric: tabular-nums; }
.lay-toi-gian .cal, .lay-toi-gian .cd, .lay-toi-gian .rsvp, .lay-toi-gian .wishes { max-width: none; }
.lay-toi-gian .tl { max-width: none; }
.lay-toi-gian .people { text-align: center; }

/* ---------- Ô xem nhanh mẫu (trang chủ, trình sửa) ---------- */
.mini { position: absolute; inset: 0; overflow: hidden; background: var(--cover-bg); color: var(--i-ink); font-family: var(--f-display); }
.mn-pat { position: absolute; inset: 0; background-image: var(--pat); background-size: var(--pat-size); opacity: .55; }
.mini .sc { font-family: var(--f-script); font-weight: var(--w-script); color: var(--i-accent); line-height: 1.05; }
.mini small { font-size: 8px; letter-spacing: .25em; text-transform: uppercase; color: var(--i-muted); }
.mini .sl { position: absolute; width: 30px; height: 30px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, var(--seal-hi), var(--seal)); color: var(--seal-ink); display: grid; place-items: center; font-style: normal; font-family: var(--f-script); font-size: 11px; box-shadow: 0 2px 6px rgba(0,0,0,.25); }
.mn-pb { position: absolute; inset: 0; display: grid; place-items: center; }
.mn-pb .cardx { position: relative; width: 70%; background: var(--cv-card-bg); border-radius: 8px; padding: 22px 8px 12px; display: flex; flex-direction: column; align-items: center; gap: 4px; text-align: center; box-shadow: 0 8px 18px rgba(0,0,0,.2); }
.mn-pb .cardx .sl { top: -15px; }
.mn-pb .sc { font-size: 20px; }
.mn-ti { position: absolute; inset: 0; background: var(--i-paper); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; padding: 10px; text-align: center; }
.mn-ti b { font-size: 15px; color: var(--i-accent); letter-spacing: .05em; font-variant-numeric: lining-nums; }
.mn-ti .sc { font-size: 15px; }
.mn-ph { width: 56%; aspect-ratio: 3 / 4; border: 3px solid var(--i-paper); outline: 1px solid var(--i-accent); background: linear-gradient(160deg, var(--i-bg), var(--i-accent)); color: rgba(255,255,255,.75); display: grid; place-items: center; }
.mn-ph svg { width: 40%; }
.mn-day { position: absolute; inset: 0; display: grid; grid-template-columns: 62% 38%; }
.mn-day .l { background: var(--cover-bg); display: grid; place-items: center; text-align: center; }
.mn-day .l .sc { color: var(--i-paper); font-size: 19px; }
.mn-day .r { background: var(--i-paper); display: flex; flex-direction: column; align-items: center; justify-content: center; color: var(--i-accent); font-size: 18px; line-height: 1.05; font-variant-numeric: lining-nums; }
.mn-day .str { position: absolute; left: 0; right: 0; top: 56%; height: 2px; background: rgba(255,255,255,.85); }
.mn-day .sl { left: calc(62% - 15px); top: calc(56% - 15px); }
.mn-mo { position: absolute; inset: 0; background: linear-gradient(160deg, var(--i-accent), #1f1a17); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; color: #fff; }
.mn-mo .sc { color: #fff; font-size: 17px; }
.mn-mo .arch { width: 44%; aspect-ratio: 3 / 4.4; border-radius: 999px; border: 1.5px solid rgba(255,255,255,.75); background: rgba(255,255,255,.12); display: grid; place-items: center; color: rgba(255,255,255,.7); }
.mn-mo .arch svg { width: 50%; }
.mn-mo small { color: rgba(255,255,255,.85); }
.mn-chu { position: absolute; inset: 0; background: var(--cover-bg); color: var(--cv-card-bg); padding: 12px; display: flex; flex-direction: column; justify-content: flex-end; gap: 6px; }
.mn-chu b { font-family: var(--f-display); font-size: 44px; line-height: .85; font-variant-numeric: lining-nums; }
.mn-chu span { font-size: 11px; text-transform: uppercase; letter-spacing: .05em; }
@media (prefers-reduced-motion: reduce) { .d-seal, .da-down { animation: none; } }
/* chỉnh cỡ chữ ô xem nhanh */
.mn-pb .sc { font-size: 16px; }
.mn-mo { gap: 4px; }
.mn-mo .sc { font-size: 14px; max-width: 90%; text-align: center; }
.mn-chu b { font-size: 36px; }
.mn-chu span { margin-top: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mn-ti .sc { font-size: 13px; }
.mn-day .l .sc { font-size: 15px; }

/* ---------- Khung chân dung: căn ảnh, cách xếp ---------- */
.pf, .ev-pic, .frame, .mo-arch, .hs-arch { isolation: isolate; }
.ev-pic { width: 100%; aspect-ratio: 16 / 10; overflow: hidden; }
.ev-pic .ev-img { height: 100%; aspect-ratio: auto; }
.inv-root .people.xep-doc { grid-template-columns: 1fr; gap: 32px; }
.inv-root .people.xep-doc .people-amp { display: none; }
.inv-root .people.xep-doc .pf { max-width: 240px; }
.inv-root .people.xep-doc .pn { font-size: 38px; }
.inv-root .people.xep-ngang { grid-template-columns: 1fr 1fr; gap: 14px; }
.inv-root .people.xep-ngang .people-amp { display: none; }
.inv-root .people.xep-ngang .pn { font-size: 28px; }
.al-in { display: block; width: 100%; height: 100%; overflow: hidden; }

/* ===== 3 bố cục thêm 12/2026: song hỷ, giấy xé, so le ===== */
.bang { position: absolute; z-index: 2; width: 74px; height: 22px; left: 50%; top: -11px; margin-left: -37px; background: rgba(235,215,170,.72); transform: rotate(-3deg); box-shadow: 0 1px 2px rgba(0,0,0,.08); }
/* bìa cổng hỷ */
.cv-hy .hy-in { position: relative; z-index: 2; width: min(84%, 330px); padding: 34px 18px 30px; display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; color: var(--cv-card-bg); border: 1px solid currentColor; outline: 1px solid currentColor; outline-offset: 6px; border-radius: 999px 999px 0 0; background: var(--cover-bg); transition: opacity .35s; }
.hy-chu, .sh-chu { font-size: 64px; line-height: 1; color: var(--seal-hi); font-family: "Songti SC", "Noto Serif SC", serif; }
.hy-names { font-family: var(--f-script); font-weight: var(--w-script, 400); font-size: calc(var(--names-size, 46px) * .85); line-height: 1.15; }
.hy-names i { display: block; font-size: .6em; font-family: var(--f-display); }
.cv-hy .to, .cv-xe .to, .cv-bao .to { font-size: 12px; letter-spacing: .04em; opacity: .9; }
.cv-hy .guest-n, .cv-xe .guest-n, .cv-bao .guest-n { font-family: var(--f-display); font-size: 24px; line-height: 1.25; }
.hy-date { font-family: var(--f-display); letter-spacing: .14em; font-variant-numeric: lining-nums; }
.cv-hy .ibtn.fill { background: var(--seal); border-color: var(--seal); color: var(--seal-ink); margin-top: 6px; }
.cover.opening.cv-hy .hy-in, .cover.opening.cv-xe .xe-in { opacity: 0; }
/* bìa ảnh dán giấy */
.xe-in { position: relative; z-index: 2; width: min(86%, 340px); display: flex; flex-direction: column; align-items: center; transition: opacity .6s; }
.xe-anh { position: relative; width: 68%; aspect-ratio: 3 / 3.7; padding: 9px 9px 30px; background: #fffdf8; box-shadow: 0 12px 28px rgba(40,25,10,.25); transform: rotate(-3deg); }
.xe-giay { position: relative; margin-top: -26px; width: 100%; padding: 34px 20px 36px; background: var(--cv-card-bg); color: var(--i-ink); text-align: center; display: flex; flex-direction: column; align-items: center; gap: 7px; }
.xe-giay, .gx-to, .lay-giay-xe .ev { clip-path: polygon(0 9px, 6% 3px, 13% 10px, 21% 2px, 30% 8px, 38% 1px, 47% 9px, 55% 3px, 64% 10px, 72% 2px, 81% 8px, 90% 2px, 100% 9px, 100% calc(100% - 7px), 93% 100%, 85% calc(100% - 8px), 76% calc(100% - 1px), 67% calc(100% - 9px), 58% calc(100% - 2px), 49% calc(100% - 8px), 40% 100%, 31% calc(100% - 9px), 22% calc(100% - 2px), 14% calc(100% - 9px), 6% calc(100% - 1px), 0 calc(100% - 8px)); }
.xe-names { font-family: var(--f-script); font-weight: var(--w-script, 400); font-size: 32px; line-height: 1.25; color: var(--i-accent); }
/* bìa tạp chí */
.cv-bao .ca { inset: 0; }
.bao-in { position: absolute; inset: 0; overflow: hidden; color: #fff; transition: transform 1.1s cubic-bezier(.7,0,.2,1); }
.bao-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.bao-bong { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.42), transparent 32%, transparent 55%, rgba(0,0,0,.66)); }
.bao-top { position: absolute; left: 24px; right: 60px; top: 64px; font-family: var(--f-script); font-weight: var(--w-script, 500); font-size: 44px; line-height: 1.12; }
.bao-doc { position: absolute; right: 18px; top: 70px; writing-mode: vertical-rl; letter-spacing: .2em; font-size: 13px; font-variant-numeric: lining-nums; }
.bao-duoi { position: absolute; left: 24px; right: 24px; bottom: calc(38px + env(safe-area-inset-bottom, 0px)); display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
.cv-bao .ibtn { color: #fff; border-color: #fff; margin-top: 8px; }
.cover.opening.cv-bao .bao-in { transform: translateY(-102%); }
.lay-so-le .ibtn, .lay-song-hy .ibtn, .lay-giay-xe .ibtn { border-radius: 4px; letter-spacing: .03em; text-transform: none; font-size: 14px; }
.lay-so-le .eyebrow, .lay-song-hy .eyebrow, .lay-giay-xe .eyebrow { letter-spacing: .04em; text-transform: none; font-size: 14px; }
/* song hỷ */
.hero-sh { position: relative; padding: 44px 24px 50px; background: var(--cover-bg); color: var(--cv-card-bg); text-align: center; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.hero-sh > * { position: relative; }
.hero-sh .pat { position: absolute; inset: 14px; border: 1px solid var(--cover-line); background-image: var(--cover-pat); background-size: var(--cover-pat-size, 64px 64px); opacity: .6; }
.hero-sh .eyebrow, .hero-sh .lunar, .hero-sh .names, .hero-sh .names .amp { color: var(--cv-card-bg); }
.sh-vom { width: 78%; max-width: 300px; aspect-ratio: 3 / 4.2; border-radius: 999px 999px 0 0; overflow: hidden; border: 2px solid var(--seal-hi); padding: 7px; isolation: isolate; }
.sh-vom .arch-img { border-radius: 999px 999px 0 0; }
.sh-ngay { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px; width: 100%; max-width: 310px; font-family: var(--f-display); font-variant-numeric: lining-nums; font-size: 16px; }
.sh-ngay span { border-block: 1px solid var(--cover-line); padding: 8px 0; }
.sh-ngay b { font-size: 60px; line-height: 1; font-weight: 500; color: var(--seal-hi); }
.lay-song-hy .ev { border: 1px solid var(--seal); outline: 1px solid var(--i-line); outline-offset: 4px; border-radius: 0; }
.lay-song-hy .evs { gap: 24px; }
.lay-song-hy .foot { background: var(--cover-bg); color: var(--cv-card-bg); }
.lay-song-hy .foot * { color: inherit; }
.lich-anh { position: relative; width: calc(100% + 56px); margin: 0 -28px; aspect-ratio: 4 / 5.4; overflow: hidden; display: flex; align-items: flex-end; justify-content: center; }
.lich-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.lich-anh::after { content: ""; position: absolute; inset: 25% 0 0; background: linear-gradient(180deg, transparent, rgba(20,8,5,.82) 60%); }
.lich-anh .cal { position: relative; z-index: 2; color: #fff; padding: 0 12px 20px; max-width: 320px; }
.lich-anh .cal .wd { color: rgba(255,255,255,.85); }
.lich-anh .cal .g span { aspect-ratio: 1.35; }
.lich-anh .cal .g .on { aspect-ratio: auto; border-radius: 4px; }
.al-ba { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; width: calc(100% + 32px); margin: 0 -16px; align-items: center; }
.al-ba .ba { grid-column: span 2; aspect-ratio: 2 / 3.2; border: 0; padding: 0; cursor: zoom-in; background: var(--i-tint); overflow: hidden; border-radius: 999px 999px 0 0; }
.al-ba .ba.cao { aspect-ratio: 2 / 4; }
.al-ba .ba.doi { grid-column: span 3; aspect-ratio: 3 / 4; border-radius: 0; }
.al-ba img, .al-dan img, .al-le img { width: 100%; height: 100%; object-fit: cover; display: block; }
/* giấy xé */
.lay-giay-xe .inv-page { background-color: var(--i-bg); background-image: var(--cover-pat); background-size: var(--cover-pat-size, auto); }
.lay-giay-xe .sec { background: transparent; }
.lay-giay-xe .sec.alt { background: var(--i-paper); }
.gx-lon { width: 100%; aspect-ratio: 4 / 4.9; overflow: hidden; }
.gx-lon .banner-img { width: 100%; height: 100%; object-fit: cover; display: block; aspect-ratio: auto; }
.gx-to { position: relative; margin: -46px 0 0; padding: 44px 24px 46px; background: var(--i-paper); text-align: center; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.gx-doi { display: flex; gap: 10px; justify-content: center; width: 100%; padding: 20px 0 10px; }
.gx-dan, .al-dan .dan { position: relative; background: #fffdf8; padding: 7px 7px 24px; box-shadow: 0 8px 18px rgba(40,25,10,.17); }
.gx-dan { width: 46%; aspect-ratio: 4 / 5.4; transform: rotate(-4deg); }
.gx-dan + .gx-dan { transform: rotate(3deg) translateY(16px); }
.gx-img { width: 100%; height: 100%; object-fit: cover; display: block; }
.lay-giay-xe .ev { border: 0; border-radius: 0; padding: 34px 18px 32px; background: var(--i-paper); }
.lay-giay-xe .sec.alt .ev { background: var(--i-tint); }
.al-dan { display: grid; grid-template-columns: 1fr 1fr; gap: 26px 14px; width: 100%; }
.al-dan .dan { aspect-ratio: 4 / 5.3; }
.al-dan .dan.to { grid-column: span 2; aspect-ratio: 4 / 4.9; }
.al-dan .dan:nth-child(3n+1) { transform: rotate(-1deg); } .al-dan .dan:nth-child(3n+2) { transform: rotate(2.2deg); } .al-dan .dan:nth-child(3n) { transform: rotate(-2.4deg); }
.al-dan .dan-a { display: block; width: 100%; height: 100%; border: 0; padding: 0; cursor: zoom-in; background: var(--i-tint); }
.lay-giay-xe .story { width: 100%; display: flex; flex-direction: column; }
.lay-giay-xe .story .st { display: block; border: 2px dashed var(--i-accent); border-left: 0; border-bottom: 0; border-radius: 0 40px 0 0; padding: 18px 26px 22px 0; margin: 0 0 0 18px; text-align: right; }
.lay-giay-xe .story .st:nth-child(even) { border: 2px dashed var(--i-accent); border-right: 0; border-bottom: 0; border-radius: 40px 0 0; padding: 18px 0 22px 26px; margin: 0 18px 0 0; text-align: left; }
.lay-giay-xe .story .st::before, .lay-giay-xe .story .st::after { display: none; }
.lay-giay-xe .story .st-d { font-family: var(--f-script); font-weight: var(--w-script, 400); font-size: 26px; color: var(--i-accent); text-align: inherit; }
/* so le */
.lay-so-le .sec { text-align: left; align-items: flex-start; padding: 58px 24px; }
.lay-so-le .sec h2 { font-size: 34px; }
.lay-so-le .sec.foot, .lay-so-le .ev-in { text-align: left; align-items: flex-start; }
.lay-so-le .ev .lnks { justify-content: flex-start; }
.lay-so-le .couple, .lay-so-le .people { width: 100%; }
.lay-so-le .ev { border: 0; border-radius: 0; background: transparent; padding: 0; width: 100%; }
.lay-so-le .ev-in { padding: 14px 0 26px; }
.lay-so-le .ev-pic { aspect-ratio: 4 / 4.4; width: 82%; }
.lay-so-le .ev:nth-child(even) { align-items: flex-end; }
.lay-so-le .ev:nth-child(even) .ev-in { width: 82%; }
.hero-sl { position: relative; padding: 34px 0 40px; overflow: hidden; }
.sl-doc { position: absolute; left: 15px; top: 44px; writing-mode: vertical-rl; font-family: var(--f-display); font-size: 17px; color: var(--i-accent); }
.sl-lon { margin-left: 54px; aspect-ratio: 3 / 4; overflow: hidden; }
.hero-sl .names { display: block; margin: -34px 0 0 24px; position: relative; z-index: 2; text-align: left; line-height: 1.12; width: fit-content; max-width: 88%; background: var(--i-paper); padding: 14px 20px 6px 0; }
.sl-nho { width: 46%; aspect-ratio: 3 / 4; overflow: hidden; margin: 18px 0 0 24px; }
.sl-ngay { position: absolute; right: 24px; bottom: 74px; display: flex; align-items: flex-end; gap: 10px; font-family: var(--f-display); font-variant-numeric: lining-nums; color: var(--i-accent); line-height: 1.2; }
.sl-ngay b { font-size: 78px; line-height: .86; font-weight: 500; }
.hero-sl .lunar { padding: 14px 24px 0; }
.al-le { display: grid; grid-template-columns: repeat(12, 1fr); gap: 12px; width: calc(100% + 24px); margin-right: -24px; }
.al-le .le { border: 0; padding: 0; background: var(--i-tint); cursor: zoom-in; overflow: hidden; aspect-ratio: 3 / 4; }
.al-le .le0 { grid-column: 1 / 11; } .al-le .le1 { grid-column: 6 / 13; margin-top: -44px; border: 6px solid var(--i-paper); border-right: 0; } .al-le .le2 { grid-column: 1 / 7; } .al-le .le3 { grid-column: 7 / 13; margin-top: 44px; }
.lay-so-le .sec.alt .le1 { border-color: var(--i-tint); }
.t-so-le-den .inv-page img, .t-so-le-den .bao-img { filter: grayscale(1) contrast(1.04); }
.t-so-le-den .names, .t-so-le-den .bao-top, .t-so-le-den h2 { text-transform: uppercase; }
/* ô xem nhanh */
.mini img { width: 100%; height: 100%; object-fit: cover; display: block; }
.mn-ph, .mn-mo .arch { overflow: hidden; }
.mn-hy { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; color: var(--cv-card-bg); }
.mn-hy > i { font-style: normal; font-size: 20px; line-height: 1; color: var(--seal-hi); }
.mn-hy .arch { width: 48%; aspect-ratio: 3 / 4.1; border-radius: 99px 99px 0 0; overflow: hidden; border: 1.5px solid var(--seal-hi); padding: 3px; }
.mn-hy .arch img { border-radius: 99px 99px 0 0; }
.mini .mn-hy .sc, .mini .mn-hy small { color: var(--cv-card-bg); } .mn-hy .sc { font-size: 16px; }
.mn-xe { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.mn-xe .p { width: 52%; aspect-ratio: 3 / 3.6; background: #fffdf8; padding: 4px 4px 14px; transform: rotate(-3deg); box-shadow: 0 5px 12px rgba(40,25,10,.22); }
.mn-xe .g { position: relative; margin-top: -10px; width: 82%; background: var(--cv-card-bg); padding: 11px 6px 12px; display: flex; flex-direction: column; align-items: center; gap: 3px; clip-path: polygon(0 4px, 12% 0, 25% 5px, 38% 1px, 52% 5px, 66% 0, 80% 5px, 92% 1px, 100% 4px, 100% 100%, 88% calc(100% - 4px), 74% 100%, 60% calc(100% - 4px), 46% 100%, 30% calc(100% - 4px), 14% 100%, 0 calc(100% - 4px)); }
.mn-xe .sc { font-size: 14px; white-space: nowrap; }
.mn-bao { position: absolute; inset: 0; color: #fff; }
.mn-bao::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.45), transparent 45%); }
.mini .mn-bao .sc, .mini .mn-bao small { position: absolute; z-index: 1; color: #fff; } .mn-bao .sc { left: 12px; top: 12px; font-size: 21px; } .mn-bao small { right: 8px; top: 14px; writing-mode: vertical-rl; }
.mini-bia-bao.den img { filter: grayscale(1); }
.lay-song-hy .inv-page .sec.foot { background: var(--cover-bg); }
.al-ba .ba:last-child:nth-child(5n+4), .al-ba .ba:last-child:nth-child(5n+1) { grid-column: span 6; aspect-ratio: 4 / 3.6; border-radius: 0; }
.al-ba .ba:nth-child(5n+1):nth-last-child(2), .al-ba .ba:last-child:nth-child(5n+2) { grid-column: span 3; aspect-ratio: 3 / 4; border-radius: 0; }
.al-ba .ba:last-child:nth-child(5n+4) img, .al-ba .ba:last-child:nth-child(5n+1) img { object-position: 50% 25%; }
.lay-so-le .ev { align-items: flex-start; }
.lay-so-le .couple { align-items: flex-start; text-align: left; }
.lay-so-le .couple .full, .lay-so-le .couple .role { text-align: left; }
.hero-da .names .amp { margin-left: 0; }
.bao-img.ph-img { background: linear-gradient(160deg, var(--i-accent), #2a2420); color: rgba(255,255,255,.4); }
