﻿/* Tokens */
:root {
    --env-green: #2d5a3d;
    --env-green-dark: #1e3d2b;
    --env-cream: #f5f0e8;
    --env-cream-card: #f8f4ec;
    --env-gold: #9a8060;
    --env-gold-light: #c4a87a;
    --env-text-dark: #2a2318;
    --env-text-mid: #5a5040;
}

/* Scene wrapper */
#envelope-scene {
    position: fixed;
    inset: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    transition: opacity 0.85s ease, transform 0.85s ease;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.65), rgba(255, 255, 255, 0.65)),
        url('../images/template-3/bg-frame.webp');
}

#envelope-scene.hidden {
    opacity: 0;
    pointer-events: none;
    transform: scale(1.04);
}

#envelope-scene.is-opening {
    pointer-events: none;
}

body {
    --olive-dark: #5E8950;
    background: var(--body-bg);
    background-image:
        radial-gradient(ellipse 80% 50% at 50% -20%, rgba(126, 203, 160, 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;
}

/* ===================== ENVELOPE SCENE ===================== */
#envelope-scene.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

/* ===================== INVITATION CONTENT ===================== */
#invitation-content {
    display: none;
    width: min(100%, 450px);
    margin: 0 auto;
    opacity: 0;
    overflow: hidden;
    transition: opacity 0.8s ease, padding-top 0.8s ease;
    box-sizing: border-box;
    border-left: 1px solid rgba(126, 203, 160, 0.25);
    border-right: 1px solid rgba(126, 203, 160, 0.25);
    box-shadow:
        0 0 0 1px rgba(126, 203, 160, 0.10),
        0 40px 80px rgba(0, 0, 0, 0.6);
    width: 786px;
    background: #fff;
}

@media (max-width: 786px) {
    #invitation-content {
        width: min(100%, 450px);
        border-left: none;
        border-right: none;
        box-shadow: none;
    }
}

#invitation-content.visible {
    opacity: 1;
    padding-top: 0;
}

.ws-section {
    padding-inline: clamp(20px, 2.46vw + 9.7px, 29px);
    padding-block: 38px;
}

.last-section {
    padding-bottom: 76px;
}

.section-title {
    color: #4B382A;
    text-align: center;
    font-family: "Great Vibes";
    font-size: 40px;
    font-style: normal;
    font-weight: 400;
    line-height: 60px;
    /* 150% */
}

/* ===================== 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;
}

/* 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);
    }
}


/* rsvp */
.rsvp-btn-confirm {
    font-size: clamp(13px, 1.8vw, 14px);
    border-radius: 4px;
    background: #5E8950;
    color: #FFF;
    text-align: center;
    font-family: "Montserrat";
    font-style: normal;
    font-weight: 500;
    line-height: 1.5;
    letter-spacing: 1px;
    text-transform: uppercase;
    display: flex;
    padding: 10px 0;
    justify-content: center;
    align-items: center;
    align-self: stretch;
    width: 100%;
    border: 1px solid #5E8950;
    gap: 8px;
    cursor: pointer;
    width: min(100%, 500px);
    margin: auto;
    z-index: 10;
}

.rsvp-btn-close {
    font-size: clamp(13px, 1.8vw, 14px);
    border-radius: 4px;
    text-align: center;
    font-family: "Montserrat";
    font-style: normal;
    font-weight: 500;
    line-height: 1.5;
    letter-spacing: 1px;
    text-transform: uppercase;
    display: flex;
    padding: 10px 0;
    justify-content: center;
    align-items: center;
    align-self: stretch;
    width: 100%;
    gap: 8px;
    cursor: pointer;
    width: min(100%, 500px);
    margin: auto;
    z-index: 10;
    background: #ccc;
    border: 1px solid #ccc;
    color: #000;
}

.rsvp-btn-confirm:hover,
.rsvp-btn-close:hover {
    opacity: 0.9;
    transition: opacity 0.2s ease-in-out;
}

.rsvp__choice input {
    flex: 0 0 auto;
    margin: 0;
    accent-color: #5E8950;
}

.rsvp__notice {
    border-radius: 4px;
}

/* Envelop scene */
.env-top-left {
    position: fixed;
    left: 0;
    top: 0;
    width: 267px;
    opacity: 1;
    visibility: visible;
    transition: opacity 0.24s ease, visibility 0.24s ease;
}

.env-bottom-right {
    position: fixed;
    right: 0;
    bottom: 0;
    width: 267px;
    opacity: 1;
    visibility: visible;
    transition: opacity 0.24s ease, visibility 0.24s ease;
}

.env-card {
    position: relative;
    z-index: 5;
    text-align: center;
    padding: 2.6rem 2rem 2.4rem;
    width: min(500px, calc(100vw - 40px));
    overflow: hidden;
    transition: transform 0.7s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.45s ease, box-shadow 0.7s ease;
    will-change: transform, opacity;
    display: flex;
    flex-direction: column;
    gap: 24px;
    justify-content: center;
}

.env-title {
    color: #725906;
    text-align: center;
    font-family: 'Inter';
    font-size: 12px;
    font-style: normal;
    font-weight: 600;
    line-height: 16px;
    letter-spacing: 2.4px;
}

.env-names {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
    margin-bottom: 0.8rem;
    position: relative;
    z-index: 3;
    gap: 8px;
}

.env-amp,
.env-name {
    font-size: clamp(3rem, 10vw, 3rem);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: 0.01em;
    display: block;
    color: #725906;
    font-family: "Great Vibes";
}

.env-invite-label {
    color: #4D4638;
    text-align: center;
    font-family: 'Lora';
    font-size: 16px;
    font-style: italic;
    font-weight: 400;
    line-height: 24px;
}

.ws-home-envelope-toggle {
    display: flex;
    padding: 12px 32px;
    justify-content: center;
    align-items: center;
    border-radius: 12px;
    background: #9E8130;
    box-shadow: 0 10px 30px 0 rgba(158, 129, 48, 0.20);
    color: #FFF;
    text-align: center;
    font-style: normal;
    font-weight: 600;
    line-height: 16px;
    letter-spacing: 1.2px;
    border: none;
    width: fit-content;
    margin: auto;
    cursor: pointer;
}

.env-btn-text {
    font-family: 'Inter';
    font-size: 12px;
}

/* COUPLE SECTION */
.couple-section {
    overflow: hidden;
    min-height: 592px;
    padding-top: 30px;
}

.couple-section__content {
    position: relative;
}

.couple-section__title {
    color: #FFF;
    text-align: center;
    font-family: 'Lora';
    font-size: 12px;
    font-style: normal;
    font-weight: 600;
    line-height: 16px;
    letter-spacing: 2.4px;
    margin: 0;
    text-shadow: 0px 4px 4px rgba(0, 0, 0, 0.25);
}

.couple-section__date {
    color: #FFF;
    text-align: center;
    font-family: 'Lora';
    font-size: 12px;
    font-style: normal;
    font-weight: 400;
    line-height: 16px;
    letter-spacing: 2.4px;
    margin: 0;
    text-shadow: 0px 4px 4px rgba(0, 0, 0, 0.25);
}

.couple-section__names-wrapper {
    display: grid;
    grid-template-columns: 1fr 30px 1fr;
    align-items: center;
    gap: 8px;
    padding-inline: 40px;
}

.couple-section__name {
    color: #FFF;
    text-align: center;
    font-family: "Great Vibes";
    font-size: 40px;
    font-style: normal;
    font-weight: 400;
    line-height: 60px;
    padding-top: 14px;
    margin: 0;
    text-shadow: 0px 4px 4px rgba(0, 0, 0, 0.25);
}

.couple-section__divider {
    color: #FFF;
    text-align: center;
    font-family: "Great Vibes";
    font-size: 36px;
    font-style: normal;
    font-weight: 400;
    line-height: 40px;
    margin: 0;
}

/* couple banner */
.couple-hero {
    background-color: #F9F5EF;
    position: relative;
}

.couple-hero__bg--bottom {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 2;
    width: 100%;
}

.couple-hero__countdown {
    margin-top: 72px;
}

.couple-hero__countdown-title {
    color: #4D4638;
    text-align: center;
    font-family: 'Inter';
    font-size: 12px;
    font-style: normal;
    font-weight: 600;
    line-height: 16px;
    letter-spacing: 1.2px;
}

.couple-hero__wedding-text {
    width: 103px;
    margin-top: -22px;
}

.couple-hero__invite-text {
    width: 233px;
}

.couple-hero__bg--top {
    position: absolute;
    left: 0;
    right: 0;
    top: -144px;
    width: 100%;
}

.couple-hero__bg--top-left {
    position: absolute;
    top: -85px;
    left: 0;
    width: 182px;
}

.couple-hero__bg--top-right {
    position: absolute;
    top: -85px;
    right: 0;
    width: 182px;
}

.couple-hero__card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 36px;
    align-self: stretch;
    position: relative;
    z-index: 1;
    width: min(100%, 500px);
    margin: auto;
}

.couple-hero__list {
    display: grid;
    gap: 24px;
    position: relative;
    z-index: 1;
}

.couple-hero__image {
    width: 100%;
    height: 627px;
    border-top-left-radius: 999px;
    border-top-right-radius: 999px;
    background: #fff;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.couple-hero__names {
    position: relative;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-top: 48px;
}

.couple-hero__person {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.couple-hero__person-name {
    text-align: center;
    font-family: "Great Vibes";
    font-size: 40px;
    font-weight: 400;
    padding-top: 14px;
    color: #514036;
    line-height: 60px;
    width: fit-content;
    margin: 0 auto;
}

.couple-hero__person-name--groom {
    text-align: right;
    margin-top: -30px;
}

.couple-hero__person-name--bride {
    text-align: left;
    margin-bottom: -30px;
}

.couple-hero__divider {
    display: flex;
    position: absolute;
    justify-content: center;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
}

.couple-hero__countdown-units {
    display: flex;
    gap: 16px;
    justify-content: center;
    align-items: center;
}

.couple-hero__countdown-unit {
    display: flex;
    flex-direction: column;
}

.couple-hero__countdown-num {
    color: #725906;
    text-align: center;
    font-family: 'Inter';
    font-size: 20px;
    font-style: normal;
    font-weight: 700;
    line-height: 24px;
    letter-spacing: 1px;
    padding-block: 8px;
}

.couple-hero__countdown-name {
    color: #4D4638;
    text-align: center;
    font-family: 'Inter';
    font-size: 12px;
    font-style: normal;
    font-weight: 600;
    line-height: 16px;
    letter-spacing: 1.8px;
}

.couple-hero__countdown-separator {
    color: #725906;
    text-align: center;
    font-family: 'Inter';
    font-size: 20px;
    font-style: normal;
    font-weight: 500;
    line-height: 24px;
    letter-spacing: 1px;
    margin-top: -18px;
}

/* family info */

.family-info__heart-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.family-info__heart {
    display: flex;
    width: 48px;
    height: 48px;
    justify-content: center;
    align-items: center;
    border-radius: 999px;
    border: 1px solid #DECC9C;
    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(222, 204, 156, 0) 0deg, #9E8130 72deg, #DECC9C 128deg, rgba(222, 204, 156, 0) 190deg, rgba(222, 204, 156, 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;
}

@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, #9E8130 0%, #DECC9C 45%, rgba(222, 204, 156, 0.00) 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 {
    font-size: clamp(36px, 5.5vw, 48px);
    color: #514036;
    text-align: center;
    font-family: "Great Vibes";
    font-style: normal;
    font-weight: 400;
    line-height: 1.2;
    margin: 0;
}

.family-info__description {
    color: #8F7B67;
    text-align: center;
    font-family: 'Inter';
    font-size: 14px;
    font-style: normal;
    font-weight: 400;
    line-height: normal;
    max-width: 286px;
}

.family-info__guest {
    color: #725906;
    text-align: center;
    font-family: "Great Vibes";
    font-size: 42px;
    font-style: normal;
    font-weight: 400;
    line-height: 110%;
    text-transform: capitalize;
}

.family-info__line {
    width: 284px;
    border: 1px solid #C7B589;
    border-style: dashed;
}

.family-info__title {
    color: #A98245;
    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;
}

.family-info__parents-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
}

.family-info__parents-column {
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: center;
    padding-bottom: 12px;
}

.family-info__parents-label {
    color: #A98245;
    text-align: center;
    font-family: 'Inter';
    font-size: clamp(12px, 1.8vw, 16px);
    font-style: normal;
    font-weight: 400;
    line-height: normal;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.family-info__parents-address,
.family-info__parents-name {
    color: #4B382A;
    text-align: center;
    font-family: 'Inter';
    font-size: 14px;
    font-style: normal;
    font-weight: 500;
    line-height: normal;
}

/* Party section */
.party__img {
    width: 100%;
}

.party__img-placeholder {
    width: 100%;
    aspect-ratio: 16/9;
}

.party__img-placeholder .ws-image-placeholder {
    min-height: 100%;
}

.party_divider {
    background: rgba(222, 204, 156, 0.30);
    width: 1px;
    height: 48px;
}

.party-section__place {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.party_name {
    color: #9E8130;
    text-align: center;
    font-family: 'Inter';
    font-size: 12px;
    font-style: normal;
    font-weight: 600;
    line-height: 16px;
    letter-spacing: 1.8px;
    text-transform: uppercase;
}

.party__button {
    display: flex;
    padding: 12px 24px;
    justify-content: center;
    align-items: center;
    border-radius: 99px;
    background: #4B382A;
    color: #FFF;
    text-align: center;
    font-family: 'Inter';
    font-size: 16px;
    font-style: normal;
    font-weight: 600;
    line-height: 16px;
    margin-top: 8px;
}

.party_address {
    color: #1E1B15;
    text-align: center;
    font-family: 'Inter';
    font-size: 28px;
    font-style: normal;
    font-weight: 500;
    line-height: 36px;
    max-width: 254px;
    text-transform: capitalize;
}

.party-section__date,
.party-section__date-label {
    color: #7E7666;
    text-align: center;
    font-family: 'Inter';
    font-size: 14px;
    font-style: normal;
    font-weight: 400;
    line-height: 15px;
    text-transform: uppercase;
}

.party-section__datetime {
    color: #1E1B15;
    text-align: center;
    font-family: 'Inter';
    font-size: 32px;
    font-style: normal;
    font-weight: 700;
    line-height: 32px;
    letter-spacing: 4px;
    padding-block: 4px;
}

.party-section__inner {
    display: grid;
    gap: 24px;
    width: min(100%, 500px);
    margin: auto;
}

.party__item {
    border-radius: 16px;
    border: 0.5px solid #A08252;
    background: #FFF;
    overflow: hidden;
}

.party-section__content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 38px 32px;
    gap: 16px;
    width: min(100%, 500px);
    margin: auto;
}

.party-section__date-wrapper {
    border-top: 1px solid #D3D3D3;
    border-bottom: 1px solid #D3D3D3;
    display: flex;
    padding: 16px 0;
    justify-content: center;
    align-items: center;
    gap: 16px;
    align-self: stretch;
}

.location-icon {
    display: flex;
    width: 35px;
    height: 35px;
    padding: 6px 7px;
    justify-content: center;
    align-items: center;
    gap: 10px;
    border-radius: 999px;
    border: 1px solid #9E8130;
}

.party-section__addess {
    color: #8F7B67;
    text-align: center;
    font-family: 'Inter';
    font-size: 16px;
    font-style: normal;
    font-weight: 400;
    line-height: 24px;
}

/* calendar section */

.calendar-divider {
    width: 100%;
    margin-top: 30px;
}

.template-4-cover__banner img {
    width: 100%;
}

.template-4-cover__banner--placeholder {
    aspect-ratio: 16 / 9;
}

.template-4-cover__banner--placeholder .ws-image-placeholder {
    min-height: 100%;
}

.calendar__subtitle {
    color: #A98245;
    text-align: center;
    font-family: 'Inter';
    font-size: 12px;
    font-style: normal;
    font-weight: 500;
    line-height: normal;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 8px;
}

.ws-mini-calendar--love-story {
    width: min(100%, 380px);
    padding: 28px 20px 24px;
    border-radius: 0;
    box-shadow: none;
    padding-bottom: 0;
    margin: auto;
}

.ws-mini-calendar__month-title {
    color: #514036;
    font-family: "Great Vibes";
    font-size: 42px;
    font-style: normal;
    font-weight: 400;
    line-height: 56px;
    text-align: center;
    margin-bottom: 24px;
}

.ws-mini-calendar__grid {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 16px;
}

.ws-mini-calendar__dow,
.ws-mini-calendar__cell {
    display: flex;
    align-items: center;
    justify-content: center;
}

.ws-mini-calendar__dow {
    color: #93702B;
    text-align: center;
    font-family: 'Inter';
    font-size: 11px;
    font-style: normal;
    font-weight: 500;
    line-height: normal;
    letter-spacing: 0.55px;
    padding-bottom: 12px;
}

.ws-mini-calendar__cell {
    color: #1A1A1A;
    font-family: 'Inter';
    font-size: 14px;
    font-style: normal;
    font-weight: 400;
    line-height: 22px;
    position: relative;
}

.ws-mini-calendar__num {
    color: #B80014;
    font-family: 'Inter';
    font-size: 14px;
    font-style: normal;
    font-weight: 700;
    line-height: 22px;
}

.ws-mini-calendar__cell--empty {
    background: transparent;
}

.ws-mini-calendar__cell--event {
    color: var(--t3-primary);
    background: transparent;
    box-shadow: none;
}

.ws-mini-calendar__heart {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 37px;
    height: 37px;
    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(--t3-primary);
    overflow: visible;
}

@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 */
.timeline {
    padding-top: 100px;
    padding-bottom: 150px;
}

.timeline__subtitle {
    color: #A98245;
    text-align: center;
    font-family: 'Inter';
    font-size: 12px;
    font-style: normal;
    font-weight: 500;
    line-height: normal;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 8px;
}

.timeline {
    position: relative;
    background-color: #F9F5EF;
    z-index: 1;
}

.timeline__inner {
    position: relative;
    z-index: 1;
}

.ws-template-4-timeline__background-placeholder {
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
}

.timeline__list {
    list-style: none;
    margin: 0 auto;
    padding: 0;
    max-width: min(100%, 500px);
}

.timeline__list--empty {
    max-width: min(100%, 420px);
}

.timeline__content-placeholder {
    --ws-content-placeholder-border-color: rgba(169, 130, 69, 0.38);
    --ws-content-placeholder-background: rgba(255, 255, 255, 0.55);
    --ws-content-placeholder-icon-color: #A98245;
    --ws-content-placeholder-icon-border: 1px solid rgba(169, 130, 69, 0.32);
    --ws-content-placeholder-icon-background: #fff;
    --ws-content-placeholder-title-color: #4B382A;
    --ws-content-placeholder-path-color: #8F7B67;
}

.timeline__item {
    display: grid;
    grid-template-columns: 1fr 95px 1fr;
    position: relative;
    align-items: stretch;
}

.timeline__marker {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 0.35rem;
    padding-bottom: 20px;
}

.timeline__marker::after {
    content: "";
    position: absolute;
    top: 68px;
    left: 50%;
    width: 2px;
    bottom: calc(-1 * clamp(1.1rem, 2.8vw, 1.65rem));
    transform: translateX(-50%);
    border-radius: 2px;
    background: rgba(169, 130, 69, 0.28);
    height: 28px;
}

.timeline__item:last-child .timeline__marker::after {
    display: none;
}

.timeline__dot {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 65px;
    height: 65px;
}

.timeline__dot-icon {
    display: block;
    width: 65px;
    height: 65px;
    color: #C7B589;
}

.timeline__dot i {
    font-size: 18px;
    line-height: 1;
}

.timeline__card {
    padding-top: clamp(1rem, 2.4vw, 1.35rem);
    padding-top: 20px;
}

.timeline__card--odd {
    text-align: end;
}

.timeline__card--even {
    text-align: start;
}

.timeline__date {
    color: #A98245;
    font-family: 'Inter';
    font-size: 14px;
    font-style: normal;
    font-weight: 700;
    line-height: normal;
}

.timeline__heading {
    color: #4B382A;
    font-family: 'Inter';
    font-size: 18px;
    font-style: normal;
    font-weight: 400;
    line-height: normal;
}

.timeline__description {
    color: #A98245;
    font-family: "Inter";
    font-size: clamp(14px, 2vw, 16px);
    font-style: normal;
    font-weight: 400;
    line-height: 1.6;
}

/* ===================== ALBUM SECTION ===================== */
.album-section {
    max-width: 100%;
    position: relative;
    background: #fff;
}

.album-head {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 40px;
}

.album__desc {
    color: #8F7B67;
    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: #A98245;
    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%;
}

.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, #D8B46A 0%, #F8DD9B 100%);
    color: #7F0404;
    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: #e0bf6a;
}

.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);
}

.rsvp-section {
    background: #FBF7EF;
    display: flex;
    justify-content: center;
    padding-block: 76px;
}

.rsvp-section__inner {
    width: min(100%, 500px);
    display: flex;
    padding: 32px;
    flex-direction: column;
    align-items: center;
    gap: 24px;
    align-self: stretch;
    border-radius: 28px;
    border: 1px solid rgba(169, 130, 69, 0.28);
    background: #FFF;
}

.rsvp-section__title {
    color: #4B382A;
    text-align: center;
    font-family: "Great Vibes";
    font-size: 42px;
    font-style: normal;
    font-weight: 400;
    line-height: 48px;
    margin: 0;
}

.rsvp-section__subtitle {
    color: #8F7B67;
    text-align: center;
    font-family: 'Inter';
    font-size: 14px;
    font-style: normal;
    font-weight: 400;
    line-height: 1.6;
    margin: 0;
}

.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: #4B382A;
    font-family: 'Inter';
    font-size: 13px;
    font-weight: 600;
    line-height: 1.3;
}

.rsvp-section__field input,
.rsvp-section__field select {
    width: 100%;
    min-height: 48px;
    padding: 12px 14px;
    border: 1px solid rgba(169, 130, 69, 0.32);
    border-radius: 12px;
    background: #FFFDF9;
    color: #4B382A;
    font-family: 'Inter';
    font-size: 14px;
    font-weight: 400;
    line-height: 1.4;
    outline: none;
    transition: border-color 180ms ease, box-shadow 180ms ease;
}

.rsvp-section__field select {
    cursor: pointer;
    padding-right: 48px;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-color: #FFFDF9;
    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: #A98245;
    box-shadow: 0 0 0 3px rgba(169, 130, 69, 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: #4B382A;
}

.rsvp-section__button:hover {
    background: #3D2E22;
}

.rsvp-section__button:disabled {
    cursor: wait;
    opacity: 0.72;
    transform: none;
}

.rsvp-section .ws-wedding-rsvp-inline-feedback {
    width: 100%;
    margin: 0;
}

@media (max-width: 575px) {
    .rsvp-section__inner {
        padding: 28px 20px;
        border-radius: 22px;
    }

    .rsvp-section__title {
        font-size: 38px;
        line-height: 44px;
    }
}

/* Dresscode */
.dresscode-section__inner {
    display: flex;
    padding: 40px 16px;
    flex-direction: column;
    align-items: center;
    gap: 24px;
    border-radius: 24px;
    border: 1px solid rgba(169, 130, 69, 0.28);
    background: #FFF;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    width: min(100%, 500px);
    margin: auto;
}

.dresscode-section__title {
    color: #4B382A;
    text-align: center;
    font-family: 'Great Vibes', cursive;
    font-size: 42px;
    font-style: normal;
    font-weight: 400;
    line-height: 32px;
}

.dresscode-section__subtitle {
    color: #4D4638;
    text-align: center;
    font-family: 'Inter';
    font-size: 16px;
    font-style: normal;
    font-weight: 400;
    line-height: 24px;
    max-width: 196px;
}

.dresscode-items {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

.dresscode-item__color {
    border-radius: 12px;
    background: var(--dresscode-color, #F5EDE2);
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    width: 48px;
    height: 48px;
    border: 1px solid rgba(222, 204, 156, 0.42);
}

/* Guestbook */
.guestbook-section {
    text-align: center;
    color: var(--on-dark-text);
    position: relative;
    z-index: 1;
}

.guestbook-section__subtitle {
    color: #A98245;
    text-align: center;
    font-family: 'Inter';
    font-size: 12px;
    font-style: normal;
    font-weight: 700;
    line-height: normal;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 12px;
}

.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);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    padding: 20px;
    width: min(100%, 500px);
    margin: auto;
    border-radius: 28px;
    border: 1px solid rgba(169, 130, 69, 0.60);
    background: #FBF7EF;
}

.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: #9E8130;
    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;
    border-radius: 16px;
    border: 1px solid rgba(169, 130, 69, 0.28);
    background: #FFF;
}

.guestbook-field input::placeholder,
.guestbook-field textarea::placeholder {
    color: #9E8130;
}

.guestbook-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: center;
    padding-top: 8px;
}

.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: 12px;
    letter-spacing: 1.2px;
    background: #9E8130;
    border: 1px solid #D8C7A3;
    cursor: pointer;
    padding: 16px 0;
    border-radius: 10px;
    text-transform: uppercase;
    border-radius: 30px;
    background: #4B382A;
}

.btn-guestbook:hover {
    transition: opacity 0.2s ease-in-out;
    opacity: .9;
}

.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: #9E8130;
}

.guestbook-notice.is-error {
    color: #e8a0a0;
}

.guestbook-notice[hidden] {
    display: none;
}

.guestbook-divider {
    width: 100%;
    height: 1px;
    background: linear-gradient(to right, transparent, rgba(255, 255, 255, 0.2), transparent);
}

.guestbook-list-wrap {
    display: grid;
    gap: clamp(16px, 2.5vw, 24px);
    padding-right: 6px;
    padding-top: 20px;
    z-index: 2;
}

.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;
}

@media (max-width: 480px) {
    .guestbook-list {
        -webkit-overflow-scrolling: touch;
        scrollbar-width: thin;
        scrollbar-color: #9E8130 rgba(150, 105, 5, .3);
    }
}

.guestbook-list::-webkit-scrollbar {
    width: 4px;
    border-radius: 999px;
}

.guestbook-list::-webkit-scrollbar-track {
    background: transparent;
    background: rgba(150, 105, 5, .3) !important;
    border-radius: 999px;
}

.guestbook-list::-webkit-scrollbar-thumb {
    background: #9E8130;
    border-radius: 999px;
    border: 0;
}

.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: #9E8130;
    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: #9E8130;
    font-family: 'Inter', serif;
}

.guestbook-entry__message::before {
    content: none;
}

.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: 350px;
    position: absolute;
    top: 13px;
    left: -83px;
    opacity: 0.3;
}

.guestbook-section_desc {
    font-family: 'Literata', sans-serif;
    font-size: 14px;
    font-style: italic;
    color: #9E8130;
    width: min(100%, 350px);
    margin: auto;
    margin-bottom: 20px;
}


/* Gift section */
.gift__subtitle {
    color: #4D4638;
    text-align: center;
    font-family: 'Inter';
    font-size: 16px;
    font-style: italic;
    font-weight: 400;
    line-height: 24px;
    width: min(100%, 500px);
    margin: auto;
    margin-bottom: 24px;
}

.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,
.gift-box:not(.gift-box--disabled) .gift-box__button {
    animation: gift-box-shake 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: 50%;
    transform: translate(-50%, -50%);
    transform-origin: 50% 50%;
}

.gift-box {
    appearance: none;
    border: none;
    height: 319px;
    padding: 24px 0;
    border-radius: 24px;
    background: #A08252;
    position: relative;
    width: 100%;
    cursor: pointer;
    width: min(100%, 450px);
}

.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 {
        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: #f7f1e6;
    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.65), rgba(255, 255, 255, 0.65)),
        url('../images/template-3/bg-frame.webp');
}

.gift-modal__title {
    color: #4B382A;
    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: #4B382A;
    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: #4B382A;
    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: #4B382A;
    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: #4B382A;
    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: #4B382A;
    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: #4B382A;
    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: #4B382A;
    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: #4B382A;
    color: #355643;
}

.gift-qr-card__name {
    color: #4B382A;
    font-size: clamp(12px, 1.6vw, 15px);
    font-weight: 400;
    line-height: 1.5;
    text-transform: uppercase;
}

.gift__text {
    color: #D8C7A3;
    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: #4B382A;
}

.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: #4B382A;
    font-size: clamp(8px, 1.1vw, 11px);
    padding: 3px 6px;
}

.gift-qr-card--panel .gift-qr-card__download.is-downloaded {
    border-color: #355643;
    color: #4B382A;
}

.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: #4B382A;
    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: #4B382A;
    border: none;
}

.gift-qr-card--panel .gift-qr-card__copy.is-copied {
    border-color: #355643;
    color: #4B382A;
}

.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) {
    .couple-section {
        height: 800px;
    }

    .couple-hero__bg--top {
        top: -265px;
    }

    .gift__top {
        bottom: 80px;
    }


    .gift-qr-card__image img {
        max-width: 180px;
    }

    .gift-qr-card--panel .gift-qr-card__image img {
        max-width: 160px;
    }
}

/* Thanks */
.gift__bottom {
    position: relative;
    height: 500px;
}

.gift-thanks__banner {
    width: 100%;
    aspect-ratio: 3 / 2;
    overflow: hidden;
    height: 100%;
}

.gift-thanks__banner-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
}

.gift__bottom-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(190, 171, 126, 0.6);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding-block: 30px;
}

.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__names {
    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);
}

.gift-thanks__names {
    margin-top: 14px;
    font-family: 'Great Vibes', cursive;
    font-size: 32px;
    line-height: 1.2;
    text-align: center;
}

/* Thanks section */

.thanks__banner[data-aos] {
    width: 100%;
    height: auto;
    pointer-events: none;
}

.thanks__banner-placeholder {
    width: 100%;
    aspect-ratio: 3 / 2;
    overflow: hidden;
}

.thanks-section__inner {
    border: 1px solid #EFE09E;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 24px;
    padding-bottom: 136px;
    width: min(100%, 500px);
    margin: auto;
}

.thanks__text {
    width: 268px;
}

.thanks__message {
    color: #1F1200;
    text-align: center;
    font-family: 'Inter';
    font-size: 16px;
    font-style: normal;
    font-weight: 400;
    line-height: 24px;
    gap: 24px;
    z-index: 2;
}

.thanks-section {
    position: relative;
    padding-top: 40px;
}

.thanks__bg {
    width: 100%;
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    pointer-events: none;
}

/* Love story */

.lovestory {
    position: relative;
}

.lovestory__description {
    color: #1E1B15;
    text-align: center;
    font-family: "Inter";
    font-size: 16px;
    font-style: normal;
    font-weight: 400;
    line-height: 26px;
    padding-block: 40px;
    width: min(100%, 500px);
    margin: auto;
}

.lovestory__subtitle {
    color: #9E8130;
    display: flex;
    justify-content: center;
    margin-bottom: 8px;
}

.lovestory__grid {
    padding: 20px;
    position: relative;
    width: min(100%, 500px);
    margin: auto;
}

.lovestory__row {
    display: grid;
    padding: 10px;
    z-index: 2;
    position: relative;
}

.lovestory__row--top {
    grid-template-columns: 6fr 4fr;
    align-items: start;
}

.lovestory__row--bottom {
    grid-template-columns: 4fr 6fr;
    gap: clamp(20px, 5.13vw, 24px);
    align-items: center;
    margin-top: -203px;
}

.lovestory__photo-frame {
    width: 100%;
    aspect-ratio: 203 / 250;
    padding: 9px;
    background: #fff;
    max-width: 255px;
    box-shadow: 0 4px 4px 0 rgba(127, 112, 91, 0.31);
}

.lovestory__row--top .lovestory__photo {
    display: flex;
    justify-content: flex-end;
}

.lovestory__row--top .lovestory__photo-frame {
    rotate: -4.5deg;
}

.lovestory__row--bottom .lovestory__photo {
    display: flex;
    justify-content: flex-start;
}

.lovestory__row--bottom .lovestory__photo-frame {
    rotate: 3.5deg;
}

.lovestory__photo-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.lovestory__spacer {
    display: flex;
    min-width: 0;
}

.lovestory__row--top .lovestory__spacer {
    justify-content: left;
}

.lovestory__row--bottom .lovestory__spacer {
    justify-content: right;
}

.lovestory__line-circle {
    position: absolute;
    inset: 0;
    width: 100%;
}

.lovestory__flower {
    position: absolute;
    bottom: -134px;
    left: 0;
    width: 203px;
    z-index: 3;
}

.lovestory__leaf {
    position: absolute;
    left: 0;
    top: 146px;
    width: 77px;
}

@keyframes rotate-in-groom {
    from {
        opacity: 0;
        transform: perspective(1000px) rotateZ(-90deg);
    }

    to {
        opacity: 1;
        transform: perspective(1000px) rotateZ(-10.5deg);
    }
}

@keyframes rotate-in-bride {
    from {
        opacity: 0;
        transform: perspective(1000px) rotateZ(90deg);
    }

    to {
        opacity: 1;
        transform: perspective(1000px) rotateZ(10.5deg);
    }
}

.lovestory__row--top [data-aos="rotate-in-groom"].aos-animate {
    animation: rotate-in-groom 1.5s ease-in-out forwards;
}

.lovestory__row--bottom [data-aos="rotate-in-bride"].aos-animate {
    animation: rotate-in-bride 1.5s ease-in-out forwards;
}

.vowry-me {
    color: #9E8130;
}

/* =====================================================================
   DESKTOP TYPOGRAPHY SCALE
   Base rules above are tuned for mobile widths. #invitation-content is
   fixed at 786px from 787px viewports up, so text sitting inside it looks
   undersized on desktop. This block raises font-size (and matching
   line-height) only for that breakpoint — layout, color, spacing, and the
   mobile experience are untouched.
   ===================================================================== */
@media screen and (min-width: 787px) {

    /* Section eyebrow / script titles */
    .section-title {
        font-size: 52px;
        line-height: 72px;
    }

    /* Envelope scene */
    .env-title,
    .env-btn-text {
        font-size: 13px;
    }

    .env-amp,
    .env-name {
        font-size: 4rem;
    }

    .env-invite-label {
        font-size: 18px;
        line-height: 27px;
    }

    /* Couple section (dark band names) */
    .couple-section__title,
    .couple-section__date {
        font-size: 13px;
    }

    .couple-section__name {
        font-size: 52px;
        line-height: 72px;
    }

    .couple-section__divider {
        font-size: 46px;
        line-height: 50px;
    }

    /* Couple hero / countdown */
    .couple-hero__countdown-title,
    .couple-hero__countdown-name {
        font-size: 13px;
    }

    .couple-hero__countdown-num,
    .couple-hero__countdown-separator {
        font-size: 26px;
        line-height: 30px;
    }

    .couple-hero__person-name {
        font-size: 52px;
        line-height: 72px;
    }

    /* Family info */
    .family-info__description {
        font-size: 16px;
        line-height: 1.5;
    }

    .family-info__guest {
        font-size: 54px;
    }

    .family-info__title {
        font-size: 15px;
    }

    .family-info__parents-address,
    .family-info__parents-name {
        font-size: 15px;
    }

    /* Party / venue */
    .party_name {
        font-size: 13px;
    }

    .party__button {
        font-size: 17px;
    }

    .party_address {
        font-size: 34px;
        line-height: 44px;
    }

    .party-section__date,
    .party-section__date-label {
        font-size: 15px;
    }

    .party-section__datetime {
        font-size: 40px;
        line-height: 44px;
        letter-spacing: 5px;
    }

    .party-section__addess {
        font-size: 17px;
        line-height: 26px;
    }

    /* Calendar */
    .calendar__subtitle {
        font-size: 13px;
    }

    .ws-mini-calendar__month-title {
        font-size: 52px;
        line-height: 64px;
    }

    .ws-mini-calendar__dow {
        font-size: 12px;
    }

    .ws-mini-calendar__cell,
    .ws-mini-calendar__num {
        font-size: 15px;
    }

    /* Timeline */
    .timeline__subtitle {
        font-size: 13px;
    }

    .timeline__date {
        font-size: 15px;
    }

    .timeline__heading {
        font-size: 21px;
    }

    .timeline__description {
        font-size: 17px;
    }

    /* Album */
    .album__subtitle {
        font-size: 13px;
    }

    .album__desc {
        font-size: 15px;
    }

    .album-more {
        font-size: 26px;
    }

    .album-btn-more {
        font-size: 14px;
        letter-spacing: 1.3px;
    }

    /* RSVP */
    .rsvp-section__title {
        font-size: 52px;
        line-height: 58px;
    }

    .rsvp-section__subtitle {
        font-size: 15px;
    }

    .rsvp-section__field {
        font-size: 14px;
    }

    .rsvp-section__field input,
    .rsvp-section__field select {
        font-size: 15px;
    }

    .rsvp-section__button {
        font-size: 15px;
    }

    .rsvp-btn-confirm,
    .rsvp-btn-close {
        font-size: 15px;
    }

    /* Dresscode */
    .dresscode-section__title {
        font-size: 52px;
        line-height: 44px;
    }

    .dresscode-section__subtitle {
        font-size: 17px;
        line-height: 26px;
    }

    /* Guestbook */
    .guestbook-section__subtitle {
        font-size: 13px;
    }

    .guestbook-field input,
    .guestbook-field textarea {
        font-size: 18px;
    }

    .btn-guestbook {
        font-size: 17px;
    }

    .guestbook-notice {
        font-size: 15px;
    }

    .guestbook-entry__name {
        font-size: 16px;
    }

    .guestbook-entry__message {
        font-size: 15px;
    }

    .guestbook-empty {
        font-size: 18px;
    }

    .guestbook-section_desc {
        font-size: 15px;
    }

    /* Gift */
    .gift__subtitle {
        font-size: 17px;
        line-height: 26px;
    }

    .gift-qr-card__role {
        font-size: 14px;
    }

    .gift-qr-card__download {
        font-size: 12px;
    }

    .gift-qr-card__bank,
    .gift-qr-card__name {
        font-size: 16px;
    }

    .gift-qr-card__number,
    .gift-qr-card__number-value {
        font-size: 15px;
    }

    .gift__text {
        font-size: 18px;
    }

    .gift-qr-card--panel .gift-qr-card__role {
        font-size: 14px;
    }

    .gift-qr-card--panel .gift-qr-card__bank {
        font-size: 14px;
    }

    .gift-qr-card--panel .gift-qr-card__number,
    .gift-qr-card--panel .gift-qr-card__number-value {
        font-size: 14px;
    }

    .gift-qr-card--panel .gift-qr-card__name {
        font-size: 13px;
    }

    /* Gift thanks banner */
    .gift-thanks__title {
        font-size: 46px;
    }

    .gift-thanks__text,
    .gift-thanks__names {
        font-size: 14px;
    }

    .gift-thanks__names {
        font-size: 40px;
    }

    /* Thanks section */
    .thanks__message {
        font-size: 18px;
        line-height: 27px;
    }

    /* Love story */
    .lovestory__description {
        font-size: 18px;
        line-height: 28px;
    }
}
