.jj-gate-is-open,
.jj-gate-is-open body {
    overflow: hidden;
}

.jj-gate {
    --jj-gate-accent: var(--jj-shell-accent, #e8d08a);
    --jj-gate-text: var(--jj-shell-text, #f8f2df);
    --jj-gate-button-text: var(--jj-shell-bg, #162219);
    position: fixed;
    inset: 0;
    z-index: 110;
    display: grid;
    place-items: center;
    min-height: 100svh;
    padding: 40px 22px;
    overflow: hidden;
    color: var(--jj-gate-text);
    background: var(--jj-shell-bg, #163523);
    transition: opacity .55s ease, visibility .55s ease, transform .55s cubic-bezier(.22, .8, .2, 1);
}

.jj-gate--leaving {
    opacity: 0;
    visibility: hidden;
    transform: translateY(-16px) scale(1.015);
}

.jj-gate__photo,
.jj-gate__shade {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.jj-gate__photo {
    z-index: 0;
    object-fit: cover;
}

.jj-gate__shade {
    z-index: 1;
    background: linear-gradient(180deg, rgba(8, 18, 12, .42), rgba(8, 18, 12, .78));
}

.jj-gate__content {
    position: relative;
    z-index: 2;
    width: min(470px, 100%);
    text-align: center;
    color: #fff4e0;
}

.jj-gate__eyebrow {
    margin: 0 0 22px;
    color: var(--jj-gate-accent);
    font: 700 .72rem/1.4 system-ui, sans-serif;
    letter-spacing: .26em;
    text-transform: uppercase;
}

.jj-gate__ornament {
    display: block;
    margin-bottom: 22px;
    color: var(--jj-gate-accent);
    font-size: 2rem;
}

.jj-gate__title {
    margin: 0;
    font: 500 clamp(3.1rem, 13vw, 5.8rem)/.9 Georgia, serif;
    text-wrap: balance;
    color: #f0f2d2;
}

.jj-gate__title i {
    display: block;
    margin: .2em 0;
    color: var(--jj-gate-accent);
    font-size: .55em;
    font-weight: 400;
}

.jj-gate__date {
    margin: 26px 0 0;
    font: 600 .9rem/1.5 system-ui, sans-serif;
    letter-spacing: .08em;
}

.jj-gate__countdown {
    margin: 10px auto 0;
    transform: scale(.82);
    transform-origin: center;
}

.jj-gate__countdown .u-countdown-wrapper {
    margin: 16px 0;
    gap: 7px;
}

.jj-gate__countdown .u-countdown-item {
    min-width: 58px;
    padding: 9px 7px;
}

.jj-gate__countdown .u-countdown-num {
    font-size: 20px;
}

.jj-gate__guest {
    display: grid;
    gap: 5px;
    margin-top: 20px;
    font: 400 .86rem/1.5 system-ui, sans-serif;
}

.jj-gate__guest span {
    opacity: .76;
}

.jj-gate__guest strong {
    font-size: 1.08rem;
}

.jj-gate__button {
    display: inline-flex;
    gap: 18px;
    align-items: center;
    justify-content: center;
    min-height: 52px;
    margin-top: 24px;
    padding: 14px 26px;
    border: 1px solid var(--jj-gate-accent);
    border-radius: 4px;
    color: var(--jj-gate-button-text);
    background: var(--jj-gate-accent);
    font: 700 .9rem/1 system-ui, sans-serif;
    cursor: pointer;
    transition: transform .22s ease, filter .22s ease;
}

.jj-gate__button:hover {
    filter: brightness(1.08);
    transform: translateY(-2px);
}

.jj-gate__button:active {
    transform: translateY(0) scale(.98);
}

.jj-gate__button:focus-visible {
    outline: 3px solid #fff;
    outline-offset: 4px;
}

.jj-gate__preview {
    display: block;
    margin-top: 15px;
    opacity: .7;
    font: 500 .7rem system-ui, sans-serif;
}

/* Minang: maroon, gold, and a restrained songket geometry. */
.jj-gate--minang::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 1;
    opacity: .18;
    background-image: linear-gradient(45deg, transparent 47%, var(--jj-gate-accent) 48% 52%, transparent 53%), linear-gradient(-45deg, transparent 47%, var(--jj-gate-accent) 48% 52%, transparent 53%);
    background-size: 88px 88px;
    mask-image: linear-gradient(to bottom, #000, transparent 34%, transparent 72%, #000);
}

.jj-gate--minang .jj-gate__shade {
    background: linear-gradient(180deg, rgba(45, 6, 16, .36), rgba(45, 6, 16, .9));
}

.jj-gate--minang .jj-gate__title {
    color: var(--jj-gate-accent);
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-weight: 600;
}

.jj-gate--minang .jj-gate__eyebrow,
.jj-gate--minang .jj-gate__button {
    font-family: 'Cinzel', Georgia, serif;
}

.jj-gate--minang .jj-gate__ornament {
    font-size: 1.35rem;
    transform: rotate(45deg);
}

/* Madura: deep green, classic serif, and crisp diamond details. */
.jj-gate--madura .jj-gate__shade {
    background: linear-gradient(180deg, rgba(9, 34, 20, .3), rgba(8, 30, 18, .88));
}

.jj-gate--madura .jj-gate__content {
    padding-inline: 12px;
    border-inline: 1px solid color-mix(in srgb, var(--jj-gate-accent) 42%, transparent);
}

.jj-gate--madura .jj-gate__title {
    font-family: 'Cormorant Garamond', Georgia, serif;
}

.jj-gate--madura .jj-gate__button {
    border-radius: 0;
}

/* Jawa: warm earth colors and a framed, keraton-like composition. */
.jj-gate--jawa .jj-gate__shade {
    background: linear-gradient(180deg, rgba(44, 24, 16, .3), rgba(32, 15, 9, .91));
}

.jj-gate--jawa .jj-gate__content {
    padding: 34px 20px;
    border: 1px solid color-mix(in srgb, var(--jj-gate-accent) 62%, transparent);
    box-shadow: inset 0 0 0 6px color-mix(in srgb, var(--jj-gate-accent) 10%, transparent);
}

.jj-gate--jawa .jj-gate__title {
    font-family: 'Playfair Display', Georgia, serif;
}

/* Floral: airy cream overlay and romantic editorial type. The overlay is light
   but the photo still shows through (top area lands around #C2B6AC), so every
   text colour must use the theme ink; rust on that beige only reaches ~2,6:1. */
.jj-gate--floral {
    --jj-gate-accent: var(--text, #4a3728);
    --jj-gate-button-bg: var(--floral-rust, #876649);
    --jj-gate-button-text: #fffaf4;
}

.jj-gate--floral .jj-gate__shade {
    background: linear-gradient(180deg, rgba(253, 246, 240, .68), rgba(253, 246, 240, .94));
}

.jj-gate--floral .jj-gate__content {
    color: var(--text, #4a3728);
}

.jj-gate--floral .jj-gate__title {
    color: var(--text, #4a3728);
    font-family: 'Playfair Display', Georgia, serif;
    font-style: italic;
}

.jj-gate--floral .jj-gate__countdown .u-countdown-item {
    background: color-mix(in srgb, var(--text, #4a3728) 7%, transparent);
    border-color: color-mix(in srgb, var(--text, #4a3728) 16%, transparent);
}

.jj-gate--floral .jj-gate__preview {
    opacity: .85;
}

.jj-gate--floral .jj-gate__guest span {
    opacity: .85;
}

.jj-gate--floral .jj-gate__ornament {
    font-size: 0;
}

.jj-gate--floral .jj-gate__ornament::before {
    content: "❦";
    font-size: 2rem;
}

.jj-gate--floral .jj-gate__button {
    border-color: var(--jj-gate-button-bg);
    background: var(--jj-gate-button-bg);
    border-radius: 999px;
}

/* Modern: graphic, sans-serif, and intentionally minimal. */
.jj-gate--modern .jj-gate__shade {
    background: linear-gradient(180deg, rgba(0, 0, 0, .22), rgba(0, 0, 0, .88));
}

.jj-gate--modern .jj-gate__title {
    font-family: 'DM Sans', Arial, sans-serif;
    font-weight: 700;
    letter-spacing: -.065em;
    text-transform: uppercase;
}

.jj-gate--modern .jj-gate__title i {
    font-family: Georgia, serif;
    font-weight: 400;
}

.jj-gate--modern .jj-gate__ornament {
    width: 52px;
    height: 2px;
    margin-inline: auto;
    overflow: hidden;
    background: var(--jj-gate-accent);
}

.jj-gate--modern .jj-gate__button {
    border-radius: 0;
    text-transform: uppercase;
    letter-spacing: .08em;
}

/* Islami: an arch silhouette with subtle geometric ornament. */
.jj-gate--islami .jj-gate__shade {
    background: radial-gradient(circle at 50% 22%, rgba(213, 182, 111, .14), transparent 34%), linear-gradient(180deg, rgba(4, 48, 39, .35), rgba(4, 39, 33, .9));
}

.jj-gate--islami .jj-gate__content {
    padding: 42px 20px 24px;
    border: 1px solid color-mix(in srgb, var(--jj-gate-accent) 55%, transparent);
    border-radius: 180px 180px 18px 18px;
}

.jj-gate--islami .jj-gate__title {
    font-family: 'Cormorant Garamond', Georgia, serif;
}

.jj-gate--islami .jj-gate__button {
    border-radius: 8px;
}

@media (min-width: 900px) {
    .jj-shell--split-sticky .jj-gate {
        width: var(--jj-content-width, 500px);
        color: #f0f2d2;
    }

    .jj-shell--split-sticky.jj-shell-side--left .jj-gate {
        right: 0;
        left: auto;
    }

    .jj-shell--split-sticky.jj-shell-side--right .jj-gate {
        right: auto;
        left: 0;
    }
}

@media (prefers-reduced-motion: reduce) {
    .jj-gate {
        transition: none;
    }
}