/**
 * Invitation renderer themes (/e/{slug}, template previews).
 * Uses CSS variables set on .evt-invitation.
 */

.evt-invitation {
    background: var(--evt-background, #fafafa);
    font-family: var(--evt-font-body, system-ui, sans-serif);
    /* Host text can be up to 255 characters with no spaces (a name, a venue). It inherits to every layout, so no
       layout needs its own rule. break-word first: an engine without `anywhere` keeps it. */
    overflow-wrap: break-word;
    overflow-wrap: anywhere;
}

/* A flex or grid child will not shrink below its longest word unless told it may. */
.evt-invitation h1,
.evt-invitation h2,
.evt-invitation h3,
.evt-invitation p,
.evt-invitation li,
.evt-invitation span,
.evt-invitation div {
    min-width: 0;
}

/* Long event names step the headings down (class set by App\Support\InvitationTextLength). `zoom` scales the heading and
   its spacing together; an engine without it keeps the full size and still wraps. */
.evt-invitation.evt-name--long h1,
.evt-invitation.evt-name--long .evt-public-title {
    zoom: 0.85;
}

.evt-invitation.evt-name--xlong h1,
.evt-invitation.evt-name--xlong .evt-public-title {
    zoom: 0.7;
}

.evt-invitation-page {
    color: var(--evt-primary, #1a2a4a);
}

.evt-preview-banner {
    max-width: 720px;
    margin: 24px auto 0;
    padding: 14px 18px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    background: rgba(14, 165, 233, 0.12);
    color: var(--navy-muted, #334155);
    border: 1px solid rgba(14, 165, 233, 0.25);
}

.evt-preview-banner i {
    margin-right: 8px;
    color: var(--cyan, #0ea5e9);
}

.evt-invitation .evt-public-title {
    font-family: var(--evt-font-heading, inherit);
    color: var(--evt-primary, #1a2a4a);
}

.evt-invitation .evt-public-type {
    color: var(--evt-accent, #1e47bb);
    border-color: rgba(128, 128, 128, 0.25);
    border-color: color-mix(in srgb, var(--evt-accent, #1e47bb) 35%, transparent);
    background: transparent;
    background: color-mix(in srgb, var(--evt-accent, #1e47bb) 12%, transparent);
}

.evt-invitation .evt-detail-list i {
    color: var(--evt-accent, #1e47bb);
}

.evt-invitation .evt-detail-list li {
    border-color: rgba(128, 128, 128, 0.25);
    border-color: color-mix(in srgb, var(--evt-primary, #1a2a4a) 14%, transparent);
}

.evt-invitation .evt-public-url {
    color: var(--evt-accent, #1e47bb);
}

.evt-invitation .evt-desc-body,
.evt-invitation .evt-public-desc {
    font-family: var(--evt-font-body, inherit);
}

.evt-invitation .evt-inv-countdown {
    border-color: rgba(128, 128, 128, 0.25);
    border-color: color-mix(in srgb, var(--evt-accent, #1e47bb) 22%, transparent);
    background: var(--evt-background, #fafafa);
    background: color-mix(in srgb, var(--evt-background, #fafafa) 85%, white);
}

.evt-invitation .evt-inv-countdown-heading {
    color: var(--evt-accent, #1e47bb);
}

.evt-invitation .evt-inv-countdown-value {
    color: var(--evt-primary, #1a2a4a);
}

.evt-invitation .evt-inv-gallery-title {
    color: var(--evt-primary, #1a2a4a);
}

.evt-invitation .tpl-tag {
    background: transparent;
    background: color-mix(in srgb, var(--evt-accent, #1e47bb) 12%, transparent);
    color: var(--evt-accent, #1e47bb);
    border-color: rgba(128, 128, 128, 0.25);
    border-color: color-mix(in srgb, var(--evt-accent, #1e47bb) 22%, transparent);
}

.evt-skin-minimal .evt-public-inner {
    max-width: 560px;
}

.evt-skin-minimal .evt-public-cover {
    border-radius: 12px;
}

.evt-invitation--subtle-motion .evt-public-cover {
    animation: evt-inv-soft-in 1.1s ease-out both;
}

@keyframes evt-inv-soft-in {
    from {
        opacity: 0;
        transform: translateY(10px) scale(0.985);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@media (prefers-reduced-motion: reduce) {
    .evt-invitation--subtle-motion .evt-public-cover {
        animation: none;
    }
}

.evt-inv-hero {
    position: relative;
}

.evt-inv-hero--video .evt-inv-hero-cover {
    position: relative;
    z-index: 1;
}

.evt-inv-hero-video {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 16px;
    z-index: 0;
}

.evt-inv-hero-video-embed {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 0;
    overflow: hidden;
    border-radius: 16px;
    pointer-events: none;
}

.evt-inv-hero-video-iframe {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 177.77vh;
    height: 100%;
    min-width: 100%;
    min-height: 56.25vw;
    transform: translate(-50%, -50%);
    border: 0;
}

.evt-inv-hero-video-scrim {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    border-radius: 16px;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.15), rgba(0, 0, 0, 0.35));
    z-index: 1;
    pointer-events: none;
}

.evt-inv-hero--video .evt-inv-hero-cover {
    opacity: 0.92;
    mix-blend-mode: normal;
}

/* Classic (standard layout) hero — text only, no cover image. */
.evt-inv-std-hero {
    padding: 44px 24px;
    border-radius: 16px;
    text-align: center;
    color: var(--evt-background, #fff);
    background:
        radial-gradient(circle at 15% 20%, color-mix(in srgb, var(--evt-accent, #0ea5e9) 45%, transparent) 0, transparent 55%),
        linear-gradient(135deg, var(--evt-primary, #1e293b) 0%, color-mix(in srgb, var(--evt-primary, #1e293b) 70%, var(--evt-accent, #0ea5e9)) 100%);
    box-shadow: var(--card-shadow, 0 4px 24px rgba(0, 0, 0, 0.1));
}

.evt-inv-std-hero-eyebrow {
    margin: 0 0 10px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    opacity: 0.85;
}

.evt-inv-std-hero-date {
    margin: 0;
    font-family: var(--evt-font-heading, inherit);
    font-size: 1.25rem;
    font-size: clamp(1.25rem, 4vw, 1.75rem);
    font-weight: 600;
}

.evt-inv-std-hero-audio {
    margin-top: 20px;
}

.evt-inv-audio-wrap {
    position: absolute;
    bottom: 14px;
    right: 14px;
    z-index: 3;
}

.evt-inv-audio-play {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.35);
    background: rgba(15, 23, 42, 0.72);
    color: var(--white, #fff);
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
}

.evt-inv-audio-caption {
    display: block;
    margin-top: 6px;
    max-width: 240px;
    text-align: center;
    font-size: 12px;
    font-weight: 600;
    color: #fff;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.6);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.evt-inv-audio-floating .evt-inv-audio-caption {
    margin: 0;
    max-width: none;
    color: #0f172a;
    text-shadow: none;
}

.evt-inv-audio-report {
    display: block;
    margin-top: 6px;
    text-align: center;
    font-size: 11px;
    font-weight: 500;
    color: #fff;
    opacity: 0.85;
    text-decoration: underline;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.6);
}

.evt-inv-audio-report:hover {
    opacity: 1;
}

.evt-inv-audio-floating {
    position: fixed;
    right: 16px;
    bottom: 16px;
    z-index: 50;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
    padding: 10px;
    max-width: calc(100vw - 32px);
    border-radius: 18px;
    border: 1px solid rgba(15, 23, 42, 0.08);
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.22);
}

.evt-inv-audio-floating .evt-inv-audio-play {
    justify-content: center;
}

.evt-inv-audio-floating .evt-inv-audio-report {
    margin: 0;
    color: #64748b;
    text-shadow: none;
    opacity: 1;
}

.evt-inv-audio-floating .evt-inv-audio-report:hover {
    color: #0f172a;
}

.evt-inv-audio-play:hover {
    background: rgba(15, 23, 42, 0.88);
}

.evt-inv-countdown {
    padding: 22px;
    border-radius: 14px;
    border: 1px solid var(--line, #e0e0e8);
    background: var(--white, #fff);
    margin-bottom: 24px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
}

.evt-inv-countdown-heading {
    margin: 0 0 14px;
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--evt-accent, #1e47bb);
}

.evt-inv-countdown-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
}

.evt-inv-countdown-unit {
    text-align: center;
    padding: 12px 8px;
    border-radius: 10px;
    background: var(--evt-background, #fafafa);
    background: color-mix(in srgb, var(--evt-background, #fafafa) 70%, var(--white, #fff));
    border: 1px solid var(--line, #e0e0e8);
}

.evt-inv-countdown-value {
    display: block;
    font-size: 26px;
    font-weight: 800;
    font-family: var(--evt-font-heading, inherit);
    color: var(--evt-primary, #1a2a4a);
}

.evt-inv-countdown-label {
    display: block;
    margin-top: 4px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--gray-mid, #64748b);
}

.evt-inv-countdown-done {
    margin: 14px 0 0;
    font-weight: 700;
    color: var(--green, #27ae60);
}

.evt-inv-countdown-done--hidden {
    display: none;
}

.evt-inv-countdown-static {
    margin: 0;
    font-size: 18px;
    font-weight: 700;
    font-family: var(--evt-font-heading, inherit);
    color: var(--evt-primary, #1a2a4a);
}

.evt-inv-gallery-title {
    font-family: var(--evt-font-heading, inherit);
    font-size: 22px;
    margin: 0 0 16px;
    color: var(--evt-primary, #1a2a4a);
}

.evt-inv-gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 12px;
    margin-bottom: 24px;
}

.evt-inv-gallery-item {
    margin: 0;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--line, #e0e0e8);
}

.evt-inv-gallery-item img {
    width: 100%;
    height: 140px;
    object-fit: cover;
    display: block;
}

.evt-calendar-actions {
    margin-top: 22px;
    padding-top: 18px;
    border-top: 1px solid rgba(128, 128, 128, 0.25);
    border-top: 1px solid color-mix(in srgb, var(--evt-primary, #1a2a4a) 12%, transparent);
}

.evt-calendar-actions-label {
    margin: 0 0 12px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--evt-accent, #1e47bb);
}

.evt-calendar-actions-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.evt-calendar-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    color: var(--evt-primary, #1a2a4a);
    background: var(--evt-background, #fafafa);
    background: color-mix(in srgb, var(--evt-background, #fafafa) 88%, white);
    border: 1px solid rgba(128, 128, 128, 0.25);
    border: 1px solid color-mix(in srgb, var(--evt-accent, #1e47bb) 35%, transparent);
}

.evt-calendar-btn:hover {
    border-color: var(--evt-accent, #1e47bb);
    color: var(--evt-accent, #1e47bb);
}

.evt-inline-rsvp {
    margin-top: 28px;
    padding: 24px 20px;
    border-radius: 16px;
    border: 1px solid rgba(128, 128, 128, 0.25);
    border: 1px solid color-mix(in srgb, var(--evt-primary, #1a2a4a) 14%, transparent);
    background: var(--evt-background, #fafafa);
    background: color-mix(in srgb, var(--evt-background, #fafafa) 92%, white);
}

.evt-inline-rsvp-heading {
    margin: 0 0 8px;
    font-family: var(--evt-font-heading, inherit);
    font-size: 22px;
    color: var(--evt-primary, #1a2a4a);
}

.evt-inline-rsvp-lead {
    margin: 0 0 18px;
    font-size: 15px;
    line-height: 1.5;
    color: var(--evt-primary, #1a2a4a);
    color: color-mix(in srgb, var(--evt-primary, #1a2a4a) 78%, gray);
}

.evt-inline-rsvp .btn-primary {
    width: 100%;
    justify-content: center;
}

.evt-inline-rsvp-alt {
    margin: 16px 0 0;
    text-align: center;
    font-size: 14px;
}

.evt-inline-rsvp-alt-link {
    color: var(--evt-accent, #1e47bb);
    font-weight: 600;
}

.evt-inv-gallery-swiper {
    position: relative;
    padding-bottom: 36px;
}

.evt-inv-gallery-slide {
    margin: 0;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--line, #e0e0e8);
}

.evt-inv-gallery-slide a {
    display: block;
}

.evt-inv-gallery-slide-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}

.evt-inv-gallery .swiper-button-prev,
.evt-inv-gallery .swiper-button-next {
    color: var(--evt-accent, #1e47bb);
}

.evt-inv-gallery .swiper-pagination-bullet-active {
    background: var(--evt-accent, #1e47bb);
}

@media (max-width: 600px) {
    .evt-inv-countdown-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* --- Botanical blush skin (graduation / romantic botanical) --- */

.evt-skin-botanical-blush.evt-invitation {
    background-color: var(--evt-background, #faf5f2);
    background-image:
        radial-gradient(ellipse 140% 70% at 50% -35%, color-mix(in srgb, var(--evt-accent, #c87892) 28%, transparent), transparent 58%),
        radial-gradient(ellipse 55% 45% at -5% 25%, color-mix(in srgb, var(--evt-accent, #c87892) 14%, transparent), transparent 72%),
        radial-gradient(ellipse 55% 45% at 105% 35%, color-mix(in srgb, var(--evt-primary, #5a4d52) 12%, transparent), transparent 72%),
        radial-gradient(ellipse 50% 40% at 8% 102%, color-mix(in srgb, var(--evt-primary, #5a4d52) 10%, transparent), transparent 68%),
        radial-gradient(ellipse 50% 40% at 92% 98%, color-mix(in srgb, var(--evt-accent, #c87892) 12%, transparent), transparent 68%);
}

.evt-skin-botanical-blush .evt-public-inner.evt-public-page {
    position: relative;
    max-width: 640px;
    margin-inline: auto;
    padding-block: 52px 64px;
    padding-inline: 22px;
    padding-inline: clamp(22px, 4vw, 44px);
    border-radius: 32px;
    border: 1px solid rgba(128, 128, 128, 0.25);
    border: 1px solid color-mix(in srgb, var(--evt-accent, #c87892) 32%, transparent);
    background: linear-gradient(
        165deg,
        var(--evt-background, #faf5f2) 0%,
        var(--evt-background, #faf5f2) 100%
    );
    background: linear-gradient(
        165deg,
        color-mix(in srgb, var(--evt-background, #faf5f2) 94%, white) 0%,
        color-mix(in srgb, var(--evt-background, #faf5f2) 78%, white) 100%
    );
    box-shadow:
        0 1px 0 color-mix(in srgb, white 55%, transparent) inset,
        0 28px 70px color-mix(in srgb, var(--evt-primary, #5a4d52) 12%, transparent);
}

.evt-skin-botanical-blush .evt-public-inner.evt-public-page::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 14px;
    transform: translateX(-50%);
    width: 48%;
    width: min(220px, 48%);
    height: 5px;
    border-radius: 999px;
    background: linear-gradient(
        90deg,
        transparent,
        var(--evt-accent, #c87892),
        transparent
    );
    background: linear-gradient(
        90deg,
        transparent,
        color-mix(in srgb, var(--evt-accent, #c87892) 55%, transparent),
        transparent
    );
    opacity: 0.85;
}

.evt-skin-botanical-blush .evt-public-hero {
    margin-bottom: 32px;
}

.evt-skin-botanical-blush .evt-public-cover {
    border-radius: 50% 50% 24px 24px / 28% 28% 24px 24px;
    border: 3px solid var(--evt-accent, #c87892);
    border: 3px solid color-mix(in srgb, var(--evt-accent, #c87892) 50%, white);
    box-shadow:
        0 0 0 7px color-mix(in srgb, var(--evt-background, #faf5f2) 65%, var(--evt-accent, #c87892)),
        0 22px 56px color-mix(in srgb, var(--evt-primary, #5a4d52) 22%, transparent);
}

.evt-skin-botanical-blush .evt-inv-hero--video .evt-inv-hero-video,
.evt-skin-botanical-blush .evt-inv-hero--video .evt-inv-hero-video-embed,
.evt-skin-botanical-blush .evt-inv-hero-video-scrim {
    border-radius: 50% 50% 24px 24px / 28% 28% 24px 24px;
}

.evt-skin-botanical-blush .evt-public-type {
    margin-inline: auto;
    letter-spacing: 0.14em;
    border-radius: 999px;
    padding-inline: 16px;
    padding-block: 7px;
    border-width: 1px;
    font-weight: 700;
    background: white;
    background: color-mix(in srgb, var(--evt-accent, #c87892) 14%, white);
    color: var(--evt-primary, #5a4d52);
    color: color-mix(in srgb, var(--evt-primary, #5a4d52) 85%, var(--evt-accent, #c87892));
}

.evt-skin-botanical-blush .evt-public-title {
    text-align: center;
    font-weight: 700;
    letter-spacing: 0.04em;
    line-height: 1.15;
}

.evt-skin-botanical-blush .evt-detail-list li {
    border-radius: 16px;
    border-color: rgba(128, 128, 128, 0.25);
    border-color: color-mix(in srgb, var(--evt-accent, #c87892) 38%, transparent);
    background: var(--evt-background, #faf5f2);
    background: color-mix(in srgb, var(--evt-background, #faf5f2) 55%, white);
    box-shadow: none;
}

.evt-skin-botanical-blush .evt-inv-countdown {
    border-radius: 22px;
    border-style: solid;
    border-width: 1px;
    border-color: rgba(128, 128, 128, 0.25);
    border-color: color-mix(in srgb, var(--evt-accent, #c87892) 36%, transparent);
    background: var(--evt-background, #faf5f2);
    background: color-mix(in srgb, var(--evt-background, #faf5f2) 72%, white);
    box-shadow: 0 16px 40px transparent;
    box-shadow: 0 16px 40px color-mix(in srgb, var(--evt-primary, #5a4d52) 8%, transparent);
}

.evt-skin-botanical-blush .evt-inv-countdown-unit {
    border-radius: 14px;
    border-color: rgba(128, 128, 128, 0.25);
    border-color: color-mix(in srgb, var(--evt-accent, #c87892) 22%, transparent);
    background: white;
    background: color-mix(in srgb, white 88%, var(--evt-background, #faf5f2));
}

.evt-skin-botanical-blush .evt-inv-gallery-item {
    border-radius: 18px;
    border-color: rgba(128, 128, 128, 0.25);
    border-color: color-mix(in srgb, var(--evt-accent, #c87892) 30%, transparent);
}

.evt-skin-botanical-blush .evt-desc-body,
.evt-skin-botanical-blush .evt-public-desc {
    text-align: center;
    max-width: 46ch;
    margin-inline: auto;
}

.evt-inv-story {
    max-width: 640px;
    margin-inline: auto;
    padding: 28px 18px 8px;
}

.evt-inv-story-heading {
    margin: 0 0 12px;
    font-family: var(--evt-font-heading, inherit);
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--evt-accent, #1e47bb);
}

.evt-inv-story-body {
    margin: 0;
    font-size: 1rem;
    line-height: 1.65;
    color: var(--evt-primary, #1a2a4a);
}

.evt-inv-schedule {
    max-width: 640px;
    margin-inline: auto;
    padding: 16px 18px 28px;
}

.evt-inv-schedule-heading {
    margin: 0 0 14px;
    font-family: var(--evt-font-heading, inherit);
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--evt-accent, #1e47bb);
}

.evt-inv-schedule-list {
    margin: 0;
    padding-left: 1.25rem;
}

.evt-inv-schedule-item {
    margin-bottom: 14px;
}

.evt-inv-schedule-item:last-child {
    margin-bottom: 0;
}

.evt-inv-schedule-time {
    display: inline-block;
    margin-right: 8px;
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--evt-accent, #1e47bb);
}

.evt-inv-schedule-title {
    font-weight: 700;
    font-size: 1.05rem;
    color: var(--evt-primary, #1a2a4a);
}

.evt-inv-schedule-detail {
    margin: 6px 0 0;
    font-size: 0.95rem;
    line-height: 1.5;
    color: var(--evt-primary, #1a2a4a);
    color: color-mix(in srgb, var(--evt-primary, #1a2a4a) 78%, gray);
}

@media (max-width: 768px) {
    .evt-skin-botanical-blush .evt-public-inner.evt-public-page {
        padding-block: 40px 52px;
        border-radius: 26px;
    }

    .evt-skin-botanical-blush .evt-desc-body,
    .evt-skin-botanical-blush .evt-public-desc {
        text-align: left;
        max-width: none;
        margin-inline: 0;
    }
}

/* Without JavaScript the live ticker cannot run: show the start as a sentence instead (the numbers in the
   markup are only the value at page load). With JS on the sentence stays hidden. */
.evt-inv-countdown-nojs {
    display: none;
    margin: 0.35rem 0 0;
    text-align: center;
    font-weight: 600;
}

html:not(.js) .evt-inv-countdown-nojs {
    display: block;
}

html:not(.js) [data-inv-countdown] .evt-inv-countdown-grid,
html:not(.js) [data-inv-countdown] .evt-inv-countdown-heading {
    display: none;
}

/* Shown only inside <noscript>, and only when the invitation has something that needs scripts. */
.evt-inv-noscript {
    margin: 0;
    padding: 0.6rem 1rem;
    text-align: center;
    font-size: 0.85rem;
    background: rgba(0, 0, 0, 0.06);
}

/* The gallery as a plain grid. Used when the slider cannot run: scripts off (html:not(.js)), or the slider library
   failed to load (invitation-public.js adds .evt-inv-gallery--static). Swiper's own stylesheet makes the wrapper a
   clipped single row and shows dead arrows, so both are undone here. */
html:not(.js) .evt-inv-gallery-swiper,
.evt-inv-gallery--static .evt-inv-gallery-swiper {
    overflow: visible;
    padding-bottom: 0;
}

html:not(.js) .evt-inv-gallery-swiper .swiper-wrapper,
.evt-inv-gallery--static .evt-inv-gallery-swiper .swiper-wrapper {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 12px;
    transform: none;
    height: auto;
}

html:not(.js) .evt-inv-gallery-swiper .swiper-slide,
.evt-inv-gallery--static .evt-inv-gallery-swiper .swiper-slide {
    width: auto;
    height: auto;
    margin: 0;
}

html:not(.js) .evt-inv-gallery .swiper-button-prev,
html:not(.js) .evt-inv-gallery .swiper-button-next,
html:not(.js) .evt-inv-gallery .swiper-pagination,
.evt-inv-gallery--static .swiper-button-prev,
.evt-inv-gallery--static .swiper-button-next,
.evt-inv-gallery--static .swiper-pagination {
    display: none;
}

/* Hero background video: the "play" and "watch" controls. The play button is added by invitation-public.js when the
   video is not started automatically (slow or metered connection, reduced motion). The plain link is for guests with
   no JavaScript; it is hidden whenever scripts are on, unless they stalled. */
.evt-inv-video-play,
.evt-inv-video-link {
    position: absolute;
    right: 12px;
    bottom: 12px;
    z-index: 4;
    display: inline-flex;
    align-items: center;
    padding: 0.45rem 0.9rem;
    border: 0;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.62);
    color: #fff;
    font: inherit;
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
}

.evt-inv-video-play i,
.evt-inv-video-link i {
    margin-right: 0.4rem;
}

.evt-inv-video-play:hover,
.evt-inv-video-link:hover {
    background: rgba(0, 0, 0, 0.8);
}

html.js .evt-inv-video-link {
    display: none;
}

html.js.js-stalled .evt-inv-video-link {
    display: inline-flex;
}

/* An image that failed to load (see initImageFallbacks in invitation-public.js). A failed gallery photo is removed
   from its slide or cell; any other image becomes a quiet block in the invitation's own colours. */
.evt-inv-img-gone {
    display: none !important;
}

.evt-inv-img-failed {
    background: var(--evt-background, #ffffff);
    background: color-mix(in srgb, var(--evt-primary, #5a4d52) 14%, var(--evt-background, #ffffff));
    color: transparent;
}

/* Printing, or "Save as PDF". Everything here undoes something that only makes sense on a screen: sections that appear on
   scroll are transparent until reached (a printout never scrolls), heroes sized to the viewport become page-sized blocks, and
   video, music, sliders and a frozen countdown mean nothing on paper. !important is deliberate: these must beat the layout
   stylesheets, which load after this one. */
@media print {
    .evt-invitation,
    .evt-invitation * {
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }

    .evt-layout-wedding-invitation .wi-reveal,
    .evt-layout-wedding-invitation-noir .wi2-reveal {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
        animation: none !important;
    }

    .evt-layout-wedding-invitation .wi-hero,
    .evt-layout-wedding-invitation-noir .wi2-hero,
    .evt-layout-beauty-for-ashes .bfa-hero,
    .evt-layout-event-invite.evt-invitation,
    .evt-layout-modern-minimal .mm-hero,
    .evt-layout-wedding-midnight-gold .mg-hero,
    .evt-layout-wedding-royal-blue .rb-hero,
    .evt-layout-botanical-graduation .hero {
        height: auto !important;
        min-height: 0 !important;
    }

    .evt-preview-banner,
    .evt-inv-nav,
    .evt-inv-audio-wrap,
    .evt-inv-hero-video,
    .evt-inv-hero-video-embed,
    .evt-inv-hero-video-scrim,
    .bfa-hero-video,
    .bfa-hero-video-embed,
    .bfa-hero-video-scrim,
    .evt-inv-video-play,
    .evt-inv-video-link,
    .evt-inv-gallery-prev,
    .evt-inv-gallery-next,
    .evt-inv-gallery-pagination,
    .swiper-button-prev,
    .swiper-button-next,
    .swiper-pagination,
    .swiper-slide-duplicate,
    .evt-inv-countdown-done,
    [data-inv-countdown] .evt-inv-countdown-grid {
        display: none !important;
    }

    /* The countdown is frozen on paper: print the start as a sentence instead. */
    .evt-inv-countdown-nojs {
        display: block !important;
    }

    /* The gallery slider becomes a plain two-column grid. */
    .evt-inv-gallery-swiper {
        overflow: visible !important;
        padding-bottom: 0 !important;
    }

    .evt-inv-gallery-swiper .swiper-wrapper {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 12px !important;
        transform: none !important;
        height: auto !important;
    }

    .evt-inv-gallery-swiper .swiper-slide {
        width: auto !important;
        height: auto !important;
        margin: 0 !important;
    }

    .evt-inv-anchor,
    .evt-inv-gallery,
    .evt-calendar-actions {
        break-inside: avoid;
        page-break-inside: avoid;
    }
}

/* One line shown only inside Facebook's and Instagram's in-app browsers (see initInAppHint in invitation-public.js). */
.evt-inv-inapp-hint {
    margin: 0 0 0.6rem;
    font-size: 0.8rem;
    opacity: 0.8;
}
