﻿/* Tokens */
@import url("./album-layouts.css");

:root {
    --template-7-primary: rgba(155, 42, 42, 1);
    --template-7-primary-rgb: 155, 42, 42;
    --kit-primary-rgb: var(--template-7-primary-rgb);
    --primary-rgb: var(--template-7-primary-rgb);
    --t1-primary: #701620;
    --t1-secondary: #D8C7A3;
    --olive-dark: #7F0404;
    --t3-primary: var(--template-7-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 {
    --olive-dark: var(--template-7-primary);
    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%);
    font-family: 'Lato', sans-serif;
    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.2;
    font-size: clamp(32px, 5.5vw, 42px);
    color: var(--template-7-primary);
    font-family: 'Great Vibes', cursive;
    text-align: center;
    text-transform: capitalize;
}

/* ===================== AOS ===================== */
[data-aos] {
    pointer-events: none;
}

[data-aos].aos-animate {
    pointer-events: auto;
}

/* ===================== 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;
    /*
     * The left asset is 632px wide: 500px for the door plus a 132px
     * transparent overlap containing the wax seal. Keeping that ratio
     * gives both 500px doors the same scale and lets the right door show
     * through the transparent overlap instead of leaving a white gap.
     *
     * 79.1139% is the 500 / 632 door boundary. Unlike left/right, this
     * anchor keeps that boundary at the scene midpoint when `cover` is
     * driven by viewport height on tall mobile screens.
     */
    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;
    }
}

/* Couple section */
.ws-couple-banner-preload {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
    overflow: hidden;
}

.ws-general-section {
    height: 650px;
    position: relative;
    overflow-x: hidden;
    overflow-x: clip;
    overflow-y: visible;
}

.couple__welcome {
    font-family: 'Great Vibes', cursive;
    font-size: 60px;
    color: #fff;
    text-shadow: rgba(0, 0, 0, 0.35) 0px 4px 4px;
    margin-top: -50px;
}

.ws-couple__divider,
.ws-couple__name {
    color: #fff;
    text-align: center;
    font-size: 42px;
    font-style: normal;
    line-height: 1.1;
    font-family: 'Playfair Display', sans-serif;
    text-shadow: 0px 4px 4px rgba(0, 0, 0, 0.35);
    text-transform: uppercase;
}

.ws-couple__divider {
    position: absolute;
    top: 70%;
    left: 44%;
    transform: translate(-50%, -50%);
    font-size: 144px;
    opacity: 0.38;
    font-style: italic;
    font-family: 'Great Vibes', cursive;
}

.couple-content {
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 650px;
    justify-content: space-around;
}

.couple-content-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
}

.couple-date {
    color: #fff;
    text-align: center;
    font-size: 21px;
    font-style: normal;
    line-height: 20px;
    text-transform: uppercase;
    margin-top: 20px;
    font-family: 'Literata', sans-serif;
    text-shadow: 0px 4px 4px rgba(0, 0, 0, 0.35);
}

#ws-couple-section [data-aos] {
    transition-property: opacity, transform !important;
}

.couple-content__bottom {
    margin-top: 140px;
}


/* 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%;
    }
}

.family-info {
    width: min(100%, 500px);
    margin: auto;
}

.family-info__names {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.family-info__person {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.family-info__divider,
.family-info__name {
    color: var(--template-7-primary);
    text-align: center;
    font-family: "Great Vibes";
    font-style: normal;
    font-weight: 500;
    line-height: 1.2;
    margin: 0;
    color: var(--template-7-primary);
    font-size: clamp(36px, 5.5vw, 38px);
    text-shadow: 0px 4px 4px rgba(0, 0, 0, 0.25);
}

.family-info__divider {
    font-family: "Playball", cursive;
}

.family-info__description {
    color: rgba(var(--template-7-primary-rgb), 0.72);
    text-align: center;
    font-family: 'Inter';
    font-size: 14px;
    font-style: normal;
    font-weight: 400;
    line-height: normal;
    max-width: 286px;
}

.family-info__guest span {
    color: rgba(var(--template-7-primary-rgb), 0.85);
    text-align: center;
    font-family: "Playball", cursive;
    font-size: clamp(32px, 5.5vw, 41px);
    font-style: normal;
    font-weight: 400;
    line-height: 110%;
    text-transform: capitalize;
    text-shadow: 0px 4px 4px rgba(0, 0, 0, 0.25);
    display: block;
}

.family-info__line {
    width: 284px;
    border: 1px solid rgba(var(--template-7-primary-rgb), 0.32);
    border-style: dashed;
}

.family-info__title {
    color: var(--template-7-primary);
    text-align: center;
    font-family: 'Inter';
    font-size: 14px;
    font-style: normal;
    font-weight: 500;
    line-height: normal;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.family-info__invitation {
    padding-block: 30px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    justify-content: center;
    align-items: center;
    margin-top: 24px;
}

.family-info__parents-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 18px minmax(0, 1fr);
}

.family-info__parents-divider {
    width: 2px;
    height: 100%;
    margin: auto;
    background: var(--template-7-primary);
    opacity: 0.7;
}

.family-info__parents-column {
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: center;
    padding-bottom: 12px;
}

.family-info__parents-names {
    display: flex;
    min-height: 36px;
    flex-direction: column;
    justify-content: flex-end;
    gap: 8px;
}

.family-info__parents-label {
    color: var(--template-7-primary);
    text-align: center;
    font-size: clamp(12px, 1.8vw, 16px);
    text-align: center;
    font-weight: 400;
    line-height: 20px;
    font-size: 16px;
    font-weight: bold;
    text-transform: uppercase;
    font-family: 'Playfair Display', sans-serif;
}

.family-info__parents-address,
.family-info__parents-name {
    color: var(--template-7-primary);
    font-size: clamp(14px, 2vw, 20px);
    text-align: center;
    font-style: normal;
    font-weight: 700;
    line-height: 1;
    font-family: 'Playfair Display', sans-serif;
    font-size: 14px;
    font-weight: 400;
}

/* Event section */
.event-info-wrapper {
    position: relative;
    padding-top: 0;
    z-index: 2;
    /* padding-bottom: 100px; */
    overflow: hidden;
}

.event-bg-left {
    position: absolute;
    left: -48px;
    width: 250px;
    opacity: .3;
    bottom: -100px;
}

.event-bg-right {
    position: absolute;
    right: -48px;
    width: 250px;
    opacity: .3;
    bottom: -100px;
}

.event-info {
    border-radius: 18px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 36px;
    align-self: stretch;
    position: relative;
    z-index: 1;
    width: min(100%, 500px);
    margin: auto;
}

.event-info-list {
    display: grid;
    gap: 24px;
    position: relative;
    z-index: 1;
}

.event-calendar {
    display: flex;
    flex-direction: column;
    gap: 24px;
    align-self: stretch;
    padding-bottom: 0;
}

.event-calendar:not(:last-child) {
    border-bottom: none;
}

.event-calendar__event-name {
    color: var(--template-7-primary);
    text-align: center;
    font-family: "Montserrat";
    font-size: clamp(13px, 1.8vw, 17px);
    font-style: normal;
    line-height: 1.5;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 4px;
}

.event-calendar+.event-calendar {
    position: relative;
    padding-top: 64px;
}

.event-calendar+.event-calendar::before {
    content: "";
    position: absolute;
    top: 24px;
    left: 50%;
    width: 120px;
    height: 1px;
    transform: translateX(-50%);
    background: linear-gradient(90deg, transparent, var(--template-7-primary), transparent);
    opacity: 0.4;
}

.event-calendar__time {
    color: var(--template-7-primary);
    text-align: center;
    font-family: 'Yeseva One', sans-serif;
    font-style: normal;
    font-weight: 600;
    line-height: 1.2;
    font-size: 22px;
}

.event-calendar__month,
.event-calendar__weekday {
    font-size: 16px;
    color: var(--template-7-primary);
    text-align: center;
    font-family: 'Yeseva One', sans-serif;
    font-style: normal;
    font-weight: 400;
    line-height: 15px;
    text-transform: uppercase;
    padding-block: 8px;
    border-top: 1px solid var(--template-7-primary);
    border-bottom: 1px solid var(--template-7-primary);
}

.event-calendar__weekday-label,
.event-calendar__month-label {
    display: block;
    white-space: nowrap;
    line-height: 1.2;
    font-family: 'Yeseva One', sans-serif;
}

.event-calendar__date-label {
    display: block;
}

.event-calendar__day {
    font-size: 48px;
    color: var(--template-7-primary);
    text-align: center;
    font-family: 'Yeseva One', sans-serif;
    font-style: normal;
    font-weight: 400;
    line-height: 32px;
}

.event-calendar__vietnamese-date {
    color: var(--template-7-primary);
    text-align: center;
    font-style: italic;
    font-weight: 400;
    line-height: 1.5;
    font-size: 16px;
    font-family: 'Literata', sans-serif;

}

.event-calendar__date {
    display: flex;
    align-items: center;
    gap: 24px;
    justify-content: center;
}

.party-item {
    display: flex;
    padding: 32px;
    flex-direction: column;
    align-items: center;
    gap: 7px;
    align-self: stretch;
    border-radius: 4px;
    padding-top: 0;
}

.party-item__label {
    font-family: 'Literata', sans-serif;
    font-size: 16px;
    color: var(--template-7-primary);
}

.party-item__place {
    color: var(--template-7-primary);
    font-family: 'Yeseva One', sans-serif;
    font-size: 24px;
    text-transform: uppercase;
    padding-block: 8px;
    text-align: center;
}

.party-item__address {
    color: var(--template-7-primary);
    text-align: center;
    line-height: 28.8px;
    font-family: 'Literata', sans-serif;
    font-size: 16px;
    font-style: italic;
}

.party-item__button {
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    font-family: 'Inter';
    line-height: 12px;
    letter-spacing: 1.2px;
    border: none;
    text-transform: uppercase;
    border-bottom: 1px solid rgba(216, 199, 163, 0.30);
    cursor: pointer;
    padding: 12px 20px;
    color: rgba(255, 255, 255, 1);
    font-size: 14px;
    font-weight: bold;
    border-radius: 12px;
    background: var(--template-7-primary);
    line-height: 1.2;
}

.party-item__button:hover {
    opacity: .9;
}

.party-item__actions {
    display: flex;
    gap: 16px;
    margin-top: 24px;
}

/* 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,
.cover-countdown__wrapper {
    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: 0;
    left: 52%;
    width: 69%;
    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;
    overflow: hidden;
}

.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;
}

.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-family: 'Cormorant', serif;
    font-size: clamp(9px, 2.55cqw, 13px);
    font-weight: 600;
    line-height: 1;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    transform: translate(-50%, -50%) rotate(90deg);
}

.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%);
}

.cover-countdown__wrapper {
    margin: 8px auto 32px;
    color: var(--template-7-primary);
    text-align: center;
}

.cover-countdown__title {
    margin-block: 32px;
    font-weight: 500;
    line-height: 1.5;
    letter-spacing: 1.8px;
    color: var(--template-7-primary);
    font-family: 'Playfair Display', sans-serif;
    font-size: 18px;
}

.cover-countdown {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr) auto minmax(0, 1fr) auto minmax(0, 1fr);
    align-items: start;
    width: min(100%, 360px);
    margin: 0 auto;
}

.cover-countdown__unit {
    display: flex;
    min-width: 0;
    flex-direction: column;
    align-items: center;
}

.cover-countdown__number {
    font-size: clamp(27px, 8vw, 32px);
    font-weight: 500;
    font-variant-numeric: tabular-nums;
    line-height: 1;
    color: var(--template-7-primary);
    font-family: 'Yeseva One', sans-serif;
}

.cover-countdown__label {
    margin-top: 7px;
    font-size: 9px;
    font-weight: 500;
    line-height: 1.3;
    letter-spacing: 0.6px;
    text-transform: uppercase;
    font-family: 'Playfair Display', sans-serif;
    color: var(--template-7-primary);
}

.cover-countdown__separator {
    padding: 4px 3px 0;
    font-family: 'Playfair Display', serif;
    font-size: 18px;
    line-height: 1;
}

.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;
}

@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);
    }
}

@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 */
.calendar-section {
    position: relative;
    /* padding: 0 0 clamp(28px, 8vw, 48px); */
    overflow: hidden;
    background: transparent;
    padding-bottom: 0;
}

.calendar-section__cover-banner {
    position: relative;
    width: 100%;
    max-height: 500px;
    margin: 0;
    overflow: hidden;
}

.calendar-section__cover-banner img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.calendar-scene {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1.05;
    overflow: hidden;
    isolation: isolate;
}

.calendar-scene+.calendar-scene {
    margin-top: 16px;
}

.ws-mini-calendar__wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: clamp(5px, 1.5vw, 9px);
}

.calendar-envelop {
    position: absolute;
    z-index: 2;
    top: 12%;
    right: 0;
    width: 60%;
    max-width: none;
}

.calendar-center {
    position: absolute;
    z-index: 5;
    top: 28%;
    left: 68%;
    width: 20%;
    max-width: none;
    transform-origin: center;
}

@keyframes calendar-seal-rotate-in {
    from {
        opacity: 0;
        transform: rotate(-180deg) scale(0.86);
    }

    to {
        opacity: 1;
        transform: rotate(0deg) scale(1);
    }
}

.calendar-center[data-aos="rotate-in-seal"] {
    opacity: 0;
}

.calendar-center[data-aos="rotate-in-seal"].aos-animate {
    animation: calendar-seal-rotate-in 1.4s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@media (prefers-reduced-motion: reduce) {

    .calendar-center[data-aos="rotate-in-seal"],
    .calendar-center[data-aos="rotate-in-seal"].aos-animate {
        opacity: 1;
        animation: none;
        transform: none;
    }
}

.calendar-paper {
    position: absolute;
    z-index: 3;
    top: 31%;
    left: -16%;
    width: 122%;
    height: 65%;
    max-width: none;
    object-fit: fill;
}

.calendar__flower-top {
    position: absolute;
    z-index: 1;
    top: -2%;
    left: -8%;
    width: 345px;
    max-width: none;
    opacity: 0.28;
}

.ws-mini-calendar__year {
    display: none;
}

.ws-mini-calendar--love-story {
    position: absolute;
    z-index: 4;
    top: 40%;
    left: 44.4%;
    width: 62%;
    margin: 0;
    padding: 0;
    transform: translateX(-50%);
    border-radius: 0;
    box-shadow: none;
}

.ws-mini-calendar__month-title {
    color: var(--template-7-primary);
    font-size: clamp(30px, 7vw, 38px);
    font-style: normal;
    font-weight: 500;
    line-height: 1.1;
    text-align: center;
    font-family: "Great Vibes";
    text-shadow: 0px 4px 4px rgba(0, 0, 0, 0.25);
    font-style: italic;
}

.ws-mini-calendar__grid {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    column-gap: 0;
    row-gap: clamp(1px, 0.7vw, 3px);
    padding-inline: 12px;
}

.ws-mini-calendar__dow,
.ws-mini-calendar__cell {
    display: flex;
    align-items: center;
    justify-content: center;
}

.ws-mini-calendar__dow {
    flex-direction: column;
    color: var(--template-7-primary);
    text-align: center;
    font-family: 'Literata', serif;
    font-size: clamp(8px, 2.1vw, 11px);
    font-style: normal;
    font-weight: 600;
    line-height: normal;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    padding-bottom: clamp(2px, 0.7vw, 4px);
}

.ws-mini-calendar__cell {
    min-height: clamp(16px, 4.2vw, 21px);
    color: var(--template-7-primary);
    font-family: 'Literata', serif;
    font-size: clamp(11px, 2.6vw, 14px);
    font-style: normal;
    font-weight: 400;
    line-height: 1;
    position: relative;
}

.ws-mini-calendar__num {
    position: relative;
    z-index: 1;
    color: #fff;
    font-family: 'Literata', serif;
    font-size: clamp(11px, 2.6vw, 14px);
    font-style: normal;
    font-weight: 700;
    line-height: 1;
}

.ws-mini-calendar__cell--empty {
    background: transparent;
}

.ws-mini-calendar__cell--event {
    color: #fff;
    background: transparent;
    box-shadow: none;
}

.ws-mini-calendar__heart {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: clamp(24px, 6.3vw, 32px);
    height: clamp(24px, 6.3vw, 32px);
    display: flex;
    align-items: center;
    justify-content: center;
    animation: ws-heart-beat 1.4s ease-in-out infinite;
    pointer-events: none;
}

.ws-mini-calendar__heart svg {
    width: 100%;
    height: 100%;
    color: var(--template-7-primary);
    overflow: visible;
}

.ws-mini-calendar__heart path {
    fill: currentColor;
    stroke: none;
}

@keyframes ws-heart-beat {
    0% {
        transform: translate(-50%, -50%) scale(1);
    }

    14% {
        transform: translate(-50%, -50%) scale(1.13);
    }

    28% {
        transform: translate(-50%, -50%) scale(1);
    }

    42% {
        transform: translate(-50%, -50%) scale(1.08);
    }

    70% {
        transform: translate(-50%, -50%) scale(1);
    }

    100% {
        transform: translate(-50%, -50%) scale(1);
    }
}

/* Timeline section */
.ws-timeline-love {
    position: relative;
    z-index: 1;
}

.ws-timeline-love:not(.ws-timeline-love--timeline-hidden) {
    background-color: #511921;
    background-image: linear-gradient(160deg,
            #65252c,
            #40171d);
}

.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__empty {
    --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: #701620;
    --ws-content-placeholder-icon-background: #FDF8F2;
    --ws-content-placeholder-title-color: #FDF8F2;
    --ws-content-placeholder-path-color: rgba(255, 255, 255, 0.78);
}

.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;
}

.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: min(100%, 360px);
    align-items: center;
    gap: 12px;
    padding: 0 12px clamp(22px, 5vw, 28px);
    color: var(--template-7-primary);
    font-family: 'Great Vibes', cursive;
    font-size: clamp(36px, 9vw, 44px);
    font-weight: 400;
    line-height: 1.1;
    letter-spacing: 0;
    text-transform: none;
    text-shadow: 0 2px 3px rgba(0, 0, 0, 0.12);
}

.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 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 .section-title,
.ws-timeline-love--layout-horizontal .ws-timeline-love__inner .section-title {
    max-width: 440px;
    margin: 0 auto clamp(24px, 6vw, 34px);
    text-align: center;
}

.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;
    }

}

/*
 * Timeline visual identity belongs to its content type, not its layout.
 * Layout modifiers may change direction and alignment only.
 */
.ws-timeline-love--story .section-title,
.ws-timeline-love--story .ws-timeline-love__inner .section-title {
    color: #fff;
    font-family: 'Great Vibes', cursive;
    font-size: clamp(32px, 5.5vw, 42px);
    font-weight: 400;
    letter-spacing: normal;
    line-height: 1.2;
    text-transform: capitalize;
    text-shadow: 0 4px 4px rgba(0, 0, 0, 0.25);
}

.ws-timeline-love--story .ws-timeline-love__icon {
    color: #FDF8F2;
    filter: none;
}

.ws-timeline-love--story .ws-timeline-love__icon--image {
    background-color: #FDF8F2;
}

.ws-timeline-love--story .ws-timeline-love__dot {
    border: 0;
    background: #fff;
    box-shadow: none;
}

.ws-timeline-love--story .ws-timeline-love__list::before {
    background: #fff;
    box-shadow: none;
}

.ws-timeline-love--story .ws-timeline-love__date {
    color: #fff;
    font-family: 'Yeseva One', sans-serif;
    font-size: 24px;
    font-weight: 400;
    line-height: 1;
    text-shadow: none;
}

.ws-timeline-love--story .ws-timeline-love__heading {
    color: #FDF8F2;
    font-family: 'Literata', sans-serif;
    font-size: 16px;
    font-weight: 300;
    letter-spacing: normal;
    line-height: 33.6px;
    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 .section-title,
.ws-timeline-love--wedding .ws-timeline-love__inner .section-title {
    color: #fff;
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(28px, 7vw, 32px);
    font-weight: 500;
    letter-spacing: 0.02em;
    line-height: 1;
    text-transform: uppercase;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.34);
}

.ws-timeline-love--wedding .ws-timeline-love__icon {
    color: #FDF8F2;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.24));
}

.ws-timeline-love--wedding .ws-timeline-love__icon--image {
    background-color: #FDF8F2;
}

.ws-timeline-love--wedding .ws-timeline-love__dot {
    border: 0;
    background: #fff;
    box-shadow: 0 2px 7px rgba(0, 0, 0, 0.24);
}

.ws-timeline-love--wedding .ws-timeline-love__list::before {
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 1px 5px rgba(0, 0, 0, 0.2);
}

.ws-timeline-love--wedding .ws-timeline-love__date {
    color: #fff;
    font-family: 'Yeseva One', sans-serif;
    font-size: clamp(16px, 5.3vw, 18px);
    font-weight: 500;
    line-height: 1;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.32);
}

.ws-timeline-love--wedding .ws-timeline-love__heading {
    color: #fff;
    font-family: 'Literata', serif;
    font-size: clamp(10px, 2.8vw, 10px);
    font-weight: 500;
    letter-spacing: normal;
    line-height: 1.45;
    text-transform: uppercase;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.34);
}

.ws-timeline-love--wedding .ws-timeline-love__desc {
    color: rgba(255, 255, 255, 0.82);
    font-family: 'Inter';
    font-size: clamp(9px, 2.3vw, 12px);
    font-weight: 400;
    line-height: 1.4;
    text-shadow: none;
}

@media (max-width: 380px) {
    .ws-timeline-love--wedding .ws-timeline-love__heading {
        font-size: 9px;
    }
}

/* 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;
    gap: 24px;
    align-self: stretch;
}

.rsvp-section__title {
    color: var(--template-7-primary);
    text-align: center;
    font-family: "Great Vibes";
    font-size: 42px;
    font-style: normal;
    font-weight: 400;
    line-height: 1.2;
    margin: 0;
    text-transform: capitalize;
    padding-inline: 10px;
}

.rsvp-section__subtitle {
    color: var(--template-7-primary);
    text-align: center;
    font-family: 'Inter';
    font-size: 14px;
    font-style: normal;
    font-weight: 400;
    line-height: 1.6;
    margin: 0;
    font-family: 'Literata', sans-serif;
    max-width: 350px;
}

.rsvp-section__form {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 18px;
    margin: 0;
}

.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-7-primary);
    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='%239B2A2A' 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-7-primary);
    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-7-primary);
    box-shadow: 0 0 0 3px rgba(var(--template-7-primary-rgb), 0.14);
}

.rsvp-section__button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    min-height: 48px;
    padding: 14px 22px;
    border: 0;
    border-radius: 999px;
    color: #FFF;
    font-family: 'Inter';
    font-size: 14px;
    font-style: normal;
    font-weight: 600;
    line-height: 1;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    cursor: pointer;
    transition: background 180ms ease, transform 180ms ease;
    background: var(--template-7-primary);
}

.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;
}

@media (max-width: 575px) {
    .rsvp-section__inner {
        padding: 28px 20px;
        border-radius: 22px;
    }

    .rsvp-section__title {
        font-size: 32px;
    }
}

/* Guestbook */
.guestbook-section {
    text-align: center;
    color: var(--on-dark-text);
    position: relative;
    z-index: 1;
    overflow: hidden;
}

.guestbook-grid {
    display: grid;
    text-align: left;
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    padding: 20px;
    width: min(100%, 500px);
    margin: auto;
}

.guestbook-form {
    display: grid;
    gap: 12px;
    z-index: 1;
    margin: auto;
    width: min(100%, 500px);
}

.guestbook-field {
    position: relative;
}

.guestbook-field input,
.guestbook-field textarea {
    width: 100%;
    border-bottom: 1px solid rgba(255, 255, 255, 0.25);
    transition: border-color 0.2s ease;
    box-sizing: border-box;
    font-size: clamp(15px, 2vw, 18px);
    font-style: normal;
    line-height: normal;
    border-bottom: 1px solid rgba(216, 199, 163, 0.40);
    margin-top: 12px;
    color: var(--template-7-primary);
    font-family: 'Inter';
    font-weight: 400;
    padding: 12px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 8px;
    outline: none;
}

.guestbook-field input::placeholder,
.guestbook-field textarea::placeholder {
    color: var(--template-7-primary);
}

#ws-guestbook-message {
    min-height: 72px;
    overflow-y: hidden;
    resize: none;
    field-sizing: content;
}

.guestbook-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: center;
    padding-top: 8px;
}

/* button */
.btn-guestbook {
    font-size: clamp(13px, 1.8vw, 16px);
    display: flex;
    justify-content: center;
    align-items: center;
    align-self: stretch;
    color: #fff;
    text-align: center;
    font-family: 'Inter';
    font-style: normal;
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: 1.2px;
    background: var(--template-7-primary);
    border: 1px solid #D8C7A3;
    cursor: pointer;
    padding: 12px 20px;
    border-radius: 10px;
    text-transform: uppercase;
}

.btn-guestbook:hover {
    transition: opacity 0.2s ease-in-out;
    opacity: .9;
}


/* notice */
.guestbook-notice {
    font-size: clamp(12px, 1.6vw, 15px);
    font-style: normal;
    line-height: 1.7;
    letter-spacing: 1.4px;
    text-transform: uppercase;
    text-align: center;
    color: var(--template-7-primary);
}

.guestbook-notice.is-error {
    color: #e8a0a0;
}

.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: clamp(16px, 2.5vw, 24px);
    padding-right: 6px;
    padding-top: 20px;
    z-index: 2;
}

.guestbook-list-wrap[hidden] {
    display: none;
}

@media (max-width: 480px) {
    .guestbook-list {
        -webkit-overflow-scrolling: touch;
        scrollbar-width: thin;
        scrollbar-color: var(--template-7-primary) rgba(var(--template-7-primary-rgb), 0.25);
    }
}

.guestbook-list-count {
    color: var(--on-dark-text-subtle);
    margin-left: 4px;
}

.guestbook-list {
    display: grid;
    width: min(100%, 500px);
    max-height: 250px;
    margin: auto;
    overflow-y: auto;
}

.guestbook-list::-webkit-scrollbar {
    width: 4px;
    border-radius: 999px;
}

.guestbook-list::-webkit-scrollbar-track {
    background: rgba(var(--template-7-primary-rgb), 0.25);
    border-radius: 999px;
}

.guestbook-list::-webkit-scrollbar-thumb {
    background: var(--template-7-primary);
    border-radius: 999px;
    border: 0;
}

/* entry */
.guestbook-entry {
    display: flex;
    padding-block: 12px;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    align-self: stretch;
    border-radius: 2px;

}

.guestbook-entry__name {
    font-size: 15px;
    color: var(--template-7-primary);
    font-style: normal;
    font-weight: bold;
    line-height: 1;
    text-transform: capitalize;
    font-family: 'Inter', serif;
}

.guestbook-entry__message {
    font-size: 14px;
    font-style: italic;
    font-weight: 400;
    line-height: 1;
    color: var(--template-7-primary);
    font-family: 'Inter', serif;
}

.guestbook-entry__message::before {
    content: none;
}

/* empty state */
.guestbook-empty {
    font-family: "Cormorant", serif;
    font-style: italic;
    text-align: center;
    color: var(--on-dark-text-subtle);
    font-size: clamp(14px, 2vw, 18px);
    padding: 28px 0;
    letter-spacing: 0.06em;
}

.guestbook-bg-top {
    width: 236px;
    position: absolute;
    top: -39px;
    left: -54px;
    opacity: 0.25;
    rotate: 90deg;
}

.guestbook-bg-center {
    width: 300px;
    position: absolute;
    top: 50%;
    opacity: 0.25;
    right: -94px;
}

.guestbook-section_desc {
    font-family: 'Literata', sans-serif;
    font-size: 14px;
    font-style: italic;
    color: var(--template-7-primary);
    margin-bottom: 20px;
}

/* Gift section */
.gift,
.gift-modal {
    --gift-green: var(--template-7-primary);
    --gift-green-light: var(--template-7-primary);
    --gift-green-surface: rgba(var(--template-7-primary-rgb), 0.08);
}

.gift__subtitle {
    color: var(--gift-green);
    text-align: center;
    font-family: 'Inter';
    font-size: 14px;
    font-style: italic;
    font-weight: 400;
    line-height: 1.65;
    width: min(100%, 440px);
    margin: auto;
    margin-top: 6px;
    margin-bottom: 18px;
    opacity: 0.92;
}

.gift .section-title {
    line-height: 1.2;
    text-shadow: 0 2px 3px rgba(0, 0, 0, 0.16);
}

.gift-box__image {
    position: absolute;
    width: 100%;
    height: 100%;
    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;
    width: min(100%, 350px);
    height: clamp(205px, 51cqw, 245px);
    padding: 24px 0;
    border-radius: 24px;
    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;
    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-image:
        linear-gradient(rgba(255, 255, 255, 0.7), rgba(255, 255, 255, 0.7)),
        url('../images/template-3/bg-frame.webp');
}

.gift-modal__title {
    color: var(--gift-green);
    text-align: center;
    font-family: "Great Vibes";
    font-size: clamp(28px, 3vw, 32px);
    font-style: normal;
    font-weight: 400;
    line-height: 60px;
}

.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__role {
    margin: 0 0 8px;
    padding: 4px 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.16);
    color: var(--gift-green);
    font-size: clamp(10px, 1.3vw, 13px);
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.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: var(--template-7-primary);
}

.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: var(--template-7-primary);
}

.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(var(--template-7-primary-rgb), 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(var(--template-7-primary-rgb), 0.12);
    border-radius: 6px;
}

.gift-qr-card--panel .gift-qr-card__download {
    background: rgba(var(--template-7-primary-rgb), 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: var(--template-7-primary);
    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(var(--template-7-primary-rgb), 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(var(--template-7-primary-rgb), 0.06);
    color: var(--gift-green);
    border: none;
}

.gift-qr-card--panel .gift-qr-card__copy.is-copied {
    border-color: var(--template-7-primary);
    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%;
    }
}

/* Thanks */
.gift-section-wrapper-bottom {
    position: relative;
    height: 500px;
}

.gift-thanks-banner {
    width: 100%;
    aspect-ratio: 3 / 2;
    overflow: hidden;
    height: 100%;
}

.gift-thanks-banner-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
}

.gift-section-wrapper-bottom-content {
    position: absolute;
    z-index: 1;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(180deg, rgba(var(--template-7-primary-rgb), 0.2) 0%, rgba(var(--template-7-primary-rgb), 0.2) 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding-block: 30px;
    padding-bottom: 50px;
}

.gift-thanks-title {
    font-family: 'Great Vibes', cursive;
    font-size: 38px;
    color: #fff;
    margin-bottom: 16px;
    text-shadow: 0px 4px 4px rgba(0, 0, 0, 0.25);
    z-index: 2;
}

.gift-thanks-text,
.gift-thanks-groom-bride {
    color: #fff;
    font-family: 'Literata', sans-serif;
    font-size: 12px;
    text-shadow: 0px 4px 4px rgba(0, 0, 0, 0.25), 0px 4px 4px rgba(0, 0, 0, 0.25);
    text-align: center;
}

.gift-thanks-groom-bride {
    margin-top: 14px;
    font-family: 'Great Vibes', cursive;
    line-height: 1.2;
    text-align: center;
    font-size: clamp(28px, 3vw, 32px);
    white-space: nowrap;
}

/* 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: 1px solid rgba(255, 255, 255, 0.35);
    background: #7F0404;
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 10px 24px -14px rgba(28, 35, 20, 0.7);
    transition: transform 0.25s ease, box-shadow 0.25s ease, background-color 0.25s ease;
}

.ws-music-toggle[disabled] {
    background: #b4b4b4;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
    opacity: 0.8;
}

.ws-music-toggle__icon {
    display: inline-flex;
    width: 1.4rem;
    height: 1.4rem;
}

.ws-music-toggle__icon svg {
    width: 100%;
    height: 100%;
    display: block;
}

.ws-music-toggle__icon--pause {
    display: none;
}

.ws-music-button-wrap.is-playing .ws-music-toggle__icon--play {
    display: none;
}

.ws-music-button-wrap.is-playing .ws-music-toggle__icon--pause {
    display: inline-flex;
}

.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;
}

.ws-music-wave-bars {
    display: inline-flex;
    align-items: center;
    gap: 2.5px;
    width: 22px;
    height: 22px;
    justify-content: center;
}

.ws-music-wave-bars span {
    display: block;
    width: 3px;
    border-radius: 2px;
    background: #fff;
    transform-origin: bottom center;
}

.ws-music-wave-bars span:nth-child(1) {
    height: 8px;
    animation: ws-bar 1.1s ease-in-out infinite;
    animation-delay: 0s;
}

.ws-music-wave-bars span:nth-child(2) {
    height: 14px;
    animation: ws-bar 1.1s ease-in-out infinite;
    animation-delay: 0.18s;
}

.ws-music-wave-bars span:nth-child(3) {
    height: 18px;
    animation: ws-bar 1.1s ease-in-out infinite;
    animation-delay: 0.08s;
}

.ws-music-wave-bars span:nth-child(4) {
    height: 12px;
    animation: ws-bar 1.1s ease-in-out infinite;
    animation-delay: 0.25s;
}

.ws-music-wave-bars span:nth-child(5) {
    height: 7px;
    animation: ws-bar 1.1s ease-in-out infinite;
    animation-delay: 0.04s;
}

@keyframes ws-bar {

    0%,
    100% {
        transform: scaleY(0.35);
    }

    50% {
        transform: scaleY(1);
    }
}

/* ===================== ALBUM SECTION ===================== */
.album-section {
    --ws-album-3d-dot-color: rgba(255, 248, 238, 0.42);
    --ws-album-3d-dot-active-color: #e7c58f;
    max-width: 100%;
    position: relative;
    background:
        radial-gradient(circle at 12% 0%, rgba(231, 197, 143, 0.14), transparent 38%),
        linear-gradient(155deg, #6b3035 0%, #7b3938 52%, #592a31 100%);
    padding-bottom: 100px;
    overflow: hidden;
    background: #511921;
}

.album-head {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 40px;
}

.album-head__title {
    margin: auto;
    display: flex;
    gap: 20px;
    margin-bottom: 16px;
}

.album-head__title span {
    color: #fff8ee;
    font-family: 'Literata', sans-serif;
    font-size: 26px;
    white-space: nowrap;
}

.album-head__title i {
    font-family: "Great Vibes";
    font-size: 26px;
    color: #ead0aa;
}

.album__flower-bottom {
    position: absolute;
    bottom: -80px;
    right: 0;
    width: 170px;
    filter: saturate(0.72) sepia(0.08);
    opacity: 0.9;
}

.album__desc {
    color: rgba(255, 248, 238, 0.88);
    text-align: center;
    font-family: 'Inter';
    font-size: 14px;
    font-style: normal;
    font-weight: 400;
    line-height: 160%;
    width: min(100%, 400px);
    margin: auto;
}

.album__subtitle {
    color: #fff;
    text-align: center;
    font-family: 'Inter';
    font-size: 12px;
    font-style: normal;
    font-weight: 500;
    line-height: normal;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.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;
}

.album-more {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.25);
    color: #fff;
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(18px, 2.05vw + 9.4px, 24px);
    letter-spacing: 3px;
    text-transform: uppercase;
}

.album-btn-more {
    display: flex;
    padding: clamp(8px, 0.5vw + 0.3rem, 12px) clamp(24px, 1.5vw + 1rem, 36px);
    justify-content: center;
    align-items: center;
    border-radius: 4px;
    background: linear-gradient(135deg, rgba(var(--template-7-primary-rgb), 0.22) 0%, rgba(var(--template-7-primary-rgb), 0.10) 100%);
    color: var(--template-7-primary);
    text-align: center;
    font-family: 'Inter';
    font-size: clamp(10px, 0.3vw + 0.5rem, 13px);
    font-style: normal;
    font-weight: 600;
    line-height: 1.5;
    letter-spacing: clamp(1px, 0.05vw + 0.05rem, 1.3px);
    text-transform: uppercase;
    border: none;
    margin: auto;
    margin-top: clamp(48px, 3vw + 1rem, 64px);
    cursor: pointer;
}

.album-btn-more:hover {
    background: rgba(var(--template-7-primary-rgb), 0.42);
}

.album-btn-more:active {
    transform: scale(0.98);
}

@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);
}
