﻿/* Tokens */
:root {
    --t1-primary: #701620;
    --t1-secondary: #D8C7A3;
    --olive-dark: #7F0404;
    --t3-primary: rgba(150, 105, 5, 1);
}

@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: #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;
}

/* ===================== 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(126, 203, 160, 0.10),
        0 40px 80px rgba(0, 0, 0, 0.6);
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.65), rgba(255, 255, 255, 0.65)),
        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: 0 0 30px rgba(126, 203, 160, 0.25);
    font-weight: 400;
    line-height: 1.4;
    font-size: 42px;
    font-style: italic;
    color: var(--t3-primary);
    font-family: 'Great Vibes', cursive;
    /* text-transform: capitalize; */
    text-align: center;
}

/* ===================== 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;
    display: flex;
    overflow: hidden;
    pointer-events: auto;
}

.ws-template-3-envelope-scene .ws-envelope-panel {
    width: 50%;
    height: 100%;
    flex: 0 0 50%;
    overflow: hidden;
    background-size: cover;
    background-repeat: no-repeat;
    transform: translateX(0);
    transition: none;
}

.ws-template-3-envelope-scene .ws-envelope-panel--left {
    background-position: right center;
}

.ws-template-3-envelope-scene .ws-envelope-panel--right {
    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: #8a7442;
    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;
}

.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;
}

/* Event section */
.family-info__description {
    color: var(--t3-primary);
    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;
    text-shadow: 0px 4px 4px rgba(0, 0, 0, 0.15);
}

.family-info__line {
    width: 284px;
    border: 1px solid #C7B589;
    border-style: dashed;
}

.family-info__title {
    color: var(--t3-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;
}

.cover-bg-right {
    position: absolute;
    width: 197px;
    right: -41px;
    top: -120px;
}

.info-short-name {
    margin: auto;
    width: 100%;
    text-align: center;
    padding-block: 12px;
}

.info-short-name span {
    font-size: 60px;
    text-shadow: 0px 4px 4px rgba(0, 0, 0, 0.25);
    font-family: 'Great Vibes', cursive;
    color: var(--t3-primary);
}

.ceremony-section {
    position: relative;
    padding-bottom: 0;
    z-index: 1;
}

.event-info-wrapper {
    position: relative;
    padding-top: 0;
    z-index: 2;
    padding-bottom: 100px;
}


.cover-family__parents-grid {
    display: grid;
    grid-template-columns: 1fr 18px 1fr;
}

.family-divider {
    width: 2px;
    height: 100%;
    background: var(--t3-primary);
    margin: auto;
    opacity: .7;
}

.cover-family__parents-col {
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: center;
    padding-bottom: 12px;
}

.cover-family__parents-label {
    text-align: center;
    font-size: clamp(12px, 1.8vw, 16px);
    color: var(--t3-primary);
    text-align: center;
    font-weight: 400;
    line-height: 20px;
    font-size: 18px;
    font-weight: bold;
    text-transform: uppercase;
    font-family: 'Playfair Display', sans-serif;
}

.cover-family__parents-address,
.cover-family__parents-name {
    font-size: clamp(14px, 2vw, 20px);
    color: var(--t3-primary);
    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-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;
    padding-top: 24px;
}

.event-info-list {
    display: grid;
    gap: 24px;
    position: relative;
    z-index: 1;
}

.event-info__text {
    font-size: 15px;
    color: var(--t3-primary);
    text-align: center;
    font-family: 'Playfair Display', sans-serif;
    font-style: normal;
    font-weight: 400;
    line-height: 1.5;
    letter-spacing: 1px;
    text-transform: uppercase;
    max-width: 300px;
}

.event-info__couple-name {
    display: flex;
    flex-direction: column;
}

.groom,
.bride {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.bride-name,
.groom-name {
    font-size: clamp(36px, 5.5vw, 38px);
    color: var(--t3-primary);
    text-align: center;
    font-style: normal;
    font-weight: 600;
    line-height: 44px;
    font-family: 'Great Vibes', cursive;
    text-shadow: 0px 4px 4px rgba(0, 0, 0, 0.15);
    opacity: .9;
}

.event-info__couple-divider {
    color: var(--t3-primary);
    text-align: center;
    font-family: 'Great Vibes', cursive;
    font-size: clamp(36px, 5.5vw, 48px);
    font-style: italic;
    font-weight: 400;
    line-height: 1.4;
}


.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__label {
    font-size: clamp(13px, 1.8vw, 17px);
    color: var(--t3-primary);
    text-align: center;
    font-style: normal;
    font-weight: 400;
    line-height: 16px;
    letter-spacing: 0.6px;
    text-transform: uppercase;
}

.event-calendar__event-name,
.event-calendar__place {
    color: #4A4A4A;
    text-align: center;
    font-family: "Montserrat";
    font-size: clamp(13px, 1.8vw, 17px);
    font-style: normal;
    line-height: 1.5;
}

.event-calendar__event-name {
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 4px;
    color: var(--t3-primary);
}

.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(--t3-primary), transparent);
    opacity: 0.4;
}

.event-calendar__place {
    font-weight: 400;
    margin-top: 8px;
}

.event-calendar__time {
    color: var(--t3-primary);
    text-align: center;
    font-family: 'Yeseva One', sans-serif;
    font-style: normal;
    font-weight: 600;
    line-height: 40px;
    font-size: 22px;
}

.event-calendar__month,
.event-calendar__weekday {
    font-size: 16px;
    color: var(--t3-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(--t3-primary);
    border-bottom: 1px solid var(--t3-primary);
}

.event-calendar__day {
    font-size: 48px;
    color: var(--t3-primary);
    text-align: center;
    font-family: 'Yeseva One', sans-serif;
    font-style: normal;
    font-weight: 400;
    line-height: 32px;
    font-family: 'Yeseva One', sans-serif;
}

.event-calendar__year {
    font-size: clamp(15px, 2.3vw, 26px);
    color: var(--t3-primary);
    text-align: center;
    font-family: "Cormorant", serif;
    font-style: normal;
    font-weight: 400;
    line-height: 32px;
}

.event-calendar__vietnamese-date {
    color: var(--t3-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;
}

.event-info__couple-divider-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    opacity: 0.48;
    width: 144px;
    height: 144px;
}

.cover-family {
    z-index: 1;
    position: relative;
}

/* Calendar section */
.ws-countdown__label {
    color: #D8C7A3;
    text-align: center;
    font-family: 'Inter';
    font-size: 12px;
    font-weight: 600;
    line-height: 12px;
    letter-spacing: 2.4px;
    padding-bottom: 20px;
}

.ws-countdown__units {
    display: flex;
    gap: 16px;
    justify-content: center;
    align-items: center;
}

.ws-countdown__unit {
    display: flex;
    flex-direction: column;
}

.ws-countdown__num {
    color: #FDF8F2;
    text-align: center;
    font-family: "Playfair Display";
    font-size: 36px;
    font-weight: 700;
    line-height: 43.2px;
}

.ws-countdown__name {
    color: #D8C7A3;
    text-align: center;
    font-family: 'Inter';
    font-size: 10px;
    font-weight: 400;
    line-height: 15px;
    text-transform: uppercase;
}

.ws-countdown__sep {
    color: #D8C7A3;
    text-align: center;
    font-family: "Playfair Display";
    font-size: 16px;
    font-weight: 400;
    line-height: 24px;
}

.rsvp-footer .ws-button.primary {
    background-color: #7F0404;
    color: #FFE088;
    text-transform: uppercase;
}

.rsvp-footer .ws-button.ternary {
    text-transform: uppercase;
}


.rsvp__choice input {
    accent-color: #7F0404;
}

.calendar-section-wrapper {
    margin: auto;
    width: min(100%, 500px);
}

.formal-section {
    position: relative;
    z-index: 2;
}

.calendar-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 32px;
    align-self: stretch;
    border-radius: 18px;
    position: relative;
    z-index: 1;
    padding-bottom: 50px;
}

.party-item {
    display: flex;
    padding: 32px;
    flex-direction: column;
    align-items: center;
    gap: 7px;
    align-self: stretch;
    border-radius: 4px;
}

.party-item__label {
    font-family: 'Literata', sans-serif;
    font-size: 16px;
    color: var(--t3-primary);
}

.party-item__place {
    color: var(--t3-primary);
    font-family: 'Yeseva One', sans-serif;
    font-size: 24px;
    text-transform: uppercase;
    padding-block: 8px;
    text-align: center;
}

.party-item__divider {
    width: 48px;
    height: 1px;
    background: #D8C7A3;
}

.party-item__address {
    color: var(--t3-primary);
    text-align: center;
    font-style: normal;
    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;
    gap: 8px;
    color: #F3E1BB;
    text-align: center;
    font-family: 'Inter';
    font-size: 12px;
    line-height: 12px;
    letter-spacing: 1.2px;
    border: none;
    background: none;
    text-transform: uppercase;
    border-bottom: 1px solid rgba(216, 199, 163, 0.30);
    cursor: pointer;

    padding: 16px 24px;
    color: rgba(255, 255, 255, 1);
    font-size: 14px;
    font-weight: bold;
    background: rgba(150, 105, 5, 1.000);
    border-radius: 12px;
}

.party-item__button svg {
    width: 12px;
}

.party-item__actions {
    display: flex;
    gap: 16px;
    margin-top: 24px;
}

.btn-confirm {
    font-size: clamp(13px, 1.8vw, 16px);
    display: flex;
    justify-content: center;
    align-items: center;
    align-self: stretch;
    color: #701620;
    text-align: center;
    font-family: 'Inter';
    font-style: normal;
    font-weight: 600;
    line-height: 12px;
    letter-spacing: 1.2px;
    background: #D8C7A3;
    border: 1px solid #D8C7A3;
    cursor: pointer;
    padding: 16px 0;
    margin-top: 32px;
    border-radius: 4px;
}

.btn-confirm:hover {
    transition: opacity 0.2s ease-in-out;
    background: linear-gradient(135deg, #D8B46A 0%, #F8DD9B 100%);
}

.rsvp-wrapper {
    display: flex;
    flex-direction: column;
    margin-top: 32px;
    width: min(100%, 500px);
    margin: auto;
}

.rsvp__header h3 {
    color: #570013;
    font-family: "Montserrat";
    font-size: clamp(14px, 2vw, 18px);
    font-weight: 600;
    line-height: 1.5;
    letter-spacing: 1.4px;
    text-transform: uppercase;
}

.ws-add-to-calendar {
    position: relative;
    display: flex;
    justify-content: center;
}

.ws-add-to-calendar__dropdown {
    position: absolute;
    bottom: calc(100% + 6px);
    left: 50%;
    transform: translateX(-50%);
    min-width: 180px;
    background: #fff;
    border: 1px solid #E8E4DD;
    border-radius: 8px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.10);
    overflow: hidden;
    z-index: 10;
    opacity: 0;
    transform: translateX(-50%) translateY(4px);
    transition: opacity 0.18s ease, transform 0.18s ease;
    pointer-events: none;
}

.ws-add-to-calendar__dropdown:not([hidden]) {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
    pointer-events: auto;
}

.ws-add-to-calendar__item {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 11px 16px;
    font-family: "Montserrat", sans-serif;
    font-size: clamp(11px, 1.4vw, 13px);
    font-weight: 500;
    color: #4A4A4A;
    text-decoration: none;
    letter-spacing: 0.02em;
    transition: background 0.15s;
}

.ws-add-to-calendar__item+.ws-add-to-calendar__item {
    border-top: 1px solid #F0EDE8;
}

.ws-add-to-calendar__item:hover {
    background: #F9F5EF;
    color: #7F0404;
}

.ws-add-to-calendar__item svg {
    width: 14px;
    height: 14px;
    fill: currentColor;
    flex-shrink: 0;
}

.event-section-bg-bottom-left {
    position: absolute;
    left: -45px;
    bottom: -50px;
    width: 250px;
}

.event-section-bg-bottom-right {
    position: absolute;
    right: -25px;
    bottom: -50px;
    width: 250px;
}

/* Cover section */

.absolute {
    position: absolute;
}

.cover-bg-bottom-left {
    left: -33px;
    bottom: -35px;
    width: 225px;
    z-index: 3;
}

.cover-bg-bottom-right {
    bottom: -103px;
    width: 250px;
    z-index: 3;
    right: -72px;
}

.envelop-warpper {
    width: 100%;
    display: flex;
    flex-direction: column;
    position: relative;
    height: 370px;
}

.envelop-content-anchor {
    position: absolute;
    z-index: 3;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    height: 100%;
    width: 100%;
}

.envelop-content {
    height: auto;
    padding-top: 56px;
    text-align: center;
    transform: translateY(clamp(18px, 9vw, 60px));
}

.cover-content-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-block: 12px;
}

.cover-welcome {
    color: var(--t3-primary);
    font-family: 'Literata', sans-serif;
    font-size: 11px;
    text-align: center;
    line-height: 1;
}

.cover-divider,
.cover-name {
    color: var(--t3-primary);
    font-size: 28px;
    text-shadow: 0px 4px 4px rgba(0, 0, 0, 0.25);
    font-family: 'Great Vibes', cursive;
}

.cover-divider {
    font-size: 20px;
}

.cover-date {
    font-family: 'Literata', sans-serif;
    font-size: 16px;
    font-weight: 400;
    color: var(--t3-primary);
    text-align: center;
    line-height: 1;
}

.envelop-img {
    width: 100%;
    display: block;
    z-index: 2;
}

@media (min-width: 768px) {
    .envelop-img {
        margin-bottom: -23px;
    }
}


.envelop-bottom {
    margin-top: -78px;
}

.envelop-paper {
    position: absolute;
    inset: 0;
    top: 20px;
}

.envelop-center {
    position: absolute;
    width: 70px !important;
    height: 70px;
    top: 55%;
    left: 50%;
    z-index: 3 !important;
    transform: translateX(-50%);
}

.w-100 {
    width: 100%;
}

.template-3-cover {
    position: relative;
    padding: 48px 20px 20px;
    overflow: visible;
}

.template-3-cover__banner {
    max-height: 240px;
    overflow: hidden;
    margin-top: 110px;
    margin-left: -20px;
    margin-right: -20px;
}

.template-3-cover__banner img {
    width: 100%;
}

.template-3-cover__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    margin-top: 28px;
    align-items: center;
    position: relative;
    overflow: visible;
}

.cover-bg-top {
    position: absolute;
    right: -48px;
    width: 157px;
    bottom: -59px;
}

.template-3-cover__card {
    margin: 0;
    overflow: hidden;
    aspect-ratio: 4 / 5;
    background: #fff;
    padding: 6px;
    z-index: 2;
    will-change: transform, opacity;
    backface-visibility: hidden;
}

.template-3-cover__card img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.template-3-cover__card--2 {
    height: 214px;
    width: 100%;
}

.envelop-paper,
.envelop-content {
    will-change: transform, opacity;
    backface-visibility: hidden;
}

/* Timeline section */
.ws-timeline-love {
    position: relative;
    z-index: 1;
}

.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__list {
    list-style: none;
    margin: 0 auto;
    padding: 0;
    max-width: min(100%, 500px);
    width: fit-content;
    margin: auto;
}

.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;
}

.ws-timeline-love__inner .section-title {
    color: #fff;
    text-align: left;
}

.timeline-dress__inner {
    display: flex;
    flex-direction: column;
    width: fit-content;
    padding-right: 20px;
}

.timeline-dress {
    font-family: 'Great Vibes', cursive;
    color: #fff;
    font-size: 48px;
    text-align: center;
    text-shadow: 0px 4px 4px rgba(0, 0, 0, 0.25);
    padding-top: 40px;
    padding-bottom: 24px;
}

.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;
}

/* Guestbook */
.guestbook-section {
    text-align: center;
    color: var(--on-dark-text);
    position: relative;
    z-index: 1;
}

.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(--t3-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(--t3-primary);
}

.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: 12px;
    letter-spacing: 1.2px;
    background: var(--t3-primary);
    border: 1px solid #D8C7A3;
    cursor: pointer;
    padding: 16px 0;
    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(--t3-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;
}

@media (max-width: 480px) {
    .guestbook-list {
        -webkit-overflow-scrolling: touch;
        scrollbar-width: thin;
        scrollbar-color: #9E8130 rgba(150, 105, 5, .3);
    }
}

.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: transparent;
    background: rgba(150, 105, 5, .3) !important;
    border-radius: 999px;
}

.guestbook-list::-webkit-scrollbar-thumb {
    background: var(--t3-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(--t3-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(--t3-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: 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: var(--t3-primary);
    margin-bottom: 20px;
}

/* Love storry */
.calendar-divider {
    width: 100%;
    margin-top: 30px;
}

.general-grid {
    padding: 12px;
    /* margin-top: 80px; */
    position: relative;
}

.love-title {
    font-family: 'Literata', sans-serif;
    font-size: 16px;
    color: var(--t3-primary);
    text-align: center;
    max-width: 324px;
    margin: 0 auto;
}

.groom-flower {
    position: absolute;
    top: 66px;
    right: -44px;
    width: 180px;
}

.bride-flower {
    width: 300px;
    margin-top: -110px;
    margin-left: -78px;
}

#invitation-content:not(:has(.ws-timeline-love)) .bride-flower {
    display: none;
}

.groom-center {
    position: absolute;
    width: 117px;
    top: 47%;
    left: 57%;
    transform: translate(-50%, -50%);
    z-index: 2;
    filter: contrast(102%) grayscale(26%) hue-rotate(0deg) invert(0%) saturate(63%) sepia(0%) opacity(100%) brightness(126%) blur(0px);
}

.groom-grid {
    display: grid;
    grid-template-columns: 6fr 4fr;
    gap: clamp(20px, 5.13vw, 24px);
    align-items: start;
    padding: 10px;
}

.bride-grid {
    display: grid;
    grid-template-columns: 4fr 6fr;
    gap: clamp(20px, 5.13vw, 24px);
    align-items: center;
    margin-top: -50px;
    padding: 10px;
}

.ws-general-photo__frame {
    width: 100%;
    aspect-ratio: 203 / 250;
    padding: 8px;
    background: #fff;
    box-shadow: 0 14px 36px rgba(0, 0, 0, 0.18);
    max-width: 255px;
}

.groom-grid .ws-general-photo__frame {
    rotate: -10.5deg;
}

.groom-grid .ws-general-photo {
    display: flex;
    justify-content: flex-end;
}

.bride-grid .ws-general-photo {
    display: flex;
    justify-content: flex-start;
}

.bride-grid .ws-general-photo__frame {
    rotate: 10.5deg;
}

.ws-general-photo__frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.ws-general-couple {
    display: flex;
    min-width: 0;
}

.ws-general-couple__info {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-left: -20px;
}

.ws-general-couple__role {
    color: var(--t3-primary);
    text-align: center;
    font-family: 'Great Vibes', cursive;
    font-size: clamp(12px, 1.6vw, 16px);
    font-style: normal;
    font-weight: 300;
    line-height: 1.5;
    font-size: 28px;
    text-transform: capitalize;
    text-align: left;
    width: 100%;
    line-height: 1.5;
    font-size: 28px;
    text-transform: capitalize;
}

.ws-general-couple__name {
    color: var(--t3-primary);
    text-align: center;
    font-family: 'Playfair Display', sans-serif;
    font-size: 22px;
    font-style: normal;
    width: fit-content;
    line-height: 1.2;
    white-space: nowrap;
    text-transform: uppercase;
    text-shadow: 0px 4px 4px rgba(0, 0, 0, 0.25);
    font-weight: 500;
}

.groom-grid .ws-general-couple {
    justify-content: left;
}

.bride-grid .ws-general-couple {
    justify-content: right;
}

.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 {
    font-family: 'Great Vibes', cursive;
    font-size: 44px;
    font-weight: 400;
    color: var(--t3-primary);
    text-align: center;
    line-height: 1.1;
    margin-bottom: 20px;
    letter-spacing: 0.01em;
    text-shadow: 0px 4px 4px rgba(0, 0, 0, 0.25);
}

.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;
    /* aspect-ratio: 1; */
    color: var(--t3-primary);
    font-family: 'Literata', sans-serif;
    font-size: 12px;
    line-height: 1;
}

.ws-mini-calendar__dow {
    font-size: clamp(11px, 3vw, 14px);
    font-weight: 600;
    letter-spacing: 0.04em;
    opacity: 0.85;
    text-transform: uppercase;
}

.ws-mini-calendar__cell {
    position: relative;
    font-size: clamp(15px, 4vw, 20px);
    font-weight: 400;
    background: transparent;
    border-radius: 0;
    overflow: visible;
}

.ws-mini-calendar__cell--empty {
    background: transparent;
}

/* Event day: outline heart wrapping the number */
.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: 50px;
    height: 50px;
    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);
    }
}

.ws-mini-calendar__num {
    position: relative;
    z-index: 1;
    font-size: clamp(15px, 4vw, 20px);
}

/* ============================================
       AOS Rotate Animations for Couple Photos
       ============================================ */

/* Groom photo: rotates from -90deg to -10.5deg (xoay từ trái vào bên trong) */
@keyframes rotate-in-groom {
    from {
        opacity: 0;
        transform: perspective(1000px) rotateZ(-90deg);
    }

    to {
        opacity: 1;
        transform: perspective(1000px) rotateZ(-10.5deg);
    }
}

/* Bride photo: rotates from 90deg to 10.5deg (xoay từ phải vào bên trong) */
@keyframes rotate-in-bride {
    from {
        opacity: 0;
        transform: perspective(1000px) rotateZ(90deg);
    }

    to {
        opacity: 1;
        transform: perspective(1000px) rotateZ(10.5deg);
    }
}

/* Apply animations when AOS is triggered */
.groom-grid [data-aos="rotate-in-groom"].aos-animate {
    animation: rotate-in-groom 1.5s ease-in-out forwards;
}

.bride-grid [data-aos="rotate-in-bride"].aos-animate {
    animation: rotate-in-bride 1.5s ease-in-out forwards;
}

.lovestory-desc {
    font-family: 'Literata', sans-serif;
    font-size: 11px;
    font-style: italic;
    color: var(--t3-primary);
}

/* 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%, 500px);
}

.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) {
    .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: rgba(190, 171, 126, 0.6);
    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;
    font-size: 32px;
    line-height: 1.2;
    text-align: center;
}

/* Album lightbox */
.album-bg-bottom-right {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 192px;
    position: absolute;
    bottom: -26px;
    right: -36px;
    width: 192px;
    z-index: 2;
}

.album-bg-bottom-left {
    position: absolute;
    bottom: -41px;
    left: -40px;
    width: 230px;
    z-index: 2;
}

/* Music button */
.ws-music-button-wrap {
    position: fixed;
    bottom: 50px;
    right: 20px;
    z-index: 9999999;
    display: inline-flex;
    align-items: center;
    gap: 0.62rem;
    pointer-events: auto;
}

.ws-music-toggle {
    width: 40px;
    height: 40px;
    border-radius: 999px;
    border: none;
    background: transparent;
    color: var(--t3-primary);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.25s ease, box-shadow 0.25s ease, background-color 0.25s ease;
}

.ws-music-toggle[disabled] {
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
    opacity: 0.55;
}

.ws-music-toggle__icon {
    display: inline-flex;
    width: 40px;
    height: 40px;
    align-items: center;
    justify-content: center;
    transform-origin: center;
    animation: none;
}

.ws-music-toggle__icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.ws-music-button-wrap.is-playing .ws-music-toggle__icon {
    animation: ws-music-spin 3s linear infinite;
}

.ws-music-button__hint {
    border-radius: 999px;
    padding: 0.3rem 1.15rem;
    display: inline-flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.92);
    color: #2a2f22;
    font-size: 16px;
    font-weight: 500;
    line-height: 1.2;
    white-space: nowrap;
    box-shadow: 0 12px 26px -18px rgba(0, 0, 0, 0.5);
    max-width: min(70vw, 28rem);
    text-overflow: ellipsis;
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transform: translateY(4px);
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0s linear 0.2s;
    height: 40px;
}

.ws-music-toggle:hover+.ws-music-button__hint,
.ws-music-toggle:focus-visible+.ws-music-button__hint {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
    transition-delay: 0s;
}

.ws-music-button-wrap.is-playing .ws-music-button__hint {
    color: #344256;
}

@keyframes ws-music-pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(var(--primary-rgb, 139, 90, 43), 0.55);
    }

    70% {
        box-shadow: 0 0 0 10px rgba(var(--primary-rgb, 139, 90, 43), 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(var(--primary-rgb, 139, 90, 43), 0);
    }
}

.ws-music-button-wrap.needs-tap .ws-music-toggle {
    animation: ws-music-pulse 1.4s ease-out infinite;
}

@keyframes ws-music-spin {
    to {
        transform: rotate(360deg);
    }
}


/* ===================== ALBUM SECTION ===================== */
.album-section {
    max-width: 100%;
    position: relative;
    padding-bottom: 100px;
}

.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 */
.rsvp-section {
    display: flex;
    justify-content: center;
}

.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 {
    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: var(--t3-primary);
    border: 1px solid #D8C7A3;
    cursor: pointer;
    padding: 16px 0;
    border-radius: 10px;
    text-transform: uppercase;
}

.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;
}

@media (max-width: 575px) {
    .rsvp-section__inner {
        padding: 28px 20px;
        border-radius: 22px;
    }

    .rsvp-section__title {
        font-size: 38px;
        line-height: 44px;
    }
}
