﻿/* Tokens */
@import url("./album-layouts.css");

:root {
    /* Template 8 color system */
    --template-8-primary: #294a2d;
    --template-8-primary-rgb: 41, 74, 45;
    --template-8-green: var(--template-8-primary);
    --template-8-olive: #4c593d;
    --template-8-olive-rgb: 76, 89, 61;
    --template-8-cream: #f5f1e8;
    --template-8-paper: #f5f5f5;
    --template-8-surface: #ffffff;
    --template-8-on-green: #ffffff;
    --template-8-text: #30352c;
    --template-8-text-strong: #35302f;
    --template-8-text-rgb: 48, 53, 44;
    --template-8-calendar-accent: #ef9dac;
    --template-8-gold: #d8c7a3;
    --template-8-field-border: rgba(var(--template-8-primary-rgb), 0.22);
    --template-8-field-border-hover: rgba(var(--template-8-primary-rgb), 0.42);
    --template-8-field-placeholder: rgba(var(--template-8-text-rgb), 0.5);
    --template-8-field-focus-ring: rgba(var(--template-8-primary-rgb), 0.12);

    /* Shared component color tokens */
    --ws-content-placeholder-border-color: rgba(255, 255, 255, 0.45);
    --ws-content-placeholder-background: rgba(0, 0, 0, 0.22);
    --ws-content-placeholder-icon-color: var(--template-8-primary);
    --ws-content-placeholder-icon-background: var(--template-8-cream);
    --ws-content-placeholder-title-color: var(--template-8-cream);
    --ws-content-placeholder-path-color: rgba(255, 255, 255, 0.78);
    --gift-green: var(--template-8-primary);
    --gift-green-light: var(--template-8-primary);
    --gift-green-surface: rgba(var(--template-8-primary-rgb), 0.08);
    --ws-album-3d-dot-color: rgba(245, 241, 232, 0.42);
    --ws-album-3d-dot-active-color: var(--template-8-gold);

    /* Compatibility aliases used by shared legacy components */
    --template-7-primary: var(--template-8-primary);
    --template-7-primary-rgb: var(--template-8-primary-rgb);
    --kit-primary-rgb: var(--template-8-primary-rgb);
    --primary-rgb: var(--template-8-primary-rgb);
    --t1-primary: var(--template-8-primary);
    --t1-secondary: var(--template-8-gold);
    --olive-dark: var(--template-8-primary);
    --t3-primary: var(--template-8-primary);
}

@media (max-width: 420px) {
    .env-card {
        padding: 2rem 1.6rem 2rem;
        border-radius: 18px;
    }

    .env-name {
        font-size: clamp(2rem, 11vw, 2.5rem);
    }
}

*/ body {
    background: var(--body-bg);
    background-image:
        radial-gradient(ellipse 80% 50% at 50% -20%, rgba(var(--template-7-primary-rgb), 0.08) 0%, transparent 70%);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow-x: hidden;
}

/* ===================== INVITATION CONTENT ===================== */
#invitation-content {
    display: none;
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
    opacity: 0;
    overflow: hidden;
    transition: opacity 0.8s ease, padding-top 0.8s ease;
    box-sizing: border-box;
    box-shadow:
        0 0 0 1px rgba(var(--template-7-primary-rgb), 0.10),
        0 40px 80px rgba(0, 0, 0, 0.6);
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.9)),
        url('../images/template-3/bg-frame.webp');
    background-repeat: repeat;
    background-size: contain;
    overflow: hidden;
}

#invitation-content.visible {
    opacity: 1;
    padding-top: 0;
}

.ws-section {
    padding-inline: clamp(20px, 2.46vw + 9.7px, 29px);
    padding-block: 38px;
}

.ws-section:first-child {
    padding-top: 40px;
}

.section-title {
    margin-bottom: clamp(16px, 2vw + 6px, 24px);
    text-shadow: 0px 4px 4px rgba(0, 0, 0, 0.25);
    font-weight: 400;
    line-height: 1.4;
    font-size: 42px;
    color: var(--template-7-primary);
    text-align: center;
}

/* ===================== AOS ===================== */
[data-aos] {
    pointer-events: none;
}

[data-aos].aos-animate {
    pointer-events: auto;
}

/* envelop scene */

html.ws-template-3-envelope-locked,
html.ws-template-3-envelope-locked body {
    overflow: hidden !important;
    overscroll-behavior: none;
}

.ws-template-3-envelope-scene {
    position: fixed;
    inset: 0 auto 0 50%;
    width: min(100%, 500px);
    height: 100vh;
    height: 100dvh;
    transform: translateX(-50%);
    z-index: 9999;
    overflow: hidden;
    transition: opacity 0.6s ease, visibility 0.6s ease;
}

.ws-template-3-envelope-scene.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.ws-template-3-envelope-scene .ws-envelope-overlay {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    max-height: none;
    overflow: hidden;
    pointer-events: auto;
}

.ws-template-3-envelope-scene .ws-envelope-panel {
    position: absolute;
    top: 0;
    bottom: 0;
    height: 100%;
    overflow: hidden;
    background-size: cover;
    background-repeat: no-repeat;
    transform: translateX(0);
    transition: none;
}

.ws-template-3-envelope-scene .ws-envelope-panel--left {
    left: 0;
    z-index: 2;
    width: 63.2%;
    background-position: 79.1139% center;
}

.ws-template-3-envelope-scene .ws-envelope-panel--right {
    right: 0;
    z-index: 1;
    width: 50%;
    background-position: left center;
}

.ws-template-3-envelope-scene .ws-envelope-overlay.ws-envelope--opening .ws-envelope-panel--left {
    transform: translateX(-100%);
    transition: transform 3.5s ease-in-out;
}

.ws-template-3-envelope-scene .ws-envelope-overlay.ws-envelope--opening .ws-envelope-panel--right {
    transform: translateX(100%);
    transition: transform 3.5s ease-in-out;
}

.ws-template-3-envelope-scene .ws-envelope-overlay.ws-envelope--done {
    display: none;
}

.ws-envelope-open-control {
    position: absolute;
    inset: 0;
    z-index: 5;
    width: 100%;
    height: 100%;
    padding: 0;
    border: 0;
    background: transparent;
    font: inherit;
    color: inherit;
    cursor: pointer;
}

.ws-envelope-open-control:focus-visible {
    outline: 2px solid #8a7442;
    outline-offset: -4px;
}

.ws-envelope-tap-hint {
    position: absolute;
    left: 50%;
    bottom: 6%;
    transform: translateX(-50%);
    width: 100%;
    padding: 0 16px;
    text-align: center;
    pointer-events: none;
    transition: opacity 0.6s ease;
}

.ws-envelope-tap-hint__text {
    display: inline-block;
    font-family: inherit;
    font-size: 12px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--template-7-primary);
    opacity: 0.9;
    text-shadow: 0 1px 3px rgba(255, 255, 255, 0.9), 0 0 8px rgba(255, 255, 255, 0.6);
    animation: ws-tap-hint-pulse 2.4s ease-in-out infinite;
}

@keyframes ws-tap-hint-pulse {

    0%,
    100% {
        opacity: 0.45;
        transform: translateY(0);
    }

    50% {
        opacity: 0.9;
        transform: translateY(-2px);
    }
}

.ws-envelope-overlay.ws-envelope--opening .ws-envelope-open-control,
.ws-envelope-overlay.ws-envelope--done .ws-envelope-open-control {
    opacity: 0;
    pointer-events: none;
}

@media (prefers-reduced-motion: reduce) {
    .ws-envelope-tap-hint__text {
        animation: none;
    }
}

/* family info */
.family-info {
    position: relative;
}

.family-info__heart-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.family-flower {
    position: absolute;
    right: -53px;
    top: -161px;
    width: 224px;
    z-index: 3;
}

.family-info__heart {
    display: flex;
    width: 40px;
    height: 40px;
    justify-content: center;
    align-items: center;
    border-radius: 999px;
    border: 1px solid rgba(var(--template-7-primary-rgb), 0.42);
    color: var(--template-7-primary);
    position: relative;
}

.family-info__heart::before {
    content: '';
    position: absolute;
    inset: 0;
    box-sizing: border-box;
    border-radius: inherit;
    padding: 1px;
    background: conic-gradient(from 0deg, rgba(var(--template-7-primary-rgb), 0) 0deg, rgba(var(--template-7-primary-rgb), 0.85) 72deg, rgba(var(--template-7-primary-rgb), 0.42) 128deg, rgba(var(--template-7-primary-rgb), 0) 190deg, rgba(var(--template-7-primary-rgb), 0) 360deg);
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    animation: familyInfoHeartBorderSpin 2.8s linear infinite;
    pointer-events: none;
}

.family-info__heart svg {
    position: relative;
    z-index: 1;
    width: 16px;
}

@keyframes familyInfoHeartBorderSpin {
    to {
        transform: rotate(360deg);
    }
}

.family-info__heart-line {
    width: 1px;
    height: 49px;
    position: relative;
    overflow: hidden;
}

.family-info__heart-line::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 0;
    background: linear-gradient(180deg, rgba(var(--template-7-primary-rgb), 0.85) 0%, rgba(var(--template-7-primary-rgb), 0.42) 45%, rgba(var(--template-7-primary-rgb), 0) 100%);
    background-size: 100% 180%;
    background-position: 50% 0%;
    animation: familyInfoHeartLineGrow 2.4s ease-in-out infinite;
}

@keyframes familyInfoHeartLineGrow {
    0% {
        height: 0;
        opacity: 0;
        background-position: 50% 0%;
    }

    12% {
        opacity: 1;
    }

    62% {
        height: 49px;
        opacity: 1;
        background-position: 50% 100%;
    }

    82% {
        height: 49px;
        opacity: 1;
        background-position: 50% 100%;
    }

    100% {
        height: 49px;
        opacity: 0;
        background-position: 50% 100%;
    }
}

.template-8-family {
    container-type: inline-size;
    position: relative;
    width: min(100%, 500px);
    margin: auto;
    overflow: hidden;
    color: var(--template-8-green);
    background:
        radial-gradient(circle at 92% 16%, rgba(var(--template-8-olive-rgb), 0.08), transparent 24%),
        var(--template-8-surface);
}

.template-8-family:has(+ .template-8-event) {
    padding-bottom: 0;
}


.family-info__invitation {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    margin: 0;
    padding: clamp(12px, 4cqw, 22px) 0 10px;
    text-align: center;
}

.family-info__title {
    margin: 0;
    font-weight: 500;
    letter-spacing: 0.16em;
    line-height: 1.35;
    text-transform: uppercase;
    color: var(--template-8-text-strong);
    font-family: "scarlet-bradley.regular";
    font-size: 16px;
}

.family-info__guest {
    margin: 0;
}

.family-info__guest span {
    color: var(--template-8-green);
    font-size: clamp(22px, 4vw, 30px);
    font-weight: 400;
    line-height: 1;
    text-transform: capitalize;
    font-family: 'Playfair Display', serif;
    display: block;
}

.family-info__description {
    max-width: 350px;
    margin: 2px auto 0;
    font-weight: 400;
    line-height: 1.45;
    text-align: center;
    color: var(--template-8-text);
    font-family: "scarlet-bradley.regular";
    font-size: 19px;
}

.family-info__names {
    display: flex;
    position: relative;
    flex-direction: column;
    align-items: stretch;
    margin: clamp(22px, 7cqw, 36px) 0 clamp(18px, 5cqw, 28px);
    padding: 0 4px;
    gap: 0;
}

.family-info__person {
    display: flex;
    width: 100%;
    flex-direction: column;
}

.family-info__person:first-child {
    align-self: flex-start;
    align-items: flex-start;
}

.family-info__person:last-child {
    align-self: flex-end;
    align-items: flex-end;
}

.family-info__name,
.family-info__divider {
    margin: 0;
    color: var(--template-8-green);
    font-weight: 500;
    letter-spacing: -0.04em;
    line-height: 0.98;
    text-align: inherit;
    text-shadow: none;
    font-family: "Chetta Vissto";
    font-size: clamp(28px, 8cqw, 37px);
}

.family-info__divider {
    position: static;
    align-self: center;
    flex: 0 0 auto;
    z-index: 1;
    font-weight: 400;
    line-height: 0.7;
    transform: rotate(-8deg);
    font-family: "Arcittya Begatri";
    font-size: 140px;
    color: var(--template-8-text-strong);
}

.template-8-family__photos {
    position: relative;
    height: clamp(340px, 96cqw, 480px);
    margin: 0 -6px clamp(34px, 9cqw, 48px);
}

.template-8-family__photo-card {
    position: absolute;
    width: 53%;
    margin: 0;
    padding: clamp(7px, 2cqw, 10px);
    background: var(--template-8-surface);
    box-shadow: 0 12px 28px rgba(25, 35, 25, 0.18);
}

.template-8-family__photo-card::after {
    content: '';
    position: absolute;
    inset: clamp(7px, 2cqw, 10px) clamp(7px, 2cqw, 10px) auto;
    height: 23%;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.88), transparent);
    pointer-events: none;
}

.template-8-family__photo-card--left {
    top: 0;
    left: 0;
    transform: rotate(-1.5deg);
}

.template-8-family__photo-card--right {
    right: 0;
    bottom: 0;
    transform: rotate(1.5deg);
}

.template-8-family__photos[data-aos="template-8-family-photos"] .template-8-family__photo-card {
    transition-duration: 1200ms;
    transition-property: opacity, transform;
    transition-timing-function: cubic-bezier(0.16, 1, 0.3, 1);
}

.template-8-family__photos[data-aos="template-8-family-photos"]:not(.aos-animate) .template-8-family__photo-card--left {
    opacity: 0;
    transform: translate3d(-8%, 48px, 0) rotate(-6deg);
}

.template-8-family__photos[data-aos="template-8-family-photos"]:not(.aos-animate) .template-8-family__photo-card--right {
    opacity: 0;
    transform: translate3d(8%, 48px, 0) rotate(6deg);
}

.template-8-family__photos[data-aos="template-8-family-photos"] .template-8-family__photo-card--left {
    transition-delay: 120ms;
}

.template-8-family__photos[data-aos="template-8-family-photos"] .template-8-family__photo-card--right {
    transition-delay: 260ms;
}

.template-8-family__photos[data-aos="template-8-family-photos"].aos-animate .template-8-family__photo-card--left {
    opacity: 1;
    transform: translate3d(0, 0, 0) rotate(-1.5deg);
}

.template-8-family__photos[data-aos="template-8-family-photos"].aos-animate .template-8-family__photo-card--right {
    opacity: 1;
    transform: translate3d(0, 0, 0) rotate(1.5deg);
}

.template-8-family__photo-card img {
    display: block;
    width: 100%;
    aspect-ratio: 0.68;
    object-fit: cover;
}

.template-8-family__photo-card>.ws-image-placeholder {
    aspect-ratio: 0.68;
}

.family-info__family {
    position: relative;
}

.family-info__parents-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) clamp(22px, 7cqw, 34px) minmax(0, 1fr);
    align-items: stretch;
}

.family-info__parents-column {
    display: flex;
    min-width: 0;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 0 2px 12px;
}

.family-info__parents-divider {
    display: flex;
    position: relative;
    width: 1px;
    height: 100%;
    min-height: 112px;
    align-items: center;
    justify-content: center;
    margin: auto;
    background: linear-gradient(transparent, rgba(var(--template-8-olive-rgb), 0.35), transparent);
}

.family-info__parents-label {
    margin-bottom: 5px;
    color: var(--template-8-green);
    font-weight: 500;
    letter-spacing: 0.075em;
    line-height: 1.3;
    text-align: center;
    text-transform: uppercase;
    font-family: "scarlet-bradley.regular";
    font-size: 14px;
}

.family-info__parents-names {
    display: flex;
    min-height: 42px;
    flex-direction: column;
    justify-content: center;
    gap: 4px;
}

.family-info__parents-address,
.family-info__parents-name {
    margin: 0;
    color: var(--template-8-green);
    font-family: "BrikeyMoura Regular";
    font-size: clamp(13px, 3.45cqw, 16px);
    line-height: 1.45;
    text-align: center;
}

.family-info__parents-address {
    color: rgba(var(--template-8-text-rgb), 0.72);
    font-size: clamp(14px, 2.15cqw, 16px);
    font-style: normal;
    font-weight: 400;
    line-height: 1.55;
    font-family: "scarlet-bradley.regular";
}

/* Event section */
.template-8-event {
    container-type: inline-size;
    position: relative;
    z-index: 2;
    width: min(100%, 500px);
    overflow: hidden;
    color: var(--template-8-on-green);
    font-family: "scarlet-bradley.regular";
    padding-inline: 4px;
}

.event-info,
.event-info__items {
    width: 100%;
}

.event-info {
    margin: auto;
    background: var(--template-8-olive);
    border-radius: clamp(14px, 4cqw, 22px);
}

.event-info__items {
    display: grid;
    gap: 12px;
}

.event-calendar {
    display: flex;
    width: 100%;
    overflow: hidden;
    flex-direction: column;
    gap: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    border-inline: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

.event-calendar__heading {
    position: relative;
    padding: clamp(14px, 4cqw, 20px) clamp(16px, 4.5cqw, 22px) clamp(12px, 3.5cqw, 17px);
    color: var(--template-8-on-green);
    background: transparent;
    text-align: center;
    padding-bottom: 0;
}

.event-calendar__event-name {
    margin: 0 0 4px;
    color: var(--template-8-on-green);
    font-family: "scarlet-bradley.regular";
    font-size: clamp(14px, 4cqw, 18px);
    font-weight: 600;
    letter-spacing: 0.075em;
    line-height: 1.4;
    text-align: center;
    text-transform: uppercase;
}

.event-calendar__time {
    margin: 0;
    color: rgba(255, 255, 255, 0.82);
    font-family: 'Yeseva One', serif;
    font-size: clamp(14px, 3.8cqw, 18px);
    font-weight: 400;
    letter-spacing: 0.025em;
    line-height: 1.4;
    text-align: center;
}

.event-calendar__date {
    align-items: center;
    justify-content: center;
    gap: clamp(10px, 3.5cqw, 18px);
    padding: clamp(16px, 4.5cqw, 22px) 10px;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
}

.event-calendar__month,
.event-calendar__weekday {
    width: fit-content;
    max-width: 100%;
    min-width: 0;
    margin: 0;
    padding: 5px 2px;
    border-top: 1px solid rgba(255, 255, 255, 0.5);
    border-bottom: 1px solid rgba(255, 255, 255, 0.5);
    color: var(--template-8-on-green);
    font-family: 'Yeseva One', serif;
    font-size: clamp(11px, 3cqw, 14px);
    font-weight: 400;
    letter-spacing: 0.025em;
    line-height: 1.2;
    text-align: center;
    text-transform: uppercase;
}

.event-calendar__weekday {
    justify-self: end;
}

.event-calendar__month {
    justify-self: start;
}

.event-calendar__weekday-label,
.event-calendar__month-label {
    display: block;
    white-space: nowrap;
    font-family: 'Yeseva One', serif;
    font-size: clamp(11px, 3cqw, 14px);
}

.event-calendar__date-label {
    display: block;
}

@media (max-width: 480px) {

    .event-calendar__weekday,
    .event-calendar__month {
        padding-block: 7px;
        font-size: clamp(10px, 2.8cqw, 13px);
        line-height: 1.25;
    }
}

.event-calendar__day {
    min-width: 1.1em;
    margin: 0;
    color: var(--template-8-on-green);
    font-family: 'Yeseva One', serif;
    font-size: clamp(46px, 12.5cqw, 60px);
    font-weight: 400;
    letter-spacing: 0;
    line-height: 0.9;
    text-align: center;
}

.event-calendar__vietnamese-date {
    margin: 0;
    padding: 0 16px 12px;
    color: #fff;
    font-family: "scarlet-bradley.regular";
    font-size: 16px;
    font-style: italic;
    font-weight: 400;
    line-height: 1.4;
    text-align: center;
}

.party-item {
    display: flex;
    align-items: center;
    flex-direction: column;
    gap: 4px;
    margin-top: 0;
    padding: clamp(14px, 4cqw, 20px);
}

.party-item__label {
    margin: 0;
    color: #fff;
    font-family: "scarlet-bradley.regular";
    font-size: 16px;
}

.party-item__place {
    margin: 0;
    padding: 2px 0;
    color: var(--template-8-on-green);
    font-family: 'Yeseva One', serif;
    font-size: clamp(17px, 4.4cqw, 21px);
    font-weight: 400;
    letter-spacing: 0.015em;
    line-height: 1.3;
    text-align: center;
    text-transform: uppercase;
    max-width: 300px;
}

.party-item__address {
    max-width: 320px;
    margin: 0;
    color: #fff;
    font-style: italic;
    font-weight: 400;
    line-height: 1.45;
    text-align: center;
    margin-block: 12px;
    font-family: "scarlet-bradley.regular";
    font-size: 16px;
}

.party-item__actions {
    display: flex;
    gap: 16px;
    margin-top: 8px;
}

.party-item__button {
    display: flex;
    min-height: 34px;
    align-items: center;
    justify-content: center;
    padding: 8px 17px;
    border: 1px solid rgba(255, 255, 255, 0.82);
    border-radius: 999px;
    font-family: 'Inter', sans-serif;
    font-size: 10px;
    font-weight: 500;
    letter-spacing: 0.1em;
    line-height: 1;
    text-align: center;
    text-transform: uppercase;
    transition: color 0.2s ease, background-color 0.2s ease;

    color: var(--template-8-green);
    background: var(--template-8-surface);
}

.party-item__button:hover,
.party-item__button:focus-visible {
    opacity: 0.85;
}

@media (max-width: 360px) {
    .template-8-family__photos {
        height: 330px;
    }

    .template-8-family .family-info__parents-grid {
        grid-template-columns: minmax(0, 1fr) 20px minmax(0, 1fr);
    }

    .event-calendar__date {
        gap: 10px;
        padding-inline: 10px;
    }
}

/* Love story */
.template-5-cover__banner {
    position: relative;
}

.template-5-cover__text {
    display: flex;
    flex-direction: column;
    position: absolute;
    bottom: 40px;
    left: 20px;
    gap: 24px;
}

.template-5-cover__text span {
    font-family: 'Manstein';
    font-size: 32px;
    color: #fff;
    text-shadow: 0px 4px 4px rgba(0, 0, 0, 0.25);
}

.template-5-cover__text strong {
    font-family: 'Yeseva One', sans-serif;
    color: #fff;
    font-size: 30px;
    text-shadow: 0px 4px 4px rgba(0, 0, 0, 0.25);
}

.template-5-cover__banner img {
    width: 100%;
}

.template-5-cover__banner--placeholder {
    aspect-ratio: 16 / 9;
}

.template-5-cover__banner--placeholder .ws-image-placeholder {
    min-height: 100%;
}

/* Cover section */

.template-7-cover__content {
    color: var(--template-7-primary);
}

.info-short-name {
    text-align: center;
    color: #e8c99e;
    line-height: 1;
}

.info-short-name__first {
    text-shadow: 0 2px 3px rgba(54, 8, 14, 0.5);
    font-size: 12px;
    color: #FFD95E;
    font-weight: 700;
    font-family: "Abbassy Script";
    margin-top: -8px;
}

.info-short-name__second {
    text-shadow: 0 2px 3px rgba(54, 8, 14, 0.5);
    font-size: 12px;
    color: #FFD95E;
    font-weight: 700;
    font-family: "Arcittya Begatri";
    margin-bottom: -8px;
    margin-left: -6px;
}

.envelop-flower {
    position: absolute;
    z-index: 0;
    top: 45px;
    left: 52%;
    width: 62%;
    max-width: none;
    transform: translateX(-50%);
    pointer-events: none;
}

.absolute {
    position: absolute;
}

.envelop-warpper {
    --envelop-stage-top: 34.52cqw;
    --envelop-top-offset: -36.67cqw;
    --envelop-bottom-top: 24.05cqw;
    --envelop-seal-top: 28.1cqw;
    --envelop-seal-size: 47.62cqw;
    width: calc(100% + 40px);
    max-width: 500px;
    margin: 0 auto;
    aspect-ratio: 13 / 14;
    position: relative;
    left: 50%;
    transform: translateX(-50%);
    container-type: inline-size;
}

.envelop-heading {
    position: absolute;
    top: 5cqw;
    left: 5.5cqw;
    z-index: 5;
    margin: 0;
    color: #294a2d;
    font-family: 'Chillatos', cursive;
    font-size: clamp(24px, 8.5cqw, 30px);
    font-style: normal;
    font-weight: 400;
    line-height: 1;
    white-space: nowrap;
    transform: rotate(-14deg);
    transform-origin: left center;
    pointer-events: none;
}

.envelop-photos {
    position: absolute;
    inset: 0;
    top: 0;
    z-index: 2;
    pointer-events: none;
    overflow: hidden;
}

.envelop-photo {
    position: absolute;
    box-sizing: border-box;
    margin: 0;
    padding: clamp(4px, 1.2vw, 7px);
    overflow: hidden;
    background: #fff;
    box-shadow: 0 8px 18px rgba(58, 48, 28, 0.16);
    transform-origin: center center;
}

.envelop-photo--left {
    top: 32.86cqw;
    left: 18.43cqw;
    transform: rotate(-5deg);
    width: 31.76cqw;
    z-index: 2;
}

.envelop-photo--right {
    top: 28.33cqw;
    transform: rotate(8deg);
    width: 31.76cqw;
    right: 19.43cqw;
}

.envelop-photos[data-aos="envelop-photos-up"] .envelop-photo {
    transition-duration: 1200ms;
    transition-property: transform;
    transition-timing-function: cubic-bezier(0.16, 1, 0.3, 1);
}

.envelop-photos[data-aos="envelop-photos-up"]:not(.aos-animate) .envelop-photo--left {
    transform: translate3d(0, 45.24cqw, 0) rotate(-5deg);
}

.envelop-photos[data-aos="envelop-photos-up"]:not(.aos-animate) .envelop-photo--right {
    transform: translate3d(0, 45.24cqw, 0) rotate(8deg);
}

.envelop-photos[data-aos="envelop-photos-up"] .envelop-photo--left {
    transition-delay: 120ms;
}

.envelop-photos[data-aos="envelop-photos-up"] .envelop-photo--right {
    transition-delay: 260ms;
}

.envelop-photos[data-aos="envelop-photos-up"].aos-animate .envelop-photo--left {
    transform: translate3d(0, 0, 0) rotate(-12deg);
}

.envelop-photos[data-aos="envelop-photos-up"].aos-animate .envelop-photo--right {
    transform: translate3d(0, 0, 0) rotate(10deg);
}

.envelop-photo img {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 5;
    object-fit: cover;
}

.envelop-photo>.ws-image-placeholder {
    aspect-ratio: 4 / 5;
}

.envelop-save-date {
    position: absolute;
    top: 48cqw;
    left: 60.8%;
    z-index: 2;
    width: 86cqw;
    aspect-ratio: 16 / 9;
    color: #732124;
    transform: translateX(-50%) rotate(-13deg);
    transform-origin: center center;
    transition: transform 650ms cubic-bezier(0.16, 1, 0.3, 1);
    will-change: transform;
    pointer-events: none;
    color: #294a2d;
}

.envelop-warpper:has(> :is(.envelop-bottom, .envelop-seal):hover)>.envelop-save-date {
    transform: translateX(-55%) translateY(-7cqw) rotate(0deg);
}

.envelop-warpper.is-save-date-open>.envelop-save-date {
    transform: translateX(-55%) translateY(-7cqw) rotate(0deg);
}

.envelop-save-date__image {
    display: block;
    width: 100%;
    height: auto;
    max-width: none;
}

.envelop-save-date__names,
.envelop-save-date__date {
    position: absolute;
    z-index: 1;
    display: block;
    white-space: nowrap;
}

.envelop-save-date__names {
    top: 45.4%;
    left: 21%;
    font-size: clamp(9px, 2.55cqw, 13px);
    font-weight: 400;
    line-height: 1;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    transform: translate(-50%, -50%) rotate(90deg);
    font-family: "scarlet-bradley.regular";
}

.envelop-save-date__date {
    top: 44.2%;
    left: 45.8%;
    font-family: 'Yeseva One', serif;
    font-size: clamp(14px, 4cqw, 20px);
    font-weight: 400;
    line-height: 1;
    letter-spacing: 0.04em;
    transform: translate(-50%, -50%);
}

.envelop-img {
    width: 100%;
    display: block;
    margin-bottom: 0;
}


.envelop-top {
    position: absolute;
    top: calc(var(--envelop-stage-top) + var(--envelop-top-offset));
    left: 0;
    z-index: 1;
}

.envelop-bottom {
    position: absolute;
    top: calc(var(--envelop-stage-top) + var(--envelop-bottom-top));
    left: 50%;
    width: 91.67cqw;
    z-index: 3;
    transform: translateX(-50%);
}

.envelop-seal {
    position: absolute;
    width: var(--envelop-seal-size);
    aspect-ratio: 1;
    top: calc(var(--envelop-stage-top) + var(--envelop-seal-top));
    left: 50%;
    z-index: 4 !important;
    transform: translateX(-50%);
    display: flex;
    justify-content: center;
    align-items: center;
}

.envelop-seal>.envelop-center {
    position: relative;
    inset: auto;
    display: block;
    width: 70px;
    height: auto;
    transform: none;
}

.envelop-seal>.info-short-name {
    position: absolute;
    inset: 0;
    z-index: 5;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 58%;
    height: 100%;
    margin: auto;
    pointer-events: none;
}

.template-7-cover {
    position: relative;
    overflow: hidden;
    padding-bottom: 0;
}

.template-8-cover__couple-names {
    margin: 6px 0 clamp(28px, 8vw, 44px);
    color: #294a2d;
    font-family: 'Chillatos', cursive;
    font-size: 24px;
    font-weight: 400;
    line-height: 1.15;
    text-align: center;
    padding-top: 32px;
}

@media (prefers-reduced-motion: reduce) {
    .envelop-save-date {
        transition: none;
    }

    .envelop-warpper:has(> :is(.envelop-bottom, .envelop-seal):hover)>.envelop-save-date {
        transform: translateX(-55%) translateY(-7cqw) rotate(0deg);
    }

    .envelop-photos[data-aos="envelop-photos-up"] .envelop-photo {
        transition: none;
    }

    .envelop-photos[data-aos="envelop-photos-up"] .envelop-photo--left,
    .envelop-photos[data-aos="envelop-photos-up"]:not(.aos-animate) .envelop-photo--left {
        transform: rotate(-5deg);
    }

    .envelop-photos[data-aos="envelop-photos-up"] .envelop-photo--right,
    .envelop-photos[data-aos="envelop-photos-up"]:not(.aos-animate) .envelop-photo--right {
        transform: rotate(8deg);
    }

    .template-8-family__photos[data-aos="template-8-family-photos"] .template-8-family__photo-card {
        transition: none;
    }

    .template-8-family__photos[data-aos="template-8-family-photos"] .template-8-family__photo-card--left,
    .template-8-family__photos[data-aos="template-8-family-photos"]:not(.aos-animate) .template-8-family__photo-card--left {
        opacity: 1;
        transform: rotate(-1.5deg);
    }

    .template-8-family__photos[data-aos="template-8-family-photos"] .template-8-family__photo-card--right,
    .template-8-family__photos[data-aos="template-8-family-photos"]:not(.aos-animate) .template-8-family__photo-card--right {
        opacity: 1;
        transform: rotate(1.5deg);
    }
}

@media (max-width: 767px) {

    .envelop-warpper,
    [data-ws-save-date-toggle] {
        -webkit-tap-highlight-color: transparent;
        -webkit-touch-callout: none;
        -webkit-user-select: none;
        user-select: none;
    }

    [data-ws-save-date-toggle] img,
    img[data-ws-save-date-toggle] {
        -webkit-user-drag: none;
    }

    .envelop-seal,
    .envelop-bottom {
        cursor: pointer;
    }

    .envelop-warpper:not(.is-save-date-open):has(> :is(.envelop-bottom, .envelop-seal):hover)>.envelop-save-date {
        transform: translateX(-50%) rotate(-13deg);
    }
}

/* calendar section */
.template-8-calendar {
    container-type: inline-size;
    overflow: hidden;
    padding: 0;
    background: var(--template-8-surface);
    padding-inline: 4px;
}

.template-8-calendar__panel {
    display: grid;
    grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr);
    align-items: center;
    gap: clamp(14px, 4cqw, 22px);
    padding: clamp(22px, 6cqw, 32px) clamp(14px, 4cqw, 22px);
    border-radius: clamp(14px, 4cqw, 22px);
    background: var(--template-8-olive);
}

.template-8-calendar__photo-card {
    min-width: 0;
    margin: 0;
    padding: clamp(8px, 2cqw, 11px);
    border-radius: 3px;
    background: var(--template-8-paper);
}

.template-8-calendar__photo {
    display: block;
    width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
}

.template-8-calendar__photo-card>.ws-image-placeholder {
    aspect-ratio: 3 / 4;
}

.template-8-calendar__photo-card figcaption {
    padding: clamp(8px, 2.5cqw, 14px) 0 clamp(1px, 1cqw, 5px);
    color: var(--template-8-green);
    font-family: 'Chillatos', cursive;
    font-size: 16px;
    font-weight: 400;
    line-height: 1;
    text-align: center;
}

.template-8-calendar__calendar {
    min-width: 0;
    color: var(--template-8-on-green);
}

.template-8-calendar__month {
    margin: 0 0 clamp(12px, 4cqw, 20px);
    font-weight: 400;
    line-height: 1;
    text-align: right;
    color: var(--template-8-paper);
    font-family: "BrikeyMoura Regular";
    font-size: 18px;
}

.template-8-calendar__grid {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    row-gap: clamp(10px, 0.2cqw, 17px);
}

.template-8-calendar__weekday,
.template-8-calendar__day {
    display: flex;
    position: relative;
    align-items: center;
    justify-content: center;
    min-width: 0;
    line-height: 1;
    font-family: "BrikeyMoura Regular";
    font-size: 14px;
}

.template-8-calendar__weekday {
    flex-direction: column;
    font-weight: 700;
    line-height: 1.2;
}

.template-8-calendar__day {
    min-height: clamp(20px, 5.3cqw, 27px);
    font-weight: 400;
    font-family: "BrikeyMoura Regular";
    font-size: 12px;
}

.template-8-calendar__day>span {
    position: relative;
    z-index: 1;
}

.template-8-calendar__day--event {
    color: #fff;
}

.template-8-calendar__heart {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 30px;
    height: auto;
    overflow: visible;
    fill: none;
    stroke: var(--template-8-on-green);
    stroke-width: 2.5;
    transform: translate(-50%, -48%);
    transform-origin: center;
    animation: template-8-calendar-heartbeat 1.6s ease-in-out infinite;
    pointer-events: none;
}

@keyframes template-8-calendar-heartbeat {

    0%,
    100% {
        transform: translate(-50%, -48%) scale(1);
    }

    14% {
        transform: translate(-50%, -48%) scale(1.14);
    }

    28% {
        transform: translate(-50%, -48%) scale(1);
    }

    42% {
        transform: translate(-50%, -48%) scale(1.09);
    }

    70% {
        transform: translate(-50%, -48%) scale(1);
    }
}

@media (prefers-reduced-motion: reduce) {
    .template-8-calendar__heart {
        animation: none;
    }
}

/* Timeline section */
.ws-timeline-love {
    position: relative;
    z-index: 1;
}

.ws-timeline-love--has-photo::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
    background: rgba(0, 0, 0, 1);
    opacity: 0.28;
    pointer-events: none;
}

.timeline-flower {
    position: absolute;
    top: -50px;
    left: -24px;
    width: 200px;
}

.ws-timeline-love__background-placeholder {
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
}

.ws-timeline-bg-center {
    position: absolute;
    top: 25%;
    left: 37%;
    transform: translate(-50%, -50%);
    z-index: 0;
    width: 100%;
    opacity: 0.13;
    width: 100%;
}

.ws-timeline-love__inner {
    position: relative;
    z-index: 1;
    width: min(100%, 500px);
    margin: auto;
}

.ws-timeline-love .section-title {
    margin-bottom: clamp(22px, 2.6vw + 10px, 34px);
}

.ws-timeline-love__wrapper {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    align-items: stretch;
}

.ws-timeline-love__wrapper--has-image {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.ws-timeline-love__list {
    list-style: none;
    margin: 0 auto;
    padding: 0;
    max-width: min(100%, 500px);
    width: fit-content;
}

.ws-timeline-love__list--empty {
    width: min(100%, 420px);
}

.ws-timeline-love__item {
    display: grid;
    grid-template-columns: 89px 2.25rem minmax(0, 1fr);
    position: relative;
    align-items: stretch;
}

.ws-timeline-love__icon {
    align-self: start;
    justify-self: center;
    width: 89px;
    height: 89px;
    object-fit: contain;
    color: #FDF8F2;
    font-size: 42px;
    line-height: 1;
}

.ws-timeline-love__icon--image {
    display: block;
    background-color: #FDF8F2;
    -webkit-mask: var(--ws-timeline-icon-url) center / contain no-repeat;
    mask: var(--ws-timeline-icon-url) center / contain no-repeat;
}

.ws-timeline-love__marker {
    position: relative;
}

.ws-timeline-love__marker::after {
    content: "";
    position: absolute;
    top: 0;
    left: 50%;
    width: 2px;
    bottom: calc(-1 * clamp(1.1rem, 2.8vw, 1.65rem));
    transform: translateX(-50%);
    border-radius: 2px;
    background: #fff;
}

.ws-timeline-love__item:last-child .ws-timeline-love__marker::after {
    margin-bottom: 38px;
}

.ws-timeline-love__dot {
    position: absolute;
    top: 50%;
    left: 50%;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    border-radius: 12px;
    background: #fff;
    transform: translate(-50%, -50%);
}

.ws-timeline-love__dot i {
    font-size: 14px;
    line-height: 1;
    color: #701620;
}

.ws-timeline-love__card {
    align-self: start;
    text-align: left;
    padding: clamp(1rem, 2.4vw, 1.35rem) clamp(1rem, 2.8vw, 1.5rem);
    padding-top: 4px;
}

.ws-timeline-love__date {
    color: #fff;
    font-style: normal;
    line-height: 1;
    font-family: 'Yeseva One', sans-serif;
    font-size: 24px;
}

.ws-timeline-love__heading {
    margin: 0 0 clamp(0.65rem, 1.5vw, 0.85rem);
    color: #FDF8F2;
    font-size: 24px;
    font-style: normal;
    font-weight: 300;
    line-height: 33.6px;
    font-family: 'Literata', sans-serif;
    font-size: 16px;
}

.ws-timeline-love__desc {
    margin: clamp(0.65rem, 1.5vw, 0.85rem) 0 0;
    color: #D8C7A3;
    font-family: 'Inter';
    font-size: clamp(16px, 0.8vw + 0.7rem, 20px);
    font-style: normal;
    font-weight: 400;
    line-height: 24px;
}

.ws-timeline-love__figure {
    margin: 0;
    overflow: hidden;
    border: 1px solid rgba(var(--kit-primary-rgb), 0.18);
}

.ws-timeline-love__img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 10;
    object-fit: cover;
}

@media (max-width: 480px) {
    .ws-timeline-love__item {
        grid-template-columns: 89px 1.85rem minmax(0, 1fr);
    }
}

@media (prefers-reduced-motion: reduce) {
    .ws-timeline-love::before {
        background-attachment: scroll;
    }

    .ws-timeline-love__card {
        box-shadow: none;
    }
}

.timeline-dress__wrapper {
    display: flex;
    position: relative;
    z-index: 1;
    justify-content: end;
}

.ws-timeline-love__inner .section-title {
    color: #fff;
    text-align: left;
}

.timeline-dress__inner {
    display: flex;
    flex-direction: column;
    width: fit-content;
    padding-right: 20px;
}

.timeline-dress {
    /* font-family: 'Great Vibes', cursive; */
    color: #fff;
    font-size: 48px;
    text-align: center;
    text-shadow: 0px 4px 4px rgba(0, 0, 0, 0.25);
    padding-top: 40px;
    padding-bottom: 24px;
}

.ws-timeline-love--timeline-hidden .timeline-dress {
    color: var(--template-7-primary);
}

.timeline-dress__color {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.timeline-dress__color-item {
    border-color: rgba(229, 231, 235, 1);
    border-radius: 50px;
    border-style: solid;
    box-shadow: 0px 4px 4px rgba(0, 0, 0, 0.25);
    background: var(--timeline-dress-color, rgba(255, 255, 255, 1));
    background-clip: padding-box;
    height: 63px;
    width: 63px;
    margin-right: -20px;
}

.ws-timeline-love {
    padding-bottom: 56px;
}

/* Dress code is a separate light section. */
.timeline-dress-section {
    position: relative;
    display: flex;
    min-height: clamp(190px, 48vw, 220px);
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background-color: #fff;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.93), rgba(255, 255, 255, 0.93)),
        url('../images/template-3/bg-frame.webp');
    background-repeat: repeat;
    background-size: contain;
}

.timeline-dress-section .timeline-dress__inner {
    align-items: center;
    width: 100%;
    padding: 0;
}

.timeline-dress-section .timeline-dress {
    display: flex;
    width: 100%;
    align-items: center;
    gap: 12px;
    padding: 0 12px clamp(22px, 5vw, 28px);
    color: var(--template-7-primary);
    font-weight: 400;
    line-height: 1.1;
    letter-spacing: 0;
    text-transform: none;
    text-shadow: 0 2px 3px rgba(0, 0, 0, 0.12);
    font-family: "Moon Light";
    font-size: 24px;
}

.timeline-dress-section .timeline-dress::before,
.timeline-dress-section .timeline-dress::after {
    content: "";
    height: 1px;
    flex: 1 1 auto;
    background: linear-gradient(90deg, transparent, rgba(var(--template-7-primary-rgb), 0.5));
}

.timeline-dress-section .timeline-dress::after {
    background: linear-gradient(90deg, rgba(var(--template-7-primary-rgb), 0.5), transparent);
}

.timeline-dress-section .timeline-dress__color {
    justify-content: center;
    gap: 0;
    padding-right: 12px;
}

.timeline-dress-section .timeline-dress__color-item {
    width: clamp(46px, 12vw, 54px);
    height: clamp(46px, 12vw, 54px);
    margin-right: -12px;
    border: 2px solid rgba(255, 255, 255, 0.94);
    box-shadow: 0 8px 14px -9px rgba(0, 0, 0, 0.5);
}

.timeline-dress-section .timeline-dress__color-item:last-child {
    margin-right: 0;
}

/* Compact horizontal wedding timeline. */
.ws-timeline-love--layout-horizontal {
    /* min-height: clamp(340px, 72vw, 370px); */
    padding: clamp(28px, 7vw, 38px) clamp(14px, 4vw, 24px) clamp(30px, 7vw, 40px);
}

.ws-timeline-love--layout-horizontal .ws-timeline-love__inner {
    width: 100%;
}
.ws-timeline-love--layout-horizontal .ws-timeline-love__list {
    position: relative;
    display: flex;
    align-items: start;
    width: 100%;
    max-width: 100%;
    margin: 0;
    overflow: visible;
}

.ws-timeline-love--layout-horizontal .ws-timeline-love__list::before {
    content: "";
    position: absolute;
    z-index: 0;
    top: 83px;
    right: 4%;
    left: 4%;
    height: 3px;
    border-radius: 999px;
}

.ws-timeline-love--layout-horizontal .ws-timeline-love__item {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: 66px 34px auto;
    flex: 1 1 0;
    min-width: 0;
    align-items: center;
}

.ws-timeline-love--layout-horizontal .ws-timeline-love__icon {
    grid-row: 1;
    align-self: center;
    width: clamp(42px, 11vw, 56px);
    height: clamp(42px, 11vw, 56px);
    font-size: clamp(30px, 8vw, 40px);
}

.ws-timeline-love--layout-horizontal .ws-timeline-love__marker {
    grid-row: 2;
    align-self: stretch;
    z-index: 1;
}

.ws-timeline-love--layout-horizontal .ws-timeline-love__marker::after {
    display: none;
}

.ws-timeline-love--layout-horizontal .ws-timeline-love__dot {
    width: clamp(18px, 5vw, 24px);
    height: clamp(18px, 5vw, 24px);
}

.ws-timeline-love--layout-horizontal .ws-timeline-love__card {
    grid-row: 3;
    width: 100%;
    padding: 3px clamp(3px, 1.8vw, 9px) 0;
    text-align: center;
}

.ws-timeline-love--layout-horizontal .ws-timeline-love__date {
    margin: 0 0 9px;
}

.ws-timeline-love--layout-horizontal .ws-timeline-love__heading {
    margin: 0;
    text-align: center;
}

.ws-timeline-love--layout-horizontal .ws-timeline-love__desc {
    margin: 6px 0 0;
    text-align: center;
}

@media (max-width: 380px) {
    .ws-timeline-love--layout-horizontal {
        padding-inline: 10px;
    }

}

/* Template 8 timeline refinement */
.timeline-dress-section {
    container-type: inline-size;
    min-height: clamp(145px, 38cqw, 180px);
    padding-block: clamp(28px, 7cqw, 38px);
    background:
        radial-gradient(circle at 92% 12%, rgba(var(--template-8-primary-rgb), 0.06), transparent 30%),
        var(--template-8-surface);
}

.timeline-dress__inner {
    width: min(100%, 390px);
    margin: auto;
}

.timeline-dress::before,
.timeline-dress::after {
    background: linear-gradient(90deg, transparent, rgba(var(--template-8-primary-rgb), 0.32));
}

.timeline-dress::after {
    background: linear-gradient(90deg, rgba(var(--template-8-primary-rgb), 0.32), transparent);
}

.timeline-dress__color {
    justify-content: center;
    padding-right: 10px;
}

.timeline-dress__color-item {
    width: clamp(40px, 10.5cqw, 48px);
    height: clamp(40px, 10.5cqw, 48px);
    margin-right: -10px;
    border: 2px solid var(--template-8-surface);
    outline: 1px solid rgba(var(--template-8-primary-rgb), 0.18);
    box-shadow: 0 7px 16px -10px rgba(25, 35, 25, 0.58);
}

.ws-timeline-love {
    container-type: inline-size;
    position: relative;
    overflow: hidden;
    padding: clamp(32px, 8cqw, 42px) clamp(16px, 4cqw, 22px);
    background-color: var(--template-8-surface);
    color: var(--template-8-text);
}

.ws-timeline-love:not(.ws-timeline-love--has-photo) {
    background-image: none;
}

.ws-timeline-love--has-photo::before {
    background: rgba(255, 255, 255, 0.68);
    opacity: 1;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}

.ws-timeline-love__inner {
    width: min(100%, 430px);
}

.ws-timeline-love__title {
    position: relative;
    z-index: 1;
    margin: 0 auto clamp(24px, 6cqw, 32px);
    color: var(--template-8-primary);
    font-weight: 400;
    letter-spacing: 0.015em;
    line-height: 1.2;
    text-align: center;
    font-family: "Moon Light";
    font-size: 24px;
}

.ws-timeline-love--story .ws-timeline-love__list {
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
}

.ws-timeline-love--story .ws-timeline-love__item {
    grid-template-columns: 46px 18px minmax(0, 1fr);
    min-height: 106px;
    padding-bottom: 14px;
}

.ws-timeline-love--story .ws-timeline-love__item:last-child {
    min-height: 0;
    padding-bottom: 0;
}

.ws-timeline-love--story .ws-timeline-love__icon {
    align-self: start;
    width: 42px;
    height: 42px;
    color: var(--template-8-primary);
    font-size: 28px;
}

.ws-timeline-love--story .ws-timeline-love__icon--image {
    background-color: var(--template-8-primary);
}

.ws-timeline-love--story .ws-timeline-love__marker::after {
    top: 12px;
    width: 1px;
    margin-bottom: 0;
    background: rgba(var(--template-8-primary-rgb), 0.24);
}

.ws-timeline-love--story .ws-timeline-love__item:last-child .ws-timeline-love__marker::after {
    display: none;
}

.ws-timeline-love--story .ws-timeline-love__dot {
    top: 21px;
    width: 12px;
    height: 12px;
    border: 2px solid var(--template-8-primary);
    background: var(--template-8-surface);
    box-shadow: 0 0 0 4px rgba(var(--template-8-primary-rgb), 0.08);
}

.ws-timeline-love--story .ws-timeline-love__card {
    width: 100%;
    margin-bottom: 2px;
    padding: 12px 13px;
    border: 1px solid rgba(var(--template-8-primary-rgb), 0.13);
    border-radius: 11px;
    background: rgba(255, 255, 255, 0.88);
    box-shadow: 0 8px 22px rgba(25, 35, 25, 0.055);
    text-align: left;
}

.ws-timeline-love--story .ws-timeline-love__date {
    margin: 0 0 5px;
    color: rgba(var(--template-8-primary-rgb), 0.72);
    font-family: "scarlet-bradley.regular";
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.09em;
    line-height: 1.35;
    text-transform: uppercase;
}

.ws-timeline-love--story .ws-timeline-love__heading {
    margin: 0;
    color: var(--template-8-primary);
    font-family: 'Yeseva One', serif;
    font-size: clamp(15px, 4cqw, 18px);
    font-weight: 400;
    line-height: 1.35;
}



.ws-timeline-love--layout-horizontal {
    min-height: 0;
    padding: clamp(30px, 7cqw, 38px) clamp(10px, 3cqw, 16px) clamp(32px, 8cqw, 42px);
}

.ws-timeline-love--layout-horizontal .ws-timeline-love__inner {
    width: 100%;
}



.ws-timeline-love--layout-horizontal .ws-timeline-love__list {
    width: 100%;
    max-width: 100%;
}

.ws-timeline-love--layout-horizontal .ws-timeline-love__list::before {
    top: 67px;
    right: 5%;
    left: 5%;
    height: 1px;
}

.ws-timeline-love--layout-horizontal .ws-timeline-love__item {
    grid-template-rows: 54px 26px auto;
}

.ws-timeline-love--layout-horizontal .ws-timeline-love__icon {
    width: clamp(36px, 9cqw, 44px);
    height: clamp(36px, 9cqw, 44px);
    font-size: clamp(25px, 6.5cqw, 32px);
}

.ws-timeline-love--layout-horizontal .ws-timeline-love__dot {
    width: 16px;
    height: 16px;
}

.ws-timeline-love--layout-horizontal .ws-timeline-love__card {
    padding: 7px clamp(2px, 1.3cqw, 6px) 0;
}

.ws-timeline-love--layout-horizontal .ws-timeline-love__date {
    margin: 0 0 6px;
}

.ws-timeline-love--layout-horizontal .ws-timeline-love__heading {
    margin: 0;
}

/*
 * Timeline visual identity belongs to its content type, not its layout.
 * Keep these rules after the horizontal layout rules so switching direction
 * cannot change colors, typography, card surfaces, or decorative effects.
 */
.ws-timeline-love--story .ws-timeline-love__icon {
    color: var(--template-8-primary);
    filter: none;
}

.ws-timeline-love--story .ws-timeline-love__icon--image {
    background-color: var(--template-8-primary);
}

.ws-timeline-love--story .ws-timeline-love__list::before,
.ws-timeline-love--story .ws-timeline-love__marker::after {
    background: rgba(var(--template-8-primary-rgb), 0.24);
    box-shadow: none;
}

.ws-timeline-love--story .ws-timeline-love__dot {
    border: 2px solid var(--template-8-primary);
    background: var(--template-8-surface);
    box-shadow: 0 0 0 4px rgba(var(--template-8-primary-rgb), 0.08);
}

.ws-timeline-love--story .ws-timeline-love__card {
    border: 1px solid rgba(var(--template-8-primary-rgb), 0.13);
    border-radius: 11px;
    background: rgba(255, 255, 255, 0.88);
    box-shadow: 0 8px 22px rgba(25, 35, 25, 0.055);
}

.ws-timeline-love--story .ws-timeline-love__date {
    color: rgba(var(--template-8-primary-rgb), 0.72);
    font-family: "scarlet-bradley.regular";
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.09em;
    line-height: 1.35;
    text-transform: uppercase;
    text-shadow: none;
}

.ws-timeline-love--story .ws-timeline-love__heading {
    color: var(--template-8-primary);
    font-family: 'Yeseva One', serif;
    font-size: clamp(15px, 4cqw, 18px);
    font-weight: 400;
    letter-spacing: normal;
    line-height: 1.35;
    text-transform: none;
    text-shadow: none;
}

.ws-timeline-love--story .ws-timeline-love__desc {
    color: #D8C7A3;
    font-family: 'Inter';
    font-size: clamp(16px, 0.8vw + 0.7rem, 20px);
    font-weight: 400;
    line-height: 24px;
    text-shadow: none;
}

.ws-timeline-love--wedding .ws-timeline-love__icon {
    color: var(--template-8-primary);
    filter: none;
}

.ws-timeline-love--wedding .ws-timeline-love__icon--image {
    background-color: var(--template-8-primary);
}

.ws-timeline-love--wedding .ws-timeline-love__list::before,
.ws-timeline-love--wedding .ws-timeline-love__marker::after {
    background: rgba(var(--template-8-primary-rgb), 0.32);
    box-shadow: none;
}

.ws-timeline-love--wedding .ws-timeline-love__dot {
    border: 2px solid var(--template-8-primary);
    background: var(--template-8-surface);
    box-shadow: 0 0 0 3px rgba(var(--template-8-primary-rgb), 0.08);
}

.ws-timeline-love--wedding .ws-timeline-love__date {
    color: var(--template-8-primary);
    font-family: 'Yeseva One', serif;
    font-size: clamp(12px, 3.5cqw, 15px);
    font-weight: 400;
    line-height: 1.1;
    text-shadow: none;
}

.ws-timeline-love--wedding .ws-timeline-love__heading {
    color: var(--template-8-text);
    font-family: "scarlet-bradley.regular";
    font-size: clamp(8px, 2.3cqw, 10px);
    font-weight: 600;
    letter-spacing: 0.045em;
    line-height: 1.4;
    text-transform: uppercase;
    text-shadow: none;
}

.ws-timeline-love--wedding .ws-timeline-love__desc {
    color: rgba(255, 255, 255, 0.82);
    font-size: clamp(9px, 2.3vw, 12px);
    line-height: 1.4;
    text-shadow: none;
}


@media (max-width: 360px) {
    .ws-timeline-love--story .ws-timeline-love__item {
        grid-template-columns: 40px 16px minmax(0, 1fr);
    }

    .ws-timeline-love--story .ws-timeline-love__icon {
        width: 36px;
        height: 36px;
        font-size: 24px;
    }
}

/* RSVP section */

.rsvp-section {
    display: flex;
    justify-content: center;
    position: relative;
    padding-top: 0;
}

.rsvp__flower-bottom {
    position: absolute;
    top: -133px;
    right: -67px;
    width: 220px;
    z-index: 0;
    pointer-events: none;
    rotate: 225deg;
    opacity: .5;
}

.rsvp-section__inner {
    position: relative;
    z-index: 1;
    width: min(100%, 500px);
    display: flex;
    flex-direction: column;
    align-items: center;
    align-self: stretch;
}

.rsvp-section__title {
    color: var(--template-7-primary);
    text-align: center;
    font-size: 24px;
    font-style: normal;
    font-weight: 400;
    margin: 0;
    text-transform: capitalize;
    padding-inline: 17px;
    font-family: "Moon Light";
    margin-bottom: 20px;
}

.rsvp-section__subtitle {
    color: var(--template-7-primary);
    text-align: center;
    font-size: 18px;
    font-style: normal;
    font-weight: 400;
    line-height: 1.6;
    margin: 0;
    max-width: 370px;
    font-family: "BrikeyMoura Regular";
}

.rsvp-section__form {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 18px;
    margin: 0;
    margin-top: 24px;
}

.rsvp-section__field {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 8px;
    color: var(--template-7-primary);
    font-family: 'Inter';
    font-size: 13px;
    font-weight: 600;
    line-height: 1.3;
}

.rsvp-section__field input::placeholder {
    color: var(--template-7-primary);
}

.rsvp-section__field input,
.rsvp-section__field select {
    width: 100%;
    min-height: 45px;
    padding: 12px 14px;
    border: 1px solid var(--template-7-primary);
    background: transparent;
    font-family: 'Inter';
    font-size: 14px;
    font-weight: 400;
    line-height: 1.4;
    outline: none;
    transition: border-color 180ms ease, box-shadow 180ms ease;
    border-radius: 15px;
    color: var(--template-7-primary);
}

.rsvp-section__field select {
    cursor: pointer;
    padding-right: 48px;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-color: transparent;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%234B382A' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 18px center;
    background-size: 14px 14px;
}

.rsvp-section__field select::-ms-expand {
    display: none;
}

.rsvp-section__field input:focus,
.rsvp-section__field select:focus {
    border-color: var(--template-7-primary);
    box-shadow: 0 0 0 3px rgba(var(--template-7-primary-rgb), 0.14);
}

.rsvp-section__additional-questions {
    display: none;
    gap: 18px;
    width: 100%;
}

.rsvp-section__form:has(select[name="invitation_rsvp_status"] option[value="attending"]:checked) .rsvp-section__additional-questions {
    display: grid;
}

.rsvp-section__count-field {
    position: relative;
    z-index: 2;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.rsvp-section__count-control {
    display: grid;
    grid-template-columns: 32px 40px 32px;
    align-items: center;
    gap: 2px;
    padding: 3px;
    border: 1px solid var(--template-7-primary);
    border-radius: 15px;
    background: transparent;
}

.rsvp-section__count-control:focus-within {
    box-shadow: 0 0 0 3px rgba(var(--template-7-primary-rgb), 0.14);
}

.rsvp-section__count-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    padding: 0;
    border: 0;
    border-radius: 10px;
    background: rgba(var(--template-7-primary-rgb), 0.1);
    color: var(--template-7-primary);
    font-family: 'Inter';
    font-size: 18px;
    font-weight: 500;
    line-height: 1;
    cursor: pointer;
}

.rsvp-section__count-button:hover {
    background: rgba(var(--template-7-primary-rgb), 0.18);
}

.rsvp-section__count-button:focus-visible {
    outline: 2px solid var(--template-7-primary);
    outline-offset: 1px;
}

.rsvp-section__field .rsvp-section__count-input {
    width: 40px;
    min-height: 32px;
    padding: 0 2px;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: var(--template-7-primary);
    font-size: 14px;
    font-weight: 700;
    text-align: center;
    appearance: textfield;
    -moz-appearance: textfield;
}

.rsvp-section__field .rsvp-section__count-input:focus {
    border: 0;
    box-shadow: none;
}

.rsvp-section__count-input::-webkit-inner-spin-button,
.rsvp-section__count-input::-webkit-outer-spin-button {
    margin: 0;
    -webkit-appearance: none;
}

.rsvp-section .ws-rsvp-question__label {
    color: var(--template-7-primary);
    font-family: 'Inter';
    font-size: 13px;
    font-weight: 600;
    line-height: 1.3;
}

.rsvp-section .ws-rsvp-question__choices label {
    min-height: 45px;
    padding: 10px 14px;
    border: 1px solid var(--template-7-primary);
    border-radius: 15px;
    background: transparent;
    color: var(--template-7-primary);
    font-family: 'Inter';
    opacity: 1;
    transition: background-color 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.rsvp-section .ws-rsvp-question__choices label:has(input:checked) {
    border-color: var(--template-7-primary);
    background: rgba(var(--template-7-primary-rgb), 0.08);
    box-shadow: 0 0 0 3px rgba(var(--template-7-primary-rgb), 0.14);
}

.rsvp-section .ws-rsvp-question__choices input {
    accent-color: var(--template-7-primary);
}

.rsvp-section .ws-rsvp-question__choices label:focus-within {
    box-shadow: 0 0 0 3px rgba(var(--template-7-primary-rgb), 0.14);
}

.rsvp-section .ws-rsvp-question__text {
    min-height: 84px;
    padding: 11px 13px;
    border: 1px solid var(--template-7-primary);
    border-radius: 15px;
    background: transparent;
    color: var(--template-7-primary);
    font-family: 'Inter';
    font-size: 14px;
    font-weight: 400;
    line-height: 1.45;
    box-shadow: none;
    transition: border-color 180ms ease, box-shadow 180ms ease;
}

.rsvp-section .ws-rsvp-question__text::placeholder {
    color: var(--template-7-primary);
    opacity: .75;
}

.rsvp-section .ws-rsvp-question__text:focus {
    border-color: var(--template-7-primary);
    box-shadow: 0 0 0 3px rgba(var(--template-7-primary-rgb), 0.14);
}

.rsvp-section .ws-rsvp-question--select {
    display: grid;
    gap: 8px;
}

.rsvp-section .ws-rsvp-question__select {
    width: 100%;
    height: 48px;
    padding: 10px 48px 10px 14px;
    border: 1px solid var(--template-8-field-border);
    border-radius: 15px;
    outline: none;
    background-color: transparent;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16'%3E%3Cpath d='m4 6 4 4 4-4' fill='none' stroke='%23294A2D' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    background-size: 16px 16px;
    color: var(--template-8-text);
    font-family: 'Inter';
    font-size: 14px;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    transition: border-color 180ms ease, box-shadow 180ms ease;
}

.rsvp-section .ws-rsvp-question__select:focus {
    border-color: var(--template-8-primary);
    box-shadow: 0 0 0 3px var(--template-8-field-focus-ring);
}

.rsvp-section__button {
    display: flex;
    min-height: 34px;
    align-items: center;
    justify-content: center;
    padding: 8px 17px;
    border: 1px solid rgba(255, 255, 255, 0.82);
    border-radius: 999px;
    font-family: 'Inter', sans-serif;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.1em;
    line-height: 1;
    text-align: center;
    text-transform: uppercase;
    transition: color 0.2s ease, background-color 0.2s ease;
    color: var(--template-8-green);
    background: var(--template-8-surface);
    background-color: rgb(66, 79, 51);
    color: rgb(255, 255, 255);
    width: fit-content;
    margin: auto;
    height: 40px;
}

.rsvp-section__button:hover {
    opacity: .9;
}

.rsvp-section__button:disabled {
    cursor: wait;
    opacity: 0.72;
    transform: none;
}

.rsvp-section .ws-wedding-rsvp-inline-feedback {
    width: 100%;
    margin: 0;
}

.rsvp__notice--success {
    color: #1f5a34;
    background: rgba(197, 236, 210, 0.95);
    padding: 10px 12px;
    border-radius: 8px;
    font-size: 14px;
    text-align: center;
}

/* Template 8 RSVP modal */
html.ws-modal-open,
body.ws-modal-open {
    overflow: hidden;
}

.rsvp-section__open-button.btn-confirm {
    min-width: 148px;
    display: inline-flex;
    min-height: 40px;
    align-items: center;
    justify-content: center;
    margin: 20px auto 0;
    padding: 12px 20px;
    border: 0;
    border-radius: 999px;
    background: var(--template-8-primary);
    color: var(--template-8-on-green);
    box-shadow: 0 8px 20px -12px rgba(var(--template-8-primary-rgb), 0.72);
    font-family: 'Inter', sans-serif;
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.12em;
    line-height: 1.2;
    text-transform: uppercase;
    cursor: pointer;
    transition: opacity 180ms ease, transform 180ms ease, box-shadow 180ms ease;
}

.rsvp-section__open-button.btn-confirm:hover {
    opacity: 0.92;
    transform: translateY(-1px);
    box-shadow: 0 10px 24px -12px rgba(var(--template-8-primary-rgb), 0.82);
}

.rsvp-section__open-button.btn-confirm:focus-visible {
    outline: 2px solid var(--template-8-primary);
    outline-offset: 3px;
}

.template-8-rsvp-modal__form {
    margin: 0;
}

.template-8-rsvp-modal.ws-modal[hidden] {
    display: none !important;
}

.template-8-rsvp-modal.ws-modal {
    position: fixed;
    inset: 0;
    z-index: 10050;
    display: grid;
    width: auto;
    height: auto;
    place-items: center;
    padding: 16px;
    opacity: 1;
    pointer-events: auto;
}

.template-8-rsvp-modal__backdrop.ws-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(17, 27, 18, 0.58);
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
    cursor: pointer;
}

.template-8-rsvp-modal__content.ws-modal__content {
    position: relative;
    z-index: 1;
    width: min(430px, calc(100vw - 24px));
    max-height: none;
    padding: 0;
    overflow: visible;
    border-radius: 18px;
    background: transparent;
    box-shadow: none;
}

.template-8-rsvp-modal__dialog {
    position: relative;
    display: grid;
    gap: 14px;
    width: 100%;
    max-height: calc(100vh - 32px);
    max-height: calc(100dvh - 32px);
    padding: clamp(22px, 5vw, 30px);
    overflow-y: auto;
    border: 1px solid rgba(var(--template-8-primary-rgb), 0.16);
    border-radius: 18px;
    outline: none;
    background:
        radial-gradient(circle at 100% 0%, rgba(var(--template-8-primary-rgb), 0.07), transparent 34%),
        var(--template-8-surface);
    color: var(--template-8-text);
    box-shadow: 0 26px 70px rgba(17, 27, 18, 0.28);
    animation: template-8-rsvp-modal-in 260ms ease-out both;
}

@keyframes template-8-rsvp-modal-in {
    from {
        opacity: 0;
        transform: translateY(12px) scale(0.98);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.template-8-rsvp-modal__close {
    position: absolute;
    top: 10px;
    right: 10px;
    display: inline-grid;
    width: 32px;
    height: 32px;
    place-items: center;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: rgba(var(--template-8-primary-rgb), 0.07);
    color: var(--template-8-primary);
    font-family: Arial, sans-serif;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
}

.template-8-rsvp-modal__close:hover {
    background: rgba(var(--template-8-primary-rgb), 0.14);
}

.template-8-rsvp-modal__close:focus-visible {
    outline: 2px solid var(--template-8-primary);
    outline-offset: 2px;
}

.template-8-rsvp-modal__header {
    padding: 0 26px;
    text-align: center;
}

.template-8-rsvp-modal__header h3 {
    margin: 0;
    color: var(--template-8-primary);
    font-weight: 400;
    line-height: 1.25;
    font-family: "Moon Light";
    font-size: 24px;
    text-transform: capitalize;
}

.template-8-rsvp-modal__header p {
    margin: 7px auto 0;
    font-family: "BrikeyMoura Regular";
    font-size: 16px;
    line-height: 1.5;
    color: rgb(51, 51, 51);
}

.template-8-rsvp-modal__field {
    display: grid;
    gap: 6px;
    color: var(--template-8-text);
    font-family: "scarlet-bradley.regular";
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.035em;
    line-height: 1.3;
}

.template-8-rsvp-modal__field i {
    color: var(--template-8-primary);
    font-style: normal;
}

.template-8-rsvp-modal__field input {
    width: 100%;
    min-height: 43px;
    padding: 10px 13px;
    border: 1px solid var(--template-8-field-border);
    border-radius: 10px;
    outline: none;
    background: var(--template-8-surface);
    color: var(--template-8-text);
    box-shadow: 0 5px 16px rgba(25, 35, 25, 0.05);
    font-family: "scarlet-bradley.regular";
    font-size: 13px;
    transition: border-color 180ms ease, box-shadow 180ms ease;
}

.template-8-rsvp-modal__field input::placeholder,
.template-8-rsvp-modal .ws-rsvp-question__text::placeholder {
    color: var(--template-8-field-placeholder);
    opacity: 1;
}

.template-8-rsvp-modal__field input:hover {
    border-color: var(--template-8-field-border-hover);
}

.template-8-rsvp-modal__field input:focus {
    border-color: var(--template-8-primary);
    box-shadow: 0 0 0 3px var(--template-8-field-focus-ring);
}

.template-8-rsvp-modal__attendance,
.template-8-rsvp-modal__attending-fields,
.template-8-rsvp-modal .ws-rsvp-question {
    min-width: 0;
    margin: 0;
    padding: 0;
    border: 0;
}

.template-8-rsvp-modal__attendance legend,
.template-8-rsvp-modal .ws-rsvp-question__label {
    margin: 0 0 7px;
    color: var(--template-8-text);
    font-family: "scarlet-bradley.regular";
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.035em;
    line-height: 1.35;
}

.template-8-rsvp-modal__choices {
    display: grid;
    gap: 8px;
}

.template-8-rsvp-modal__choices label,
.template-8-rsvp-modal .ws-rsvp-question__choices label {
    display: flex;
    min-height: 41px;
    align-items: center;
    gap: 9px;
    padding: 9px 12px;
    border: 1px solid var(--template-8-field-border);
    border-radius: 10px;
    background: var(--template-8-surface);
    color: var(--template-8-text);
    font-family: "scarlet-bradley.regular";
    font-size: 12px;
    cursor: pointer;
    transition: border-color 180ms ease, background-color 180ms ease, box-shadow 180ms ease;
}

.template-8-rsvp-modal__choices label:has(input:checked),
.template-8-rsvp-modal .ws-rsvp-question__choices label:has(input:checked) {
    border-color: var(--template-8-primary);
    background: rgba(var(--template-8-primary-rgb), 0.06);
    box-shadow: 0 0 0 3px var(--template-8-field-focus-ring);
}

.template-8-rsvp-modal__choices input,
.template-8-rsvp-modal .ws-rsvp-question__choices input {
    flex: 0 0 auto;
    margin: 0;
    accent-color: var(--template-8-primary);
}

.template-8-rsvp-modal__attending-fields {
    display: grid;
    gap: 13px;
}

.template-8-rsvp-modal__attending-fields.is-hidden {
    display: none;
}

.template-8-rsvp-modal__count {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;
}

.template-8-rsvp-modal__count>label {
    color: var(--template-8-text);
    font-family: "scarlet-bradley.regular";
    font-size: 11px;
    font-weight: 500;
    line-height: 1.35;
}

.template-8-rsvp-modal__count-control {
    display: grid;
    grid-template-columns: 28px 36px 28px;
    align-items: center;
    gap: 2px;
    padding: 3px;
    border: 1px solid var(--template-8-field-border);
    border-radius: 999px;
    background: var(--template-8-surface);
}

.template-8-rsvp-modal__count-control:focus-within {
    border-color: var(--template-8-primary);
    box-shadow: 0 0 0 3px var(--template-8-field-focus-ring);
}

.template-8-rsvp-modal__count-control button {
    display: inline-flex;
    width: 28px;
    height: 28px;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: rgba(var(--template-8-primary-rgb), 0.08);
    color: var(--template-8-primary);
    font-size: 16px;
    cursor: pointer;
}

.template-8-rsvp-modal__count-control button:hover {
    background: rgba(var(--template-8-primary-rgb), 0.16);
}

.template-8-rsvp-modal__count-control input {
    width: 36px;
    min-height: 28px;
    padding: 0 2px;
    border: 0;
    outline: 0;
    background: transparent;
    color: var(--template-8-primary);
    font-family: "scarlet-bradley.regular";
    font-size: 13px;
    font-weight: 700;
    text-align: center;
    appearance: textfield;
    -moz-appearance: textfield;
}

.template-8-rsvp-modal__count-control input::-webkit-inner-spin-button,
.template-8-rsvp-modal__count-control input::-webkit-outer-spin-button {
    margin: 0;
    -webkit-appearance: none;
}

.template-8-rsvp-modal .ws-rsvp-questions {
    display: grid;
    gap: 13px;
}

.template-8-rsvp-modal .ws-rsvp-question__choices {
    display: grid;
    gap: 8px;
}

.template-8-rsvp-modal .ws-rsvp-question--text {
    display: grid;
    gap: 6px;
}

.template-8-rsvp-modal .ws-rsvp-question--select {
    position: relative;
    display: grid;
    gap: 6px;
}

.template-8-rsvp-modal .ws-rsvp-question__select {
    width: 100%;
    height: 44px;
    padding: 9px 48px 9px 13px;
    border: 1px solid var(--template-8-field-border);
    border-radius: 10px;
    outline: none;
    background-color: var(--template-8-surface);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16'%3E%3Cpath d='m4 6 4 4 4-4' fill='none' stroke='%23294A2D' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    background-size: 16px 16px;
    color: var(--template-8-text);
    font-family: "scarlet-bradley.regular";
    font-size: 13px;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    transition: border-color 180ms ease, box-shadow 180ms ease;
}

.template-8-rsvp-modal .ws-rsvp-question__select:focus {
    border-color: var(--template-8-primary);
    box-shadow: 0 0 0 3px var(--template-8-field-focus-ring);
}

.template-8-rsvp-modal .ws-rsvp-question__text {
    width: 100%;
    min-height: 78px;
    padding: 10px 13px;
    resize: vertical;
    border: 1px solid var(--template-8-field-border);
    border-radius: 10px;
    outline: none;
    background: var(--template-8-surface);
    color: var(--template-8-text);
    font-family: "scarlet-bradley.regular";
    font-size: 13px;
    line-height: 1.45;
    transition: border-color 180ms ease, box-shadow 180ms ease;
}

.template-8-rsvp-modal .ws-rsvp-question__text:focus {
    border-color: var(--template-8-primary);
    box-shadow: 0 0 0 3px var(--template-8-field-focus-ring);
}

.template-8-rsvp-modal .rsvp__notice {
    width: 100%;
    padding: 9px 11px;
    border-radius: 8px;
    font-family: "scarlet-bradley.regular";
    font-size: 12px;
    line-height: 1.45;
    text-align: center;
}

.template-8-rsvp-modal .rsvp__notice.is-hidden,
.template-8-rsvp-modal [data-ws-rsvp-modal-notice][hidden] {
    display: none;
}

.template-8-rsvp-modal__submit.rsvp-section__button {
    display: inline-flex;
    width: auto;
    min-width: 148px;
    min-height: 40px;
    align-items: center;
    justify-content: center;
    justify-self: center;
    margin: 2px auto 0;
    padding: 11px 24px;
    border: 0;
    border-radius: 999px;
    background: var(--template-8-primary);
    color: var(--template-8-on-green);
    box-shadow: 0 8px 20px -12px rgba(var(--template-8-primary-rgb), 0.72);
    font-family: "scarlet-bradley.regular";
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.12em;
    line-height: 1;
    text-transform: uppercase;
    cursor: pointer;
}

.template-8-rsvp-modal__submit.rsvp-section__button:hover {
    opacity: 0.92;
}

.template-8-rsvp-modal__submit.rsvp-section__button:focus-visible {
    outline: 2px solid var(--template-8-primary);
    outline-offset: 3px;
}

.rsvp-section .ws-wedding-rsvp-inline-feedback {
    width: min(100%, 360px);
    margin: 14px auto 0;
    font-family: "scarlet-bradley.regular";
    font-size: 12px;
    line-height: 1.45;
    text-align: center;
}

.rsvp-section .ws-wedding-rsvp-inline-feedback[hidden] {
    display: none;
}

@media (prefers-reduced-motion: reduce) {
    .template-8-rsvp-modal__dialog {
        animation: none;
    }
}

@media (max-width: 380px) {
    .template-8-rsvp-modal.ws-modal {
        padding: 10px;
    }

    .template-8-rsvp-modal__dialog {
        max-height: calc(100dvh - 20px);
        padding: 22px 16px;
        border-radius: 14px;
    }
}

/* Guestbook */
.guestbook-section {
    container-type: inline-size;
    position: relative;
    z-index: 1;
    overflow: hidden;
    color: var(--template-8-text);
    background: var(--template-8-surface);
    text-align: center;
}

.guestbook-section__title {
    margin: 0;
    color: var(--template-8-primary);
    font-weight: 400;
    letter-spacing: 0.015em;
    line-height: 1.2;
    font-family: "Moon Light";
    font-size: 24px;
}

.guestbook-grid {
    display: grid;
    gap: 18px;
    width: min(100%, 420px);
    margin: 20px auto 0;
    padding: clamp(16px, 4cqw, 22px);
    border: 1px solid var(--template-8-field-border);
    border-radius: 16px;
    background:
        radial-gradient(circle at 100% 0%, rgba(var(--template-8-primary-rgb), 0.055), transparent 34%),
        var(--template-8-surface);
    box-shadow: 0 12px 30px rgba(25, 35, 25, 0.08);
    text-align: left;
}

.guestbook-form {
    display: grid;
    gap: 12px;
    width: 100%;
    margin: 0;
}

.guestbook-field {
    display: grid;
    gap: 6px;
    color: var(--template-8-text);
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.035em;
    line-height: 1.35;
    font-family: "scarlet-bradley.regular";
}

.guestbook-field input,
.guestbook-field textarea {
    box-sizing: border-box;
    width: 100%;
    padding: 10px 13px;
    border: 1px solid var(--template-8-field-border);
    border-radius: 10px;
    outline: none;
    background: var(--template-8-surface);
    color: var(--template-8-text);
    box-shadow: 0 5px 16px rgba(25, 35, 25, 0.04);
    font-family: "scarlet-bradley.regular";
    font-size: 16px;
    font-weight: 400;
    line-height: 1.45;
    transition: border-color 180ms ease, box-shadow 180ms ease;
}

.guestbook-field input {
    min-height: 43px;
}

.guestbook-field textarea {
    min-height: 92px;
    resize: vertical;
}

.guestbook-field input::placeholder,
.guestbook-field textarea::placeholder {
    color: var(--template-8-field-placeholder);
    opacity: 1;
}

.guestbook-field input:hover,
.guestbook-field textarea:hover {
    border-color: var(--template-8-field-border-hover);
}

.guestbook-field input:focus,
.guestbook-field textarea:focus {
    border-color: var(--template-8-primary);
    box-shadow: 0 0 0 3px var(--template-8-field-focus-ring);
}

.guestbook-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: 2px;
}

/* button */
.btn-guestbook {
    display: inline-flex;
    min-width: 148px;
    min-height: 40px;
    align-items: center;
    justify-content: center;
    padding: 11px 24px;
    border: 0;
    border-radius: 999px;
    background: var(--template-8-primary);
    color: var(--template-8-on-green);
    box-shadow: 0 8px 20px -12px rgba(var(--template-8-primary-rgb), 0.72);
    font-family: 'Inter', sans-serif;
    font-size: 10px;
    font-weight: 500;
    letter-spacing: 0.12em;
    line-height: 1;
    text-transform: uppercase;
    cursor: pointer;
    transition: opacity 180ms ease, transform 180ms ease, box-shadow 180ms ease;
}

.btn-guestbook:hover {
    opacity: 0.92;
    transform: translateY(-1px);
    box-shadow: 0 10px 24px -12px rgba(var(--template-8-primary-rgb), 0.82);
}

.btn-guestbook:focus-visible {
    outline: 2px solid var(--template-8-primary);
    outline-offset: 3px;
}

.btn-guestbook:disabled {
    cursor: not-allowed;
    opacity: 0.55;
    transform: none;
}


/* notice */
.guestbook-notice {
    padding: 9px 11px;
    border-radius: 8px;
    color: var(--template-8-primary);
    background: rgba(var(--template-8-primary-rgb), 0.07);
    font-family: "scarlet-bradley.regular";
    font-size: 12px;
    line-height: 1.45;
    text-align: center;
}

.guestbook-notice.is-error {
    color: #8b2d2d;
    background: rgba(255, 222, 222, 0.7);
}

.guestbook-notice[hidden] {
    display: none;
}

/* divider */
.guestbook-divider {
    width: 100%;
    height: 1px;
    background: linear-gradient(to right, transparent, rgba(255, 255, 255, 0.2), transparent);
}

/* list wrap */
.guestbook-list-wrap {
    display: grid;
    gap: 11px;
    padding-top: 17px;
}

.guestbook-list-wrap[hidden] {
    display: none;
}

.guestbook-list__title {
    margin: 0;
    color: var(--template-8-primary);
    font-family: 'Yeseva One', serif;
    font-size: 17px;
    font-weight: 400;
    line-height: 1.3;
    text-align: center;
}

@media (max-width: 480px) {
    .guestbook-list {
        -webkit-overflow-scrolling: touch;
        scrollbar-width: thin;
        scrollbar-color: var(--template-8-primary) rgba(var(--template-8-primary-rgb), 0.12);
    }
}

.guestbook-list-count {
    color: var(--on-dark-text-subtle);
    margin-left: 4px;
}

.guestbook-list {
    display: grid;
    gap: 8px;
    width: 100%;
    max-height: 260px;
    padding-right: 4px;
    overflow-y: auto;
}

.guestbook-list::-webkit-scrollbar {
    width: 4px;
    border-radius: 999px;
}

.guestbook-list::-webkit-scrollbar-track {
    background: rgba(var(--template-8-primary-rgb), 0.1);
    border-radius: 999px;
}

.guestbook-list::-webkit-scrollbar-thumb {
    background: rgba(var(--template-8-primary-rgb), 0.62);
    border-radius: 999px;
    border: 0;
}

/* entry */
.guestbook-entry {
    display: grid;
    gap: 6px;
    padding: 11px 12px;
    border: 1px solid rgba(var(--template-8-primary-rgb), 0.12);
    border-left: 2px solid rgba(var(--template-8-primary-rgb), 0.62);
    border-radius: 9px;
    background: rgba(var(--template-8-primary-rgb), 0.025);
}

.guestbook-entry__name {
    color: var(--template-8-primary);
    font-family: "scarlet-bradley.regular";
    font-size: 12px;
    font-weight: 600;
    line-height: 1.35;
    text-transform: capitalize;
}

.guestbook-entry__message {
    color: rgba(var(--template-8-text-rgb), 0.78);
    font-weight: 400;
    line-height: 1.55;
    font-size: clamp(12px, 3.2cqw, 14px);
    font-family: "scarlet-bradley.regular";
}

.guestbook-entry__message::before {
    content: none;
}

/* empty state */
.guestbook-empty {
    padding: 24px 0;
    color: rgba(var(--template-8-text-rgb), 0.62);
    font-family: "scarlet-bradley.regular";
    font-size: 13px;
    font-style: italic;
    text-align: center;
}

.guestbook-section_desc {
    max-width: 350px;
    margin: 8px auto 0;
    color: rgba(var(--template-8-text-rgb), 0.72);
    font-style: italic;
    line-height: 1.55;
    font-family: "scarlet-bradley.regular";
    font-size: 16px;
}

/* Gift section */
.ws-section.gift {
    padding-bottom: 0;
}

.gift,
.gift-modal {
    --gift-green: #4E6437;
    --gift-green-light: #5E8950;
    --gift-green-surface: #F0F4ED;
}

.gift .section-title {
    font-size: clamp(36px, 8.5vw, 40px);
    line-height: 1.2;
    text-shadow: 0 2px 3px rgba(0, 0, 0, 0.16);
}

.gift .gift__title {
    font-family: "Moon Light";
    font-size: 24px;
    text-align: center;
    color: var(--template-7-primary);
}

.gift .gift__subtitle {
    max-width: 350px;
    margin: 8px auto 0;
    color: rgba(var(--template-8-text-rgb), 0.72);
    font-style: italic;
    line-height: 1.55;
    font-family: "scarlet-bradley.regular";
    font-size: 16px;
    text-align: center;
}

.gift-box__image {
    position: absolute;
    width: 100%;
    height: 90%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    transform-origin: 50% 50%;
    object-fit: contain;
}

.gift-box:not(.gift-box--disabled) .gift-box__image {
    animation: gift-box-shake 2.8s ease-in-out infinite;
}

.gift-box:not(.gift-box--disabled) .gift-box__button {
    animation: gift-box-button-rotate 2.8s ease-in-out infinite;
}

@keyframes gift-box-shake {

    0%,
    58%,
    100% {
        transform: translate(-50%, -50%) rotate(0deg);
    }

    62% {
        transform: translate(-50%, -50%) rotate(-2.5deg);
    }

    66% {
        transform: translate(-50%, -50%) rotate(2.5deg);
    }

    70% {
        transform: translate(-50%, -50%) rotate(-1.6deg);
    }

    74% {
        transform: translate(-50%, -50%) rotate(1.6deg);
    }

    78% {
        transform: translate(-50%, -50%) rotate(0deg);
    }
}

.gift-box__button {
    position: absolute;
    width: 56px;
    top: 50%;
    left: 49%;
    transform: translate(-50%, -50%);
    transform-origin: 50% 50%;
}

@keyframes gift-box-button-rotate {

    0%,
    58%,
    100% {
        transform: translate(-50%, -50%) rotate(0deg);
    }

    66% {
        transform: translate(-50%, -50%) rotate(-12deg);
    }

    74% {
        transform: translate(-50%, -50%) rotate(12deg);
    }

    82% {
        transform: translate(-50%, -50%) rotate(0deg);
    }
}

.gift-box__hint {
    position: absolute;
    top: 56%;
    left: 49%;
    transform: translateX(-50%);
    display: grid;
    place-items: center;
    width: 30px;
    height: 30px;
    color: #FFD95E;
    pointer-events: none;
    opacity: 0.55;
}

.gift-box__hint-icon {
    width: 23px;
    height: 23px;
    overflow: visible;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.45)) drop-shadow(0 0 4px rgba(255, 217, 94, 0.35));
    animation: gift-box-hint-tap 1.8s ease-in-out infinite;
}

@keyframes gift-box-hint-tap {

    0%,
    100% {
        opacity: 0.55;
        transform: translateY(2px) scale(1);
    }

    50% {
        opacity: 1;
        transform: translateY(-2px) scale(0.92);
    }
}

.gift-box {
    appearance: none;
    border: none;
    height: 319px;
    padding: 24px 0;
    border-radius: 24px;
    /* background: var(--template-7-primary); */
    position: relative;
    width: 100%;
    cursor: pointer;
    width: min(100%, 500px);
    background: transparent;
}

.gift-box--disabled {
    cursor: default;
}

.gift-box:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 4px;
}

@media (prefers-reduced-motion: reduce) {

    .gift-box__image,
    .gift-box__button,
    .gift-box__hint-icon {
        animation: none !important;
    }
}

.gift {
    margin: auto;
    overflow: hidden;
    padding-bottom: 56px;
}

.gift__top {
    display: flex;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    flex-direction: column;
    gap: 20px;
    z-index: 1;
    min-width: 0;
    align-items: center;
}

.gift-qr-panel {
    display: grid;
    gap: 10px;
    border-radius: 18px;
    padding: 12px;
    width: fit-content;
}

.gift-qr-panel__list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: min(100%, 500px);
    gap: 24px;
}

.gift__single {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

.gift-qr-placeholder {
    width: min(100%, 180px);
    aspect-ratio: 1;
}

.gift-qr-placeholder .ws-image-placeholder {
    min-height: 100%;
}

.gift-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.2s ease, visibility 0.2s ease;
}

.gift-modal.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.gift-modal.is-manage-preview {
    top: var(--gift-modal-preview-top, 0px);
    bottom: auto;
    height: var(--gift-modal-preview-visible-height, 100vh);
}

.gift-modal.is-manage-preview .gift-modal__dialog {
    max-height: calc(var(--gift-modal-preview-visible-height, 100vh) - 40px);
}

.gift-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
}

.gift-modal__dialog {
    position: relative;
    max-height: calc(100vh - 40px);
    overflow-y: auto;
    border-radius: 24px;
    background: var(--gift-green-surface);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.2);
    z-index: 1;
    width: min(500px, 100%);
}

.gift-modal__content {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 24px;
    align-items: center;
    background: #fff;
}

.gift-modal__title {
    color: var(--gift-green);
    text-align: center;
    font-style: normal;
    font-weight: 400;
    line-height: 60px;
    font-family: "Moon Light";
    font-size: 24px;
}

.gift-modal__close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 36px;
    height: 36px;
    border: none;
    border-radius: 999px;
    color: var(--gift-green);
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: transparent;
}

.gift-qr-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    min-width: 0;
}

.gift-qr-card__media {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    width: 100%;
}

.gift-qr-card__image {
    display: flex;
    justify-content: center;
    width: 100%;
}

.gift-qr-card__image img {
    display: block;
    padding: 8px;
    border-radius: 4px;
    border: 2px solid rgba(255, 255, 255, 0.20);
    background: #FFF;
    margin-bottom: 0;
    max-width: 146px;
    width: 100%;
    height: auto;
    box-sizing: border-box;
}

.gift-qr-card__download {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    color: var(--gift-green);
    font-size: clamp(9px, 1.2vw, 12px);
    font-weight: 600;
    line-height: 1;
    padding: 4px 8px;
    border-radius: 999px;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.gift-qr-card__download-icon {
    display: grid;
    place-items: center;
}

.gift-qr-card__download-icon--done,
.gift-qr-card__download.is-downloaded .gift-qr-card__download-icon--down {
    display: none;
}

.gift-qr-card__download.is-downloaded .gift-qr-card__download-icon--done {
    display: grid;
}

.gift-qr-card__download.is-downloaded {
    background: rgba(255, 255, 255, 0.92);
    border-color: var(--gift-green);
    color: #355643;
}

.gift-qr-card__bank,
.gift-qr-card__number,
.gift-qr-card__name {
    max-width: 100%;
    word-break: break-word;
}

.gift-qr-card__bank {
    color: var(--gift-green);
    text-align: center;
    font-size: clamp(12px, 1.6vw, 15px);
    font-weight: 400;
    line-height: 1.5;
}

.gift-qr-card__number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    max-width: 100%;
    color: var(--gift-green);
    font-size: clamp(11px, 1.5vw, 14px);
    font-weight: 600;
    line-height: 1;
    padding: 4px 6px;
    border-radius: 6px;
    transition: background 0.2s ease;
}

.gift-qr-card__number-value {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.gift-qr-card__copy {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    color: var(--gift-green);
    padding: 0;
    border-radius: 5px;
    cursor: pointer;
    display: grid;
    place-items: center;
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
    background: none;
    border: none;
}

.gift-qr-card__copy-icon {
    display: grid;
    place-items: center;
}

.gift-qr-card__copy-icon--done,
.gift-qr-card__copy.is-copied .gift-qr-card__copy-icon--copy {
    display: none;
}

.gift-qr-card__copy.is-copied .gift-qr-card__copy-icon--done {
    display: grid;
}

.gift-qr-card__copy.is-copied {
    background: #FFF;
    border-color: var(--gift-green);
    color: #355643;
}

.gift-qr-card__name {
    color: var(--gift-green);
    font-size: clamp(12px, 1.6vw, 15px);
    font-weight: 400;
    line-height: 1.5;
    text-transform: uppercase;
}

.gift__text {
    color: var(--gift-green);
    text-align: center;
    font-family: 'Inter';
    font-size: clamp(16px, 2vw, 17px);
    font-style: italic;
    font-weight: 400;
    line-height: 1.6;
    padding-inline: 24px;
    margin: 0;
    max-width: 400px;
}

.gift-qr-card--panel {
    min-width: 0;
    gap: 4px;
}

.gift-qr-card--panel .gift-qr-card__role {
    margin: 0 0 4px;
    padding: 3px 8px;
    font-size: clamp(9px, 1.2vw, 12px);
    letter-spacing: 0.1em;
    background: rgba(53, 86, 67, 0.08);
    color: var(--gift-green);
}

.gift-qr-card--panel .gift-qr-card__image img {
    padding: 4px;
    max-width: 100px;
    width: 100%;
    border: 1px solid rgba(53, 86, 67, 0.12);
    border-radius: 6px;
}

.gift-qr-card--panel .gift-qr-card__download {
    background: rgba(53, 86, 67, 0.06);
    color: var(--gift-green);
    font-size: clamp(8px, 1.1vw, 11px);
    padding: 3px 6px;
}

.gift-qr-card--panel .gift-qr-card__download.is-downloaded {
    border-color: #355643;
    color: var(--gift-green);
}

.gift-qr-card--panel .gift-qr-card__bank,
.gift-qr-card--panel .gift-qr-card__number,
.gift-qr-card--panel .gift-qr-card__name {
    color: var(--gift-green);
    text-align: center;
    width: 100%;
}

.gift-qr-card--panel .gift-qr-card__bank {
    font-size: clamp(10px, 1.4vw, 13px);
    line-height: 1.4;
    font-weight: 500;
}

.gift-qr-card--panel .gift-qr-card__number {
    gap: 3px;
    padding: 3px 4px;
    width: 100%;
    box-sizing: border-box;
}

.gift-qr-card--panel .gift-qr-card__number.is-copied {
    background: rgba(53, 86, 67, 0.08);
}

.gift-qr-card--panel .gift-qr-card__number-value {
    font-size: clamp(10px, 1.4vw, 13px);
    line-height: 1.4;
    font-weight: 600;
    letter-spacing: 0.02em;
}

.gift-qr-card--panel .gift-qr-card__copy {
    width: 18px;
    height: 18px;
    border-radius: 4px;
    background: rgba(53, 86, 67, 0.06);
    color: var(--gift-green);
    border: none;
}

.gift-qr-card--panel .gift-qr-card__copy.is-copied {
    border-color: #355643;
    color: var(--gift-green);
}

.gift-qr-card--panel .gift-qr-card__name {
    font-size: clamp(9px, 1.2vw, 12px);
    line-height: 1.4;
    text-transform: none;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
    opacity: 0.85;
}

@media screen and (min-width: 501px) {
    .gift-qr-card--panel .gift-qr-card__image img {
        max-width: 96px;
    }
}

@media screen and (max-width: 500px) {
    .gift-modal {
        padding: 16px;
    }

    .gift-modal__content {
        padding: 20px 16px;
    }

    .gift__text {
        padding-inline: 32px;
    }

    .thanks__bg-top-left {
        width: 75px;
    }

    .thanks__bg-bottom-right {
        width: 110px;
    }
}

@media screen and (min-width: 768px) {
    .gift__top {
        bottom: 80px;
    }


    .gift-qr-card__image img {
        max-width: 180px;
    }

    .gift-qr-card--panel .gift-qr-card__image img {
        max-width: 160px;
    }

    .envelop-center {
        bottom: 30px;
        top: unset;
    }

    .envelop-paper {
        top: 66px;
        max-height: 250px;
    }

    .envelop-content-anchor {
        top: 65%;
    }
}

/* Template 8 gift envelope */
.gift.gift--box-mode {
    container-type: inline-size;
    position: relative;
    isolation: isolate;
    width: 100%;
    margin: 0 auto;
    padding: clamp(36px, 9cqw, 48px) clamp(16px, 4cqw, 22px) clamp(40px, 10cqw, 52px);
    overflow: hidden;
    color: var(--template-8-text);
    background:
        radial-gradient(circle at 92% 10%, rgba(var(--template-8-primary-rgb), 0.07), transparent 25%),
        radial-gradient(circle at 4% 88%, rgba(var(--template-8-olive-rgb), 0.06), transparent 28%),
        var(--template-8-surface);
}

.gift.gift--box-mode {
    padding-bottom: 0;
}

.gift--box-mode .gift__top {
    position: relative;
    z-index: 1;
    bottom: auto;
    gap: 0;
}

.gift--box-mode .gift__top>div:first-child {
    width: min(100%, 430px);
}

.gift--box-mode .gift__title {
    margin: 0;
    color: var(--template-8-primary);
    font-weight: 400;
    letter-spacing: 0.01em;
    line-height: 1.2;
    text-align: center;
    font-family: "Moon Light";
    font-size: 24px;
}

.gift--box-mode .gift__subtitle {
    width: min(100%, 390px);
    margin: 10px auto clamp(20px, 5cqw, 28px);
    color: rgba(var(--template-8-text-rgb), 0.72);
    font-style: italic;
    line-height: 1.55;
    opacity: 1;
    font-family: "scarlet-bradley.regular";
    font-size: 16px;
    text-align: center;
}

.gift-box {
    width: min(100%, 350px);
    height: clamp(205px, 51cqw, 245px);
    margin-top: 2px;
    padding: 0;
    border-radius: 24px;
}

.gift-box__image {
    z-index: 1;
    height: 88%;
    filter: hue-rotate(76deg) saturate(0.55) brightness(0.78);
}

.gift-box__button {
    z-index: 2;
    width: 46px;
    filter: hue-rotate(76deg) saturate(0.48) brightness(0.82);
}

.gift-box__hint {
    z-index: 3;
    top: 57%;
    color: var(--template-8-cream);
    opacity: 0.8;
}

.gift-box__hint-icon {
    filter: drop-shadow(0 1px 3px rgba(20, 35, 22, 0.36));
}

@media (max-width: 360px) {
    .gift.gift--box-mode {
        padding-inline: 12px;
    }
}

/* Thanks */
.gift-section-wrapper-bottom {
    --gift-thanks-banner-min-height: clamp(300px, 112cqw, 350px);
    position: relative;
    isolation: isolate;
    container-type: inline-size;
    width: 100%;
    min-height: var(--gift-thanks-banner-min-height);
    overflow: visible;
    background: var(--template-8-surface);
}

.gift-section-wrapper-bottom::before {
    content: "";
    position: absolute;
    top: -52px;
    right: 0;
    left: 0;
    z-index: 3;
    height: 120px;
    pointer-events: none;
    background: linear-gradient(180deg,
            rgba(255, 255, 255, 0) 0%,
            rgba(255, 255, 255, 0.82) 34%,
            rgba(255, 255, 255, 0.9) 52%,
            rgba(255, 255, 255, 0.34) 78%,
            rgba(255, 255, 255, 0) 100%);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    -webkit-mask-image: linear-gradient(180deg, transparent, #000 24%, #000 72%, transparent);
    mask-image: linear-gradient(180deg, transparent, #000 24%, #000 72%, transparent);
}

.gift-thanks-banner {
    position: relative;
    z-index: 0;
    width: 100%;
    min-height: var(--gift-thanks-banner-min-height);
    overflow: hidden;
}

.gift-thanks-banner::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background: linear-gradient(180deg,
            rgba(255, 255, 255, 0.98) 0%,
            rgba(255, 255, 255, 0.9) 20%,
            rgba(255, 255, 255, 0.64) 48%,
            rgba(255, 255, 255, 0.58) 100%);
}

.gift-thanks-banner-img {
    display: block;
    width: 100%;
    height: auto;
    object-position: center;
}

.gift-thanks-banner> :not(.gift-thanks-banner-img) {
    width: 100%;
    min-height: var(--gift-thanks-banner-min-height);
}

.gift-section-wrapper-bottom-content {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    width: min(100%, 500px);
    margin: auto;
    padding: clamp(190px, 43cqw, 228px) clamp(24px, 7cqw, 38px) 46px;
    background: transparent;
    text-align: center;
}

.gift-thanks-title {
    margin: 0 0 clamp(28px, 7cqw, 38px);
    color: var(--template-8-primary);
    font-weight: 500;
    letter-spacing: -0.045em;
    line-height: 1.08;
    text-shadow: none;
    font-family: "Moon Light";
    font-size: 24px;
}

.gift-thanks-text {
    width: min(100%, 440px);
    margin: 0;
    color: var(--template-8-text-strong);
    font-size: clamp(14px, 3.6cqw, 18px);
    font-weight: 400;
    line-height: 1.55;
    text-align: center;
    text-wrap: balance;
    font-family: "Moon Light";
    text-shadow: none;
}

.gift-section-wrapper-bottom .vowry-me {
    z-index: 3;
    bottom: 12px;
    color: var(--template-8-primary);
    font-family: "scarlet-bradley.regular";
    font-size: 10px;
    letter-spacing: 0.08em;
    opacity: 0.55;
}

@media (max-width: 360px) {
    .gift-section-wrapper-bottom-content {
        padding-top: 180px;
    }
}

/* Album lightbox */
.album-bg-bottom-right {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 192px;
    position: absolute;
    bottom: -26px;
    right: -36px;
    width: 192px;
    z-index: 2;
}

.album-bg-bottom-left {
    position: absolute;
    bottom: -41px;
    left: -40px;
    width: 230px;
    z-index: 2;
}

/* Music button */
.ws-music-button-wrap {
    position: fixed;
    bottom: 50px;
    right: 20px;
    z-index: 9999999;
    display: inline-flex;
    align-items: center;
    gap: 0.62rem;
    pointer-events: auto;
}

.ws-music-toggle {
    width: 40px;
    height: 40px;
    border-radius: 999px;
    border: none;
    background: transparent;
    color: var(--t3-primary);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.25s ease, box-shadow 0.25s ease, background-color 0.25s ease;
}

.ws-music-toggle[disabled] {
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
    opacity: 0.55;
}

.ws-music-toggle__icon {
    display: inline-flex;
    width: 40px;
    height: 40px;
    align-items: center;
    justify-content: center;
    transform-origin: center;
    animation: none;
}

.ws-music-toggle__icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.ws-music-button-wrap.is-playing .ws-music-toggle__icon {
    animation: ws-music-spin 3s linear infinite;
}

.ws-music-button__hint {
    border-radius: 999px;
    padding: 0.3rem 1.15rem;
    display: inline-flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.92);
    color: #2a2f22;
    font-size: 16px;
    font-weight: 500;
    line-height: 1.2;
    white-space: nowrap;
    box-shadow: 0 12px 26px -18px rgba(0, 0, 0, 0.5);
    max-width: min(70vw, 28rem);
    text-overflow: ellipsis;
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transform: translateY(4px);
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0s linear 0.2s;
    height: 40px;
}

.ws-music-toggle:hover+.ws-music-button__hint,
.ws-music-toggle:focus-visible+.ws-music-button__hint {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
    transition-delay: 0s;
}

.ws-music-button-wrap.is-playing .ws-music-button__hint {
    color: #344256;
}

@keyframes ws-music-pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(var(--primary-rgb, 139, 90, 43), 0.55);
    }

    70% {
        box-shadow: 0 0 0 10px rgba(var(--primary-rgb, 139, 90, 43), 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(var(--primary-rgb, 139, 90, 43), 0);
    }
}

.ws-music-button-wrap.needs-tap .ws-music-toggle {
    animation: ws-music-pulse 1.4s ease-out infinite;
}

@keyframes ws-music-spin {
    to {
        transform: rotate(360deg);
    }
}

/* ===================== ALBUM SECTION ===================== */
.album-section {
    position: relative;
    max-width: 100%;
    padding: 0;
    overflow: hidden;
    background: none;
    padding-inline: 4px;
}

.album-section.album-section--layout-three-d {
    padding: 0;
}

/* Template 8 collage: 3 portraits / 1 panorama / 3 portraits. */
.album-section--layout-collage .album-collage {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    grid-auto-rows: auto;
    gap: clamp(4px, 1.2vw, 6px);
    width: min(100%, 500px);
    border-radius: 0;
}

.album-section--layout-collage .album-collage[data-count] .album-collage__item {
    grid-column: auto;
    grid-row: auto;
    height: auto;
    aspect-ratio: 2 / 3;
    border: clamp(1px, 0.4vw, 2px) solid var(--template-8-green);
    border-radius: 0;
    background: var(--template-8-green);
    box-shadow: none;
}

.album-section--layout-collage .album-collage[data-count] .album-collage__item:nth-child(4) {
    grid-column: 1 / -1;
    aspect-ratio: 2.05 / 1;
}

.album-section--layout-collage .album-collage[data-count="1"] .album-collage__item {
    grid-column: 1 / -1;
    aspect-ratio: 4 / 3;
}

.album-section--layout-collage .album-collage[data-count="2"] {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.album-section--layout-collage .album-collage[data-count="2"] .album-collage__item {
    aspect-ratio: 3 / 4;
}

.album-section--layout-collage .album-collage__item img {
    border-radius: 0;
}

.album-cols {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    align-items: start;
    max-width: 500px;
    margin: 0 auto;
}

.album-col {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.album-col--left {
    padding-bottom: 32px;
}

.album-col--right {
    padding-top: 32px;
}

.album-item {
    border: 0;
    padding: 0;
    background: none;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    display: block;
    border-radius: 4px;
    width: 100%;
    box-shadow: 0 10px 24px rgba(35, 12, 15, 0.24);
}

.album-item--placeholder {
    cursor: default;
}

.album-item--portrait {
    aspect-ratio: 3 / 4;
}

.album-item--square {
    aspect-ratio: 1 / 1;
}

.album-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.35s ease;
    border-radius: 4px;
}

.album-item:hover img,
.album-item:focus-visible img {
    transform: scale(1.04);
}

.album-item:focus-visible {
    outline: 2px solid var(--focus-outline);
    outline-offset: 2px;
}


@media (prefers-reduced-motion: reduce) {

    [data-ws-album-lightbox],
    [data-ws-album-lightbox] .ws-album-lightbox__dialog,
    [data-ws-album-lightbox] [data-ws-album-lightbox-dialog],
    .ws-album-lightbox__image {
        animation: none !important;
        transition: none !important;
    }
}

[data-ws-album-lightbox] {
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.28s ease;
}

[data-ws-album-lightbox].is-active {
    opacity: 1;
    pointer-events: auto;
}

[data-ws-album-lightbox] .ws-album-lightbox__dialog,
[data-ws-album-lightbox] [data-ws-album-lightbox-dialog] {
    opacity: 0;
    transform: translate3d(0, 20px, 0) scale(0.96);
    transform-origin: center center;
    transition:
        transform 0.44s cubic-bezier(0.22, 1, 0.36, 1),
        opacity 0.30s ease;
}

[data-ws-album-lightbox].is-active .ws-album-lightbox__dialog,
[data-ws-album-lightbox].is-active [data-ws-album-lightbox-dialog] {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1);
}

.ws-album-lightbox__figure {
    overflow: hidden;
}

.ws-album-lightbox__image {
    opacity: 0;
    transform: scale(1.07);
    transition:
        transform 0.52s cubic-bezier(0.22, 1, 0.36, 1),
        opacity 0.38s ease;
    will-change: transform, opacity;
}

.ws-album-lightbox__image.is-loaded {
    opacity: 1;
    transform: scale(1);
}
