/* Tokens */
@import url("./album-layouts.css");

:root {
    --t1-primary: #701620;
    --t1-secondary: #D8C7A3;
    --olive-dark: #7F0404;
    --t3-primary: rgba(150, 105, 5, 1);
}

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;
}

/* Keep the invitation layout within the viewport inside the flex body. */
.ws-template-demo-preview__shell,
#ws-demo-mount,
.ws-thiep-cuoi-single__shell,
#ws-thiep-cuoi-mount,
#ws-route-content,
#primary {
    width: 100%;
    max-width: 100%;
    min-width: 0;
}

/* ===================== 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;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: clamp(28px, 6vh, 64px) 20px clamp(18px, 4vh, 42px);
    overflow: hidden;
    pointer-events: auto;
    background-color: #fbf8f2;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.68), rgba(255, 255, 255, 0.68)),
        url('../images/template-3/bg-frame.webp');
    background-repeat: repeat;
    background-size: contain;
    transition: opacity 0.85s ease;
}

.ws-envelope-background {
    position: absolute;
    z-index: 0;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    opacity: 0.45;
    pointer-events: none;
    user-select: none;
}

.ws-envelope-intro {
    position: relative;
    z-index: 6;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: clamp(18px, 2.8vh, 28px);
    flex: 0 0 auto;
    width: 100%;
    max-width: 460px;
    margin: 0 auto clamp(28px, 4.5vh, 48px);
    color: #8a6f35;
    text-align: center;
    pointer-events: none;
}

.ws-envelope-intro p {
    margin: 0;
}

.ws-envelope-intro__label {
    font-family: 'Philosopher', sans-serif;
    font-size: clamp(18px, 5vw, 22px);
    font-weight: 400;
    line-height: 1.3;
    letter-spacing: 0.025em;
    text-transform: uppercase;
}

.ws-envelope-intro__guest {
    font-family: 'Great Vibes', cursive;
    font-size: clamp(40px, 10.5vw, 58px);
    font-weight: 400;
    line-height: 1.2;
    text-shadow: 0 3px 8px rgba(90, 66, 20, 0.12);
}

.ws-envelope-intro__message {
    max-width: 440px;
    font-family: 'Philosopher', sans-serif;
    font-size: clamp(18px, 5vw, 22px);
    font-weight: 400;
    line-height: 1.55;
    letter-spacing: 0.018em;
    text-transform: uppercase;
}

.ws-envelope-stage {
    --ws-envelope-seam-y: 41.57cqw;
    --ws-envelope-open-scale: 1.29;
    position: relative;
    z-index: 1;
    flex: 0 0 auto;
    width: min(calc(100% - 56px), 360px, 49vh);
    aspect-ratio: 0.91;
    container-type: inline-size;
    filter: drop-shadow(0 18px 24px rgba(75, 58, 24, 0.16));
    transform-origin: 50% 58%;
    will-change: transform, opacity;
}

.ws-envelope-stage img {
    display: block;
    max-width: none;
    pointer-events: none;
    user-select: none;
}

.ws-envelope-closed-state {
    position: absolute;
    z-index: 4;
    inset: 0;
    opacity: 1;
    transition: opacity 0.8s ease 0.4s, transform 1s ease 0.18s;
}

.ws-envelope-closed {
    position: absolute;
    z-index: 1;
    left: 0;
    bottom: 7%;
    width: 100%;
    height: auto;
}

.ws-envelope-closed,
.ws-envelope-open-top,
.ws-envelope-open-bottom {
    filter: brightness(90%) contrast(106%) saturate(94%) sepia(8%);
}

.ws-envelope-open-state {
    position: absolute;
    inset: 0;
    z-index: 3;
    opacity: 0;
    transform: scale(var(--ws-envelope-open-scale));
    transform-origin: 50% 56%;
    transition: opacity 0.7s ease 0.35s;
}

.ws-envelope-open-state::before {
    content: '';
    position: absolute;
    z-index: 0;
    top: calc(var(--ws-envelope-seam-y) - 2cqw);
    left: 12%;
    width: 76%;
    height: 24cqw;
    background: #e9e3d8;
    clip-path: polygon(0 0, 100% 0, 91% 100%, 9% 100%);
}

.ws-envelope-open-top,
.ws-envelope-open-bottom {
    position: absolute;
    left: 0;
    width: 100%;
    height: auto;
}

.ws-envelope-open-top {
    z-index: 1;
    top: 0;
    transform-origin: 50% 64.22%;
    backface-visibility: hidden;
    will-change: transform, opacity;
}

.ws-envelope-photo-viewport {
    position: absolute;
    z-index: 2;
    top: 0;
    left: 0;
    width: 100%;
    /* The bottom asset is 482px tall, but its visible alpha ends around y=412. */
    height: 89cqw;
    overflow: hidden;
    pointer-events: none;
}

.ws-envelope-open-photo {
    position: absolute;
    top: 15cqw;
    left: 50%;
    width: 62cqw;
    height: 74cqw;
    overflow: hidden;
    opacity: 0;
    border: 1px solid rgba(255, 255, 255, 0.72);
    border-radius: 2px;
    background: #eee8dc;
    box-shadow: 0 9px 18px rgba(65, 48, 18, 0.2);
    transform: translate(-50%, 25cqw) scale(0.92);
    transform-origin: 50% 60%;
    will-change: transform, opacity;
}

.ws-envelope-open-photo img,
.ws-envelope-banner-transition img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.ws-envelope-open-bottom {
    z-index: 3;
    top: var(--ws-envelope-seam-y);
    left: 0.75%;
    width: 98.5%;
}

.ws-envelope-closed-seal,
.ws-envelope-open-seal {
    position: absolute;
    left: 50%;
    width: clamp(72px, 22%, 88px);
    aspect-ratio: 330 / 293;
    display: grid;
    place-items: center;
    transform: translate(-50%, -50%);
    transform-origin: center;
}

.ws-envelope-closed-seal {
    z-index: 2;
    top: 70cqw;
}

.ws-envelope-open-seal {
    z-index: 4;
    top: calc(var(--ws-envelope-seam-y) + 1cqw);
}

.ws-envelope-seal__image {
    position: relative;
    z-index: 1;
    width: 100%;
    height: auto;
    filter: saturate(88%) brightness(103%) contrast(96%) drop-shadow(0 4px 7px rgba(91, 70, 34, 0.25));
}

.ws-envelope-overlay.ws-envelope--opening .ws-envelope-closed-state {
    opacity: 0;
    transform: translateY(2cqw) scale(0.985);
}

.ws-envelope-overlay.ws-envelope--opening .ws-envelope-open-state {
    opacity: 1;
    transform: scale(var(--ws-envelope-open-scale));
}

.ws-envelope-overlay.ws-envelope--opening .ws-envelope-open-top {
    animation: ws-envelope-flap-open 1.15s cubic-bezier(0.2, 0.72, 0.18, 1) 0.4s both;
}

.ws-envelope-overlay.ws-envelope--opening .ws-envelope-open-photo {
    animation: ws-envelope-photo-reveal 1.8s cubic-bezier(0.18, 0.72, 0.16, 1) 1.4s both;
}

.ws-envelope-overlay.ws-envelope--opening .ws-envelope-open-seal {
    animation: ws-envelope-seal-release 0.85s ease 0.18s forwards;
}

.ws-envelope-overlay.ws-envelope--handoff .ws-envelope-stage {
    animation: ws-envelope-stage-exit 0.9s ease forwards;
}

.ws-envelope-overlay.ws-envelope--handoff {
    opacity: 0;
}

.ws-template-3-envelope-scene .ws-envelope-overlay.ws-envelope--done {
    display: none;
}

@keyframes ws-envelope-flap-open {
    0% {
        opacity: 0.12;
        transform: perspective(900px) rotateX(-88deg) scaleY(0.08);
    }

    25% {
        opacity: 0.4;
    }

    100% {
        opacity: 1;
        transform: perspective(900px) rotateX(0) scaleY(1);
    }
}

@keyframes ws-envelope-seal-release {
    to {
        opacity: 0;
        transform: translate(-50%, -50%) scale(1.22);
    }
}

@keyframes ws-envelope-photo-reveal {
    0% {
        opacity: 0;
        transform: translate(-50%, 25cqw) scale(0.92);
    }

    24% {
        opacity: 1;
    }

    to {
        opacity: 1;
        transform: translate(-50%, 4cqw) scale(1);
    }
}

@keyframes ws-envelope-stage-exit {
    to {
        opacity: 0;
        transform: translateY(10vh) scale(0.94);
    }
}

.ws-envelope-banner-transition {
    position: fixed;
    z-index: 10001;
    overflow: hidden;
    border-radius: 2px;
    background: #eee8dc;
    box-shadow: 0 9px 18px rgba(65, 48, 18, 0.2);
    pointer-events: none;
    transform-origin: 0 0;
    backface-visibility: hidden;
    contain: layout;
    will-change: transform, opacity;
}

.ws-envelope-banner-transition img {
    position: absolute;
    max-width: none;
    object-fit: fill;
    transform-origin: 0 0;
    backface-visibility: hidden;
    will-change: transform;
}

/* Lay out the invitation early while keeping it paint-hidden. */
#invitation-content.ws-template-3-handoff-prepared {
    display: block;
    visibility: hidden;
    opacity: 1;
    transition: none;
}

#invitation-content.ws-template-3-handoff-content {
    visibility: visible;
    opacity: 1;
    transition: 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%;
    top: calc(100% + clamp(10px, 2vh, 20px));
    bottom: auto;
    transform: translateX(-50%);
    width: 100%;
    padding: 0 16px;
    text-align: center;
    pointer-events: none;
    transition: opacity 0.6s ease;
}

.ws-envelope-cursor {
    position: absolute;
    z-index: 5;
    top: 72cqw;
    left: 61%;
    display: grid;
    place-items: center;
    width: clamp(34px, 10cqw, 42px);
    height: clamp(34px, 10cqw, 42px);
    color: rgba(255, 255, 255, 0.96);
    transform: translate(-50%, 0);
    pointer-events: none;
    transition: opacity 0.35s ease, transform 0.35s ease;
}

.ws-envelope-cursor__icon {
    width: 100%;
    height: 100%;
    overflow: visible;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
    filter: drop-shadow(0 2px 3px rgba(74, 48, 15, 0.7)) drop-shadow(0 0 5px rgba(255, 248, 220, 0.72));
    animation: ws-envelope-cursor-tap 1.8s ease-in-out infinite;
}

.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);
    }
}

@keyframes ws-envelope-cursor-tap {

    0%,
    100% {
        opacity: 0.68;
        transform: translateY(3px) scale(1);
    }

    50% {
        opacity: 1;
        transform: translateY(-2px) scale(0.9);
    }
}

.ws-envelope-overlay.ws-envelope--opening .ws-envelope-cursor,
.ws-envelope-overlay.ws-envelope--opening .ws-envelope-tap-hint {
    opacity: 0;
    transform: translate(-50%, 5px);
}

.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;
    }

    .ws-envelope-cursor__icon {
        animation: none;
    }

    .ws-envelope-overlay.ws-envelope--opening .ws-envelope-open-top,
    .ws-envelope-overlay.ws-envelope--opening .ws-envelope-open-photo,
    .ws-envelope-overlay.ws-envelope--opening .ws-envelope-open-seal,
    .ws-envelope-overlay.ws-envelope--handoff .ws-envelope-stage {
        animation-duration: 0.01ms;
        animation-delay: 0s;
    }
}

@media (max-height: 680px) {
    .ws-template-3-envelope-scene .ws-envelope-overlay {
        padding-top: 18px;
        padding-bottom: 14px;
    }

    .ws-envelope-intro {
        gap: 12px;
        margin-bottom: 20px;
    }

    .ws-envelope-intro__label {
        font-size: 17px;
    }

    .ws-envelope-intro__guest {
        font-size: clamp(42px, 11vw, 58px);
    }

    .ws-envelope-intro__message {
        font-size: 14px;
        line-height: 1.4;
    }
}

@media (max-width: 600px) {

    /* The overlay fade already hides the envelope; skip a redundant layer animation. */
    .ws-envelope-overlay.ws-envelope--handoff .ws-envelope-stage {
        animation: none;
    }
}

/* Couple section */
.ws-couple-banner-preload {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
    overflow: hidden;
}

.ws-general-section {
    height: 650px;
    position: relative;
    overflow-x: hidden;
    overflow-x: clip;
    overflow-y: visible;
}

.couple__welcome {
    font-family: 'Great Vibes', cursive;
    font-size: 60px;
    color: #fff;
    text-shadow: rgba(0, 0, 0, 0.35) 0px 4px 4px;
    margin-top: -50px;
}

.ws-couple__divider,
.ws-couple__name {
    color: #fff;
    text-align: center;
    font-size: 42px;
    font-style: normal;
    line-height: 1.1;
    font-family: 'Playfair Display', sans-serif;
    text-shadow: 0px 4px 4px rgba(0, 0, 0, 0.35);
    text-transform: uppercase;
}

.ws-couple__divider {
    position: absolute;
    top: 70%;
    left: 44%;
    transform: translate(-50%, -50%);
    font-size: 144px;
    opacity: 0.38;
    font-style: italic;
    font-family: 'Great Vibes', cursive;
}

.couple-content {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 70px;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-around;
    height: fit-content;
}

.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-size: 17px;
    font-style: normal;
    font-weight: 400;
    line-height: normal;
    max-width: 312px;
    font-family: 'Philosopher', sans-serif;
}

.family-info__guest span {
    color: #725906;
    text-align: center;
    font-family: "Great Vibes";
    font-size: clamp(32px, 5.5vw, 38px);
    font-style: normal;
    font-weight: 400;
    line-height: 110%;
    text-transform: capitalize;
    text-shadow: 0px 4px 4px rgba(0, 0, 0, 0.15);
    display: block;
}

.family-info__line {
    width: 284px;
    border: 1px solid #C7B589;
    border-style: dashed;
}

.family-info__title {
    color: var(--t3-primary);
    text-align: center;
    font-style: normal;
    font-family: 'Philosopher', sans-serif;
    font-size: clamp(18px, 5vw, 22px);
    font-weight: 400;
    line-height: 1.3;
    letter-spacing: 0.025em;
    text-transform: uppercase;
}

.family-info__invitation {
    padding-top: 30px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    justify-content: center;
    align-items: center;
    width: 100%;
}

.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: 'Cormorant', serif;
    font-weight: 500;
    color: var(--t3-primary);
}

.template-9-event-section {
    position: relative;
    z-index: 2;
    isolation: isolate;
    overflow: visible;
}

/* .template-9-event-section::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    background: url('../images/template-3/bg-envelop.webp') center / cover no-repeat;
    opacity: 0.45;
    pointer-events: none;
} */

.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: 16px;
    font-weight: bold;
    text-transform: uppercase;
    font-family: 'Quicksand', 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: 'Quicksand', sans-serif;
    font-size: 14px;
    font-weight: 600;
}

.event-info {
    border-radius: 18px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 36px;
    align-self: stretch;
    position: relative;
    z-index: 1;
    width: min(100%, 500px);
    margin: auto;
}

.event-info-list {
    display: grid;
    gap: 24px;
    position: relative;
    z-index: 1;
}

.event-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,
.family-info__names {
    display: flex;
    flex-direction: column;
    align-items: center;
    font-family: 'Playfair Display', serif;
}

.groom,
.bride,
.family-info__person {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.bride-name,
.groom-name,
.family-info__name {
    font-size: clamp(28px, 5.5vw, 30px);
    color: var(--t3-primary);
    text-align: center;
    font-style: normal;
    font-weight: 400;
    line-height: 1.2;
    font-family: 'Playfair Display', serif;
    text-transform: uppercase;
    margin: 0;
}

.event-info__couple-divider,
.family-info__divider {
    color: var(--t3-primary);
    text-align: center;
    font-family: 'Playball', cursive;
    font-size: clamp(36px, 5.5vw, 48px);
    font-style: italic;
    font-weight: 400;
    line-height: 1.4;
}

.family-info__names {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-block: 40px;
}

.family-info__person {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.family-info__divider,
.family-info__name {
    margin: 0;
    color: var(--t3-primary);
    font-family: 'Playfair Display', serif;
    font-size: clamp(28px, 5.5vw, 30px);
    font-style: normal;
    font-weight: 400;
    line-height: 1.2;
    text-align: center;
    text-transform: uppercase;
}

.family-info__divider {
    font-family: 'Playball', cursive;
}


.event-calendar {
    display: flex;
    flex-direction: column;
    gap: 24px;
    align-self: stretch;
    padding-bottom: 0;
}

.event-calendar:not(:last-child) {
    border-bottom: none;
}

.ws-event-details-card.event-calendar {
    overflow: hidden;
    width: 100%;
    margin: 4px auto 0;
    padding: 0;
    gap: 22px;
    border: 1px solid rgba(114, 89, 6, 0.16);
    border-radius: 22px;
    background: rgba(255, 253, 248, 0.78);
    box-shadow: 0 16px 38px rgba(83, 60, 13, 0.13);
}

.ws-event-details-card.event-calendar:not(.has-event-image) {
    padding-top: 28px;
}

.ws-event-details-card.event-calendar:not(.has-event-venue) {
    padding-bottom: 28px;
}

.ws-event-details-card.event-calendar+.ws-event-details-card.event-calendar {
    margin-top: 32px;
    padding-top: 0;
}

.ws-event-details-card.event-calendar+.ws-event-details-card.event-calendar:not(.has-event-image) {
    padding-top: 28px;
}

.ws-event-details-card.event-calendar+.ws-event-details-card.event-calendar::before {
    content: none;
}

.ws-event-details-card>.ws-event-details-card__time,
.ws-event-details-card>.event-calendar__date,
.ws-event-details-card>.event-calendar__vietnamese-date {
    padding-right: 22px;
    padding-left: 22px;
}

.ws-event-details-card .event-calendar__venue {
    width: 100%;
    padding: 0;
    gap: 0;
    border-radius: 0;
}

.ws-event-venue-reveal {
    position: relative;
    overflow: hidden;
    width: 100%;
    aspect-ratio: 16 / 10;
    margin: 0;
    border-bottom: 1px solid rgba(114, 89, 6, 0.14);
    background: #e9dfca;
    isolation: isolate;
}

.ws-event-venue-reveal::before {
    content: '';
    position: absolute;
    inset: 10px;
    z-index: 2;
    border: 1px solid rgba(255, 255, 255, 0.68);
    border-radius: 13px;
    pointer-events: none;
}

.ws-event-venue-reveal::after {
    content: '';
    position: absolute;
    inset: auto 0 0;
    z-index: 1;
    height: 28%;
    background: linear-gradient(180deg, transparent, rgba(34, 25, 8, 0.18));
    pointer-events: none;
}

.ws-event-venue-reveal__image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ws-event-details-card__content {
    display: flex;
    width: 100%;
    padding: 0 24px 30px;
    flex-direction: column;
    align-items: center;
    gap: 7px;
}

.ws-event-details-card .party-item__label {
    position: relative;
    padding-bottom: 10px;
}

.ws-event-details-card .party-item__label::after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 50%;
    width: 38px;
    height: 1px;
    transform: translateX(-50%);
    background: rgba(114, 89, 6, 0.45);
}

.ws-event-details-card .party-item__actions {
    margin-top: 17px;
}

.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: 1.2;
    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__weekday-label,
.event-calendar__month-label {
    display: block;
    white-space: nowrap;
    line-height: 1.2;
    font-family: 'Yeseva One', sans-serif;
}

.event-calendar__date-label {
    display: block;
}

.event-calendar__day {
    font-size: 48px;
    color: var(--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;
    margin-top: 24px;
    font-family: 'Quicksand', sans-serif;
}

/* 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;
    padding-top: 0;
}

.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;
    line-height: 1.2;
}

.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: 12px 20px;
    color: rgba(255, 255, 255, 1);
    font-size: 14px;
    font-weight: bold;
    background: rgba(150, 105, 5, 1.000);
    border-radius: 12px;
    line-height: 1.2;
}

.party-item__button:hover {
    opacity: 0.8;
}

.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;
    background: rgba(150, 105, 5, 1.000);
}

.btn-confirm:hover {
    opacity: .9;
}

.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;
    z-index: 3;
    left: -45px;
    bottom: -50px;
    width: 250px;
    pointer-events: none;
}

.event-section-bg-bottom-right {
    position: absolute;
    z-index: 3;
    right: -25px;
    bottom: -50px;
    width: 250px;
    pointer-events: none;
}

/* 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: 300px;
    overflow: hidden;
    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: center;
}

.ws-timeline-love__inner .section-title {
    color: #fff;
}

.timeline-dress__inner {
    display: flex;
    flex-direction: column;
    width: fit-content;
    align-items: center;
    justify-content: center;
}

.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;
    line-height: 1;
}

.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);
}

#ws-guestbook-message {
    min-height: 72px;
    overflow-y: hidden;
    resize: none;
    field-sizing: content;
}

.guestbook-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: center;
    padding-top: 8px;
}

/* button */
.btn-guestbook {
    font-size: clamp(13px, 1.8vw, 16px);
    display: flex;
    justify-content: center;
    align-items: center;
    align-self: stretch;
    color: #fff;
    text-align: center;
    font-family: 'Inter';
    font-style: normal;
    font-weight: 600;
    line-height: 12px;
    letter-spacing: 1.2px;
    background: var(--t3-primary);
    border: 1px solid #D8C7A3;
    cursor: pointer;
    padding: 12px 20px;
    border-radius: 10px;
    text-transform: uppercase;
    line-height: 1.2;
}

.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;
}

.guestbook-list-wrap[hidden] {
    display: none;
}

@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 */
.love-story__invitation-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: clamp(50px, 12vw, 60px);
}

.love-story__invitation-header .family-info__invitation {
    padding-top: 0;
}

.love-story__invitation-header .event-info__couple-name {
    margin-top: 32px;
}

.calendar-divider {
    display: block;
    width: 100%;
    margin-top: 30px;
}

.love-story__intro {
    padding-bottom: 0;
}

.love-story__calendar-content {
    padding-block: 0;
}

.general-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: start;
    padding: 0;
    position: relative;
    gap: 16px;
}

.love-title {
    font-family: 'Literata', sans-serif;
    font-size: 16px;
    color: var(--t3-primary);
    text-align: center;
    margin: 0 auto;
    margin-top: 40px;
}

.groom-grid,
.bride-grid {
    display: flex;
    min-width: 0;
    flex-direction: column;
    padding: 0;
}

.ws-general-photo__frame {
    width: 100%;
    max-width: none;
    aspect-ratio: 2 / 3;
    padding: 0;
    overflow: hidden;
    background: #f5f1e8;
    box-shadow: 0 12px 24px rgba(79, 59, 22, 0.2);
}

.groom-grid .ws-general-photo__frame {
    rotate: 0deg;
}

.groom-grid .ws-general-photo {
    order: 2;
    display: flex;
    width: 100%;
}

.bride-grid .ws-general-photo {
    order: 1;
    display: flex;
    width: 100%;
}

.bride-grid .ws-general-photo__frame {
    rotate: 0deg;
}

.ws-general-photo__frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.ws-general-couple {
    display: flex;
    width: 100%;
    min-width: 0;
    align-items: center;
    justify-content: center;
}

.ws-general-couple__info {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    margin: 0;
}

.ws-general-couple__role {
    color: var(--t3-primary);
    text-align: center;
    font-family: 'Great Vibes', cursive;
    font-size: clamp(26px, 7vw, 30px);
    font-style: normal;
    font-weight: 400;
    line-height: 1.15;
    margin: 0 0 8px;
}

.ws-general-couple__name {
    color: var(--t3-primary);
    text-align: center;
    font-family: 'Playfair Display', sans-serif;
    font-size: clamp(19px, 5.4vw, 27px);
    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;
    margin: 0;
}

.groom-grid .ws-general-couple {
    order: 1;
    min-height: clamp(112px, 29vw, 145px);
}

.bride-grid .ws-general-couple {
    order: 2;
    margin-top: clamp(24px, 7vw, 36px);
}

.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;
    color: var(--t3-primary);
    font-family: 'Literata', sans-serif;
    font-size: 12px;
    line-height: 1;
}

.ws-mini-calendar__dow {
    flex-direction: column;
    font-size: clamp(11px, 3vw, 14px);
    font-weight: 600;
    letter-spacing: 0.04em;
    opacity: 0.85;
    text-transform: uppercase;
    line-height: 1.2;
}

.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
       ============================================ */

/* Couple photos enter from opposite directions and settle without rotation. */
@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);
    }
}

/* 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;
    line-height: 1.2;
    text-align: center;
    font-size: clamp(28px, 3vw, 32px);
    white-space: nowrap;
}

/* Album lightbox */
.album-bg-bottom-right {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 192px;
    position: absolute;
    bottom: -26px;
    right: -36px;
    width: 192px;
    z-index: 2;
}

.album-bg-bottom-left {
    position: absolute;
    bottom: -41px;
    left: -40px;
    width: 230px;
    /* z-index: 2; */
}

/* Music button */
.ws-music-button-wrap {
    position: fixed;
    bottom: 50px;
    right: 20px;
    z-index: 9999999;
    display: inline-flex;
    align-items: center;
    gap: 0.62rem;
    pointer-events: auto;
}

.ws-music-toggle {
    width: 40px;
    height: 40px;
    border-radius: 999px;
    border: 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__attendance {
    display: grid;
    gap: 8px;
    min-width: 0;
    margin: 0;
    padding: 0;
    border: 0;
}

.rsvp-section__attendance-label {
    padding: 0;
    color: #4B382A;
    font-family: 'Inter';
    font-size: 13px;
    font-weight: 600;
    line-height: 1.3;
    padding-bottom: 8px;
}

.rsvp-section__attendance-choices {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 8px;
}

.rsvp-section__attendance-option {
    position: relative;
    min-width: 0;
    margin: 0;
    cursor: pointer;
}

.rsvp-section__attendance-option input {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
}

.rsvp-section__attendance-option span {
    display: flex;
    align-items: center;
    gap: 8px;
    height: 45px;
    padding: 9px 11px;
    border: 1px solid rgba(169, 130, 69, .28);
    border-radius: 12px;
    background: #FFFDF9;
    color: #7B6959;
    font-family: 'Inter';
    font-size: 12px;
    font-weight: 600;
    line-height: 1.35;
    text-align: left;
    transition: border-color 180ms ease, background-color 180ms ease, color 180ms ease, box-shadow 180ms ease;
}

.rsvp-section__attendance-option span::before {
    content: '';
    flex: 0 0 14px;
    width: 14px;
    height: 14px;
    border: 1px solid rgba(169, 130, 69, .55);
    border-radius: 50%;
    background: #FFF;
    transition: border-width 180ms ease, border-color 180ms ease;
}

.rsvp-section__attendance-option input:checked+span {
    border-color: #A98245;
    background: #FFF8EC;
    color: #4B382A;
    box-shadow: 0 2px 8px rgba(75, 56, 42, .1);
}

.rsvp-section__attendance-option input:checked+span::before {
    border: 4px solid #A98245;
}

.rsvp-section__attendance-option input:focus-visible+span {
    outline: 2px solid #A98245;
    outline-offset: 2px;
}

.rsvp-section__attending-fields {
    display: none;
    gap: 18px;
    width: 100%;
    color: #4B382A;
    font-family: 'Inter';
}

.rsvp-section__form:has(input[name="invitation_rsvp_status"][value="attending"]:checked) .rsvp-section__attending-fields {
    display: grid;
}

.rsvp-section .ws-rsvp-question__label {
    color: #4B382A;
    font-family: 'Inter';
    font-size: 13px;
    font-weight: 600;
    line-height: 1.3;
}

.rsvp-section .ws-rsvp-question__choices {
    gap: 8px;
}

.rsvp-section .ws-rsvp-question__choices label {
    min-height: 48px;
    padding: 10px 14px;
    border: 1px solid rgba(169, 130, 69, .32);
    border-radius: 12px;
    background: #FFFDF9;
    color: #4B382A;
    font-family: 'Inter';
    opacity: 1;
    transition: border-color 180ms ease, background-color 180ms ease, box-shadow 180ms ease;
}

.rsvp-section .ws-rsvp-question__choices label:has(input:checked) {
    border-color: #A98245;
    background: #FFF8EC;
    box-shadow: 0 0 0 3px rgba(169, 130, 69, .14);
}

.rsvp-section .ws-rsvp-question__choices input {
    accent-color: #A98245;
}

.rsvp-section .ws-rsvp-question__choices label:focus-within {
    border-color: #A98245;
    box-shadow: 0 0 0 3px rgba(169, 130, 69, .14);
}

.rsvp-section .ws-rsvp-question__text {
    min-height: 84px;
    padding: 11px 13px;
    border: 1px solid rgba(169, 130, 69, .32);
    border-radius: 12px;
    background: #FFFDF9;
    color: #4B382A;
    font-family: 'Inter';
    font-size: 14px;
    font-weight: 400;
    line-height: 1.45;
    box-shadow: none;
    transition: border-color 180ms ease, box-shadow 180ms ease;
}

.rsvp-section .ws-rsvp-question__text:focus {
    border-color: #A98245;
    box-shadow: 0 0 0 3px rgba(169, 130, 69, .14);
}

.rsvp-section .ws-rsvp-question--select {
    display: grid;
    gap: 8px;
}

.rsvp-section .ws-rsvp-question__select {
    width: 100%;
    height: 48px;
    padding: 10px 48px 10px 14px;
    border: 1px solid rgba(169, 130, 69, .32);
    border-radius: 12px;
    outline: none;
    background-color: #FFFDF9;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16'%3E%3Cpath d='m4 6 4 4 4-4' fill='none' stroke='%234B382A' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    background-size: 16px 16px;
    color: #4B382A;
    font-family: 'Inter';
    font-size: 14px;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    transition: border-color 180ms ease, box-shadow 180ms ease;
}

.rsvp-section .ws-rsvp-question__select:focus {
    border-color: #A98245;
    box-shadow: 0 0 0 3px rgba(169, 130, 69, .14);
}

.rsvp-section__field input,
.rsvp-section__field select {
    width: 100%;
    height: 45px;
    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__count-field {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.rsvp-section__count-control {
    display: grid;
    grid-template-columns: 32px 40px 32px;
    align-items: center;
    gap: 2px;
    padding: 3px;
    border: 1px solid rgba(169, 130, 69, .32);
    border-radius: 10px;
    background: #FFFDF9;
}

.rsvp-section__count-control:focus-within {
    border-color: #A98245;
    box-shadow: 0 0 0 3px rgba(169, 130, 69, .14);
}

.rsvp-section__count-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    padding: 0;
    border: 0;
    border-radius: 7px;
    background: #F3ECE1;
    color: #6D543B;
    font-family: 'Inter';
    font-size: 18px;
    font-weight: 500;
    line-height: 1;
    cursor: pointer;
}

.rsvp-section__count-button:hover {
    background: #EADCC8;
}

.rsvp-section__count-button:focus-visible {
    outline: 2px solid #A98245;
    outline-offset: 1px;
}

.rsvp-section__field .rsvp-section__count-input {
    width: 40px;
    height: 20px;
    padding: 0 2px;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: #4B382A;
    font-size: 14px;
    font-weight: 700;
    text-align: center;
    appearance: textfield;
    -moz-appearance: textfield;
}

.rsvp-section__field .rsvp-section__count-input:focus {
    border: 0;
    box-shadow: none;
}

.rsvp-section__count-input::-webkit-inner-spin-button,
.rsvp-section__count-input::-webkit-outer-spin-button {
    margin: 0;
    -webkit-appearance: none;
}

.rsvp-section__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: 1.2;
    letter-spacing: 1.2px;
    background: var(--t3-primary);
    border: 1px solid #D8C7A3;
    cursor: pointer;
    padding: 12px 20px;
    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;
}

.rsvp__notice--success {
    color: #1f5a34;
    background: rgba(197, 236, 210, 0.95);
    padding: 10px 12px;
    border-radius: 8px;
    font-size: 14px;
    text-align: center;
}

html.ws-modal-open,
body.ws-modal-open {
    overflow: hidden;
}

.rsvp-section__open-button {
    width: 100%;
    margin-top: 0;
}

.template-9-rsvp-modal__form {
    margin: 0;
}

.template-9-rsvp-modal.ws-modal[hidden] {
    display: none !important;
}

.template-9-rsvp-modal.ws-modal {
    position: fixed;
    inset: 0;
    z-index: 10050;
    display: grid;
    width: auto;
    height: auto;
    place-items: center;
    padding: 16px;
}

.template-9-rsvp-modal__backdrop.ws-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(45, 34, 22, 0.6);
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
    cursor: pointer;
}

.template-9-rsvp-modal__content.ws-modal__content {
    position: relative;
    z-index: 1;
    width: min(500px, calc(100vw - 24px));
    max-height: none;
    padding: 0;
    overflow: visible;
    background: transparent;
    box-shadow: none;
}

.template-9-rsvp-modal__dialog {
    position: relative;
    max-height: calc(100vh - 32px);
    max-height: calc(100dvh - 32px);
    padding: 32px;
    overflow-y: auto;
    border: 1px solid rgba(169, 130, 69, 0.28);
    border-radius: 28px;
    outline: none;
    background: #fff;
    box-shadow: 0 26px 70px rgba(45, 34, 22, 0.3);
    animation: template-9-rsvp-modal-in 260ms ease-out both;
}

@keyframes template-9-rsvp-modal-in {
    from {
        opacity: 0;
        transform: translateY(12px) scale(0.98);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.template-9-rsvp-modal__close {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 1;
    display: inline-grid;
    width: 34px;
    height: 34px;
    place-items: center;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: rgba(169, 130, 69, 0.1);
    color: var(--t3-primary);
    font-family: Arial, sans-serif;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
}

.template-9-rsvp-modal__close:hover {
    background: rgba(169, 130, 69, 0.2);
}

.template-9-rsvp-modal__close:focus-visible {
    outline: 2px solid var(--t3-primary);
    outline-offset: 2px;
}

.template-9-rsvp-modal__header {
    padding: 0 26px 4px;
    text-align: center;
}

.template-9-rsvp-modal__header .section-title {
    margin: 0 0 8px;
}

.template-9-rsvp-modal .rsvp__notice {
    width: 100%;
    padding: 10px 12px;
    border-radius: 8px;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    line-height: 1.45;
    text-align: center;
}

.template-9-rsvp-modal .rsvp__notice.is-hidden,
.template-9-rsvp-modal [data-ws-rsvp-modal-notice][hidden] {
    display: none;
}

.template-9-rsvp-modal .rsvp__notice--error {
    color: #842029;
    background: #f8d7da;
}

@media (prefers-reduced-motion: reduce) {
    .template-9-rsvp-modal__dialog {
        animation: none;
    }
}

@media (max-width: 575px) {
    .rsvp-section__inner {
        padding: 28px 20px;
        border-radius: 22px;
    }

    .rsvp-section__title {
        font-size: 38px;
        line-height: 44px;
    }

    .template-9-rsvp-modal__dialog {
        padding: 28px 20px;
        border-radius: 22px;
    }
}
