@import url("common.css?v=islamic-modern-1");
@import url("animation.css");

@font-face {
    font-family: Marcellus;
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url("../assets/fonts/marcellus-latin.woff2") format("woff2");
}

@font-face {
    font-family: Jost;
    font-style: normal;
    font-weight: 300 500;
    font-display: swap;
    src: url("../assets/fonts/jost-latin.woff2") format("woff2");
}

@font-face {
    font-family: Amiri;
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url("../assets/fonts/amiri-arabic-400.woff2") format("woff2");
    unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC;
}

@font-face {
    font-family: Amiri;
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url("../assets/fonts/amiri-arabic-700.woff2") format("woff2");
    unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC;
}

@font-face {
    font-family: "Cormorant Garamond";
    font-style: italic;
    font-weight: 500 600;
    font-display: swap;
    src: url("../assets/fonts/cormorant-garamond-italic-latin.woff2") format("woff2");
}

.opening-cover-greeting {
    margin: 0.25rem 0 0;
    color: #52615c;
    font-family: 'Jost', Arial, sans-serif;
    font-size: 0.78rem;
    line-height: 1.5;
}

[hidden] {
    display: none !important;
}

html {
    scrollbar-width: none !important;
    -ms-overflow-style: none !important;
}

.with-scrollbar {
    scrollbar-width: auto !important;
    -ms-overflow-style: auto !important;
}

.font-esthetic {
    font-family: 'Marcellus', Georgia, serif !important;
    font-weight: 400;
}

.font-arabic {
    font-family: Amiri, serif !important;
}

.img-center-crop {
    width: 13rem;
    height: 13rem;
    max-width: 100%;
    max-height: 100%;
    object-fit: cover;
}

html[data-bs-theme="dark"] .btn-transparent {
    background-color: rgba(var(--bs-dark-rgb), 0.5) !important;
    backdrop-filter: blur(0.5rem);
}

html[data-bs-theme="light"] .btn-transparent {
    background-color: rgba(var(--bs-light-rgb), 0.5) !important;
    backdrop-filter: blur(0.5rem);
}

.loading-page {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 1056;
}

body.invitation-locked,
html.invitation-locked {
    height: 100vh;
    height: 100dvh;
    overflow: hidden !important;
    overscroll-behavior: none;
    touch-action: none;
}

#root {
    transition: opacity 650ms ease;
}

.opening-cover {
    display: grid;
    min-height: 100vh;
    min-height: 100dvh;
    overflow-y: auto;
    place-items: center;
    isolation: isolate;
    background: #f5efe4;
    color: #173d34;
    transition: opacity 650ms ease, filter 650ms ease, transform 650ms ease;
    will-change: opacity, filter, transform;
}

.opening-cover.is-closing {
    opacity: 0 !important;
    filter: blur(0.65rem);
    pointer-events: none;
    transform: scale(1.025);
}

.opening-cover-backdrop {
    position: absolute;
    z-index: -1;
    inset: 0;
    background:
        radial-gradient(circle at 15% 20%, rgba(184, 138, 68, 0.18), transparent 28%),
        radial-gradient(circle at 88% 82%, rgba(47, 111, 94, 0.18), transparent 32%),
        linear-gradient(135deg, rgba(255, 255, 255, 0.68), transparent 48%),
        repeating-linear-gradient(45deg, rgba(47, 111, 94, 0.035) 0 1px, transparent 1px 22px);
}

.opening-cover-content {
    display: flex;
    width: min(100% - 2rem, 34rem);
    min-height: min(100dvh, 52rem);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: clamp(1.5rem, 4vh, 2.75rem);
    padding: clamp(2rem, 6vh, 4.5rem) 0;
    text-align: center;
}

.opening-cover-heading {
    display: grid;
    justify-items: center;
    gap: 0.8rem;
}

.opening-cover-kicker {
    margin: 0;
    color: #9a7138;
    font-size: clamp(0.68rem, 1.8vw, 0.8rem);
    font-weight: 700;
    letter-spacing: 0.32em;
}

.opening-cover-rule {
    width: 3.5rem;
    height: 1px;
    background: #b88a44;
}

.opening-cover-names {
    margin: 0;
    color: #173d34;
    font-size: clamp(3.2rem, 12vw, 5.8rem);
    font-weight: 600;
    letter-spacing: -0.03em;
    line-height: 0.88;
}

.opening-cover-date {
    margin: 0;
    color: #426b5d;
    font-size: 0.88rem;
    font-weight: 600;
    letter-spacing: 0.13em;
    text-transform: uppercase;
}

.opening-guest-card {
    width: min(100%, 25rem);
    padding: 1.35rem 1.5rem 1.25rem;
    border: 1px solid rgba(184, 138, 68, 0.38);
    border-radius: 1.25rem;
    background: rgba(255, 253, 248, 0.74);
    box-shadow: 0 1rem 2.5rem rgba(23, 61, 52, 0.11);
    backdrop-filter: blur(0.75rem);
}

.opening-guest-icon {
    display: grid;
    width: 2.25rem;
    height: 2.25rem;
    margin: 0 auto 0.85rem;
    place-items: center;
    border: 1px solid rgba(184, 138, 68, 0.5);
    border-radius: 50%;
    color: #9a7138;
}

.opening-guest-label,
.opening-guest-note {
    margin: 0;
    color: #527568;
    font-size: 0.75rem;
    line-height: 1.5;
}

.opening-guest-name {
    margin: 0.4rem 0 0.5rem;
    color: #173d34;
    font-family: "Cormorant Garamond", serif;
    font-size: 1.8rem;
    font-weight: 700;
    line-height: 1.05;
}

.opening-guest-note {
    color: #708d82;
    font-size: 0.68rem;
}

.opening-cover-cta {
    display: inline-flex;
    min-height: 3.25rem;
    align-items: center;
    gap: 0.85rem;
    padding: 0.8rem 1.45rem;
    border: 1px solid #b88a44;
    border-radius: 999px;
    background: #2f6f5e;
    color: #fffdf8;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    box-shadow: 0 0.75rem 1.5rem rgba(47, 111, 94, 0.2);
    transition: transform 180ms ease, background-color 180ms ease, box-shadow 180ms ease;
}

.opening-cover-cta:hover,
.opening-cover-cta:focus-visible {
    background: #245747;
    color: #fffdf8;
    transform: translateY(-2px);
    box-shadow: 0 1rem 2rem rgba(47, 111, 94, 0.28);
}


html[data-bs-theme="light"] .color-theme-svg {
    color: rgb(255, 255, 255);
    background-color: var(--bs-light);
}

html[data-bs-theme="dark"] .color-theme-svg {
    color: rgb(0, 0, 0);
    background-color: var(--bs-dark);
}

html[data-bs-theme="light"] .bg-light-dark {
    background-color: rgb(var(--bs-light-rgb));
}

html[data-bs-theme="dark"] .bg-light-dark {
    background-color: rgb(var(--bs-dark-rgb));
}

html[data-bs-theme="light"] .bg-white-black {
    background-color: rgb(var(--bs-white-rgb));
}

html[data-bs-theme="dark"] .bg-white-black {
    background-color: rgb(var(--bs-black-rgb));
}

.bg-cover-home {
    width: 100%;
    height: 100%;
    object-fit: cover;
    mask-image: linear-gradient(0.5turn, transparent, black 40%, black 60%, transparent);
}

.width-loading {
    width: 25%;
}

.cursor-pointer {
    cursor: pointer;
}

@media screen and (max-width: 992px) {
    .width-loading {
        width: 50%;
    }
}

@media screen and (max-width: 576px) {
    .width-loading {
        width: 75%;
    }
}


/* Editorial wedding treatment inspired by the Sora reference, kept within Beta Storia's palette. */
:root {
    --color-primary: #14432A;
    --color-primary-light: #1F5C3C;
    --color-accent-gold: #C6A15B;
    --color-bg: #FAF6EE;
    --color-bg-alt: #F1EBDA;
    --color-text: #2B2B28;
    --color-text-inverse: #FAF6EE;
    --color-bg-dark: #0E211A;
    --color-bg-alt-dark: #163026;
    --color-text-dark: #E9E2CF;
    --bstoria-green: #2f6f5e;
    --bstoria-gold: #b88a44;
    --bstoria-cream: #f7f1e7;
    /* Islamic-modern gold palette (also available on :root for dark mode selectors) */
    --islamic-gold-500: #c7a46a;
    --islamic-gold-400: #d4b884;
    --islamic-gold-200: #ead8b7;
}

.hero-panel {
    border: 1px solid rgba(184, 138, 68, 0.35);
    box-shadow: 0 1rem 3rem rgba(0, 0, 0, 0.18);
    max-width: 30rem;
    backdrop-filter: blur(0.8rem);
}

.hero-panel [data-cms="couple-names"] {
    letter-spacing: 0.04em;
    line-height: 1.05;
}

.islamic-modern .couple-names .couple-amp {
    margin-block: 0.3rem;
    font-size: 0.6em;
    line-height: 1;
}

.islamic-modern .hero-panel .couple-names {
    color: var(--couple-text, #183d35);
    font-size: clamp(1rem, 2vw, 1.9rem);
    line-height: 1.08;
}

.islamic-modern .hero-panel .wedding-date {
    display: inline-block;
    margin-top: 0.5rem !important;
    padding: 0.45rem 0.9rem;
    border: 1px solid var(--date-border, #8c652d);
    border-radius: 999px;
    background-color: var(--date-bg, #183d35);
    color: var(--date-text, #fffdf8);
    line-height: 1.4;
}

body.islamic-modern[data-bs-theme="dark"] {
    --couple-text: #ead8b7;
    --date-border: #ead8b7;
    --date-bg: #ead8b7;
    --date-text: #10251f;
}

body.islamic-modern[data-bs-theme="light"] {
    --couple-text: #183d35;
    --date-border: #8c652d;
    --date-bg: #183d35;
    --date-text: #fffdf8;
}

.welcome-card {
    width: min(92vw, 28rem);
    padding: 2.5rem 1.5rem;
    border: 1px solid rgba(184, 138, 68, 0.35);
    border-radius: 2rem;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.08), rgba(47, 111, 94, 0.12));
    box-shadow: 0 1.5rem 4rem rgba(0, 0, 0, 0.22);
    backdrop-filter: blur(1rem);
}

.welcome-card .img-center-crop {
    border-color: var(--bstoria-gold) !important;
    box-shadow: 0 0.75rem 2rem rgba(184, 138, 68, 0.25) !important;
}

.welcome-card [data-cms="couple-names"] {
    max-width: 20rem;
    margin-inline: auto;
    line-height: 1.05;
    letter-spacing: 0.03em;
}

.welcome-cta {
    min-width: 12rem;
    border-color: var(--bstoria-gold) !important;
    color: var(--bstoria-green) !important;
    font-weight: 600;
    letter-spacing: 0.04em;
    transition: transform 180ms ease, box-shadow 180ms ease;
}

.welcome-cta:hover,
.welcome-cta:focus-visible {
    transform: translateY(-2px);
    box-shadow: 0 0.75rem 1.5rem rgba(184, 138, 68, 0.28) !important;
}

.story-panel,
.gallery-panel {
    border: 1px solid rgba(184, 138, 68, 0.22) !important;
}

.story-panel > h2,
.gallery-panel > h2 {
    letter-spacing: 0.03em;
}

.event-card {
    margin: 0.75rem auto;
    padding: 1.25rem 1rem !important;
    max-width: 26rem;
    border: 1px solid rgba(184, 138, 68, 0.28);
    border-radius: 1.25rem;
    background: rgba(184, 138, 68, 0.06);
    box-shadow: 0 0.5rem 1.25rem rgba(0, 0, 0, 0.08);
}

.event-card [data-cms$="-name"] {
    color: var(--bstoria-gold);
    letter-spacing: 0.04em;
}

#navbar-menu {
    border-color: rgba(184, 138, 68, 0.3) !important;
    box-shadow: 0 -0.5rem 1.5rem rgba(0, 0, 0, 0.12);
    backdrop-filter: blur(1rem);
    padding-bottom: env(safe-area-inset-bottom, 0px);
}

#navbar-menu .navbar-nav {
    display: flex;
    flex-wrap: nowrap;
    justify-content: flex-start;
    width: max-content !important;
    min-width: 100%;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    scroll-snap-type: x proximity;
    scrollbar-width: none;
}

#navbar-menu .navbar-nav::-webkit-scrollbar {
    display: none;
}

#navbar-menu .nav-item {
    flex: 0 0 25%;
    min-width: 5.5rem;
    scroll-snap-align: start;
}

#navbar-menu .nav-link {
    min-height: 3.7rem;
    padding: 0.55rem 0.25rem 0.35rem;
    font-size: 0.68rem;
    white-space: nowrap;
    transition: color 180ms ease, transform 180ms ease;
}

#navbar-menu .nav-link:hover,
#navbar-menu .nav-link:focus-visible,
#navbar-menu .nav-link.active {
    color: var(--bstoria-gold) !important;
    transform: translateY(-2px);
}

#navbar-menu .nav-link i {
    margin-bottom: 0.2rem;
}

/* Section-as-page layout: editorial rhythm without creating separate routes. */
.editorial-section {
    position: relative;
    min-height: 100svh;
    display: flex;
    align-items: center;
    isolation: isolate;
}

.editorial-section > .container,
.editorial-section > .overflow-x-hidden {
    position: relative;
    z-index: 1;
    width: 100%;
}

.editorial-hero {
    min-height: 100svh;
    padding-block: 3rem 4rem !important;
}

.editorial-hero > .bg-overlay-auto {
    display: flex;
    width: 100%;
    min-height: 100%;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: clamp(1.5rem, 5vh, 3.5rem) 1rem;
}

.islamic-modern .editorial-hero > .bg-overlay-auto > h1 {
    margin: 0 !important;
    padding: 0 0 1rem !important;
    font-size: var(--type-h1) !important;
    letter-spacing: 0.04em;
    line-height: 1;
}

.editorial-hero [data-cms="profile-image"] {
    width: clamp(9rem, 20vw, 13rem);
    height: clamp(9rem, 20vw, 13rem);
    margin: 1rem auto !important;
}

.editorial-hero [data-cms="couple-names"] {
    max-width: 32rem;
    margin: 1rem auto !important;
    font-size: clamp(2rem, 5vw, 3.5rem) !important;
    letter-spacing: 0.035em;
    line-height: 0.98;
}

.editorial-hero [data-cms="wedding-date"] {
    margin: 0.35rem 0 0.9rem !important;
    font-family: 'Jost', sans-serif;
    font-size: clamp(0.95rem, 2vw, 1.2rem) !important;
    letter-spacing: 0.08em;
}

.editorial-hero .mouse-animation {
    margin-top: 1.5rem !important;
}

.editorial-hero .text-secondary {
    padding-bottom: 0 !important;
    margin-bottom: 0 !important;
    font-size: 0.72rem !important;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}


.editorial-section::after,
.editorial-person::after {
    display: none !important;
    content: none !important;
}

.editorial-hero::after,
.editorial-couple::after,
.editorial-person::after,
.editorial-story::after,
.editorial-events::after,
.editorial-countdown::after,
.editorial-dresscode::after,
.editorial-gallery::after,
.editorial-gift::after,
.editorial-rsvp-form::after,
.editorial-wishes::after,
.editorial-footer::after {
    position: absolute;
    z-index: 0;
    color: var(--bstoria-gold);
    font-family: 'Jost', sans-serif;
    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 0.24em;
    opacity: 0.55;
    text-transform: uppercase;
}

.editorial-hero::after {
    content: '01 / OPENING';
    top: 1.5rem;
    left: 1.5rem;
}

.editorial-couple::after {
    content: '02 / PASANGAN';
    top: 1.5rem;
    right: 1.5rem;
}

.editorial-story::after {
    content: '04 / STORY';
    top: 1.5rem;
    left: 1.5rem;
}

.editorial-events::after {
    content: '05 / ACARA';
    top: 1.5rem;
    right: 1.5rem;
}

.editorial-countdown::after {
    content: '06 / COUNTDOWN';
    top: 1.5rem;
    right: 1.5rem;
}

.editorial-dresscode::after {
    content: '07 / DRESSCODE';
    top: 1.5rem;
    left: 1.5rem;
}

.editorial-gallery::after {
    content: '08 / GALLERY';
    top: 1.5rem;
    left: 1.5rem;
}

.editorial-rsvp-form::after {
    content: '09 / RSVP';
    top: 1.5rem;
    right: 1.5rem;
}

.editorial-wishes::after {
    content: '10 / WISHES';
    top: 1.5rem;
    left: 1.5rem;
}

.editorial-footer::after {
    content: '12 / FOOTER';
    top: 1.5rem;
    right: 1.5rem;
}

.editorial-gift::after {
    content: '11 / GIFT';
    top: 1.5rem;
    left: 1.5rem;
}

.editorial-couple {
    background-image: radial-gradient(circle at 12% 20%, rgba(184, 138, 68, 0.1), transparent 30%);
}

.editorial-story,
.editorial-gallery,
.editorial-rsvp-form,
.editorial-wishes,
.editorial-footer {
    background-image: linear-gradient(135deg, rgba(184, 138, 68, 0.06), transparent 42%);
}

.editorial-events,
.editorial-countdown,
.editorial-dresscode,
.editorial-gift {
    background-image: linear-gradient(315deg, rgba(47, 111, 94, 0.08), transparent 42%);
}

.editorial-lead {
    max-width: 36rem;
    margin: 0 auto 1.5rem;
    font-size: clamp(0.92rem, 1.8vw, 1.05rem);
    line-height: 1.75;
}

.countdown-panel {
    width: min(100%, 34rem);
}

.dress-swatch {
    width: 3rem;
    height: 3rem;
    margin-left: -0.75rem;
    border: 2px solid var(--bs-secondary);
    border-radius: 50%;
    box-shadow: var(--bs-box-shadow);
}

.dress-swatch:first-child {
    margin-left: 0;
}

.editorial-section .story-panel,
.editorial-section .gallery-panel {
    width: min(100%, 34rem);
    margin-inline: auto;
}

.editorial-section .event-card {
    transform: translateZ(0);
}

.gift-panel {
    width: min(100%, 30rem);
    margin-inline: auto;
    text-align: center;
}

.gift-eyebrow {
    margin-bottom: 0.65rem;
    color: var(--bstoria-gold);
    font-family: 'Jost', sans-serif;
    font-size: 0.66rem;
    font-weight: 700;
    letter-spacing: 0.28em;
    text-transform: uppercase;
}

.gift-title {
    margin: 0;
    font-size: clamp(2.5rem, 6vw, 4.2rem);
    line-height: 0.95;
}

.gift-intro {
    max-width: 30rem;
    margin: 1.25rem auto 1.75rem;
    font-size: clamp(0.9rem, 1.8vw, 1rem);
    line-height: 1.75;
}

.gift-card {
    width: min(100%, 30rem);
    margin-inline: auto;
    padding: 2rem 1.75rem 1.6rem;
    border: 1px solid rgba(184, 138, 68, 0.45);
    border-radius: 1.5rem;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.04));
    box-shadow: 0 1.25rem 3rem rgba(16, 23, 19, 0.16);
    text-align: center;
}

.gift-card-mark {
    display: grid;
    width: 3rem;
    height: 3rem;
    margin: 0 auto 1rem;
    place-items: center;
    border: 1px solid rgba(184, 138, 68, 0.6);
    border-radius: 50%;
    color: var(--bstoria-gold);
    font-size: 1.15rem;
}

.gift-bank-label {
    color: var(--bstoria-gold);
    font-family: 'Jost', sans-serif;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.gift-bank-name {
    margin-top: 0.45rem;
    font-family: 'Jost', sans-serif;
    font-size: 0.92rem;
    font-weight: 700;
}

.gift-account-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    margin: 1.25rem 0 0.85rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(184, 138, 68, 0.25);
}

.gift-account-number {
    font-family: 'Jost', sans-serif;
    font-size: clamp(1.2rem, 4vw, 1.6rem);
    font-weight: 700;
    letter-spacing: 0.08em;
}

.gift-copy-button {
    flex: 0 0 auto;
    padding: 0.4rem 0.7rem;
    border: 1px solid var(--bstoria-gold);
    border-radius: 999px;
    background: transparent;
    color: inherit;
    font-family: 'Jost', sans-serif;
    font-size: 0.72rem;
}

.gift-account-owner {
    font-size: 0.84rem;
    opacity: 0.78;
}

.gift-thanks {
    margin: 1.5rem 0 0;
    font-size: 0.82rem;
    opacity: 0.72;
}

.gift-reveal-button {
    margin: 0.35rem auto 0;
    padding: 0.7rem 1.15rem;
    border: 1px solid var(--bstoria-gold);
    border-radius: 999px;
    background: var(--bstoria-gold);
    color: #172019;
    font-family: 'Jost', sans-serif;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    transition: transform 180ms ease, box-shadow 180ms ease;
}

.gift-reveal-button:hover,
.gift-reveal-button:focus-visible {
    box-shadow: 0 0.5rem 1.25rem rgba(184, 138, 68, 0.25);
    transform: translateY(-2px);
}

.gift-reveal-button.is-open {
    background: transparent;
    color: inherit;
}

.gift-options {
    width: min(100%, 30rem);
    margin: 1.25rem auto 0;
}

.gift-option-tabs {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.45rem;
    margin-bottom: 0.7rem;
}

.gift-option-button {
    display: grid;
    min-height: 4rem;
    place-items: center;
    gap: 0.25rem;
    padding: 0.55rem 0.35rem;
    border: 1px solid rgba(184, 138, 68, 0.32);
    border-radius: 0.9rem;
    background: transparent;
    color: inherit;
    font-family: 'Jost', sans-serif;
    font-size: 0.67rem;
    line-height: 1.2;
}

.gift-option-button > :where(i) {
    color: var(--bstoria-gold);
    font-size: 1rem;
}

.gift-option-button.is-active {
    border-color: var(--bstoria-gold);
    background: rgba(184, 138, 68, 0.13);
}

.gift-detail-card {
    padding: 1rem;
    border: 1px solid rgba(184, 138, 68, 0.35);
    border-radius: 1rem;
    background: rgba(255, 255, 255, 0.08);
    text-align: left;
}

.gift-detail-label {
    margin: 0 0 0.45rem;
    color: #76500f;
    font-family: 'Jost', sans-serif;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.gift-detail-card strong {
    display: block;
    font-size: 0.88rem;
}

.gift-detail-value {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.75rem;
    margin-top: 0.7rem;
    padding-top: 0.7rem;
    border-top: 1px solid rgba(184, 138, 68, 0.22);
    font-family: 'Jost', sans-serif;
    font-size: 0.85rem;
    font-weight: 700;
    line-height: 1.45;
}

.gift-address-value span {
    font-weight: 500;
}

.gift-detail-copy {
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    min-width: 2.75rem;
    min-height: 2.75rem;
    border: 1px solid var(--bstoria-gold);
    border-radius: 50%;
    background: transparent;
    color: inherit;
}

@media screen and (min-width: 577px) {
    .editorial-hero {
        height: 100svh;
        min-height: 100svh;
        padding-block: 2rem !important;
    }

    .editorial-hero > .bg-overlay-auto {
        padding-block: 0.75rem;
    }

    .editorial-hero > .bg-overlay-auto > h1 {
        padding-bottom: 0.55rem !important;
        font-size: clamp(1.6rem, 3vw, 2.25rem) !important;
    }

    .editorial-hero [data-cms="profile-image"] {
        width: clamp(8rem, 14vw, 10rem);
        height: clamp(8rem, 14vw, 10rem);
        margin: 0.5rem auto !important;
    }

    .editorial-hero [data-cms="couple-names"] {
        max-width: 28rem;
        margin: 0.6rem auto !important;
        font-size: clamp(1.8rem, 3.5vw, 2.6rem) !important;
    }

    .editorial-hero [data-cms="wedding-date"] {
        margin: 0.2rem 0 0.55rem !important;
        font-size: 0.95rem !important;
    }

    .editorial-hero .mouse-animation {
        margin-top: 0.75rem !important;
    }
}

@media screen and (max-width: 576px) {
    .gift-panel {
        width: 100%;
    }

    .gift-intro {
        margin: 1rem auto 1.25rem;
        line-height: 1.55;
    }

    .gift-card {
        padding: 1.4rem 1rem 1.15rem;
        border-radius: 1.25rem;
    }

    .gift-account-row {
        gap: 0.45rem;
    }

    .gift-account-number {
        font-size: 1.08rem;
        letter-spacing: 0.04em;
    }

    .gift-copy-button {
        padding: 0.35rem 0.55rem;
        font-size: 0.68rem;
    }
}

.editorial-footer {
    min-height: 100svh;
    padding-bottom: max(6rem, 12vh) !important;
}

.editorial-footer .footer-credit {
    display: block;
    margin-top: 1.5rem;
    color: inherit;
    font-size: 0.75rem;
    font-weight: 400;
    letter-spacing: 0.02em;
    line-height: 1.4;
    opacity: 0.65;
}

.editorial-wishes .wishes-panel {
    width: min(100%, 42rem);
    margin-inline: auto;
}

/* JavaScript handles one-section wheel/touch travel; native snap can skip sections. */
html.section-scroll-enabled {
    scroll-behavior: auto !important;
    scroll-snap-type: none !important;
}

@media screen and (max-width: 576px) {
    html:not(.section-scroll-enabled) {
        /* proximity: don't trap users in content-heavy sections */
        scroll-snap-type: y proximity;
    }

    .editorial-section {
        scroll-snap-align: start;
        scroll-margin-top: var(--nav-height, 4rem);
        scroll-margin-bottom: env(safe-area-inset-bottom, 0px);
        min-height: 100svh;
        padding-top: 4rem !important;
        padding-bottom: 4rem !important;
    }

    .editorial-hero {
        min-height: 100svh;
    }

    .editorial-section::after {
        top: 1rem;
        font-size: 0.56rem;
    }

    .editorial-section .story-panel,
    .editorial-section .gallery-panel {
        width: 100%;
    }

    .editorial-section > .container {
        padding-inline: 1.1rem;
    }

    .editorial-section h2.font-esthetic {
        font-size: clamp(1.85rem, 8vw, 2.25rem) !important;
        line-height: 1.05;
    }

    .editorial-lead {
        line-height: 1.65;
    }

    .editorial-countdown,
    .editorial-dresscode,
    .editorial-footer {
        min-height: 100svh;
    }

    .editorial-footer {
        padding-bottom: max(6rem, 12vh) !important;
    }

    .editorial-rsvp-form {
        min-height: 100svh;
        height: auto;
        padding-top: 3rem !important;
        padding-bottom: 3rem !important;
        overflow: visible;
    }

    .editorial-rsvp-form > .container {
        padding-inline: 0.85rem;
    }

    .editorial-rsvp-form .border.rounded-5 {
        padding: 0.85rem !important;
        margin-bottom: 0 !important;
    }

    .editorial-rsvp-form h2 {
        margin-top: 0.25rem !important;
        margin-bottom: 0.85rem !important;
        font-size: 1.9rem !important;
    }

    .editorial-rsvp-form .mb-3 {
        margin-bottom: 0.6rem !important;
    }

    .editorial-rsvp-form .form-label {
        margin-top: 0 !important;
        margin-bottom: 0.2rem !important;
        font-size: 0.9rem;
    }

    .editorial-rsvp-form .form-control,
    .editorial-rsvp-form .form-select {
        min-height: 3rem;
        padding: 0.55rem 0.75rem;
        font-size: 1rem;
    }

    .editorial-rsvp-form #form-comment {
        min-height: 7.5rem;
        padding-top: 0.55rem;
    }

    .editorial-rsvp-form .d-grid button {
        min-height: 2.75rem;
        padding-block: 0.6rem;
        font-size: 0.95rem;
    }
}

@media screen and (min-width: 577px) {
    .editorial-section:not(.editorial-hero) {
        padding-top: 4rem !important;
        padding-bottom: 4rem !important;
    }
}

@media screen and (max-width: 576px) {
    .welcome-card {
        padding: 2rem 1rem;
    }

    .hero-panel {
        margin-inline: 0.75rem;
    }

    .event-card {
        margin-inline: 0.25rem;
    }
}

.editorial-person {
    position: relative;
    min-height: 100svh;
    overflow: hidden;
    isolation: isolate;
    background: #101713;
    scroll-snap-align: start;
    scroll-snap-stop: always;
}

.editorial-person > img {
    position: absolute;
    inset: 0;
    z-index: -2;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    cursor: pointer;
    transition: transform 700ms ease;
}

.editorial-person:hover > img,
.editorial-person:focus-within > img {
    transform: scale(1.03);
}

.editorial-person-overlay {
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(180deg, rgba(9, 17, 13, 0.04) 28%, rgba(9, 17, 13, 0.86) 100%);
}

.editorial-person-caption {
    position: absolute;
    right: 1.5rem;
    bottom: 2.5rem;
    left: 1.5rem;
    max-width: 28rem;
    color: #fff;
    text-align: left;
    text-shadow: 0 0.25rem 1rem rgba(0, 0, 0, 0.35);
}

.editorial-person-kicker {
    display: inline-block;
    margin-bottom: 0.7rem;
    color: #e3bd78;
    font-family: 'Jost', sans-serif;
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.22em;
    text-transform: uppercase;
}

.editorial-person-caption h2 {
    margin: 0 0 0.5rem;
    font-size: clamp(2.5rem, 8vw, 5.5rem);
    line-height: 0.95;
}

.editorial-person-caption p {
    max-width: 24rem;
    color: rgba(255, 255, 255, 0.82);
    font-size: 0.9rem;
}

.editorial-person-caption small {
    color: rgba(255, 255, 255, 0.72);
    font-size: 0.78rem;
    letter-spacing: 0.06em;
}

.editorial-groom::after,
.editorial-bride::after {
    position: absolute;
    top: 1.25rem;
    left: 1.5rem;
    right: auto;
    color: #e3bd78;
    content: '02 / GROOM';
    font-size: 0.62rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    opacity: 0.8;
}

.editorial-bride::after {
    content: '03 / BRIDE';
}

@media screen and (max-width: 576px) {
    .editorial-person {
        min-height: 100svh;
    }

    .editorial-person-caption {
        right: 1.25rem;
        bottom: 2rem;
        left: 1.25rem;
    }

    .editorial-person-caption h2 {
        font-size: clamp(2.6rem, 13vw, 4.3rem);
    }
}

/* Islamic-modern visual system. */
body.islamic-modern {
    --font-display: 'Marcellus', Georgia, serif;
    --font-body: 'Jost', Arial, sans-serif;
    --font-accent: 'Cormorant Garamond', Georgia, serif;
    --type-xs: clamp(0.68rem, 1.8vw, 0.75rem);
    --type-sm: clamp(0.84rem, 2vw, 0.92rem);
    --type-body: clamp(0.94rem, 2.2vw, 1rem);
    --type-lead: clamp(1rem, 2.5vw, 1.12rem);
    --type-h1: clamp(2.2rem, 5vw, 3.5rem);
    --type-section: clamp(1.6rem, 3vw, 2.2rem);
    --islamic-emerald-950: var(--color-primary);
    --islamic-emerald-900: var(--color-primary-light);
    --islamic-gold-500: var(--color-accent-gold);
    --islamic-ivory: var(--color-bg);
    --islamic-sand: var(--color-bg-alt);
    --islamic-ink: var(--color-text);
    --islamic-text-inverse: var(--color-text-inverse);
    --islamic-bg-dark: var(--color-bg-dark);
    --islamic-bg-alt-dark: var(--color-bg-alt-dark);
    --islamic-text-dark: var(--color-text-dark);
    --islamic-emerald-800: #1d5447;
    --islamic-emerald-600: #3f7b68;
    --islamic-gold-400: #d4b884;
    --islamic-gold-text: #806124;
    --islamic-gold-200: #ead8b7;
    --islamic-border: rgba(126, 92, 42, 0.2);
    --islamic-shadow: 0 1.25rem 3.5rem rgba(28, 57, 48, 0.1);
    --islamic-radius: 1.5rem;
    --layout-gutter: clamp(2rem, 5vw, 2.5rem);
    --section-space: clamp(4.5rem, 10svh, 6.5rem);
    --panel-space: clamp(1.75rem, 4vw, 2.5rem);
    --content-gap: clamp(1.75rem, 4vw, 2.5rem);
    color: var(--islamic-ink);
    font-family: var(--font-body);
    font-size: var(--type-body);
    line-height: 1.7;
}

.islamic-modern :where(button, input, select, textarea, .btn, .nav-link) {
    font-family: var(--font-body);
}

.islamic-modern :where(h1, h2, h3, .font-esthetic) {
    font-family: var(--font-display) !important;
    text-wrap: balance;
}

.islamic-modern :where(p, li, address) {
    text-wrap: pretty;
}

.islamic-modern .hero-date,
.islamic-modern .dress-note,
.islamic-modern .footer-thanks {
    font-family: var(--font-body);
    font-size: var(--type-sm);
    line-height: 1.7;
}

.islamic-modern .footer-thanks {
    max-width: 34rem;
    margin-inline: auto;
}

.islamic-modern .editorial-footer h2.font-esthetic {
    max-width: 38rem;
    margin-inline: auto;
    font-size: clamp(2rem, 6vw, 3.25rem) !important;
    line-height: 1.05;
}

.islamic-modern .editorial-footer h2.font-arabic {
    font-size: clamp(1.55rem, 5vw, 2.25rem);
    line-height: 1.8;
}

.islamic-modern .editorial-section:not(.editorial-person) {
    padding-block: var(--section-space) !important;
    overflow-x: clip;
    color: var(--islamic-ink);
    background-color: var(--islamic-ivory) !important;
    background-image:
        radial-gradient(circle at 10% 14%, rgba(199, 164, 106, 0.12), transparent 25%),
        radial-gradient(circle at 90% 86%, rgba(63, 123, 104, 0.1), transparent 28%) !important;
}

.islamic-modern .editorial-hero > .bg-overlay-auto {
    position: static;
    backdrop-filter: none;
}

.islamic-modern .editorial-section.editorial-hero {
    padding-block: 3rem 4rem !important;
}

.islamic-modern .editorial-section:not(.editorial-person)::before {
    position: absolute;
    inset: 0;
    z-index: 0;
    background-image:
        linear-gradient(30deg, rgba(199, 164, 106, 0.035) 12%, transparent 12.5%, transparent 87%, rgba(199, 164, 106, 0.035) 87.5%),
        linear-gradient(150deg, rgba(199, 164, 106, 0.035) 12%, transparent 12.5%, transparent 87%, rgba(199, 164, 106, 0.035) 87.5%);
    background-position: 0 0, 1.25rem 2.2rem;
    background-size: 2.5rem 4.4rem;
    content: '';
    pointer-events: none;
}

.islamic-modern .editorial-section:not(.editorial-person) > .container {
    max-width: 48rem;
    padding-inline: var(--layout-gutter);
}

.islamic-modern .editorial-section h2.font-esthetic {
    margin-bottom: var(--content-gap) !important;
    color: var(--islamic-emerald-950);
    font-size: var(--type-section) !important;
    font-weight: 600;
    letter-spacing: -0.025em;
    line-height: 0.98;
}

.islamic-modern .editorial-section h2.font-esthetic::after {
    display: block;
    width: 3rem;
    height: 1px;
    margin: 0.9rem auto 0;
    background: linear-gradient(90deg, transparent, var(--islamic-gold-500), transparent);
    content: '';
}

.islamic-modern .editorial-hero h2.font-esthetic::after,
.islamic-modern .editorial-person h2.font-esthetic::after {
    display: none;
}

.islamic-modern .editorial-hero h2.font-esthetic,
.islamic-modern .editorial-person h2.font-esthetic {
    margin-bottom: 0.5rem !important;
}

.islamic-modern .story-panel,
.islamic-modern .gallery-panel,
.islamic-modern .editorial-rsvp-form > .container > .border,
.islamic-modern .wishes-panel,
.islamic-modern .gift-panel {
    border: 1px solid var(--islamic-border) !important;
    border-radius: var(--islamic-radius) !important;
    background: rgba(255, 253, 248, 0.84) !important;
    box-shadow: var(--islamic-shadow) !important;
    backdrop-filter: blur(0.7rem);
}

.islamic-modern .story-panel,
.islamic-modern .gallery-panel,
.islamic-modern .editorial-rsvp-form > .container > .border,
.islamic-modern .wishes-panel {
    padding: var(--panel-space) !important;
}

.islamic-modern .gift-panel {
    padding: var(--panel-space);
}

.islamic-modern .editorial-verse {
    min-height: 100svh;
}

.islamic-modern .verse-panel {
    width: min(100%, 38rem);
}

.islamic-modern .verse-arabic {
    margin: 0 0 1rem;
    color: var(--islamic-gold-text);
    font-family: Amiri, serif;
    font-size: clamp(1.45rem, 4vw, 2rem);
    line-height: 1.8;
}

.islamic-modern .verse-intro {
    max-width: 31rem;
    margin: -0.75rem auto 2rem;
    color: rgba(32, 51, 45, 0.72);
    font-size: 0.92rem;
}

.islamic-modern .verse-card {
    max-width: 34rem;
    margin: 1rem auto;
    padding: 1.5rem 1.75rem;
    border: 1px solid var(--islamic-border);
    border-radius: 1.15rem;
    background: rgba(255, 253, 248, 0.82);
    box-shadow: 0 0.65rem 1.7rem rgba(28, 57, 48, 0.07);
}

.islamic-modern .verse-card p {
    margin: 0;
}

.islamic-modern .verse-source {
    margin-top: 0.55rem !important;
    color: var(--islamic-gold-text);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.islamic-modern .event-card,
.islamic-modern .countdown-panel {
    border: 1px solid var(--islamic-border) !important;
    background: rgba(255, 253, 248, 0.8);
    box-shadow: 0 0.75rem 2rem rgba(28, 57, 48, 0.08) !important;
}

.islamic-modern .event-card {
    padding: 2rem 1.5rem !important;
    border-radius: 1.25rem;
}

.islamic-modern .editorial-events .row {
    --bs-gutter-y: 2rem;
}

.islamic-modern .countdown-panel {
    padding: clamp(1.5rem, 4vw, 2rem) !important;
    border-radius: 1.25rem !important;
}

.islamic-modern .editorial-lead {
    margin-bottom: var(--content-gap);
    font-size: var(--type-lead);
    line-height: 1.75;
}

.islamic-modern .editorial-dresscode .d-flex {
    margin-top: 0.5rem;
    margin-bottom: 2rem !important;
}

.islamic-modern .countdown-panel p {
    color: var(--islamic-emerald-800);
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: clamp(1.55rem, 4vw, 2.25rem) !important;
    font-weight: 700;
}

.islamic-modern .countdown-panel small {
    color: #52615c;
    font-size: 0.68rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.islamic-modern .form-control,
.islamic-modern .form-select {
    border-color: rgba(63, 123, 104, 0.2);
    background-color: rgba(255, 255, 255, 0.72);
}

.islamic-modern .form-control:focus,
.islamic-modern .form-select:focus {
    border-color: var(--islamic-gold-500);
    box-shadow: 0 0 0 0.2rem rgba(199, 164, 106, 0.16);
}

.islamic-modern .btn-primary,
.islamic-modern .gift-reveal-button {
    min-height: 2.75rem;
    padding-inline: 1.25rem;
    border-color: var(--islamic-emerald-800) !important;
    background: var(--islamic-emerald-800) !important;
    color: #fff !important;
}

.islamic-modern #navbar-menu {
    border-color: rgba(199, 164, 106, 0.28) !important;
    background: rgba(251, 247, 239, 0.9) !important;
    box-shadow: 0 -0.75rem 2rem rgba(14, 45, 38, 0.1);
}

.islamic-modern #navbar-menu .nav-link {
    color: #3b6155;
}

.islamic-modern #navbar-menu .nav-link.active,
.islamic-modern #navbar-menu .nav-link:hover,
.islamic-modern #navbar-menu .nav-link:focus-visible {
    color: var(--islamic-emerald-950);
}

.islamic-modern .editorial-section.editorial-footer {
    padding-bottom: max(6rem, 12vh, calc(4rem + env(safe-area-inset-bottom))) !important;
    background-color: var(--islamic-emerald-950) !important;
    background-image: radial-gradient(circle at 50% 0%, rgba(199, 164, 106, 0.16), transparent 40%) !important;
    color: rgba(255, 255, 255, 0.82) !important;
}

.islamic-modern .editorial-footer h2.font-esthetic,
.islamic-modern .editorial-footer .font-arabic {
    color: #fff;
}

.islamic-modern .editorial-footer hr {
    border-color: rgba(234, 216, 183, 0.3);
}

.islamic-modern .cover-scroll-cue {
    position: absolute;
    bottom: clamp(1rem, 3vh, 1.75rem);
    left: 50%;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 0.2rem;
    margin: 0;
    color: #3b6155;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-decoration: none;
    text-transform: uppercase;
    transform: translateX(-50%);
    white-space: nowrap;
}

.islamic-modern .cover-scroll-cue > :where(i) {
    font-size: 0.85rem;
    animation: cover-scroll-bounce 1.5s ease-in-out infinite;
}

@keyframes cover-scroll-bounce {
    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(0.45rem);
    }
}

.islamic-modern .person-social-link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    min-height: 2.75rem;
    margin-top: 0.75rem;
    padding: 0.55rem 0.9rem;
    border: 1px solid rgba(227, 189, 120, 0.5);
    border-radius: 999px;
    color: #fff;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-decoration: none;
    backdrop-filter: blur(0.5rem);
    background: rgba(14, 45, 38, 0.3);
}

.islamic-modern .person-social-link:hover,
.islamic-modern .person-social-link:focus-visible {
    border-color: var(--islamic-gold-200);
    background: rgba(14, 45, 38, 0.68);
    color: #fff;
}

.islamic-modern .editorial-events {
    display: flex;
    width: 100%;
    min-width: 0;
    flex-direction: column;
    align-items: stretch;
    padding-block: 0 !important;
}

.islamic-modern .editorial-events > :is(.event-intro-panel, .event-snap-panel) {
    width: 100%;
    min-width: 0;
    flex: 0 0 auto;
}

.islamic-modern .editorial-events > .event-snap-panel .container {
    width: min(100%, 48rem);
}

.islamic-modern .editorial-events .event-card {
    width: 100%;
}

@media screen and (max-width: 576px) {
    .islamic-modern .editorial-events > .event-snap-panel {
        flex-direction: column;
    }
}

/* Intro header panel */
.islamic-modern .event-intro-panel {
    position: relative;
    display: flex;
    min-height: 100svh;
    min-height: 100dvh;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding-block: var(--section-space);
    scroll-snap-align: start;
    overflow: hidden;
}

/* Decorative pattern for intro panel */
.islamic-modern .event-intro-pattern {
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23B88A44' fill-opacity='0.04'%3E%3Cpath d='M30 30c0-11.046 8.954-20 20-20s20 8.954 20 20-8.954 20-20 20-20-8.954-20-20zm0 2c0 9.941-8.059 18-18 18s-18-8.059-18-18 8.059-18 18-18 18 8.059 18 18z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.6;
    pointer-events: none;
}

/* Each event gets its own full-viewport snap panel */
.islamic-modern .event-snap-panel {
    position: relative;
    display: flex;
    min-height: 100svh;
    min-height: 100dvh;
    box-sizing: border-box;
    align-items: center;
    justify-content: center;
    padding-block: clamp(4.5rem, 10vh, 7rem);
    border-top: 1px solid rgba(126, 92, 42, 0.12);
    scroll-snap-align: start;
    scroll-margin-top: var(--nav-height, 4rem);
    overflow: hidden;
}

/* Decorative background pattern for event panels */
.islamic-modern .event-bg-pattern {
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg width='80' height='80' viewBox='0 0 80 80' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23B88A44' fill-opacity='0.03'%3E%3Cpath d='M40 40c0-14.728 11.94-26.667 26.667-26.667S80 25.272 80 40s-11.94 26.667-26.667 26.667S40 54.728 40 40zm0 4c0 11.369 9.217 20.667 20.667 20.667S80 51.369 80 40s-9.217-20.667-20.667-20.667S40 28.631 40 40z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.5;
    pointer-events: none;
}

.islamic-modern .section-eyebrow {
    margin: 0 0 0.85rem;
    color: var(--islamic-gold-text);
    font-size: var(--type-xs);
    font-weight: 800;
    letter-spacing: 0.2em;
}

.islamic-modern .event-timeline {
    width: 100%;
    margin-inline: auto;
}

.islamic-modern .event-timeline::before {
    display: none;
}

.islamic-modern .event-timeline-item {
    display: grid;
    min-height: 100svh;
    min-height: 100dvh;
    box-sizing: border-box;
    align-content: center;
    justify-items: center;
    gap: 1rem;
    padding-block: clamp(4.5rem, 10vh, 7rem);
    scroll-margin-top: 0;
    scroll-snap-align: start;
    scroll-snap-stop: always;
}

.islamic-modern .event-timeline-item + .event-timeline-item {
    margin-top: 0;
    border-top: 1px solid rgba(126, 92, 42, 0.12);
}

.islamic-modern .event-snap-panel .event-card {
    position: relative;
    z-index: 1;
    width: min(100%, 34rem);
    padding: clamp(2.5rem, 6vw, 4rem) !important;
    border: 1px solid rgba(184, 138, 68, 0.25);
    border-radius: 2rem;
    background: rgba(251, 247, 239, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 1rem 3rem rgba(14, 45, 38, 0.08), 0 0 0 1px rgba(255, 255, 255, 0.6) inset;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.islamic-modern .event-snap-panel .event-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 1.5rem 4rem rgba(14, 45, 38, 0.12), 0 0 0 1px rgba(255, 255, 255, 0.8) inset;
}

[data-bs-theme="dark"] body.islamic-modern .event-snap-panel .event-card {
    background: rgba(16, 45, 38, 0.9) !important;
    border-color: rgba(184, 138, 68, 0.35) !important;
}

/* Dark mode hover for event cards */
[data-bs-theme="dark"] body.islamic-modern .event-snap-panel .event-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 1.5rem 4rem rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(184, 138, 68, 0.2) inset;
}

.islamic-modern .event-snap-panel .event-card h3 {
    margin: 0.5rem 0 1.75rem;
    color: var(--islamic-emerald-950);
    font-size: clamp(2.5rem, 8vw, 3.75rem);
    font-weight: 600;
    line-height: 1.1;
    letter-spacing: -0.01em;
}

.islamic-modern .event-order {
    margin: 0;
    color: var(--islamic-gold-text);
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.2em;
    text-transform: uppercase;
}

.islamic-modern .event-time,
.islamic-modern .event-venue {
    display: grid;
    max-width: 26rem;
    grid-template-columns: 1.25rem minmax(0, 1fr);
    gap: 0.85rem;
    margin: 0 auto 1.1rem;
    color: #2c4a40;
    font-size: 0.95rem;
    font-style: normal;
    line-height: 1.65;
    text-align: left;
    white-space: pre-line;
}

.islamic-modern .event-time > :where(i),
.islamic-modern .event-venue > :where(i) {
    margin-top: 0.25rem;
    color: var(--islamic-gold-500);
    font-size: 1rem;
}

.islamic-modern .event-map-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 3rem;
    margin-top: 1.25rem !important;
    padding: 0.6rem 1.75rem !important;
    border-width: 1.5px;
    border-style: solid;
    border-color: var(--islamic-emerald-800);
    border-radius: 999px;
    background: transparent;
    color: var(--islamic-emerald-950);
    font-weight: 600;
    font-size: 0.85rem;
    letter-spacing: 0.05em;
    text-decoration: none;
    transition: all 0.25s ease;
}

.islamic-modern .event-map-button:hover {
    background: var(--islamic-emerald-900);
    border-color: var(--islamic-emerald-900);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 0.5rem 1.5rem rgba(14, 45, 38, 0.2);
}

/* Dark mode map button - using body.islamic-modern[data-bs-theme] since body IS .islamic-modern */
body.islamic-modern[data-bs-theme="dark"] .event-map-button {
    border: 1.5px solid #d4b884 !important;
    color: #ead8b7 !important;
}

body.islamic-modern[data-bs-theme="dark"] .event-map-button:hover,
body.islamic-modern .event-map-button.dark-mode-map-button:hover {
    background: #c7a46a !important;
    border-color: #c7a46a !important;
    color: var(--color-primary) !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 0.5rem 1.5rem rgba(184, 138, 68, 0.3) !important;
}

/* Cache bust marker: premium-ui-23 */

.islamic-modern .event-map-button[hidden] {
    display: none !important;
}

.islamic-modern .copy-feedback-toast {
    position: fixed;
    bottom: 5.5rem;
    left: 50%;
    z-index: 1090;
    max-width: calc(100vw - 2rem);
    padding: 0.75rem 1rem;
    border: 1px solid rgba(234, 216, 183, 0.32);
    border-radius: 999px;
    background: rgba(14, 45, 38, 0.94);
    color: #fff;
    box-shadow: 0 0.75rem 2rem rgba(14, 45, 38, 0.24);
    font-size: 0.78rem;
    font-weight: 700;
    opacity: 0;
    pointer-events: none;
    transform: translate(-50%, 0.75rem);
    transition: opacity 180ms ease, transform 180ms ease;
}

.islamic-modern .copy-feedback-toast.is-visible {
    opacity: 1;
    transform: translate(-50%, 0);
}

[data-bs-theme="dark"] body.islamic-modern .editorial-section:not(.editorial-person) {
    color: rgba(255, 255, 255, 0.82);
    background-color: var(--color-bg-dark) !important;
    background-image: radial-gradient(circle at 15% 15%, rgba(199, 164, 106, 0.12), transparent 28%) !important;
}

[data-bs-theme="dark"] body.islamic-modern .editorial-section h2.font-esthetic,
[data-bs-theme="dark"] body.islamic-modern .countdown-panel p {
    color: var(--islamic-gold-200);
}

[data-bs-theme="dark"] body.islamic-modern .verse-intro,
[data-bs-theme="dark"] body.islamic-modern .countdown-panel small {
    color: rgba(255, 255, 255, 0.72);
}

[data-bs-theme="dark"] body.islamic-modern .form-control,
[data-bs-theme="dark"] body.islamic-modern .form-select {
    border-color: rgba(234, 216, 183, 0.26);
    background-color: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.9);
}

[data-bs-theme="dark"] body.islamic-modern .form-control::placeholder {
    color: rgba(255, 255, 255, 0.56);
}

[data-bs-theme="dark"] body.islamic-modern .story-panel,
[data-bs-theme="dark"] body.islamic-modern .gallery-panel,
[data-bs-theme="dark"] body.islamic-modern .editorial-rsvp-form > .container > .border,
[data-bs-theme="dark"] body.islamic-modern .wishes-panel,
[data-bs-theme="dark"] body.islamic-modern .gift-panel,
[data-bs-theme="dark"] body.islamic-modern .verse-card,
[data-bs-theme="dark"] body.islamic-modern .countdown-panel {
    background: rgba(16, 45, 38, 0.9) !important;
    border-color: rgba(184, 138, 68, 0.35) !important;
}

[data-bs-theme="dark"] body.islamic-modern .event-time,
[data-bs-theme="dark"] body.islamic-modern .event-venue {
    color: rgba(255, 255, 255, 0.8);
}

[data-bs-theme="dark"] body.islamic-modern .event-snap-panel .event-card h3 {
    color: var(--islamic-gold-200);
}

@media screen and (max-width: 576px) {
    body.islamic-modern {
        --layout-gutter: 1.35rem;
        --section-space: 4.5rem;
        --panel-space: 1.5rem;
        --content-gap: 1.75rem;
    }

    .islamic-modern .editorial-section h2.font-esthetic {
        font-size: var(--type-section) !important;
    }

    .islamic-modern .verse-card {
        margin-block: 0.85rem;
        padding: 1.25rem;
    }

    .islamic-modern .event-card {
        padding: 1.75rem 1.25rem !important;
    }

    .islamic-modern .event-snap-panel {
        flex-direction: column;
        padding-block: clamp(3rem, 8vh, 5rem);
    }

    .islamic-modern .event-snap-panel .container {
        width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .islamic-modern .event-snap-panel .event-card {
        width: 100%;
        max-width: 100%;
        margin: 0;
    }

    .islamic-modern .editorial-section.editorial-rsvp-form {
        padding-top: 3rem !important;
        padding-bottom: 3rem !important;
    }

    .islamic-modern .editorial-rsvp-form > .container {
        padding-inline: 0.85rem;
    }

    .islamic-modern .editorial-rsvp-form > .container > .border {
        padding: 0.9rem !important;
    }

    .islamic-modern .editorial-person-caption {
        right: 1.5rem;
        bottom: 2.5rem;
        left: 1.5rem;
    }

    .islamic-modern #navbar-menu .nav-link {
        font-size: 0.68rem;
    }
}

@media screen and (min-width: 577px) {
    .islamic-modern .editorial-section.editorial-hero {
        padding-block: 2rem !important;
    }
}

@media screen and (max-width: 576px) and (max-height: 700px) {
    .islamic-modern .editorial-section.editorial-rsvp-form {
        height: auto;
        min-height: 100svh;
        padding-block: 2.5rem !important;
        overflow: visible;
    }
}

.reveal-enabled .premium-reveal {
    opacity: 0;
    filter: blur(0.35rem);
    transform: translateY(1.25rem);
    transition:
        opacity 750ms cubic-bezier(0.22, 1, 0.36, 1) var(--reveal-delay, 0ms),
        filter 750ms cubic-bezier(0.22, 1, 0.36, 1) var(--reveal-delay, 0ms),
        transform 750ms cubic-bezier(0.22, 1, 0.36, 1) var(--reveal-delay, 0ms);
    will-change: opacity, filter, transform;
}

.reveal-enabled.reveal-preparing .premium-reveal {
    transition: none !important;
}

.reveal-enabled .premium-reveal.is-revealed {
    opacity: 1;
    filter: blur(0);
    transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
    .opening-cover,
    #root,
    .reveal-enabled .premium-reveal {
        transition: none !important;
    }

    .opening-cover.is-closing,
    .reveal-enabled .premium-reveal,
    .reveal-enabled .premium-reveal.is-revealed {
        filter: none !important;
        transform: none !important;
    }

    .reveal-enabled .premium-reveal {
        opacity: 1 !important;
    }

    .islamic-modern .cover-scroll-cue > :where(i) {
        animation: none;
    }

    .islamic-modern .copy-feedback-toast {
        transition: none;
    }

    .editorial-person > img {
        transition: none;
    }

    .editorial-person:hover > img,
    .editorial-person:focus-within > img {
        transform: none;
    }
}

.islamic-modern .couple-names > span {
    display: block;
    overflow-wrap: anywhere;
}

@media (prefers-reduced-motion: reduce) {
    .welcome-cta,
    #navbar-menu .nav-link {
        transition: none;
    }

    .welcome-cta:hover,
    .welcome-cta:focus-visible,
    #navbar-menu .nav-link:hover,
    #navbar-menu .nav-link:focus-visible,
    #navbar-menu .nav-link.active {
        transform: none;
    }
}