@font-face {
    font-family: HyDuyenScript;
    src: url("../../06/fonts/SFUEdwardianScriptRegular--mCQVjzA.TTF") format("truetype");
    font-display: swap;
}
@font-face {
    font-family: HyDuyenSerif;
    src: url("../../03/fonts/tsc-albra.ttf") format("truetype");
    font-display: swap;
}
body.wedding-invitation { background: #261b1b; }
.wedding-invitation .page-wrapper { max-width: 480px; margin-inline: auto; background: var(--invitation-accent, #8e0101); }
.wedding-invitation .bgr-main-fixed { display: none; }
.invitation-12 {
    --accent: var(--invitation-accent, #8e0101);
    --gold: #edcf92;
    --paper: #fff8e9;
    --ink: #512e23;
    background: var(--accent);
    color: var(--paper);
    font: 16px/1.7 Roboto, Arial, sans-serif;
    text-align: center;
    overflow: hidden;
    isolation: isolate;
}
.invitation-12 * { box-sizing: border-box; }
.invitation-12 :is(h1, h2, h3, p, figure) { margin: 0; color: inherit; }
.invitation-12 :is(h1, h2, h3, p, a, strong) { overflow-wrap: anywhere; }
.invitation-12 img { max-width: 100%; height: auto; }
.invitation-12 .hd-script { font: 400 48px/1.3 HyDuyenScript, "Times New Roman", serif; }
.invitation-12 .hd-heading { margin-bottom: 22px; }
.hd-kicker { font-size: 14px; letter-spacing: 2px; line-height: 1.7; }
.hd-cover {
    position: relative;
    padding: 40px 28px 42px;
    background: radial-gradient(ellipse at 50% 40%, #ffffff13, transparent 70%);
}
.hd-cover::after { content: ""; position: absolute; inset: 12px; border: 1px solid #edcf9260; pointer-events: none; }
.hd-cover > .hd-kicker { margin: 0 28px 7px; color: var(--gold); }
.invitation-12 .hd-cover > h1 { font-size: 66px; color: var(--gold); margin-bottom: 22px; }
.hd-lantern { position: absolute; top: -12px; width: 60px; transform-origin: top center; animation: hd-lantern-sway 7s ease-in-out infinite; pointer-events: none; }
.hd-lantern-left { left: 3px; }
.hd-lantern-right { right: 3px; animation-delay: -3.5s; }
.hd-arch-wrap { position: relative; width: 86%; max-width: 330px; margin: 0 auto 24px; }
.hd-arch { aspect-ratio: 4/5; border-radius: 48% 48% 2px 2px; padding: 7px; border: 1px solid var(--gold); box-shadow: 0 0 0 4px var(--accent), 0 0 0 5px #edcf9270; overflow: hidden; background: var(--gold); }
.hd-arch img { width: 100%; height: 100%; object-fit: cover; object-position: center 30%; border-radius: 48% 48% 0 0; }
.hd-seal { position: absolute; z-index: 1; top: -22px; left: 50%; translate: -50% 0; width: 52px; height: 52px; border: 1px solid var(--gold); outline: 4px solid var(--accent); border-radius: 50%; background: var(--accent); color: var(--gold); font: 34px/50px serif; }
.hd-empty { display: flex; flex-direction: column; justify-content: center; gap: 24px; color: var(--accent); background: var(--paper); }
.hd-empty > span { font: 96px/1.2 serif; }
.hd-cover-names { margin: 10px 0 16px; }
.invitation-12 .hd-cover-names h2 { font-size: 50px; color: var(--gold); }
.hd-cover-names > span { display: inline-block; font: italic 24px/1 HyDuyenSerif, serif; }
.hd-cover-date { font: 24px/1.6 HyDuyenSerif, serif; letter-spacing: 2px; }
.hd-cover-date span { padding: 0 9px; color: var(--gold); }
.hd-cover-caption { margin-top: 19px !important; }
.invitation-12 .guest-name { position: relative; z-index: 1; display: inline-block; max-width: 100%; margin-top: 4px; color: var(--gold); font: 400 36px/1.5 HyDuyenScript, serif; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 7px; }
.hd-paper { background: var(--paper) url("../images/paper.webp") center / 100% 100%; color: var(--ink); }
.hd-paper .hd-kicker { color: var(--accent); }
.hd-paper .hd-script { color: var(--accent); }
.hd-families { position: relative; margin: 0 14px; padding: 40px 20px 44px; }
.hd-families > .hd-kicker { font-size: 14px; letter-spacing: 1px; margin-bottom: 12px; }
.hd-family-grid { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 20px; }
.hd-family h3 { font: 600 16px/1.5 Roboto, Arial, sans-serif; text-transform: uppercase; color: var(--accent); margin-bottom: 14px; }
.hd-parent { font-size: 14px; line-height: 1.8; font-weight: 600; }
.hd-family-address { font-size: 14px; line-height: 1.7; margin-top: 12px !important; }
.hd-tea { width: 140px; display: block; margin: 28px auto 18px; }
.hd-announcement { margin: 0 auto 20px !important; max-width: 280px; }
.invitation-12 .hd-full-name { font-size: 43px; }
.hd-amp { color: var(--accent) !important; font: italic 26px/1.5 HyDuyenSerif, serif; }
.hd-ceremony { border-top: 1px solid #b8976150; margin-top: 26px; padding-top: 26px; }
.hd-ceremony h3 { font: 400 16px/1.7 Roboto, Arial, sans-serif; margin-bottom: 12px; }
.hd-event-line { font-size: 16px; }
.hd-date { font: 26px/1.5 HyDuyenSerif, serif; color: var(--accent) !important; margin-top: 8px !important; }
.hd-lunar { font-size: 14px; font-style: italic; margin-top: 12px !important; }
.hd-venue { font-weight: 600; margin-top: 18px !important; }
.hd-reception { padding: 44px 28px 40px; }
.hd-reception .hd-kicker { margin-bottom: 12px; color: var(--gold); }
.hd-reception .hd-heading { color: var(--gold); }
.hd-invite-line { font-size: 14px; letter-spacing: 1px; max-width: 290px; margin: auto !important; }
.hd-reception-venue { font: 400 26px/1.5 HyDuyenSerif, serif; margin-top: 20px !important; color: var(--gold) !important; }
.hd-reception-address { margin-top: 10px !important; }
.hd-event-grid { display: grid; grid-template-columns: 1fr 1.7fr; margin-top: 26px; padding: 16px 0; border-block: 1px solid #edcf9270; }
.hd-event-grid > div + div { border-left: 1px solid #edcf9270; padding-left: 10px; }
.hd-event-grid span { display: block; font-size: 14px; }
.hd-event-grid strong { display: block; color: var(--gold); font: 24px/1.8 HyDuyenSerif, serif; }
.hd-button { display: inline-flex; justify-content: center; align-items: center; gap: 12px; min-height: 46px; padding: 10px 22px; border: 1px solid var(--accent); background: var(--accent); color: #fff; text-decoration: none; font: 500 16px/1.5 Roboto, Arial, sans-serif; border-radius: 4px; }
.hd-button:hover, .hd-button:focus-visible { color: #fff; filter: brightness(1.12); }
.hd-button-light { background: var(--paper); color: var(--accent); border-color: var(--gold); margin-top: 24px; }
.hd-button-light:hover, .hd-button-light:focus-visible { color: var(--accent); }
.hd-map { display: block; width: 100%; max-width: 100%; border: 1px solid var(--gold); border-radius: 4px; margin-top: 24px; }
.hd-calendar { position: relative; margin: 0 14px; padding: 42px 24px 38px; }
.hd-calendar > .hd-kicker { margin-right: 38px; text-align: left; letter-spacing: 1px; }
.hd-calendar .hd-heading { text-align: left; margin-top: 14px; margin-right: 30px; }
.hd-firecrackers { position: absolute; top: -12px; right: 6px; width: 48px; pointer-events: none; }
.hd-calendar-month { color: var(--accent) !important; font: 24px/1.5 HyDuyenSerif, serif; margin: 25px 0 16px !important; }
.hd-calendar table { table-layout: fixed; width: 100%; border-collapse: collapse; font-size: 16px; }
.hd-calendar th { font-size: 14px; padding-block: 10px; font-weight: 500; color: var(--accent); border-block: 1px solid #b8976160; }
.hd-calendar td { height: 44px; padding: 0; }
.hd-calendar td span { position: relative; display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; }
.hd-calendar td[aria-current] span { background: var(--accent); color: #fff; border-radius: 50%; outline: 1px solid var(--accent); outline-offset: 3px; }
.hd-portraits { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 18px; padding: 40px 22px; }
.hd-person figure { padding: 5px; border: 1px solid var(--gold); }
.hd-person figure img { display: block; width: 100%; height: auto; aspect-ratio: 5/7; object-fit: cover; object-position: center; }
.hd-person p { margin-top: 18px !important; font-size: 14px; letter-spacing: 2px; text-transform: uppercase; }
.invitation-12 .hd-person h2 { font-size: 40px; margin-top: 8px; color: var(--gold); }
.hd-quote { padding: 32px 30px 36px; margin: 0 14px; }
.hd-quote > span { display: inline-block; font: 40px/1.5 serif; color: var(--accent); }
.hd-quote p { margin-top: 12px !important; font: 22px/1.8 HyDuyenSerif, serif; }
.invitation-12 .hd-couple-photo { margin: 30px 22px 0; padding: 6px; border: 1px solid var(--gold); }
.hd-couple-photo img { display: block; width: 100%; aspect-ratio: 4/5; object-fit: cover; object-position: center 30%; }
.hd-album { padding: 40px 22px; }
.hd-album .hd-kicker { letter-spacing: 1px; font-size: 14px; margin-bottom: 12px; color: var(--gold); }
.hd-album .hd-heading { color: var(--gold); }
.hd-gallery { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 12px; }
.hd-gallery a { display: block; overflow: hidden; padding: 4px; border: 1px solid #edcf9280; }
.hd-gallery a:nth-child(3n) { grid-column: 1/-1; }
.hd-gallery img { width: 100%; height: auto; aspect-ratio: 3/4; display: block; object-fit: cover; }
.hd-gallery a:nth-child(3n) img { aspect-ratio: 4/3; object-position: center 35%; }
.hd-rsvp { padding: 36px 22px; margin: 0 14px; scroll-margin-top: 20px; }
.hd-rsvp .hd-kicker { letter-spacing: 1px; }
.hd-rsvp .hd-heading { margin-top: 12px; margin-bottom: 8px; }
.hd-rsvp-intro { margin-bottom: 26px !important; }
.hd-rsvp form { text-align: left; }
.hd-rsvp :is(input, textarea, select) { min-height: 44px; font-size: 16px; border: 1px solid #b8976180; border-radius: 4px; }
.hd-rsvp :is(input, textarea, select):focus { border-color: var(--accent); box-shadow: 0 0 0 3px #b8976130; }
.hd-rsvp label { line-height: 1.7; }
.hd-rsvp legend { font-size: 16px; margin-bottom: 10px; }
.hd-rsvp .form-check { display: flex; align-items: center; gap: 9px; padding: 7px 0 7px 27px; }
.hd-rsvp .form-check-input { min-height: 18px; min-width: 18px; margin-top: 0; }
.hd-rsvp .form-check-input:checked { background-color: var(--accent); border-color: var(--accent); }
.hd-rsvp select { margin-top: 14px; }
.invitation-12 .tsc-wishes-section { margin-top: 26px; }
.hd-gift { padding: 38px 14px; }
.hd-gift-card { position: relative; padding: 30px 22px; border: 1px solid var(--gold); }
.hd-gift-card .hd-heading { margin-bottom: 12px; }
.hd-envelopes { display: block; margin: 0 auto 20px; width: 108px; transform-origin: 50% 85%; animation: hd-envelope-wiggle 4.8s ease-in-out infinite; }
.hd-gift-open { border: 0; background: transparent; color: var(--accent); padding: 16px 0 0; min-height: 44px; font: 600 16px/1.6 Roboto, Arial, sans-serif; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.hd-gift-open::after { content: ""; position: absolute; inset: 0; }
.hd-gift-open:focus-visible { outline: none; }
.hd-gift-open:focus-visible::after { outline: 3px solid var(--gold); outline-offset: 4px; }
.hd-closing { position: relative; display: flex; align-items: end; min-height: 400px; padding: 60px 28px; background: var(--accent); }
.hd-closing-with-photo { min-height: 610px; }
.hd-closing-photo { position: absolute; inset: 0; width: 100%; height: 100% !important; object-fit: cover; object-position: center 30%; }
.hd-closing-with-photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, #1a0909ed 0%, #1a0909ab 40%, #1a090900 85%); }
.hd-closing-copy { position: relative; z-index: 1; width: 100%; }
.hd-closing-copy > span { display: inline-block; font: 54px/1.4 serif; color: var(--gold); }
.invitation-12 .hd-closing h2 { color: var(--gold); font-size: 46px; margin: 18px 0; }
.hd-closing p { font-size: 16px; line-height: 1.8; }
.hd-modal { --accent: var(--invitation-accent, #8e0101); color: #512e23; font: 16px/1.7 Roboto, Arial, sans-serif; }
.hd-modal #modalQr .modal-content { padding-top: 30px; border-radius: 12px; background: #fff8e9; }
.hd-modal .qr-code-wrapper .button-wrap { display: flex; justify-content: center; gap: 8px; margin-bottom: 20px; }
.hd-modal .qr-code-wrapper .pill-indicator { display: none; }
.hd-modal .qr-code-wrapper .pill-btn { min-height: 44px; border: 1px solid var(--accent); color: var(--accent); }
.hd-modal .qr-code-wrapper .pill-btn.active { background: var(--accent); color: #fff; }
.hd-modal .qr-code-wrapper .qr-block { display: none; width: 100%; min-width: 0; text-align: center; }
.hd-modal .qr-code-wrapper .qr-block.index-0 { display: block; }
.hd-modal .qr-code-wrapper .name { font-weight: 600; margin: 8px 0 15px; }
.hd-modal .qr-code-wrapper .bank-info { overflow-wrap: anywhere; }
.hd-modal .qr-code-wrapper .copy-stk { background: var(--accent); border-color: var(--accent); min-height: 44px; color: #fff; }
@keyframes hd-lantern-sway { 0%,100% { transform: rotate(-3deg); } 50% { transform: rotate(3deg); } }
@keyframes hd-envelope-wiggle { 0%,58%,100% { transform: rotate(0); } 64%,76% { transform: rotate(-5deg); } 70%,82% { transform: rotate(5deg); } 88% { transform: rotate(0); } }
@media (max-width: 359px) {
    .hd-cover { padding-inline: 23px; }
    .hd-cover > .hd-kicker { font-size: 14px; letter-spacing: 1px; }
    .hd-lantern { width: 48px; }
    .invitation-12 .hd-cover-names h2 { font-size: 44px; }
    .hd-cover-date { font-size: 22px; }
    .hd-cover-date span { padding: 0 5px; }
    .hd-families { padding-inline: 15px; }
    .hd-family-grid { gap: 14px; }
    .invitation-12 .hd-full-name { font-size: 38px; }
    .hd-portraits { padding-inline: 18px; gap: 14px; }
    .invitation-12 .hd-person h2 { font-size: 36px; }
    .hd-reception { padding-inline: 23px; }
    .hd-event-grid strong { font-size: 22px; }
    .hd-calendar { padding-inline: 18px; }
    .hd-rsvp { padding-inline: 18px; }
    .hd-closing-with-photo { min-height: 560px; }
}
@media (prefers-reduced-motion: reduce) {
    .invitation-12 *, .invitation-12 *::before, .invitation-12 *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
    .invitation-12 [data-aos] { opacity: 1 !important; transform: none !important; }
}
body:not([data-aos-easing]) .invitation-12 [data-aos] { opacity: 1; transform: none; }
