/* style3.css — Elegant Black & White theme
   Alternating ivory / black sections. Cover & TikTok are intentionally untouched. */

:root {
    --ivory: #f8f5ef;
    --ivory-deep: #efeae0;
    --ink: #121212;
    --ink-soft: #4a4a4a;
    --ink-mute: #7d7a73;
    --hairline: rgba(18, 18, 18, 0.14);
    --charcoal: #2b2b2e;
    --charcoal-deep: #1f1f22;
    --charcoal-soft: #3a3a3e;
}

/* ───────── Shared ivory section behaviour ───────── */
#quote,
#countdown,
#gallery,
#rsvp,
#closing {
    background: linear-gradient(180deg, var(--ivory) 0%, var(--ivory-deep) 100%);
    color: var(--ink);
    box-shadow: none;
    position: relative;
}

/* Fine inner frame for an editorial, invitation-card feel */
#quote::after,
#countdown::after,
#gallery::after,
#rsvp::after,
#closing::after {
    content: '';
    position: absolute;
    inset: 10px;
    border: 1px solid var(--hairline);
    pointer-events: none;
    z-index: 1;
}

#quote h2,
#countdown h2,
#gallery h2,
#rsvp h2,
#closing h2 {
    color: var(--ink);
    text-shadow: none;
}

/* ───────── Quote ───────── */
/* Bismillah: no layout shift while the Arabic font loads */
.bismillah {
    min-height: 3.6rem;
    line-height: 2;
    font-size: 1.35rem;
    color: var(--ink);
    transform: none !important;
    transition: opacity 0.9s ease 0.12s !important;
    font-display: block;
}

#quote .quote-title {
    color: var(--ink-mute);
    text-shadow: none;
}

#quote .holy-quote {
    color: var(--ink);
    text-shadow: none;
}

#quote .holy-quote::before,
#quote .holy-quote::after {
    color: rgba(18, 18, 18, 0.1);
}

#quote .quote-divider {
    background: var(--ink);
    height: 1px;
}

#quote .quote-blessing {
    color: var(--ink-soft);
}

/* ───────── Couple (black) ───────── */
#couple {
    background: radial-gradient(ellipse at 50% 0%, var(--charcoal-soft) 0%, var(--charcoal) 55%, var(--charcoal-deep) 100%);
}

#couple .couple-editorial-card {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.14);
}

#couple .editorial-photo-wrap {
    border-radius: 3px;
    box-shadow: 0 0 0 4px #f1ece1;
}

#couple .editorial-photo-wrap::after {
    content: '';
    position: absolute;
    inset: 0;
    box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.1);
}

/* ───────── Our Wedding Day (ivory) ───────── */
#countdown::before {
    background: radial-gradient(circle, rgba(0, 0, 0, 0.04) 0%, transparent 70%);
}

#countdown .wd-ornament-top svg path,
#countdown .wd-ornament-top svg circle,
#countdown .wd-ornament-bottom svg path {
    stroke: rgba(18, 18, 18, 0.4);
}

#countdown .wd-ornament-top svg circle[fill] {
    fill: rgba(18, 18, 18, 0.35);
}

#countdown .wd-eyebrow {
    color: var(--ink-mute);
}

#countdown .wedding-day-title {
    color: var(--ink);
    text-shadow: none;
}

#countdown .wedding-day-date {
    color: var(--ink-soft);
}

#countdown .ring-bg {
    stroke: rgba(18, 18, 18, 0.12);
}

#countdown .ring-fg {
    stroke: var(--ink);
}

#countdown .countdown-num {
    color: var(--ink);
}

#countdown .countdown-label {
    color: var(--ink-mute);
}

#countdown .wd-divider-line {
    background: linear-gradient(90deg, transparent, rgba(18, 18, 18, 0.35), transparent);
}

#countdown .wd-divider-icon {
    color: var(--ink);
}

#countdown .wd-event-card {
    background: #f1ece1;
    border: 1px solid var(--hairline);
    box-shadow: 0 10px 30px rgba(18, 18, 18, 0.06);
    border-radius: 4px;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}

#countdown .wd-event-card:hover {
    border-color: var(--ink);
    box-shadow: 0 14px 34px rgba(18, 18, 18, 0.12);
}

#countdown .wd-event-icon-wrap {
    background: var(--ink);
    border-color: var(--ink);
}

#countdown .wd-event-icon-wrap i {
    color: #fff;
}

#countdown .wd-event-name {
    color: var(--ink);
}

#countdown .wd-event-detail i {
    color: var(--ink-mute);
}

#countdown .wd-event-detail span {
    color: var(--ink-soft);
}

#countdown .wd-save-btn {
    background: var(--ink);
    border-color: var(--ink);
    color: #fff;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}

#countdown .wd-save-btn:hover {
    background: #f1ece1;
    color: var(--ink);
    box-shadow: 0 8px 22px rgba(18, 18, 18, 0.15);
}

/* ───────── Location (black) ───────── */
#location {
    background: var(--charcoal);
}

#location .location-header {
    background: radial-gradient(ellipse at 50% 0%, var(--charcoal-soft) 0%, var(--charcoal) 80%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.18);
}

#location .map-container-fullbleed {
    border-bottom: 1px solid rgba(255, 255, 255, 0.18);
}

/* ───────── Gallery (ivory) ───────── */
#gallery .gallery-img {
    border-radius: 2px;
    box-shadow: 0 0 0 3px #f1ece1, 0 6px 14px rgba(18, 18, 18, 0.14);
}

#gallery .gallery-grid {
    gap: 10px;
    padding: 4px;
}

#gallery .gallery-img:hover {
    box-shadow: 0 0 0 3px #f1ece1, 0 12px 22px rgba(18, 18, 18, 0.28);
}

/* ───────── RSVP (ivory) ───────── */
#rsvp {
    background: linear-gradient(180deg, var(--ivory-deep) 0%, var(--ivory) 100%);
}

#rsvp .rsvp-modern-card {
    background: #f1ece1 !important;
    border: 1px solid var(--hairline) !important;
    border-radius: 4px;
    box-shadow: 0 18px 44px rgba(18, 18, 18, 0.1) !important;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}

#rsvp .rsvp-title {
    color: var(--ink);
}

#rsvp .rsvp-subtitle {
    color: var(--ink-mute);
}

#rsvp .rsvp-label,
#rsvp .rsvp-label i {
    color: var(--ink-soft);
}

#rsvp .rsvp-form-modern input[type="text"],
#rsvp .rsvp-form-modern textarea {
    background: var(--ivory);
    border: 1px solid var(--hairline);
    border-radius: 3px;
    color: var(--ink);
}

#rsvp .rsvp-form-modern input[type="text"]::placeholder,
#rsvp .rsvp-form-modern textarea::placeholder {
    color: rgba(18, 18, 18, 0.38);
}

#rsvp .rsvp-form-modern input[type="text"]:focus,
#rsvp .rsvp-form-modern textarea:focus {
    border-color: var(--ink);
    background: #f1ece1;
    box-shadow: 0 0 0 2px rgba(18, 18, 18, 0.06);
}

#rsvp .attendance-card .card-inner {
    background: var(--ivory);
    border: 1px solid var(--hairline);
    border-radius: 3px;
    color: var(--ink-soft);
}

#rsvp .attendance-card:hover .card-inner {
    border-color: var(--ink);
    color: var(--ink);
    background: #f1ece1;
}

#rsvp .attendance-card input[type="radio"]:checked+.card-inner {
    background: var(--ink);
    border-color: var(--ink);
    color: #fff;
    box-shadow: 0 6px 14px rgba(18, 18, 18, 0.22);
}

#rsvp .rsvp-submit-btn {
    background: var(--ink);
    border: 1px solid var(--ink);
    color: #fff;
    border-radius: 3px;
}

#rsvp .rsvp-submit-btn:hover {
    background: #f1ece1;
    color: var(--ink);
}

/* ───────── Wedding Gift (black) ───────── */
#gift {
    background: radial-gradient(ellipse at 50% 0%, var(--charcoal-soft) 0%, var(--charcoal) 55%, var(--charcoal-deep) 100%);
}

/* ───────── Closing (ivory) ───────── */
#closing.closing-section {
    background: linear-gradient(180deg, var(--ivory) 0%, var(--ivory-deep) 100%);
}

#closing .closing-title {
    color: var(--ink);
    text-shadow: none;
}

#closing .closing-message {
    color: var(--ink-soft);
    text-shadow: none;
}

#closing .closing-divider {
    background: var(--ink);
}

#closing .closing-names {
    color: var(--ink);
    text-shadow: none;
}

#closing .closing-names p {
    animation: none;
}

#closing footer {
    border-top: 1px solid var(--hairline);
    position: relative;
    z-index: 2;
}

#closing footer p {
    color: var(--ink-mute);
}

/* Map: standard light tiles */
.leaflet-container {
    background: #f1f1f1 !important;
    /* × ivory layer on #map::after = section ivory */
}


/* ═══ All sections ivory (except cover & TikTok) ═══ */
#couple,
#location,
#gift {
    background: linear-gradient(180deg, var(--ivory) 0%, var(--ivory-deep) 100%);
    color: var(--ink);
    box-shadow: none;
    position: relative;
}

#couple::after,
#location::after,
#gift::after {
    content: '';
    position: absolute;
    inset: 10px;
    border: 1px solid var(--hairline);
    pointer-events: none;
    z-index: 1;
}

/* Couple */
#couple .couple-minimal-title {
    color: var(--ink);
}

#couple .couple-editorial-card {
    background: #f1ece1;
    border: 1px solid var(--hairline);
    border-radius: 4px;
    box-shadow: 0 12px 30px rgba(18, 18, 18, 0.08);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}

#couple .editorial-photo-wrap {
    box-shadow: 0 0 0 1px var(--hairline);
}

#couple .editorial-role {
    color: var(--ink-mute);
}

#couple .editorial-name {
    color: var(--ink);
}

#couple .editorial-parents {
    color: var(--ink-soft);
}

#couple .editorial-parents strong {
    color: var(--ink);
}

#couple .couple-ampersand {
    color: rgba(18, 18, 18, 0.35);
    text-shadow: none;
}

/* Stagger groom card slightly higher than bride card so their eye-lines meet naturally */
#couple .couple-editorial-grid {
    align-items: start;
}

#couple .bride-card {
    margin-top: 38px;
}

#couple .groom-card {
    margin-bottom: 38px;
}

/* Location */
#location .location-header {
    background: transparent;
    border-bottom: 1px solid var(--hairline);
}

#location .location-header h2 {
    color: var(--ink);
    text-shadow: none;
}

#location .location-address,
#location .location-address i {
    color: var(--ink-soft);
}

#location .map-container-fullbleed {
    border-bottom: 1px solid var(--hairline);
}

/* Gift */
#gift h2 {
    color: var(--ink);
    text-shadow: none;
}

/* Map pin: red */
.custom-map-pin .pin-icon {
    color: #e53935;
    filter: drop-shadow(0 3px 6px rgba(0, 0, 0, 0.45));
}

.custom-map-pin:hover .pin-icon {
    color: #c62828;
}

.custom-map-pin .pin-pulse {
    background: rgba(229, 57, 53, 0.4);
}

/* Form fields & attendance options sit a touch darker than their card */
#rsvp .rsvp-form-modern input[type="text"],
#rsvp .rsvp-form-modern textarea,
#rsvp .attendance-card .card-inner {
    background: #e9e3d6;
}

#rsvp .rsvp-form-modern input[type="text"]:focus,
#rsvp .rsvp-form-modern textarea:focus,
#rsvp .attendance-card:hover .card-inner {
    background: #f1ece1;
}

/* ═══ Cover: soft charcoal tone + ivory edge, so it flows into the ivory sections ═══ */
#cover.cover-modern {
    background-color: #2b2b2e;
}

#cover .cover-bg {
    background-image: url('images/cover/cover.jpg');
    background-position: center 45%;
    filter: brightness(0.95) contrast(1.03) saturate(0.97);
}

/* Keep the top half (arch & both faces) crystal clear; smooth dark vignette only across the lower half behind the text */
#cover .cover-overlay {
    background: linear-gradient(180deg,
            rgba(24, 24, 28, 0.04) 0%,
            rgba(24, 24, 28, 0.04) 44%,
            rgba(24, 24, 28, 0.32) 58%,
            rgba(24, 24, 28, 0.65) 75%,
            rgba(24, 24, 28, 0.88) 100%);
}

/* Position cover title in the lower-center below both faces, with guest & button cleanly underneath */
#cover .cover-container {
    justify-content: flex-end;
    gap: clamp(18px, 3.4vh, 32px);
    padding: 28px 24px clamp(55px, 8vh, 80px);
}

#cover .cover-header {
    margin: 0;
    transform: none;
}

#cover .cover-badge {
    margin-bottom: 5px;
}

#cover .cover-names {
    flex-direction: row;
    justify-content: center;
    align-items: baseline;
    gap: 10px;
    margin-bottom: 10px;
    line-height: 1.05;
}

#cover .cover-names .name {
    font-size: clamp(2.35rem, 9.5vw, 3.05rem);
}

#cover .cover-names .ampersand {
    font-size: clamp(1.55rem, 5.8vw, 2.0rem);
    margin: 0;
}

#cover .cover-date-pill {
    padding: 5px 15px;
}

#cover .cover-footer {
    position: static;
    gap: 12px;
    padding: 0;
}

/* Fine inner frame, same language as the other sections */
#cover .cover-container::before {
    content: '';
    position: absolute;
    inset: 10px;
    border: 1px solid rgba(248, 245, 239, 0.38);
    pointer-events: none;
}

/* Ivory edge at the bottom: seamless hand-off to the first ivory section */
#cover.cover-modern::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 22px;
    background: linear-gradient(180deg, rgba(248, 245, 239, 0) 0%, #f8f5ef 100%);
    z-index: 4;
    pointer-events: none;
}

#cover .cover-names .name,
#cover .cover-names .ampersand,
#cover .cover-guest .guest-name {
    color: #f8f5ef;
}

#cover .cover-date-pill {
    background: rgba(43, 43, 46, 0.45);
    border-color: rgba(248, 245, 239, 0.3);
    color: #f1ece1;
}

#cover .open-invitation-btn {
    background: #f1ece1;
    border-color: #f1ece1;
    color: #26262a;
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.28);
}

#cover .open-invitation-btn i {
    color: #26262a;
}

#cover .open-invitation-btn:hover {
    background: #f8f5ef;
    color: #26262a;
    border-color: #f8f5ef;
}

#cover .open-invitation-btn .btn-glow {
    display: none;
}

/* ═══ Gift: soft light cards (no ATM look), same language as other sections ═══ */
#gift .gift-grid {
    gap: 14px;
}

#gift .atm-card,
#gift .bca-card,
#gift .mandiri-card,
#gift .address-card {
    background: #f1ece1;
    aspect-ratio: auto;
    max-width: 320px;
    border-radius: 4px;
    padding: 18px 20px 16px;
    gap: 12px;
    border: 1px solid var(--hairline);
    box-shadow: 0 10px 26px rgba(18, 18, 18, 0.07);
    position: relative;
}

#gift .atm-card:hover {
    transform: translateY(-3px);
    border-color: var(--ink);
    box-shadow: 0 14px 30px rgba(18, 18, 18, 0.12);
}

/* inner hairline frame on each card */
#gift .atm-card::after {
    content: '';
    position: absolute;
    inset: 5px;
    border: 1px solid rgba(18, 18, 18, 0.07);
    border-radius: 2px;
    pointer-events: none;
}

/* no chip; logo / title centred with a divider below */
#gift .atm-chip,
#gift .atm-chip-silver {
    display: none;
}

#gift .atm-card-header {
    justify-content: center;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--hairline);
}

#gift .bank-logo-wrap,
#gift .address-card .bank-logo-wrap {
    background: transparent !important;
    box-shadow: none !important;
    padding: 0;
    height: 36px;
}

#gift .bank-logo-atm {
    height: 28px;
}

#gift .bca-card .bank-logo-atm {
    height: 34px;
}

#gift .gift-card-title {
    color: var(--ink);
    text-shadow: none;
    font-size: 0.7rem;
    letter-spacing: 3px;
}

#gift .atm-card-body {
    align-items: center;
    margin: 2px 0;
}

#gift .card-number-label,
#gift .card-holder-label {
    color: var(--ink-mute);
    text-shadow: none;
}

#gift .card-number {
    color: var(--ink);
    text-shadow: none;
    text-align: center;
    font-family: var(--font-serif);
    font-size: 1.45rem;
    letter-spacing: 3px;
}

#gift .card-address {
    color: var(--ink-soft);
    text-shadow: none;
    text-align: center;
}

#gift .card-holder-name {
    color: var(--ink);
    text-shadow: none;
}

#gift .atm-card-footer {
    align-items: center;
}

#gift .copy-btn-atm {
    background: var(--ink);
    border: 1px solid var(--ink);
    color: #f1ece1;
    border-radius: 3px;
    box-shadow: none;
}

#gift .copy-btn-atm:hover {
    background: #f1ece1;
    color: var(--ink);
    border-color: var(--ink);
    transform: none;
}

/* Gift: text-only header (no logos) */
#gift .bca-card .bank-logo-wrap,
#gift .mandiri-card .bank-logo-wrap {
    display: none;
}

#gift .bca-card .atm-card-header::before,
#gift .mandiri-card .atm-card-header::before {
    font-family: var(--font-serif);
    font-size: 1.1rem;
    font-weight: 500;
    letter-spacing: 6px;
    text-indent: 6px;
    color: var(--ink);
    line-height: 36px;
}

#gift .bca-card .atm-card-header::before {
    content: 'BCA';
}

#gift .mandiri-card .atm-card-header::before {
    content: 'MANDIRI';
}

#gift .address-card .gift-card-title {
    font-family: var(--font-serif);
    font-size: 1.1rem;
    font-weight: 500;
    letter-spacing: 6px;
    text-indent: 6px;
    line-height: 36px;
}

#gift .atm-card-header {
    padding-bottom: 10px;
}

/* ═══ Wedding Gift — elegant account panel ═══ */
#gift {
    padding: 40px 20px;
}

#gift .gift-elegant {
    max-width: 340px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

#gift .gift-eyebrow {
    display: block;
    font-family: var(--font-sans);
    font-size: 0.58rem;
    font-weight: 500;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: var(--ink-mute);
    margin-bottom: 6px;
}

#gift .gift-lead {
    font-family: var(--font-serif);
    font-style: italic;
    font-size: 1rem;
    line-height: 1.7;
    color: var(--ink-soft);
    margin: 0 auto 22px;
    max-width: 300px;
}

#gift .gift-panel {
    background: #f1ece1;
    border: 1px solid var(--hairline);
    border-radius: 4px;
    padding: 26px 22px 24px;
    box-shadow: 0 12px 30px rgba(18, 18, 18, 0.07);
    position: relative;
}

#gift .gift-panel::before {
    content: '';
    position: absolute;
    inset: 6px;
    border: 1px solid rgba(18, 18, 18, 0.08);
    border-radius: 2px;
    pointer-events: none;
}

#gift .gift-account {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
}

#gift .gift-bank {
    font-family: var(--font-sans);
    font-size: 0.66rem;
    font-weight: 600;
    letter-spacing: 5px;
    text-indent: 5px;
    color: var(--ink-mute);
    margin-bottom: 8px;
}

#gift .gift-number {
    font-family: var(--font-serif);
    font-size: 1.75rem;
    font-weight: 500;
    letter-spacing: 3px;
    color: var(--ink);
    line-height: 1.1;
    margin: 0 0 6px;
}

#gift .gift-holder {
    font-family: var(--font-serif);
    font-style: italic;
    font-size: 0.98rem;
    color: var(--ink-soft);
    margin: 0 0 14px;
}

#gift .gift-copy {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 7px 20px;
    background: transparent;
    border: 1px solid var(--ink);
    border-radius: 999px;
    color: var(--ink);
    font-family: var(--font-sans);
    font-size: 0.6rem;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    cursor: pointer;
    transition: background 0.25s ease, color 0.25s ease;
}

#gift .gift-copy:hover {
    background: var(--ink);
    color: #f1ece1;
}

/* "Copied!" state: muted sage instead of the default bright green */
#gift .gift-copy[style] {
    background: #5f6f62 !important;
    border-color: #5f6f62 !important;
    color: #f1ece1 !important;
}

#gift .gift-sep {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 22px auto;
    width: 70%;
    position: relative;
}

#gift .gift-sep span {
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(18, 18, 18, 0.3), transparent);
}

#gift .gift-sep i {
    font-size: 0.55rem;
    color: var(--ink);
    opacity: 0.7;
}

/* ═══ Wedding Gift v3 — icon header + two refined account cards ═══ */
#gift {
    --accent: #a8946a;
    padding: 44px 20px 48px;
}

#gift .gift-icon-ring {
    width: 60px;
    height: 60px;
    margin: 0 auto 14px;
    border-radius: 50%;
    border: 1px solid var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    color: var(--ink);
    font-size: 1.1rem;
}

#gift .gift-icon-ring::before {
    content: '';
    position: absolute;
    inset: 5px;
    border-radius: 50%;
    border: 1px solid rgba(168, 148, 106, 0.4);
}

#gift .gift-elegant h2 {
    font-size: 2.2rem;
    letter-spacing: 1.5px;
    margin-bottom: 10px;
}

#gift .gift-rule {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 55%;
    margin: 0 auto 14px;
}

#gift .gift-rule span {
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent), transparent);
}

#gift .gift-rule i {
    font-size: 0.5rem;
    color: var(--accent);
}

#gift .gift-lead {
    margin-bottom: 26px;
}

#gift .gift-stack {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

#gift .gift-card {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 24px 20px 22px;
    background: linear-gradient(160deg, #f6f1e7 0%, #ece6d8 100%);
    border: 1px solid rgba(168, 148, 106, 0.45);
    border-radius: 3px;
    box-shadow: 0 14px 30px rgba(18, 18, 18, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

#gift .gift-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 18px 36px rgba(18, 18, 18, 0.13);
}

/* inner hairline frame */
#gift .gift-card::before {
    content: '';
    position: absolute;
    inset: 6px;
    border: 1px solid rgba(18, 18, 18, 0.07);
    pointer-events: none;
}

/* champagne corner accents */
#gift .gift-corner {
    position: absolute;
    width: 16px;
    height: 16px;
    border-color: var(--accent);
    border-style: solid;
    border-width: 0;
    pointer-events: none;
}

#gift .gift-corner.tl {
    top: 10px;
    left: 10px;
    border-top-width: 1px;
    border-left-width: 1px;
}

#gift .gift-corner.br {
    bottom: 10px;
    right: 10px;
    border-bottom-width: 1px;
    border-right-width: 1px;
}

#gift .gift-bank {
    font-family: var(--font-serif);
    font-size: 1.25rem;
    font-weight: 600;
    letter-spacing: 7px;
    text-indent: 7px;
    color: var(--ink);
    margin-bottom: 14px;
    padding-bottom: 10px;
    position: relative;
}

#gift .gift-bank::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    width: 28px;
    height: 1px;
    transform: translateX(-50%);
    background: var(--accent);
}

#gift .gift-label {
    font-family: var(--font-sans);
    font-size: 0.5rem;
    font-weight: 500;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--ink-mute);
    margin-bottom: 6px;
}

#gift .gift-number {
    font-family: var(--font-sans);
    font-size: 1.5rem;
    font-weight: 300;
    letter-spacing: 4px;
    text-indent: 4px;
    color: var(--ink);
    margin: 0 0 8px;
    line-height: 1.2;
}

#gift .gift-holder {
    font-family: var(--font-serif);
    font-style: italic;
    font-size: 1rem;
    color: var(--ink-soft);
    margin: 0 0 18px;
}

#gift .gift-copy {
    padding: 9px 24px;
    background: var(--ink);
    border: 1px solid var(--ink);
    color: #f1ece1;
    border-radius: 999px;
    font-size: 0.58rem;
    letter-spacing: 2.2px;
    box-shadow: 0 6px 14px rgba(18, 18, 18, 0.18);
}

#gift .gift-copy:hover {
    background: transparent;
    color: var(--ink);
}

/* ═══ Gift v4 — compact & simple ═══ */
#gift {
    padding: 28px 20px 32px;
}

#gift .gift-icon-ring {
    width: 40px;
    height: 40px;
    margin-bottom: 8px;
    font-size: 0.85rem;
}

#gift .gift-icon-ring::before {
    inset: 4px;
}

#gift .gift-elegant h2 {
    font-size: 1.8rem;
    margin-bottom: 6px;
}

#gift .gift-rule {
    margin-bottom: 8px;
}

#gift .gift-lead {
    font-size: 0.88rem;
    line-height: 1.55;
    margin-bottom: 16px;
    max-width: 280px;
}

#gift .gift-elegant {
    max-width: 300px;
}

#gift .gift-stack {
    gap: 10px;
}

#gift .gift-card {
    padding: 14px 16px 14px;
    background: #f1ece1;
    border: 1px solid var(--hairline);
    box-shadow: 0 6px 16px rgba(18, 18, 18, 0.05);
}

#gift .gift-card:hover {
    transform: none;
    box-shadow: 0 8px 20px rgba(18, 18, 18, 0.09);
}

#gift .gift-card::before,
#gift .gift-corner,
#gift .gift-label {
    display: none;
}

#gift .gift-bank {
    font-size: 0.8rem;
    letter-spacing: 5px;
    text-indent: 5px;
    margin-bottom: 8px;
    padding-bottom: 7px;
}

#gift .gift-bank::after {
    width: 20px;
}

#gift .gift-number {
    font-size: 1.1rem;
    letter-spacing: 3px;
    text-indent: 3px;
    margin-bottom: 3px;
}

#gift .gift-holder {
    font-size: 0.82rem;
    margin-bottom: 10px;
}

#gift .gift-copy {
    padding: 6px 16px;
    font-size: 0.52rem;
    letter-spacing: 1.8px;
    box-shadow: none;
}

/* Cover: no ivory strip at the bottom edge */
#cover.cover-modern::after {
    content: none;
    display: none;
}

/* Location: keep the map inside the inner frame */
#location .location-header {
    border-bottom: none;
    padding: 36px 24px 16px;
}

#location .map-container-fullbleed {
    flex: 0 0 auto;
    width: auto;
    margin: 0 24px 26px;
    border: 1px solid var(--hairline);
    border-radius: 3px;
    box-shadow: 0 10px 26px rgba(18, 18, 18, 0.08);
    overflow: hidden;
}

#location #map {
    min-height: 340px;
    height: 340px;
}


/* Map tinted to the ivory background — plain CSS only (SVG url() filters are ignored by
   many mobile browsers). Tiles go grayscale (land ≈ #f1f1f1), then an ivory layer is
   multiplied on top: land → ≈ #f1ede5, roads stay a touch lighter, labels stay dark. */
#map {
    isolation: isolate;
}

#map .leaflet-tile-pane {
    -webkit-filter: grayscale(1);
    filter: grayscale(1);
}

#map::after {
    content: '';
    position: absolute;
    inset: 0;
    background: #fffaf2;
    mix-blend-mode: multiply;
    pointer-events: none;
    z-index: 450;
    /* above tiles & marker, below zoom controls */
}

/* ═══ Cover: "Open Invitation" button motion so guests know it's tappable ═══ */
/* 1) Soft ivory ring that pulses outward */
#cover .open-invitation-btn {
    animation: openBtnPulse 2.4s ease-out infinite;
}

@keyframes openBtnPulse {
    0% {
        box-shadow: 0 8px 22px rgba(0, 0, 0, 0.28), 0 0 0 0 rgba(241, 236, 225, 0.6);
    }

    70% {
        box-shadow: 0 8px 22px rgba(0, 0, 0, 0.28), 0 0 0 16px rgba(241, 236, 225, 0);
    }

    100% {
        box-shadow: 0 8px 22px rgba(0, 0, 0, 0.28), 0 0 0 0 rgba(241, 236, 225, 0);
    }
}

/* 2) Light sweep across the button */
#cover .open-invitation-btn .btn-glow {
    display: block;
    background: linear-gradient(100deg, transparent 20%, rgba(255, 255, 255, 0.9) 50%, transparent 80%);
    animation: btnShimmer 3.2s ease-in-out infinite;
}

/* 3) Envelope icon gives a small wiggle every few seconds */
#cover .open-invitation-btn i {
    display: inline-block;
    transform-origin: 50% 80%;
    animation: openBtnIcon 3.2s ease-in-out infinite;
}

@keyframes openBtnIcon {

    0%,
    62%,
    100% {
        transform: rotate(0) scale(1);
    }

    68% {
        transform: rotate(-14deg) scale(1.12);
    }

    74% {
        transform: rotate(12deg) scale(1.12);
    }

    80% {
        transform: rotate(-8deg) scale(1.06);
    }

    86% {
        transform: rotate(0) scale(1);
    }
}

/* Hover: stop the attention cues and keep the lift */
#cover .open-invitation-btn:hover {
    animation: none;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.35);
}

#cover .open-invitation-btn:hover i {
    animation: none;
    transform: scale(1.15);
}

@media (prefers-reduced-motion: reduce) {

    #cover .open-invitation-btn,
    #cover .open-invitation-btn i,
    #cover .open-invitation-btn .btn-glow {
        animation: none;
    }
}

/* Keep icon & label above the light sweep */
#cover .open-invitation-btn>i,
#cover .open-invitation-btn>span:not(.btn-glow) {
    position: relative;
    z-index: 1;
}


/* ═══ Gallery: 10-photo editorial 2-3-3-2 layout (from images/gallery/) ═══ */
#gallery .gallery-grid {
    grid-template-columns: repeat(6, 1fr);
    gap: 9px;
    padding: 4px;
}

#gallery .gallery-img {
    grid-column: span 2;
    height: clamp(98px, 13.5vh, 122px);
    object-fit: cover;
    object-position: center 36%;
}

/* Featured top & bottom pairs (2 wide portraits on row 1 and row 4) */
#gallery .gallery-img:nth-child(1),
#gallery .gallery-img:nth-child(2),
#gallery .gallery-img:nth-child(9),
#gallery .gallery-img:nth-child(10) {
    grid-column: span 3;
    height: clamp(114px, 16vh, 144px);
}

/* Per-photo focal points so faces, gowns & floral arches stay cleanly framed */
#gallery .gallery-img:nth-child(1) {
    object-position: center 33%;
}

#gallery .gallery-img:nth-child(2) {
    object-position: center 30%;
}

#gallery .gallery-img:nth-child(3) {
    object-position: center 40%;
}

#gallery .gallery-img:nth-child(4) {
    object-position: center 35%;
}

#gallery .gallery-img:nth-child(5) {
    object-position: center 40%;
}

#gallery .gallery-img:nth-child(6) {
    object-position: center 35%;
}

#gallery .gallery-img:nth-child(7) {
    object-position: center 46%;
}

#gallery .gallery-img:nth-child(8) {
    object-position: center 32%;
}

#gallery .gallery-img:nth-child(9) {
    object-position: center 33%;
}

#gallery .gallery-img:nth-child(10) {
    object-position: center 35%;
}