/* ── Variables ── */
:root {
    --bg:          #fdfaf6;
    --white:       #ffffff;
    --text:        #3a4750;
    --muted:       #6e7c87;
    --accent:      #d4a373;
    --accent-light:#f1e3d3;
    --accent-dark: #b8864a;
    --serif:       'Playfair Display', serif;
    --sans:        'Montserrat', sans-serif;
    --script:      'Alex Brush', cursive;
    --radius:      16px;
}

/* ── Reset ── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
    font-family: var(--sans);
    background: var(--bg);
    color: var(--text);
    line-height: 1.8;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    /* Pastikan tidak ada margin/padding tersisa */
    margin: 0;
    padding: 0;
    width: 100%;
}
body.no-scroll { overflow: hidden; height: 100vh; }
img { max-width: 100%; display: block; }

/* Pastikan main tidak memotong bingkai yang full-width */
main { overflow: visible; }

/* ── Bingkai section ── */
.section-frame {
    position: relative;
}
/* Teknik: absolute stretch full width tanpa tergantung container */
.section-frame-top,
.section-frame-bottom {
    display: block;
    position: absolute;
    left: 0;
    right: 0;
    width: 100%;
    line-height: 0;
    pointer-events: none;
    user-select: none;
    z-index: 2;
}
.section-frame-top { top: 0; }
.section-frame-bottom { bottom: 0; }
.section-frame-top img,
.section-frame-bottom img {
    width: 100%;
    display: block;
    object-fit: fill;
}

/* Intro juga punya bingkai — perlu position relative */
.intro {
    position: fixed;
    inset: 0;
    background: var(--bg);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    transition: opacity 1s ease-in-out;
    overflow: hidden;
}
.intro-frame-top,
.intro-frame-bottom {
    position: absolute;
    left: 0;
    right: 0;
    width: 100%;
    line-height: 0;
    pointer-events: none;
    z-index: 1;
    display: block;
}
.intro-frame-top  { top: 0; }
.intro-frame-bottom { bottom: 0; }
.intro-frame-top img,
.intro-frame-bottom img,
.intro-frame-top,
.intro-frame-bottom {
    width: 100%;
    display: block;
    object-fit: fill;
}
/* Konten intro di atas bingkai */
.intro-content { position: relative; z-index: 2; }

/* Setiap section-frame butuh position relative */
.section-frame,
.intro { position: relative; }

/* Semua section min-height 100vh, konten di tengah */
.section-frame {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
/* Konten utama section mengisi ruang yang tersedia */
.section-frame > .container {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-top: 2rem;
    padding-bottom: 2rem;
}
/* Hero sudah full height secara default */
.section-frame.hero {
    min-height: 100vh;
    justify-content: center;
    align-items: center;
}
/* Section dengan konten panjang boleh lebih dari 100vh */
.section-frame.gallery,
.section-frame.wishes-section {
    min-height: 100vh;
    height: auto;
}
.section-frame.hero,
.section-frame.quote,
.section-frame.couple,
.section-frame.event,
.section-frame.map-section,
.section-frame.gallery,
.section-frame.wishes-section,
.section-frame.footer {
    padding-top: 0 !important;
    padding-bottom: 0 !important;
}
/* Konten di dalam section tetap punya padding vertikal */
.section-frame > .container,
.section-frame > .arch-frame {
    padding-top: 3rem;
    padding-bottom: 3rem;
}
/* Hero beda — butuh padding lebih karena full height */
.section-frame.hero > .arch-frame {
    padding-top: 4rem;
    padding-bottom: 4rem;
}
/* Footer */
.section-frame.footer > .botanical-divider,
.section-frame.footer > .footer-names,
.section-frame.footer > .footer-copy,
.section-frame.footer > p {
    margin-top: 0;
}

/* ── Container ── */
.container { max-width: 900px; margin: 0 auto; padding: 0 1.5rem; }

/* ── Section titles ── */
.section-title {
    font-family: var(--serif);
    font-size: clamp(1.4rem, 4vw, 2rem);
    color: var(--accent);
    text-align: center;
    letter-spacing: .15em;
    margin-bottom: 1.5rem;
}

/* ════════════════════════════
   BOTANICAL BG
════════════════════════════ */
.botanical-bg { position: fixed; inset: 0; z-index: 0; pointer-events: none; }
.flower-top-left {
    position: absolute; top: -5%; left: -5%; width: 40%; height: 40%;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 200'%3E%3Cpath d='M10,10 Q50,0 90,40 T150,90' stroke='%23d4a373' stroke-width='0.5' fill='none' opacity='0.2'/%3E%3Ccircle cx='90' cy='40' r='2' fill='%23d4a373' opacity='0.3'/%3E%3C/svg%3E");
    background-size: contain; background-repeat: no-repeat;
}
.flower-bottom-right {
    position: absolute; bottom: -5%; right: -5%; width: 40%; height: 40%;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 200'%3E%3Cpath d='M190,190 Q150,200 110,160 T50,110' stroke='%23d4a373' stroke-width='0.5' fill='none' opacity='0.2'/%3E%3Ccircle cx='110' cy='160' r='2' fill='%23d4a373' opacity='0.3'/%3E%3C/svg%3E");
    background-size: contain; background-repeat: no-repeat;
}

/* ════════════════════════════
   INTRO / COVER
════════════════════════════ */
.intro {
    position: fixed; inset: 0; background: var(--bg); z-index: 10000;
    display: flex; align-items: center; justify-content: center;
    text-align: center; transition: opacity 1s ease-in-out;
}
.intro-content { max-width: 560px; padding: 2rem; width: 100%; }

.watercolor-seal {
    width: 88px; height: 88px; border: 1px solid var(--accent); border-radius: 50%;
    margin: 0 auto 2.5rem; display: flex; align-items: center; justify-content: center;
    font-family: var(--serif); font-size: 1.8rem; color: var(--accent); position: relative;
}
.watercolor-seal::after {
    content: ''; position: absolute; inset: -6px;
    border: 0.5px solid rgba(212,163,115,.3); border-radius: 50%;
}
.intro-subtitle {
    font-size: .65rem; letter-spacing: .4em; color: var(--muted);
    margin-bottom: 1.2rem; text-transform: uppercase;
}
.intro-names {
    font-family: var(--serif); font-size: clamp(2.2rem, 9vw, 3.8rem);
    color: var(--text); margin-bottom: 2.5rem; line-height: 1.2;
}
.guest-card {
    margin-bottom: 3rem; padding: 1.5rem 2rem;
    background: var(--white); border-radius: var(--radius);
    box-shadow: 0 8px 24px rgba(0,0,0,.04);
}
.to-label { font-size: .8rem; color: var(--muted); }
.guest-name {
    font-family: var(--serif); font-size: clamp(1.4rem, 5vw, 1.8rem);
    margin-top: .5rem; color: var(--accent);
}
.btn-watercolor {
    background: var(--accent); color: white; border: none;
    padding: .9rem 2.5rem; font-family: var(--sans);
    letter-spacing: .15em; font-size: .8rem; cursor: pointer;
    border-radius: 50px; transition: .3s;
}
.btn-watercolor:hover { background: var(--accent-dark); transform: translateY(-2px); }

/* ════════════════════════════
   NAVIGATION
════════════════════════════ */
nav {
    position: fixed; bottom: 1.5rem; left: 50%;
    transform: translateX(-50%) translateY(100px);
    z-index: 1000; opacity: 0;
    transition: .8s cubic-bezier(.16,1,.3,1);
}
nav.visible { transform: translateX(-50%) translateY(0); opacity: 1; }
.nav-inner {
    background: rgba(255,255,255,.88); backdrop-filter: blur(12px);
    padding: .75rem 1.5rem; border-radius: 100px;
    display: flex; gap: 1.5rem;
    box-shadow: 0 8px 24px rgba(0,0,0,.08);
}
nav a {
    color: var(--muted); transition: .3s;
    display: flex; align-items: center;
    text-decoration: none;
}
nav a.active { color: var(--accent); transform: scale(1.15); }
nav a:hover  { color: var(--accent); }

/* ════════════════════════════
   MUSIC BUTTON
════════════════════════════ */
.music-toggle-btn {
    position: fixed; top: 1.25rem; right: 1.25rem; z-index: 1001;
    width: 44px; height: 44px; border-radius: 50%; border: none;
    cursor: pointer; display: flex; align-items: center; justify-content: center;
    transition: transform .2s;
    box-shadow: 0 4px 12px rgba(0,0,0,.2);
    background: var(--accent); color: white;
}
.music-toggle-btn:hover { transform: scale(1.1); }
.music-toggle-btn svg { width: 20px; height: 20px; }

/* ════════════════════════════
   HERO
════════════════════════════ */
.hero {
    min-height: 100vh; display: flex;
    align-items: center; justify-content: center;
    padding: 2rem 1rem; position: relative;
}
.arch-frame {
    width: min(85%, 420px);
    min-height: 60vh;
    border: 1px solid var(--accent-light);
    border-radius: 210px 210px 20px 20px;
    display: flex; align-items: center; justify-content: center;
    text-align: center; padding: 3rem 2rem;
    background: var(--white);
    box-shadow: 0 20px 60px rgba(0,0,0,.04);
}
.hero-label {
    font-size: .65rem; letter-spacing: .4em;
    color: var(--muted); margin-bottom: 1.5rem; text-transform: uppercase;
}
.hero-names {
    font-family: var(--serif); font-size: clamp(2rem, 7vw, 3rem);
    color: var(--text); margin-bottom: 2.5rem; line-height: 1.2;
}
.hero-date { display: flex; align-items: center; justify-content: center; gap: 1.25rem; color: var(--accent); }
.hero-date .day { font-size: clamp(2.5rem, 7vw, 3.5rem); font-family: var(--serif); line-height: 1; }
.month-year {
    text-align: left; border-left: 1px solid var(--accent-light);
    padding-left: 1.25rem;
}
.month-year .month { display: block; font-size: 1.1rem; font-weight: 700; }
.month-year .year  { font-size: .9rem; opacity: .7; }

/* ════════════════════════════
   QUOTE
════════════════════════════ */
.quote { padding: 0 1.5rem; }.quote p {
    font-family: var(--serif); font-size: clamp(1rem, 3vw, 1.4rem);
    font-style: italic; color: var(--muted);
    max-width: 620px; margin: 0 auto 1.5rem;
}
.quote cite { font-size: .85rem; color: var(--accent); display: block; margin-bottom: 3rem; }
.botanical-divider {
    width: 100px; height: 1px; background: var(--accent-light);
    margin: 0 auto; position: relative;
}
.botanical-divider::after {
    content: '✤'; position: absolute; top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    background: var(--bg); padding: 0 .75rem;
    color: var(--accent); font-size: .75rem;
}

/* ════════════════════════════
   COUPLE
════════════════════════════ */
.couple { }
.couple-flex {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 2rem;
    max-width: 700px;
    margin: 0 auto;
}
.couple-item { text-align: center; }
.portrait-arch {
    width: 140px; height: 210px; margin: 0 auto 2rem;
    border-radius: 70px 70px 0 0;
    background: var(--accent-light); opacity: .5;
}
.name { font-family: var(--script); font-size: clamp(2rem, 7vw, 2.8rem); color: var(--accent); margin-bottom: 1rem; }
.ampersand {
    font-family: var(--serif); font-size: clamp(2rem, 5vw, 3.5rem);
    color: var(--accent-light); flex-shrink: 0; text-align: center;
    align-self: center;
}
.parent { font-size: .85rem; color: var(--muted); line-height: 1.7; }

/* ════════════════════════════
   EVENT
════════════════════════════ */
.event { background: var(--white); }
.countdown-watercolor {
    display: flex; justify-content: center; gap: 1.5rem;
    margin-bottom: 4rem; flex-wrap: wrap;
}
.time-box { text-align: center; min-width: 64px; }
.time-box span {
    display: block; font-size: clamp(2rem, 7vw, 3rem);
    font-family: var(--serif); color: var(--accent);
}
.time-box label {
    font-size: .6rem; letter-spacing: .2em;
    color: var(--muted); text-transform: uppercase;
}
.event-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
    gap: 2rem;
}
.event-card {
    position: relative; padding: 3rem 2rem;
    text-align: center; overflow: hidden;
    border-radius: var(--radius);
    border: 1px solid var(--accent-light);
}
.card-bg { position: absolute; inset: 0; background: var(--bg); opacity: .6; z-index: 0; }
.card-content { position: relative; z-index: 1; }
.event-icon { font-size: 2rem; margin-bottom: 1rem; }
.event-title {
    font-family: var(--serif); font-size: 1.4rem;
    color: var(--accent); margin-bottom: 1.5rem;
}
.event-date { font-weight: 600; margin-bottom: .4rem; font-size: .95rem; }
.event-time { color: var(--muted); margin-bottom: .6rem; font-size: .9rem; }
.event-location {
    color: var(--muted); font-size: .9rem; margin-bottom: 0;
    line-height: 1.6;
}

/* ════════════════════════════
   MAP
════════════════════════════ */
.map-section { }

.map-card {
    background: var(--white);
    border-radius: var(--radius);
    border: 1px solid var(--accent-light);
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,.05);
}

.map-info {
    display: flex; align-items: center; gap: 1rem;
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--accent-light);
    flex-wrap: wrap;
}
.map-detail { display: flex; align-items: flex-start; gap: .75rem; flex: 1; min-width: 180px; }
.map-icon { font-size: 1.4rem; flex-shrink: 0; margin-top: 2px; }
.map-venue { font-weight: 600; font-size: .95rem; color: var(--text); margin-bottom: .2rem; }
.map-address { font-size: .82rem; color: var(--muted); line-height: 1.6; }

.btn-map-nav {
    display: inline-flex; align-items: center; gap: .4rem;
    background: var(--accent); color: white; text-decoration: none;
    padding: .6rem 1.2rem; border-radius: 50px; font-size: .78rem;
    letter-spacing: .04em; white-space: nowrap; transition: .3s; flex-shrink: 0;
}
.btn-map-nav:hover { background: var(--accent-dark); }

.leaflet-map {
    width: 100%; height: 300px; display: block;
}

.map-embed-placeholder {
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    gap: .75rem; height: 180px;
    background: var(--accent-light);
    color: var(--accent); text-decoration: none;
    font-size: .88rem; font-weight: 500; transition: .3s;
}
.map-embed-placeholder:hover { background: var(--accent); color: white; }

/* ════════════════════════════
   GALLERY — Modern Layout
════════════════════════════ */
.gallery { }

.gallery-subtitle {
    text-align: center;
    font-size: .85rem;
    color: var(--muted);
    font-style: italic;
    margin-top: -.5rem;
    margin-bottom: 2rem;
    letter-spacing: .05em;
}

/* ── Main layout: featured kiri + grid kanan ── */
.gallery-layout {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: .5rem;
    border-radius: var(--radius);
    overflow: hidden;
}

/* ── Featured photo (besar di kiri) ── */
.gallery-featured {
    position: relative;
    aspect-ratio: 3/4;
    cursor: pointer;
    overflow: hidden;
    background: var(--accent-light);
    display: flex;
    align-items: center;
    justify-content: center;
}
.gallery-featured img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .5s ease;
}
.gallery-featured:hover img { transform: scale(1.06); }
.gallery-featured-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background .3s;
}
.gallery-featured:hover .gallery-featured-overlay {
    background: rgba(0,0,0,.25);
}
.gallery-featured-overlay svg { opacity: 0; transition: opacity .3s; }
.gallery-featured:hover .gallery-featured-overlay svg { opacity: 1; }

/* ── Side grid (2×2 di kanan) ── */
.gallery-grid-side {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: .5rem;
}
.gallery-grid-item {
    position: relative;
    aspect-ratio: 1;
    overflow: hidden;
    cursor: pointer;
    background: var(--accent-light);
    display: flex;
    align-items: center;
    justify-content: center;
}
.gallery-grid-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .45s ease;
}
.gallery-grid-item:hover img { transform: scale(1.08); }
.gallery-item-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background .25s;
}
.gallery-grid-item:hover .gallery-item-overlay { background: rgba(0,0,0,.3); }
.gallery-item-overlay svg { opacity: 0; transition: opacity .25s; }
.gallery-grid-item:hover .gallery-item-overlay svg { opacity: 1; }

/* ── Extra row bawah ── */
.gallery-row-extra {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 140px), 1fr));
    gap: .5rem;
    margin-top: .5rem;
}
.gallery-extra-item {
    position: relative;
    aspect-ratio: 1;
    overflow: hidden;
    cursor: pointer;
    border-radius: 8px;
    background: var(--accent-light);
}
.gallery-extra-item img {
    width: 100%; height: 100%; object-fit: cover;
    transition: transform .4s;
}
.gallery-extra-item:hover img { transform: scale(1.08); }
.gallery-extra-item:hover .gallery-item-overlay { background: rgba(0,0,0,.3); }
.gallery-extra-item:hover .gallery-item-overlay svg { opacity: 1; }

/* ── Placeholder ── */
.gallery-featured.placeholder,
.gallery-grid-item.placeholder {
    color: var(--accent);
    opacity: .35;
}

/* ── Lightbox ── */
.gallery-lightbox {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(0,0,0,.92);
    backdrop-filter: blur(16px);
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity .3s;
}
.lb-img-wrap {
    max-width: min(90vw, 600px);
    max-height: 85vh;
    display: flex;
    align-items: center;
    justify-content: center;
}
.lb-img-wrap img {
    max-width: 100%;
    max-height: 85vh;
    object-fit: contain;
    border-radius: 12px;
    box-shadow: 0 32px 80px rgba(0,0,0,.6);
}
.lb-close {
    position: fixed;
    top: 1.25rem; right: 1.25rem;
    width: 40px; height: 40px;
    border-radius: 50%;
    border: none; cursor: pointer;
    background: rgba(255,255,255,.15);
    color: #fff; font-size: 1.1rem;
    display: flex; align-items: center; justify-content: center;
    transition: background .2s;
}
.lb-close:hover { background: rgba(255,255,255,.3); }
.lb-prev, .lb-next {
    position: fixed;
    top: 50%; transform: translateY(-50%);
    width: 44px; height: 44px;
    border-radius: 50%;
    border: none; cursor: pointer;
    background: rgba(255,255,255,.12);
    color: #fff; font-size: 2rem; line-height: 1;
    display: flex; align-items: center; justify-content: center;
    transition: background .2s;
}
.lb-prev { left: 1rem; }
.lb-next { right: 1rem; }
.lb-prev:hover, .lb-next:hover { background: rgba(255,255,255,.25); }
.lb-counter {
    position: fixed;
    bottom: 1.5rem; left: 50%; transform: translateX(-50%);
    color: rgba(255,255,255,.6);
    font-size: .8rem; letter-spacing: .1em;
    background: rgba(0,0,0,.4);
    padding: 5px 14px; border-radius: 100px;
}

/* ════════════════════════════
   WISHES / UCAPAN
════════════════════════════ */
.wishes-section { background: var(--white); }

/* Form */
.rsvp-form-container { max-width: 600px; margin: 0 auto 4rem; }
.watercolor-form { }
.input-row { margin-bottom: 2rem; }
.input-row label {
    display: block; font-size: .7rem; letter-spacing: .1em;
    color: var(--muted); text-transform: uppercase; margin-bottom: .6rem;
}
.input-row input,
.input-row textarea {
    width: 100%; padding: .9rem 1.1rem;
    border: 1px solid var(--accent-light); border-radius: 10px;
    background: var(--bg); font-family: var(--sans); color: var(--text);
    font-size: .95rem; transition: .3s;
}
.input-row input:focus,
.input-row textarea:focus { outline: none; border-color: var(--accent); background: white; }

/* Attendance radio */
.attend-options { display: flex; gap: 1rem; flex-wrap: wrap; margin-top: .25rem; }
.attend-opt {
    display: flex; align-items: center; gap: .5rem; cursor: pointer;
    font-size: .85rem; color: var(--text);
}
.attend-opt input[type="radio"] { accent-color: var(--accent); width: 16px; height: 16px; }

.btn-watercolor-solid {
    width: 100%; padding: 1rem;
    background: var(--accent); color: white; border: none;
    border-radius: 10px; cursor: pointer;
    letter-spacing: .15em; font-size: .85rem; font-weight: 600;
    transition: .3s;
}
.btn-watercolor-solid:hover { background: var(--accent-dark); }
.btn-watercolor-solid:disabled { opacity: .7; cursor: not-allowed; }

/* Wishes list */
.wishes-list { max-width: 600px; margin: 0 auto; display: flex; flex-direction: column; gap: 1rem; }
.wish-item {
    display: flex; gap: 1rem; align-items: flex-start;
    background: var(--bg); border-radius: var(--radius); padding: 1.25rem;
    border: 1px solid var(--accent-light);
}
.wish-avatar {
    width: 42px; height: 42px; border-radius: 50%; flex-shrink: 0;
    background: var(--accent); color: white;
    display: flex; align-items: center; justify-content: center;
    font-family: var(--serif); font-size: 1.1rem; font-weight: 700;
}
.wish-body { flex: 1; min-width: 0; }
.wish-header { display: flex; align-items: center; gap: .5rem; margin-bottom: .4rem; flex-wrap: wrap; }
.wish-name { font-weight: 600; font-size: .95rem; color: var(--text); }
.wish-badge {
    font-size: .65rem; padding: 2px 8px; border-radius: 100px; font-weight: 600;
}
.wish-badge.hadir  { background: #e8f5e9; color: #2e7d32; }
.wish-badge.tidak  { background: #fce4ec; color: #c62828; }
.wish-badge.ragu   { background: #fff3e0; color: #e65100; }
.wish-message { font-size: .9rem; color: var(--text); line-height: 1.6; margin-bottom: .4rem; word-break: break-word; }
.wish-time { font-size: .75rem; color: var(--muted); }

.wish-empty { text-align: center; color: var(--muted); padding: 3rem 0; font-size: .9rem; }

/* btn outline */
.btn-watercolor-outline {
    display: inline-block; padding: .7rem 2rem;
    border: 1px solid var(--accent); color: var(--accent);
    text-decoration: none; border-radius: 50px;
    font-size: .75rem; letter-spacing: .1em; transition: .3s;
    margin-top: 1.25rem;
}
.btn-watercolor-outline:hover { background: var(--accent); color: white; }

/* ════════════════════════════
   FOOTER
════════════════════════════ */
.footer { padding: 6rem 2rem; text-align: center; background: var(--bg); }
.footer-names {
    font-family: var(--serif); font-size: clamp(1.8rem, 6vw, 2.8rem);
    color: var(--accent); margin-bottom: 1rem;
}
.footer-copy { font-size: .9rem; color: var(--muted); font-style: italic; max-width: 400px; margin: 0 auto; }

/* ════════════════════════════
   RESPONSIVE
════════════════════════════ */
@media (max-width: 768px) {
    .arch-frame { width: 90%; min-height: auto; padding: 3.5rem 1.5rem; border-radius: 180px 180px 16px 16px; }
    .couple-flex { gap: 1rem; }
    .portrait-arch { width: 110px; height: 165px; }
    .ampersand { font-size: 2rem; }
}

@media (max-width: 520px) {
    .nav-inner { gap: 1rem; padding: .65rem 1.2rem; }
    .countdown-watercolor { gap: .75rem; }
    .time-box { min-width: 52px; }

    .map-info { flex-direction: column; align-items: stretch; }
    .btn-map-nav { width: 100%; justify-content: center; }

    .attend-options { gap: .75rem; }

    .gallery-masonry {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 520px) {
    .couple-flex { gap: .75rem; }
    .portrait-arch { width: 90px; height: 135px; }
    .ampersand { font-size: 1.6rem; }
    .name { font-size: 1.6rem; }
    .parent { font-size: .78rem; }

    .event-grid { gap: 1.5rem; }
    .event-card { padding: 2.5rem 1.25rem; }

    .quote, .event, .gallery, .wishes-section, .map-section, .couple, .footer {
        padding-left: 1.25rem;
        padding-right: 1.25rem;
    }
}


/* ════════════════════════════
   SECTION FULL HEIGHT — setiap section = 1 halaman penuh
   Struktur: [bingkai-atas] [container flex:1] [bingkai-bawah]
════════════════════════════ */

/* Section = flex column, bingkai atas & bawah di ujung, container di tengah */
.quote,
.couple,
.event,
.map-section,
.gallery,
.wishes-section,
.footer {
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: stretch;
}

/* Bingkai atas dan bawah: tidak ikut flex-grow, ukuran ditentukan gambar */
.section-frame-top,
.section-frame-bottom,
.intro-frame-top,
.intro-frame-bottom {
    flex-shrink: 0;
    flex-grow: 0;
}

/* Container mengisi ruang sisa di antara bingkai atas dan bawah */
.quote > .container,
.couple > .container,
.event > .container,
.map-section > .container,
.gallery > .container,
.wishes-section > .container {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 100%;
    /* padding-top mendorong konten ke bawah dari bingkai atas */
    padding-top: 22% !important;
    padding-bottom: 8% !important;
    padding-left: 1.5rem !important;
    padding-right: 1.5rem !important;
}

/* Konten dalam container tidak stretch ke full width kecuali perlu */
.couple > .container > *,
.event > .container > *,
.map-section > .container > *,
.gallery > .container > *,
.wishes-section > .container > * {
    width: 100%;
}

/* Event section — background putih */
.event > .container {
    background: var(--white);
}

/* Quote khusus — text align center */
.quote > .container {
    text-align: center;
}

/* Footer — konten di tengah */
.footer {
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 2rem !important;
}

/* Gallery dan Wishes boleh lebih dari 100vh jika konten panjang */
.gallery,
.wishes-section {
    min-height: 100vh;
    height: auto;
}

/* Responsive mobile */
@media (max-width: 520px) {
    .quote > .container,
    .couple > .container,
    .map-section > .container,
    .gallery > .container,
    .wishes-section > .container,
    .event > .container {
        padding-top: 20% !important;
        padding-bottom: 6% !important;
        padding-left: 1.25rem !important;
        padding-right: 1.25rem !important;
    }
}

/* ── Peta lebih pendek agar tidak terlalu mendekati bingkai ── */
.leaflet-map {
    height: 260px !important;
}

/* ── Gift section — padding agar tidak terhalang bingkai ── */
#gift-section {
    padding-top: 22% !important;
    padding-bottom: clamp(2rem, 6vw, 4rem) !important;
}

/* Heading gift section juga perlu jarak */
#gift-section .gs-wrap {
    padding-top: 0 !important;
}
