/* 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;
    background-color: var(--env-green);
    overflow: hidden;
    transition: opacity 0.85s ease, transform 0.85s ease;
}

#envelope-scene.hidden {
    opacity: 0;
    pointer-events: none;
    transform: scale(1.04);
}

#envelope-scene.is-opening {
    pointer-events: none;
}

.env-bg-tr {
    position: absolute;
    top: 0;
    right: 0;
    width: 30%;
    max-width: 300px;
}

.env-bg-bl {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30%;
    max-width: 400px;
}

.env-inner-bg-tr {
    position: absolute;
    top: 0;
    right: 0;
    width: 285px;
    z-index: 1;
}

.env-inner-bg-tr-1 {
    position: absolute;
    top: 0;
    right: 0;
    width: 139px;
    z-index: 2;
}

.env-inner-bg-bl-1 {
    position: absolute;
    bottom: 0px;
    left: 0;
    width: 112px;
    z-index: 2;
}

.env-inner-bg-bl {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 174px;
}

@media screen and (max-width: 500px) {

    .env-bg-tr {
        width: 187px;
    }

    .env-bg-bl {
        width: 250px;
    }

    .env-inner-bg-bl {
        width: 112px;
    }

    .env-inner-bg-tr {
        width: 240px;
    }

    .env-inner-bg-tr-1 {
        width: 112px;
    }
}

/* Leaf scatter overlay */
.env-leaf-scatter {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.env-leaf-scatter img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.55;
    mix-blend-mode: multiply;
}

.env-leaf-scatter img[src*="PLACEHOLDER"] {
    opacity: 0;
}

/* ── Falling leaves ── */
.env-petals {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
    z-index: 2;
}

.ws-leaf {
    position: absolute;
    top: -80px;
    opacity: 0;
    will-change: transform, opacity;
    animation: wsLeafFall linear infinite;
}

.ws-leaf svg {
    display: block;
    animation: wsLeafSway ease-in-out infinite alternate;
}

@keyframes wsLeafFall {
    0% {
        transform: translateY(0) translateX(0);
        opacity: 0;
    }

    5% {
        opacity: 0.75;
    }

    90% {
        opacity: 0.6;
    }

    100% {
        transform: translateY(115vh) translateX(var(--sway-x, 40px));
        opacity: 0;
    }
}

@keyframes wsLeafSway {
    0% {
        transform: rotate(var(--rot-start, -20deg)) scale(var(--leaf-scale, 1));
    }

    100% {
        transform: rotate(var(--rot-end, 20deg)) scale(var(--leaf-scale, 1));
    }
}

@keyframes envHeartBadgeBeat {

    0%,
    100% {
        transform: scale(1);
    }

    18% {
        transform: scale(1.04);
    }

    36% {
        transform: scale(0.985);
    }

    54% {
        transform: scale(1.06);
    }

    72% {
        transform: scale(0.995);
    }
}

/* ── Central cream card ── */
.env-card {
    position: relative;
    z-index: 5;
    text-align: center;
    background: var(--env-cream-card);
    border-radius: 24px;
    padding: 2.6rem 2rem 2.4rem;
    width: min(500px, calc(100vw - 40px));
    /* Subtle shadow to lift off background */
    box-shadow:
        0 8px 40px rgba(0, 0, 0, 0.22),
        0 2px 8px rgba(0, 0, 0, 0.12),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
    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;
}

#envelope-scene.is-opening .env-card {
    transform: translateY(-10px) scale(0.985);
    opacity: 0.72;
    box-shadow:
        0 24px 70px rgba(0, 0, 0, 0.18),
        0 10px 24px rgba(0, 0, 0, 0.12),
        inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

/* ── Heart badge ── */
.env-heart-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    border-radius: 12px;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.10), 0 4px 6px -4px rgba(0, 0, 0, 0.10);
    background: var(--env-green);
    color: #fff;
    margin-bottom: 1.4rem;
    z-index: 4;
    position: relative;

}

.env-heart-badge svg {
    transform-origin: center;
    animation: envHeartBadgeBeat 2.4s ease-in-out infinite;
}

/* ── Names ── */
.env-names {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
    margin-bottom: 0.8rem;
    position: relative;
    z-index: 3;
}

.env-name {
    font-size: clamp(3rem, 12vw, 4rem);
    font-weight: 700;
    color: #526442;
    line-height: 1.1;
    letter-spacing: 0.01em;
    display: block;
    font-family: "UVN Kieu", cursive;
}

.env-party-invitation {
    text-align: center;
    font-family: "Montserrat";
    font-size: clamp(10px, 1.8vw, 12px);
    font-style: normal;
    font-weight: 500;
    line-height: 15px;
    letter-spacing: 2px;
    margin-top: 16px;
    color: var(--env-green-dark);
    position: relative;
    z-index: 2;
}

.env-amp {
    font-size: 2rem;
    color: #526442;
    display: block;
    line-height: 1.1;
    margin: 0.1rem 0;
    font-family: "Playfair Display";
}

/* ── Ring divider ── */
.env-ring-divider {
    display: flex;
    align-items: center;
    gap: 8px;
    max-width: 160px;
    margin: 0.9rem auto 1rem;
}

.env-ring-line {
    flex: 1;
    height: 1px;
    background: #C4C8BD;
}

.env-ring-icon {
    flex-shrink: 0;
    opacity: 0.7;
}

/* ── Invite label ── */
.env-invite-label {
    color: #526442;
    text-align: center;
    font-family: "Montserrat", sans-serif;
    font-size: 14px;
    font-style: normal;
    font-weight: 600;
    line-height: 19.6px;
    letter-spacing: 2.8px;
    text-transform: uppercase;
    margin-block: 16px;
}

.env-invite-guestname {
    color: rgb(48, 83, 15);
    text-align: center;
    font-size: 25px;
    font-style: normal;
    font-weight: 500;
    line-height: 20px;
    letter-spacing: 2.8px;
    text-transform: capitalize;
    border-bottom: 1px solid rgb(48, 83, 15);
    border-style: dashed;
    padding-bottom: 10px;
    width: fit-content;
    margin: auto;
    margin-top: 16px;
    font-family: "Playball", cursive;
}

.env-invite-date {
    color: #444840;
    text-align: center;
    font-family: "Playfair Display";
    font-size: 24px;
    font-style: normal;
    font-weight: 500;
    line-height: 32px;
}

/* ── Open button ── */
.ws-home-envelope-toggle {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background-color: rgb(48, 83, 15);
    border: none;
    color: #fff;
    padding: 13px 32px;
    border-radius: 12px;
    font-size: 0.78rem;
    font-weight: 500;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.15s ease, opacity 0.3s ease;
    position: relative;
    overflow: hidden;
    font-family: "Montserrat", sans-serif;
    margin-top: 32px;
    z-index: 3;
}

#envelope-scene.is-opening .ws-home-envelope-toggle {
    opacity: 0.35;
}

.ws-home-envelope-toggle::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--env-green-dark);
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    z-index: 0;
}

.ws-home-envelope-toggle:hover::before {
    transform: translateX(0);
}

.ws-home-envelope-toggle:active {
    transform: scale(0.97);
}

.env-btn-text,
.env-btn-heart {
    position: relative;
    z-index: 1;
}

.env-btn-heart {
    font-size: 1rem;
    opacity: 0.85;
}

.env-inner-bg-tr {
    transform-origin: top right;
    will-change: transform, opacity, filter;
}

.env-inner-bg-tr-1 {
    transform-origin: top right;
    will-change: transform, opacity, filter;
}

.env-inner-bg-bl {
    transform-origin: bottom left;
    will-change: transform, opacity, filter;
}

.env-inner-bg-bl-1 {
    transform-origin: bottom left;
    will-change: transform, opacity, filter;
}

#envelope-scene.is-opening .env-inner-bg-tr {
    animation: ws-zoomout-tr 1400ms cubic-bezier(0.22, 1, 0.36, 1) 0ms both;
}

#envelope-scene.is-opening .env-inner-bg-tr-1 {
    animation: ws-zoomout-tr 1400ms cubic-bezier(0.22, 1, 0.36, 1) 80ms both;
}

#envelope-scene.is-opening .env-inner-bg-bl {
    animation: ws-zoomout-bl 1400ms cubic-bezier(0.22, 1, 0.36, 1) 40ms both;
}

#envelope-scene.is-opening .env-inner-bg-bl-1 {
    animation: ws-zoomout-bl 1400ms cubic-bezier(0.22, 1, 0.36, 1) 120ms both;
}

@keyframes ws-zoomout-tr {
    0% {
        transform: scale(1);
        opacity: 1;
    }

    60% {
        transform: scale(1.3) translateX(6%) translateY(-6%);
        opacity: 0.8;
    }

    100% {
        transform: scale(1.7) translateX(12%) translateY(-12%);
        opacity: 0;
    }
}

@keyframes ws-zoomout-bl {
    0% {
        transform: scale(1);
        opacity: 1;
    }

    60% {
        transform: scale(1.3) translateX(-6%) translateY(6%);
        opacity: 0.8;
    }

    100% {
        transform: scale(1.7) translateX(-12%) translateY(12%);
        opacity: 0;
    }
}

/* ── Responsive ── */
@media (max-width: 420px) {
    .env-card {
        padding: 2rem 1.6rem 2rem;
        border-radius: 18px;
    }

    .env-name {
        font-size: clamp(2.6rem, 13vw, 3.4rem);
    }
}

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: 100%;
    max-width: 786px;
    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;
}

@media (max-width: 786px) {
    #invitation-content {
        width: 100%;
        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;
}

.section-title {
    font-size: clamp(30px, 3.83vw + 9.9px, 42px);
    color: var(--kit-primary);
    text-align: center;
    margin-bottom: clamp(16px, 2vw + 6px, 24px);
    line-height: 1.2;
    text-shadow: 0 0 30px rgba(126, 203, 160, 0.25);
}

/* ===================== 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;
}

/* Album */

/* ===================== ALBUM SECTION ===================== */
.album-section {
    overflow: hidden;
    max-width: 100%;
    background: #F9F5EF;
    position: relative;
}

.album-section-svg {
    position: absolute;
    left: 0;
    top: -15px;
    width: 87px;
}

.album-section>img {
    width: 100%;
    height: 260px;
    object-fit: cover;
    display: block;
}

.album-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 4px;
    max-width: 500px;
    margin: auto;
}

.album-grid--double {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
}

.album-grid.is-single {
    grid-template-columns: 1fr;
}

.album-item {
    border: 0;
    padding: 0;
    background: none;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    aspect-ratio: 4 / 5;
    width: 100%;
    display: block;
    border-radius: 4px;
}

.album-item--placeholder {
    cursor: default;
}

.album-grid--double .album-item {
    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-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", serif;
    font-size: clamp(18px, 2.05vw + 9.4px, 24px);
    letter-spacing: 3px;
    text-transform: uppercase;
}

.album-item:focus-visible {
    outline: 2px solid var(--focus-outline);
    outline-offset: 2px;
}

.album-section .photo-placeholder {
    background: linear-gradient(135deg, var(--kit-photo-grad-a) 0%, var(--kit-photo-grad-b) 100%);
    min-height: 260px;
}

/* ── Guestbook: ── */
.guestbook-section {
    background: #F9F5EF;
    text-align: center;
    color: var(--on-dark-text);
    position: relative;
    z-index: 1;
}

.guestbook-section__bg-left {
    position: absolute;
    top: -162px;
    left: -40px;
    width: 56%;
}

.guestbook-bg-bottom-right {
    position: absolute;
    bottom: -455px;
    right: -40px;
    width: 50%;
}

@media screen and (max-width: 500px) {
    .guestbook-bg-bottom-right {
        bottom: -220px;
    }

    .guestbook-section__bg-left {
        top: -65px;
    }
}

/* grid wrapper */
.guestbook-grid {
    display: grid;
    gap: clamp(28px, 4vw, 44px);
    text-align: left;
}

.guestbook-field label {
    color: #526442;
    font-family: "Montserrat";
    font-size: clamp(14px, 2vw, 18px);
    font-style: normal;
    font-weight: 600;
    line-height: 1.5;
    letter-spacing: 1.4px;
    text-transform: uppercase;
}

/* ── Form ── */
.guestbook-form {
    padding: 40px 30px;
    display: grid;
    gap: clamp(20px, 3vw, 28px);
    border-radius: 18px;
    border: 1px solid #B8B559;
    background: rgba(255, 255, 255, 0.90);
    z-index: 1;
    margin: auto;
    width: min(100%, 500px);
}

/* input / textarea */
.guestbook-field input,
.guestbook-field textarea {
    width: 100%;
    border: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 0;
    padding: 10px 0;
    background: transparent;
    transition: border-color 0.2s ease;
    box-sizing: border-box;
    padding-left: 12px;
    color: #6B7280;
    font-family: "Montserrat";
    font-size: clamp(15px, 2vw, 18px);
    font-style: normal;
    font-weight: 400;
    line-height: normal;
    border-bottom: 1px solid rgba(24, 42, 18, 0.20);
    margin-top: 12px;
}

.guestbook-field textarea {
    min-height: 120px;
    resize: vertical;
    border-radius: 0;
    padding: 12px 14px;
    border: 1px solid rgba(24, 42, 18, 0.20);
}

.guestbook-field input::placeholder,
.guestbook-field textarea::placeholder {
    color: #6B7280;
    opacity: 0.5;
}

.guestbook-field input:focus,
.guestbook-field textarea:focus {
    outline: none;
    border-color: #B8B559;
}

/* actions */
.guestbook-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: center;
    padding-top: 8px;
}

/* button */
.btn-guestbook {
    display: inline-block;
    border: 2px solid transparent;
    padding: clamp(8px, 1.09vw + 3.4px, 12px) clamp(20px, 2.73vw + 8.55px, 30px);
    cursor: pointer;
    transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
    border-radius: 4px;
    background-color: rgb(48, 83, 15);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.10), 0 2px 4px -2px rgba(0, 0, 0, 0.10);
    color: #FFF;
    text-align: center;
    font-family: "Montserrat";
    font-size: 14px;
    font-style: normal;
    font-weight: 600;
    line-height: 1.5;
    letter-spacing: 2.8px;
    text-transform: uppercase;
    width: 100%;
}

.btn-guestbook:hover {
    opacity: 0.9;
}

.guestbook-load-more {
    color: #588B7D;
    text-align: center;
    font-family: "Montserrat";
    font-size: clamp(14px, 2vw, 17px);
    font-style: normal;
    font-weight: 600;
    line-height: 1.5;
    border: none;
    background: none;
    cursor: pointer;
    text-decoration: none;
    padding: 12px;
}

.guestbook-load-more:hover {
    text-decoration: underline;
}

/* notice */
.guestbook-notice {
    color: #526442;
    font-family: "Montserrat";
    font-size: clamp(12px, 1.6vw, 15px);
    font-style: normal;
    font-weight: 600;
    line-height: 1.5;
    letter-spacing: 1.4px;
    text-transform: uppercase;
    text-align: center;
}

.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);
    z-index: 2;
}

.guestbook-list-count {
    color: var(--on-dark-text-subtle);
    margin-left: 4px;
}

.guestbook-list {
    display: grid;
    gap: 16px;
    overflow-y: auto;
    padding: 4px 2px;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.5) transparent;
    width: min(100%, 500px);
    margin: auto;
    overflow-x: hidden;
}

.guestbook-entry.is-hidden[hidden] {
    display: none;
}

.guestbook-load-more-wrap {
    display: flex;
    justify-content: center;
}

.guestbook-load-more[hidden] {
    display: none;
}

.guestbook-list::-webkit-scrollbar {
    width: 6px;
}

.guestbook-list::-webkit-scrollbar-track {
    background: transparent;
}

.guestbook-list::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.55);
    border-radius: 999px;
}

.guestbook-list::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.75);
}

/* entry */
.guestbook-entry {
    border: 1px solid rgba(33, 27, 23, 0.08);
    padding: clamp(10px, 1.6vw, 14px) clamp(12px, 2vw, 16px);
    position: relative;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    text-align: left;
    border-left: 3px solid #5E8950;
    background: #FFF;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}

/* meta row */
.guestbook-entry__meta {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 8px;
    margin-bottom: 6px;
    flex-wrap: wrap;
}

.guestbook-entry__name {
    color: #588B7D;
    font-family: "Montserrat";
    font-size: clamp(11px, 1.5vw, 14px);
    font-style: normal;
    font-weight: 700;
    line-height: 1.5;
}

.guestbook-entry__date {
    font-family: 'Lato', sans-serif;
    font-size: clamp(10px, 1.3vw, 13px);
    color: #7a6f67;
    letter-spacing: 1px;
    white-space: nowrap;
}

/* message */
.guestbook-entry__message {
    color: #4A4A4A;
    font-family: "Montserrat";
    font-size: clamp(11px, 1.5vw, 14px);
    font-style: italic;
    font-weight: 400;
    line-height: 1.6;
}

.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;
}

/* Gift section */
.gift-section-wrapper-bottom {
    border-top: 1px solid #F5F5F4;
    background: #F9F5EF;
    width: 100%;
    margin: auto;
    position: relative;
}

.gift-section-wrapper-bottom-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    padding-bottom: 76px;
    position: relative;
    width: 100%;
    box-sizing: border-box;
}

.thanks__bg-top-left {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 25%;
    max-width: 170px;
    opacity: 0.44;
}

.thanks__bg-top-right {
    position: absolute;
    top: 0;
    right: 0;
    width: 20%;
    max-width: 120px;
}

.thanks__bg-bottom-right {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 20%;
    max-width: 180px;
}

.thanks__bg-bottom-left {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 25%;
    max-width: 180px;
}

.vowry-me {
    color: var(--env-green-dark);
}

.gift-thanks-text {
    color: var(--env-green-dark);
    text-align: center;
    font-family: "Montserrat", sans-serif;
    font-size: clamp(11px, 1.5vw, 14px);
    font-style: italic;
    font-weight: 400;
    line-height: 1.6;
    padding-inline: 24px;
    margin: 0;
    max-width: 400px;
}

.gift-thanks-groom-bride {
    color: var(--env-green-dark);
    text-align: center;
    font-family: "UVN Kieu", cursive;
    font-size: clamp(37px, 7vw, 44px);
    font-style: normal;
    font-weight: 700;
    line-height: 1.1;
    z-index: 2;
}

@media screen and (max-width: 500px) {

    .thanks__bg-top-left {
        width: 75px;
    }

    .thanks__bg-bottom-right {
        width: 110px;
    }

    .gift-thanks-text {
        max-width: 300px;
    }
}

@media screen and (min-width: 768px) {

    .gift-section-wrapper-bottom-content {
        gap: 20px;
    }
}

/* Gift section */
.gift-section-wrapper {
    position: relative;
    background: #F9F5EF;
    margin: auto;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gift-section-wrapper .section-title {
    color: var(--env-green-dark);
}

.gift-section-wrapper-top {
    display: flex;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    flex-direction: column;
    gap: 48px;
    position: relative;
    z-index: 1;
    min-width: 0;
    align-items: center;
}

.gift-text {
    color: var(--env-green-dark);
    text-align: center;
    font-family: "Montserrat", sans-serif;
    font-size: clamp(11px, 1.5vw, 14px);
    font-style: italic;
    font-weight: 400;
    line-height: 1.6;
    padding-inline: 24px;
    margin: 0;
    max-width: 400px;
}

.gift-envelope {
    position: relative;
    display: grid;
    justify-items: center;
    gap: 18px;
    border: 0;
    background: transparent;
    padding: 0;
    color: var(--gift-envelope-gold-light);
    cursor: pointer;
    perspective: 1400px;
    -webkit-tap-highlight-color: transparent;
    --orbit-radius: 128px;
    --gift-envelope-green: var(--env-green, #2d5a3d);
    --gift-envelope-green-soft: #3f6f4e;
    --gift-envelope-green-deep: var(--env-green-dark, #fff);
    --gift-envelope-gold: var(--env-gold, #9a8060);
    --gift-envelope-gold-light: var(--env-gold-light, #fbbf24);
    --gift-envelope-cream: var(--env-cream-card, #f8f4ec);
}

.gift-envelope__card {
    position: relative;
    z-index: 2;
    display: block;
    width: min(150px, 78vw);
    height: auto;
    aspect-ratio: 5 / 7;
    overflow: hidden;
    border-radius: 12px;
    border: 1px solid rgba(154, 128, 96, 0.28);
    background: rgb(48, 83, 15);
    box-shadow: 0 18px 38px -12px rgba(0, 0, 0, 0.58),
        0 5px 14px rgba(0, 0, 0, 0.30),
        inset 0 1px 0 rgba(248, 244, 236, 0.18),
        0 0 28px 2px rgba(154, 128, 96, 0.18);
    transform-style: preserve-3d;
    transition: transform 0.9s cubic-bezier(.6, -0.1, .2, 1.25), width 0.3s ease;
    animation: gift-envelope-shake 2.8s cubic-bezier(.36, .07, .19, .97) infinite;
    transform-origin: 50% 85%;
}

/* Họa tiết mạng kim tiền (interlocking coins) chìm tinh tế */
.gift-envelope__lattice-pattern {
    content: "";
    position: absolute;
    inset: 0;
    opacity: 0.1;
    pointer-events: none;
    mix-blend-mode: overlay;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='36' height='36' viewBox='0 0 36 36'%3E%3Cpath d='M18 36c9.94 0 18-8.06 18-18S27.94 0 18 0 0 8.06 0 18s8.06 18 18 18zm0-4c-7.73 0-14-6.27-14-14S10.27 4 18 4s14 6.27 14 14-6.27 14-14 14z' fill='%239A8060' fill-opacity='0.62'/%3E%3Crect x='14' y='14' width='8' height='8' fill='none' stroke='%23C4A87A' stroke-width='1.2' transform='rotate(45 18 18)'/%3E%3C/svg%3E");
    background-size: 36px 36px;
}

.gift-envelope__card::before {
    content: "";
    position: absolute;
    top: 0;
    left: -60%;
    width: 45%;
    height: 100%;
    background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.12), transparent);
    animation: gift-envelope-sheen 5.5s ease-in-out infinite;
}

.gift-envelope:hover .gift-envelope__card,
.gift-envelope:focus-visible .gift-envelope__card {
    animation: none;
    transform: translateY(-5px) rotateY(-8deg);
    box-shadow: 0 24px 45px -14px rgba(0, 0, 0, 0.62),
        0 6px 16px rgba(0, 0, 0, 0.34),
        inset 0 1px 0 rgba(248, 244, 236, 0.24),
        0 0 34px 4px rgba(154, 128, 96, 0.28);
}

.gift-envelope:focus-visible {
    outline: none;
    outline-offset: 8px;
    border-radius: 12px;
}

/* Góc hoa văn vàng kim loại sắc nét, sang trọng */
.gift-envelope__corner {
    position: absolute;
    z-index: 1;
    width: 22px;
    height: 22px;
    color: var(--gift-envelope-gold-light);
    opacity: 0.88;
}

.gift-envelope__corner--top-left {
    top: 10px;
    left: 10px;
}

.gift-envelope__corner--bottom-right {
    right: 15px;
    bottom: 15px;
}

/* Đồng xu trang trí trên mặt thiệp */
.gift-envelope__coin {
    position: absolute;
    z-index: 1;
    display: block;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.26)) drop-shadow(0 0 2px rgba(154, 128, 96, 0.22));
}

.gift-envelope__coin svg {
    display: block;
    width: 100%;
    height: 100%;
}

/* Sắp xếp các đồng xu có kích thước đa dạng lớn nhỏ tạo chiều sâu */
.gift-envelope__coin--top-large {
    top: 35px;
    right: 16px;
    width: 18px;
    height: 18px;
}

.gift-envelope__coin--top-small-a {
    top: 38px;
    left: 20px;
    width: 9px;
    height: 9px;
    opacity: 0.85;
}

.gift-envelope__coin--top-small-b {
    top: 50px;
    left: 32px;
    width: 6px;
    height: 6px;
    opacity: 0.55;
}

.gift-envelope__coin--bottom-large {
    bottom: 35px;
    left: 16px;
    width: 18px;
    height: 18px;
}

.gift-envelope__coin--bottom-small-a {
    bottom: 38px;
    right: 20px;
    width: 9px;
    height: 9px;
    opacity: 0.85;
}

.gift-envelope__coin--bottom-small-b {
    bottom: 50px;
    right: 32px;
    width: 6px;
    height: 6px;
    opacity: 0.55;
}

/* ── Cấu trúc Đồng xu xoay quanh (Orbit coins): LỚN & NHỎ đa dạng ── */
.gift-envelope__hint {
    position: relative;
    z-index: 3;
    margin: 0;
    color: rgb(48, 83, 15);
    font-family: "Montserrat", sans-serif;
    font-size: 12px;
    line-height: 1.4;
    letter-spacing: 1.2px;
    transform: translateY(-4px);
}

.gift-envelope__orbit {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    z-index: 1;
    pointer-events: none;
}

.gift-envelope__orbit-arm {
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 0;
}

/* Nhịp độ quỹ đạo mượt mà và chậm rãi, tạo cảm giác lững lờ cực kỳ tinh tế */
.gift-envelope__orbit-arm--a {
    animation: gift-envelope-orbit-arm-a 5.5s ease-in-out infinite;
}

.gift-envelope__orbit-arm--b {
    animation: gift-envelope-orbit-arm-b 6.2s ease-in-out 0.4s infinite;
}

.gift-envelope__orbit-arm--c {
    animation: gift-envelope-orbit-arm-c 5.8s ease-in-out 0.8s infinite;
}

.gift-envelope__orbit-arm--d {
    animation: gift-envelope-orbit-arm-d 6.8s ease-in-out 0.2s infinite;
}

.gift-envelope__orbit-coin {
    position: absolute;
    display: block;
    border-radius: 50%;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.45);
}

/* Thiết kế kích thước đa sắc thái (Có chiều sâu 3D xa gần) */
.gift-envelope__orbit-arm--a .gift-envelope__orbit-coin {
    top: -11px;
    left: -11px;
    width: 22px;
    /* Đồng xu rất lớn phía trước */
    height: 22px;
    z-index: 5;
    filter: drop-shadow(0 0 8px rgba(154, 128, 96, 0.46));
    animation: gift-envelope-orbit-counter 5.5s ease-in-out infinite, gift-envelope-spin-3d 2.8s linear infinite;
}

.gift-envelope__orbit-arm--b .gift-envelope__orbit-coin {
    top: -6px;
    left: -6px;
    width: 12px;
    /* Đồng xu nhỏ ở hậu cảnh */
    height: 12px;
    z-index: 1;
    opacity: 0.65;
    filter: drop-shadow(0 0 4px rgba(154, 128, 96, 0.26)) blur(0.5px);
    animation: gift-envelope-orbit-counter 6.2s ease-in-out 0.4s infinite, gift-envelope-spin-3d 3.5s linear infinite;
}

.gift-envelope__orbit-arm--c .gift-envelope__orbit-coin {
    top: -9px;
    left: -9px;
    width: 17px;
    /* Đồng xu kích cỡ vừa */
    height: 17px;
    z-index: 4;
    filter: drop-shadow(0 0 6px rgba(154, 128, 96, 0.38));
    animation: gift-envelope-orbit-counter 5.0s ease-in-out 0.8s infinite, gift-envelope-spin-3d 2.2s linear infinite;
}

.gift-envelope__orbit-arm--d .gift-envelope__orbit-coin {
    top: -4px;
    left: -4px;
    width: 8px;
    /* Đồng xu siêu nhỏ */
    height: 8px;
    z-index: 1;
    opacity: 0.45;
    filter: drop-shadow(0 0 3px rgba(154, 128, 96, 0.22)) blur(1px);
    animation: gift-envelope-orbit-counter 6.8s ease-in-out 0.2s infinite, gift-envelope-spin-3d 4s linear infinite;
}

.gift-envelope__orbit-coin svg {
    display: block;
    width: 100%;
    height: 100%;
}

/* Con Dấu Niêm Phong Sang Trọng Hơn */
.gift-envelope__seal {
    position: absolute;
    z-index: 3;
    top: 50%;
    left: 50%;
    display: grid;
    place-items: center;
    width: 90px;
    height: 90px;
    border: 3.5px solid #fbbf24;
    border-radius: 50%;
    background: rgb(48, 83, 15);
    color: var(--gift-envelope-gold-light);
    font-family: "Noto Serif SC", "Songti SC", serif;
    font-size: 42px;
    line-height: 1;
    transform: translate(-50%, -50%);
    text-shadow: 0 0 10px rgba(196, 168, 122, 0.38);
    box-shadow: 0 0 0 1.5px rgba(154, 128, 96, 0.28),
        0 0 20px rgba(154, 128, 96, 0.24),
        inset 0 0 12px rgba(0, 0, 0, 0.4);
    animation: gift-envelope-glow 3.2s ease-in-out infinite;
}

.gift-envelope__seal span {
    transform: translateY(-2px);
    font-weight: bold;
}

.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-qr-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 {
    align-items: flex-start;
}

.gift-modal.is-manage-preview .gift-modal__dialog {
    max-height: calc(var(--gift-modal-preview-visible-height, 100vh) - 40px);
    margin-top: var(--gift-modal-preview-offset, 20px);
}

.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: #334A29;
    text-align: center;
    font-family: "Montserrat";
    font-size: clamp(20px, 3vw, 28px);
    font-style: normal;
    font-weight: 600;
    line-height: 1.4;
    text-transform: uppercase;
}

.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;
    z-index: 2;
}

.gift-modal__close:focus-visible {
    outline: 2px solid #4B382A;
    outline-offset: 2px;
}

.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;
    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-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;
    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 {
    color: #355643;
}

.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;
    }
}

@keyframes gift-envelope-sheen {
    0% {
        left: -65%;
    }

    45%,
    100% {
        left: 140%;
    }
}

@keyframes gift-envelope-glow {

    0%,
    100% {
        box-shadow: 0 0 15px rgba(154, 128, 96, 0.18), inset 0 0 12px rgba(0, 0, 0, 0.35);
        border-color: #fbbf24;
    }

    50% {
        box-shadow: 0 0 24px rgba(196, 168, 122, 0.34), inset 0 0 12px rgba(0, 0, 0, 0.35);
        border-color: var(--gift-envelope-cream);
    }
}

@keyframes gift-envelope-shake {

    0%,
    18%,
    100% {
        transform: translateX(0) rotate(0deg);
    }

    2% {
        transform: translateX(-5px) rotate(-2.8deg);
    }

    5% {
        transform: translateX(5px) rotate(2.8deg);
    }

    8% {
        transform: translateX(-4px) rotate(-2deg);
    }

    11% {
        transform: translateX(3px) rotate(1.4deg);
    }

    14% {
        transform: translateX(-1.5px) rotate(-0.7deg);
    }

    16% {
        transform: translateX(0) rotate(0deg);
    }
}

@keyframes gift-envelope-spin-3d {
    0% {
        transform: rotateY(0deg);
    }

    100% {
        transform: rotateY(360deg);
    }
}

@keyframes gift-envelope-orbit-arm-a {

    0%,
    100% {
        transform: rotate(5deg) translateY(calc(var(--orbit-radius, 128px) * -1)) rotate(-5deg);
    }

    50% {
        transform: rotate(35deg) translateY(calc(var(--orbit-radius, 128px) * -0.95)) rotate(-35deg);
    }
}

@keyframes gift-envelope-orbit-arm-b {

    0%,
    100% {
        transform: rotate(95deg) translateY(calc(var(--orbit-radius, 128px) * -1.05)) rotate(-95deg);
    }

    50% {
        transform: rotate(125deg) translateY(calc(var(--orbit-radius, 128px) * -1)) rotate(-125deg);
    }
}

@keyframes gift-envelope-orbit-arm-c {

    0%,
    100% {
        transform: rotate(235deg) translateY(calc(var(--orbit-radius, 128px) * -0.92)) rotate(-235deg);
    }

    50% {
        transform: rotate(258deg) translateY(calc(var(--orbit-radius, 128px) * -0.88)) rotate(-258deg);
    }
}

@keyframes gift-envelope-orbit-arm-d {

    0%,
    100% {
        transform: rotate(275deg) translateY(calc(var(--orbit-radius, 128px) * -1)) rotate(-275deg);
    }

    50% {
        transform: rotate(305deg) translateY(calc(var(--orbit-radius, 128px) * -0.92)) rotate(-305deg);
    }
}

@keyframes gift-envelope-orbit-counter {

    0%,
    100% {
        transform: rotate(12deg);
    }

    50% {
        transform: rotate(-12deg);
    }
}

@media screen and (max-width: 500px) {
    .gift-section-wrapper-top {
        gap: 28px;
    }

    .gift-text {
        padding-inline: 32px;
    }

    .gift-modal {
        padding: 16px;
    }

    .gift-modal__content {
        padding: 20px 16px;
    }

    .gift-modal__dialog {
        width: 100%;
    }
}

@media screen and (min-width: 768px) {
    .gift-envelope {
        --orbit-radius: 175px;
    }

    .gift-envelope__card {
        width: 210px;
    }

    .gift-envelope__seal {
        width: 118px;
        height: 118px;
        font-size: 54px;
    }

    .gift-envelope__coin--top-large,
    .gift-envelope__coin--bottom-large {
        width: 23px;
        height: 23px;
    }

    .gift-envelope__coin--top-small-a,
    .gift-envelope__coin--bottom-small-a {
        width: 12px;
        height: 12px;
    }

    .gift-envelope__coin--top-small-b,
    .gift-envelope__coin--bottom-small-b {
        width: 8px;
        height: 8px;
    }

    .gift-envelope__orbit-arm--a .gift-envelope__orbit-coin {
        width: 30px;
        height: 30px;
        top: -15px;
        left: -15px;
    }

    .gift-envelope__orbit-arm--b .gift-envelope__orbit-coin {
        width: 15px;
        height: 15px;
        top: -7.5px;
        left: -7.5px;
    }

    .gift-envelope__orbit-arm--c .gift-envelope__orbit-coin {
        width: 24px;
        height: 24px;
        top: -12px;
        left: -12px;
    }

    .gift-envelope__orbit-arm--d .gift-envelope__orbit-coin {
        width: 10px;
        height: 10px;
        top: -5px;
        left: -5px;
    }

    .gift-qr-card__image img {
        max-width: 180px;
    }

    .gift-qr-card--panel .gift-qr-card__image img {
        max-width: 160px;
    }
}

@media (prefers-reduced-motion: reduce) {

    .gift-envelope__card,
    .gift-envelope__card::before,
    .gift-envelope__seal,
    .gift-envelope__orbit-arm,
    .gift-envelope__orbit-coin {
        animation: none;
        transition: none;
    }
}

/* Couple */

.ws-general-section {
    --ws-general-bg: #2F4F38;
    position: relative;
    overflow: hidden;
    min-height: clamp(520px, 124vw, 844px);
    padding: clamp(20px, 5.13vw, 24px);
    background-color: var(--ws-general-bg);
    background-position: top right, bottom left;
    background-size: 100%, 100%;
    background-repeat: no-repeat, no-repeat;
    background-attachment: fixed, fixed;
    color: var(--on-dark-text);
    padding-bottom: 100px;
}

.general-bg-bottom-left {
    position: absolute;
    bottom: -80px;
    left: 0;
    width: 100%;
    height: auto;
    object-fit: contain;
    object-position: left bottom;
    z-index: 3;
    pointer-events: none;
}

.general-bg-top-right {
    position: absolute;
    top: 0;
    right: 0;
    width: 50%;
    height: auto;
    object-fit: contain;
    object-position: right top;
    z-index: 1;
    pointer-events: none;
}

.ws-general-section .ws-scroll-flower {
    --ws-flower-shift-y: 0px;
    --ws-flower-shift-x: 0px;
    --ws-flower-rotate-dynamic: 0deg;
    --ws-flower-base-rotate: 0deg;
    transform: translate3d(var(--ws-flower-shift-x), var(--ws-flower-shift-y), 0) rotate(calc(var(--ws-flower-base-rotate) + var(--ws-flower-rotate-dynamic)));
    transform-origin: center;
    will-change: transform;
    transition: transform 220ms cubic-bezier(0.22, 1, 0.36, 1);
}

.general-grid {
    padding: 24px;
    margin-top: 80px;
}

.groom-grid {
    display: grid;
    grid-template-columns: 6fr 4fr;
    gap: clamp(20px, 5.13vw, 24px);
    align-items: center;
}

.bride-grid {
    display: grid;
    grid-template-columns: 4fr 6fr;
    gap: clamp(20px, 5.13vw, 24px);
    align-items: center;
    margin-top: -50px;
}

.ws-general-photo__frame {
    width: 100%;
    aspect-ratio: 203 / 250;
    padding: 4px;
    background: #fff;
    box-shadow: 0 14px 36px rgba(0, 0, 0, 0.38);
    max-width: 255px;
}

.groom-grid .ws-general-photo__frame {
    rotate: -5.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: 5.5deg;
}

.ws-general-photo__frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

@keyframes rotate-in-groom {
    from {
        opacity: 0;
        transform: perspective(1000px) rotateZ(-90deg);
    }

    to {
        opacity: 1;
        transform: perspective(1000px) rotateZ(0deg);
    }
}

@keyframes rotate-in-bride {
    from {
        opacity: 0;
        transform: perspective(1000px) rotateZ(90deg);
    }

    to {
        opacity: 1;
        transform: perspective(1000px) rotateZ(0deg);
    }
}

.groom-grid [data-aos="rotate-in-groom"],
.bride-grid [data-aos="rotate-in-bride"] {
    opacity: 0;
}

.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;
}

.ws-general-couple {
    display: flex;
}

.ws-general-couple__info {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.ws-general-couple__role {
    color: #FFF;
    text-align: center;
    font-family: "Montserrat";
    font-size: clamp(12px, 1.6vw, 16px);
    font-style: normal;
    font-weight: 300;
    width: fit-content;
    line-height: 1.5;
}

.ws-general-couple__name {
    color: #FFF;
    text-align: center;
    font-family: "UVN Kieu", cursive;
    font-size: clamp(34px, 5vw, 48px);
    font-style: normal;
    font-weight: 400;
    width: fit-content;
    line-height: 1.2;
    white-space: nowrap;
}

.groom-grid .ws-general-couple {
    justify-content: left;
}

.bride-grid .ws-general-couple {
    justify-content: right;
}

/* Event section */

.section-title {
    color: #334A29;
    text-align: center;
    font-family: "Montserrat";
    font-size: clamp(20px, 3vw, 28px);
    font-style: normal;
    font-weight: 600;
    line-height: 1.4;
    text-transform: uppercase;
}

.ceremony-section {
    background-color: #F9F5EF;
    position: relative;
    padding-bottom: 0;
    z-index: 1;
    padding-top: 76px;
}

.event-info-wrapper {
    background-color: #F9F5EF;
    position: relative;
}

.ceremony-section__bg-left {
    position: absolute;
    left: 0;
    top: -360px;
    max-width: 40%;
    width: 100%;
    height: auto;
    object-fit: contain;
    object-position: left top;
    z-index: 1;
    pointer-events: none;
}

.ceremony-section__bg-right {
    position: absolute;
    right: 0;
    top: -210px;
    max-width: 48%;
    width: 100%;
    height: auto;
    object-fit: contain;
    object-position: right top;
    z-index: 1;
    pointer-events: none;
}

.ceremony-section__bg-bottom-right {
    position: absolute;
    right: -40px;
    bottom: -80px;
    max-width: 50%;
    width: 100%;
    height: auto;
    object-fit: contain;
    object-position: right bottom;
    z-index: 3;
    pointer-events: none;
}

.ceremony-section__bg-top-left {
    position: absolute;
    left: -40px;
    top: -30px;
    max-width: 60%;
    width: 100%;
    height: auto;
    object-fit: contain;
    object-position: left top;
    z-index: 1;
    pointer-events: none;
}

.ceremony-section__bg-top-right {
    position: absolute;
    right: 0;
    top: 0;
    max-width: 50%;
    width: 100%;
    height: auto;
    object-fit: contain;
    object-position: right top;
    z-index: 1;
    pointer-events: none;
}

.ws-event-scroll-flower {
    --ws-flower-shift-y: 0px;
    --ws-flower-shift-x: 0px;
    --ws-flower-rotate-dynamic: 0deg;
    --ws-flower-base-rotate: 0deg;
    transform: translate3d(var(--ws-flower-shift-x), var(--ws-flower-shift-y), 0) rotate(calc(var(--ws-flower-base-rotate) + var(--ws-flower-rotate-dynamic)));
    transform-origin: center;
    will-change: transform;
    transition: transform 240ms cubic-bezier(0.22, 1, 0.36, 1);
}

.cover-family__parents-grid {
    display: grid;
    grid-template-columns: 1fr 32px 1fr;
}

.cover-family__parents-col {
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: center;
    padding-block: 24px;
}

.cover-family__parents-label {
    color: rgb(48, 83, 15);
    text-align: center;
    font-family: "Montserrat";
    font-size: clamp(12px, 1.8vw, 16px);
    font-style: normal;
    font-weight: 500;
    line-height: 1.5;
    text-transform: uppercase;
}

.cover-family__parents-name {
    color: #4A4A4A;
    text-align: center;
    font-family: "Playfair Display", serif;
    font-size: clamp(14px, 2vw, 20px);
    font-style: normal;
    font-weight: 500;
    line-height: 1.5;
}

.cover-family__parents-address {
    color: #4A4A4A;
    text-align: center;
    font-family: "Montserrat";
    font-size: clamp(11px, 1.5vw, 15px);
    font-style: normal;
    line-height: 1.6;
}

.cover-family__parents-divider {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.cover-family__parents-divider-line {
    flex: 1;
    width: 1px;
    background-color: #E7E5E4;
}

.event-info {
    border-radius: 18px;
    border: 1px solid #98916C;
    background: rgba(255, 255, 255, 0.82);
    display: flex;
    padding: 32px;
    flex-direction: column;
    align-items: center;
    gap: 36px;
    align-self: stretch;
    position: relative;
    z-index: 1;
    width: min(100%, 500px);
    margin: auto;
}

.event-info-list {
    display: grid;
    gap: 24px;
    position: relative;
    z-index: 1;
}

.event-info__image {
    width: 100%;
}

.event-info__image img {
    border-top-left-radius: 999px;
    border-top-right-radius: 999px;
    width: 100%;
}

.event-info__text {
    color: #4A4A4A;
    text-align: center;
    font-family: "Montserrat";
    font-size: clamp(11px, 1.5vw, 15px);
    font-style: normal;
    font-weight: 400;
    line-height: 1.6;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.event-info__text-description {
    font-weight: 500;
    margin-top: 4px;
}

.event-info__couple-name {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.groom,
.bride {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.bride-name,
.groom-name {
    color: #2F6300;
    text-align: center;
    font-size: clamp(42px, 7vw, 64px);
    font-style: normal;
    font-weight: 400;
    line-height: 1.1;
    font-family: "UVN Kieu", cursive;
    white-space: nowrap;
}

.groom-role,
.bride-role {
    color: rgb(48, 83, 15);
    text-align: center;
    font-family: "Montserrat";
    font-size: clamp(13px, 1.8vw, 17px);
    font-style: normal;
    font-weight: 300;
    line-height: 1.6;
}

.event-info__couple-divider {
    display: flex;
    position: relative;
    justify-content: center;
}

.event-info__couple-divider span {
    color: #747474;
    text-align: center;
    font-family: "UVN Kieu", cursive;
    font-size: clamp(32px, 5vw, 48px);
    font-style: normal;
    font-weight: 700;
    line-height: 1;
}

.event-calendar {
    display: flex;
    padding: 16px 0;
    flex-direction: column;
    gap: 4px;
    align-self: stretch;
    border-top: 1px solid #E7E5E4;
    border-bottom: 1px solid #E7E5E4;
}

.event-calendar:not(:last-child) {
    border-bottom: none;
}

.event-calendar__label {
    color: #4A4A4A;
    text-align: center;
    font-family: Montserrat;
    font-size: clamp(13px, 1.8vw, 17px);
    font-style: normal;
    font-weight: 400;
    line-height: 1.5;
}

.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;
}

.event-calendar__place {
    font-weight: 400;
    margin-top: 8px;
}

.event-calendar__time {
    color: #4A4A4A;
    text-align: center;
    font-family: "Playfair Display", serif;
    font-size: clamp(30px, 4.5vw, 44px);
    font-style: normal;
    font-weight: 400;
    line-height: 1.2;
}

.event-calendar__month,
.event-calendar__weekday {
    color: #4A4A4A;
    text-align: center;
    font-family: "Playfair Display", serif;
    font-size: clamp(13px, 1.8vw, 17px);
    font-style: normal;
    font-weight: 400;
    line-height: 1.4;
}

.event-calendar__day {
    color: #4A4A4A;
    text-align: center;
    font-family: "Playfair Display", serif;
    font-size: clamp(26px, 3.8vw, 36px);
    font-style: normal;
    font-weight: 400;
    line-height: 1.3;
    border-right: 1px solid #D6D3D1;
    border-left: 1px solid #D6D3D1;
    padding-inline: 16px;
}

.event-calendar__year {
    color: #4A4A4A;
    text-align: center;
    font-family: "Playfair Display", serif;
    font-size: clamp(15px, 2vw, 20px);
    font-style: normal;
    font-weight: 400;
    line-height: 1.4;
    margin-top: 12px;
}

.event-calendar__vietnamese-date {
    color: #797979;
    text-align: center;
    font-family: "Montserrat";
    font-size: clamp(12px, 1.6vw, 15px);
    font-style: italic;
    font-weight: 400;
    line-height: 1.5;
}

.event-calendar__date {
    display: flex;
    align-items: center;
    gap: 16px;
    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  */

.rsvp-footer .ws-button.primary {
    background-color: #5E8950;
    color: #fff;
}

.calendar-section-wrapper {
    margin: auto;
    width: min(100%, 500px);
}

.event-address-wrapper {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding-top: 76px;
}

.event-address {
    color: #4A4A4A;
    text-align: center;
    font-family: "Montserrat";
    font-size: clamp(12px, 1.8vw, 17px);
    font-style: normal;
    font-weight: 500;
    line-height: 1.5;
}

.event-place {
    color: #334A29;
    text-align: center;
    font-family: "UVN Kieu", cursive;
    font-size: 34px;
    font-style: normal;
    font-weight: 700;
    line-height: 1.1;
}

.calendar-map-open {
    border-radius: 4px;
    background-color: rgb(48, 83, 15);
    display: flex;
    width: fit-content;
    height: 43px;
    padding: 8px 24px;
    justify-content: center;
    align-items: center;
    color: #FFF;
    text-align: center;
    font-family: "Montserrat";
    font-size: clamp(14px, 2vw, 18px);
    font-style: normal;
    font-weight: 500;
    line-height: 1.4;
    letter-spacing: 1px;
    text-transform: uppercase;
    text-decoration: none;
    margin: auto;
}

.calendar-map-open:hover {
    opacity: 0.9;
}

.formal-section {
    background: #F9F5EF;
    position: relative;
    z-index: 2;
}

.calendar-section__bg-left {
    position: absolute;
    top: 0;
    left: -295px;
    width: 100%;
}

@media screen and (max-width: 500px) {
    .ceremony-section__bg-left {
        top: -180px;
    }

    .ceremony-section__bg-right {
        top: -136px;
    }

    .calendar-section__bg-left {
        left: -150px;
    }
}

.calendar-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    align-self: stretch;
    border-radius: 18px;
    border: 1px solid #98916C;
    background: rgba(255, 255, 255, 0.82);
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    padding: 32px;
    position: relative;
    z-index: 1;
}

.party-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    align-self: stretch;
}

.calendar-section__date {
    display: flex;
    align-items: center;
    gap: 24px;
}

.btn-confirm {
    font-size: clamp(13px, 1.8vw, 16px);
    border-radius: 4px;
    background-color: rgb(48, 83, 15);
    color: #FFF;
    text-align: center;
    font-family: "Montserrat";
    font-style: normal;
    font-weight: 400;
    line-height: 1.5;
    letter-spacing: 1px;
    text-transform: uppercase;
    display: flex;
    padding: 12px 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;
}

.btn-confirm svg {
    font-size: clamp(13px, 1.8vw, 17px);
}

.btn-confirm:hover {
    opacity: 0.9;
    transition: opacity 0.2s ease-in-out;
}

.calendar-map {
    margin-block: 24px;
    margin-inline: auto;
    width: min(100%, 500px);
    aspect-ratio: 5 / 3;
    overflow: hidden;
    box-shadow: 0 8px 20px var(--map-shadow);
}

.calendar-map iframe {
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
}

.calendar-section__label {
    color: #4A4A4A;
    text-align: center;
    font-family: Montserrat;
    font-size: clamp(13px, 1.8vw, 17px);
    font-style: normal;
    font-weight: 400;
    line-height: 1.5;
}

.calendar-section__time {
    color: #4A4A4A;
    text-align: center;
    font-family: "Playfair Display", serif;
    font-size: clamp(30px, 4.5vw, 44px);
    font-style: normal;
    font-weight: 400;
    line-height: 1.2;
    padding-block: 8px;
}

.calendar-section__month,
.calendar-section__weekday {
    color: #4A4A4A;
    text-align: center;
    font-family: "Playfair Display", serif;
    font-size: clamp(13px, 1.8vw, 17px);
    font-style: normal;
    font-weight: 400;
    line-height: 1.4;
    text-transform: uppercase;
}

.calendar-section__day {
    color: #4A4A4A;
    text-align: center;
    font-family: "Playfair Display", serif;
    font-size: clamp(26px, 3.8vw, 36px);
    font-style: normal;
    font-weight: 400;
    line-height: 1.3;
    border-right: 1px solid #D6D3D1;
    border-left: 1px solid #D6D3D1;
    padding-inline: 16px;
}

.calendar-section__year {
    color: #4A4A4A;
    text-align: center;
    font-family: "Playfair Display", serif;
    font-size: clamp(15px, 2vw, 20px);
    font-style: normal;
    font-weight: 400;
    line-height: 1.4;
}

.calendar-section__month-year {
    color: #797979;
    text-align: center;
    font-family: "Montserrat";
    font-size: clamp(12px, 1.6vw, 15px);
    font-style: italic;
    font-weight: 400;
    line-height: 1.5;
    margin-top: 4px;
}

/* ── Mini Calendar ─────────────────────────────────── */
.ws-mini-calendar {
    margin: 24px auto 0;
    width: 100%;
    max-width: 340px;
    font-family: 'Playfair Display', serif;
}

.ws-mini-calendar__grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 2px 0;
}

.ws-mini-calendar__dow {
    text-align: center;
    font-family: Montserrat, sans-serif;
    font-size: clamp(11px, 1.4vw, 14px);
    font-weight: 500;
    color: #9C9C9C;
    padding-bottom: 8px;
    letter-spacing: 0.5px;
}

.ws-mini-calendar__cell {
    text-align: center;
    font-family: 'Playfair Display', serif;
    font-size: clamp(13px, 1.8vw, 17px);
    color: #4A4A4A;
    padding: 6px 0;
    line-height: 1;
    position: relative;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ws-mini-calendar__cell--event {
    color: #fff;
    font-weight: 600;
}

.ws-mini-calendar__heart {
    position: absolute;
    inset: 50% auto auto 50%;
    transform: translate(-50%, -50%);
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    z-index: 0;
}

.ws-mini-calendar__heart svg {
    width: 34px;
    height: 34px;
    fill: #4A7C3F;
    display: block;
    filter: drop-shadow(0 2px 4px rgba(74, 124, 63, 0.25));
    transform-origin: center;
    animation: ws-mini-calendar-heartbeat 1.4s ease-in-out infinite;
}

@keyframes ws-mini-calendar-heartbeat {

    0%,
    100% {
        transform: scale(1);
    }

    14% {
        transform: scale(1.12);
    }

    28% {
        transform: scale(0.98);
    }

    42% {
        transform: scale(1.18);
    }

    70% {
        transform: scale(1);
    }
}

@media (prefers-reduced-motion: reduce) {
    .ws-mini-calendar__heart svg {
        animation: none;
    }
}

.ws-mini-calendar__num {
    position: relative;
    z-index: 1;
    font-size: clamp(13px, 1.8vw, 16px);
    font-weight: 700;
    color: #fff;
    line-height: 1;
}

.rsvp-wrapper {
    display: flex;
    flex-direction: column;
    margin-top: 32px;
}

.rsvp__header h3 {
    font-family: "Montserrat";
    font-size: clamp(14px, 2vw, 18px);
    font-style: normal;
    font-weight: 600;
    line-height: 1.5;
    text-transform: uppercase;
    margin: 0;
    letter-spacing: 0.06em;
    color: #526442;
    font-family: "Montserrat";
}

/* ===================== TIMELINE ===================== */
.ws-timeline-love {
    position: relative;
    background: #F9F5EF;
    z-index: 1;
}

.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;
}

.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);
}

.ws-timeline-love__list--empty {
    max-width: min(100%, 420px);
}

.ws-timeline-love__empty {
    --ws-content-placeholder-border-color: rgba(77, 121, 53, 0.32);
    --ws-content-placeholder-background: rgba(255, 255, 255, 0.55);
    --ws-content-placeholder-icon-color: #4D7935;
    --ws-content-placeholder-icon-border: 1px solid #CAE2BD;
    --ws-content-placeholder-icon-background: #fff;
    --ws-content-placeholder-title-color: #1B1C1A;
    --ws-content-placeholder-path-color: #687660;
}

.ws-timeline-love__item {
    display: grid;
    grid-template-columns: 2.25rem minmax(0, 1fr);
    position: relative;
    align-items: stretch;
}


.ws-timeline-love__marker {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 0.35rem;
}

.ws-timeline-love__marker::after {
    content: "";
    position: absolute;
    top: 2.35rem;
    left: 50%;
    width: 2px;
    bottom: calc(-1 * clamp(1.1rem, 2.8vw, 1.65rem));
    transform: translateX(-50%);
    border-radius: 2px;
    background: rgba(196, 200, 189, 0.30);
}

.ws-timeline-love__item:last-child .ws-timeline-love__marker::after {
    margin-bottom: 38px;
}

.ws-timeline-love__dot {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    color: #4D7935;
    background: #fff;
    border: 1px solid #CAE2BD;
}

.ws-timeline-love__dot-icon {
    display: block;
    width: 0.95rem;
    height: 0.95rem;
}

.ws-timeline-love__dot-icon--image {
    background-color: currentColor;
    -webkit-mask: var(--ws-timeline-icon-url) center / contain no-repeat;
    mask: var(--ws-timeline-icon-url) center / contain no-repeat;
}

.ws-timeline-love__dot i {
    font-size: 18px;
    line-height: 1;
}

.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: 0;
}

.ws-timeline-love__date {
    margin: 0 0 16px;
    color: #182A12;
    font-family: "Playfair Display", serif;
    font-size: clamp(24px, 3.5vw, 30px);
    font-style: normal;
    font-weight: 400;
    line-height: 1.2;
}

.ws-timeline-love__heading {
    margin: 0 0 clamp(0.65rem, 1.5vw, 0.85rem);
    color: #1B1C1A;
    font-family: "Montserrat";
    font-size: clamp(14px, 2vw, 20px);
    font-style: normal;
    font-weight: 400;
    line-height: 1.5;
    letter-spacing: 1.6px;
    text-transform: uppercase;
    margin-bottom: 4px;
}

.ws-timeline-love__desc {
    margin: clamp(0.65rem, 1.5vw, 0.85rem) 0 0;
    color: #526442;
    font-family: "Montserrat";
    font-size: clamp(14px, 2vw, 20px);
    font-style: normal;
    font-weight: 400;
    line-height: 1.6;
}

.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: 1.85rem minmax(0, 1fr);
    }

    .ws-timeline-love__dot {
        width: 1.85rem;
        height: 1.85rem;
    }

    .ws-timeline-love__dot-icon {
        width: 0.82rem;
        height: 0.82rem;
    }

    .ws-timeline-love__heading,
    .ws-timeline-love__desc {
        font-size: 13px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .ws-timeline-love::before {
        background-attachment: scroll;
    }

    .ws-timeline-love__card {
        box-shadow: none;
    }
}

/* Music button */
.ws-music-button-wrap {
    position: fixed;
    bottom: 50px;
    right: 20px;
    z-index: 9999999;
    display: inline-flex;
    align-items: center;
    gap: 0.62rem;
    pointer-events: auto;
}

.ws-music-toggle {
    width: 40px;
    height: 40px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.35);
    background: #2F4F38;
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 10px 24px -14px rgba(28, 35, 20, 0.7);
    transition: transform 0.25s ease, box-shadow 0.25s ease, background-color 0.25s ease;
}

.ws-music-toggle[disabled] {
    background: #b4b4b4;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
    opacity: 0.8;
}

.ws-music-toggle__icon {
    display: inline-flex;
    width: 1.4rem;
    height: 1.4rem;
}

.ws-music-toggle__icon svg {
    width: 100%;
    height: 100%;
    display: block;
}

.ws-music-toggle__icon--pause {
    display: none;
}

.ws-music-button-wrap.is-playing .ws-music-toggle__icon--play {
    display: none;
}

.ws-music-button-wrap.is-playing .ws-music-toggle__icon--pause {
    display: inline-flex;
}

.ws-music-button__hint {
    border-radius: 999px;
    padding: 0.3rem 1.15rem;
    display: inline-flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.92);
    color: #2a2f22;
    font-size: 16px;
    font-weight: 500;
    line-height: 1.2;
    white-space: nowrap;
    box-shadow: 0 12px 26px -18px rgba(0, 0, 0, 0.5);
    max-width: min(70vw, 28rem);
    text-overflow: ellipsis;
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transform: translateY(4px);
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0s linear 0.2s;
    height: 40px;
}

.ws-music-toggle:hover+.ws-music-button__hint,
.ws-music-toggle:focus-visible+.ws-music-button__hint {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
    transition-delay: 0s;
}

.ws-music-button-wrap.is-playing .ws-music-button__hint {
    color: #344256;
}

@keyframes ws-music-pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(var(--primary-rgb, 139, 90, 43), 0.55);
    }

    70% {
        box-shadow: 0 0 0 10px rgba(var(--primary-rgb, 139, 90, 43), 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(var(--primary-rgb, 139, 90, 43), 0);
    }
}

.ws-music-button-wrap.needs-tap .ws-music-toggle {
    animation: ws-music-pulse 1.4s ease-out infinite;
}

.ws-music-wave-bars {
    display: inline-flex;
    align-items: center;
    gap: 2.5px;
    width: 22px;
    height: 22px;
    justify-content: center;
}

.ws-music-wave-bars span {
    display: block;
    width: 3px;
    border-radius: 2px;
    background: #fff;
    transform-origin: bottom center;
}

.ws-music-wave-bars span:nth-child(1) {
    height: 8px;
    animation: ws-bar 1.1s ease-in-out infinite;
    animation-delay: 0s;
}

.ws-music-wave-bars span:nth-child(2) {
    height: 14px;
    animation: ws-bar 1.1s ease-in-out infinite;
    animation-delay: 0.18s;
}

.ws-music-wave-bars span:nth-child(3) {
    height: 18px;
    animation: ws-bar 1.1s ease-in-out infinite;
    animation-delay: 0.08s;
}

.ws-music-wave-bars span:nth-child(4) {
    height: 12px;
    animation: ws-bar 1.1s ease-in-out infinite;
    animation-delay: 0.25s;
}

.ws-music-wave-bars span:nth-child(5) {
    height: 7px;
    animation: ws-bar 1.1s ease-in-out infinite;
    animation-delay: 0.04s;
}

@keyframes ws-bar {

    0%,
    100% {
        transform: scaleY(0.35);
    }

    50% {
        transform: scaleY(1);
    }
}

/* 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;
}
