/* 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;
}

/* Falling hearts and snowflakes inspired by the invitation's reference effect. */
.ws-t12-particle-layer {
    position: fixed;
    z-index: 9998;
    inset: 0;
    width: min(100%, 500px);
    height: 100vh;
    height: 100dvh;
    margin-inline: auto;
    overflow: hidden;
    pointer-events: none;
    user-select: none;
}

.ws-t12-particle-layer .hearts,
.ws-t12-particle-layer .snowflakes {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
}

.ws-t12-particle-layer .hearts {
    font-size: 8px;
}

.ws-t12-particle-layer .snowflakes {
    font-size: 18px;
}

.ws-t12-particle-layer .heart,
.ws-t12-particle-layer .snowflake {
    position: absolute;
    top: -10vh;
    line-height: 1;
    will-change: transform, opacity;
}

.ws-t12-particle-layer .heart {
    z-index: 9998;
    color: #ff3366;
    font-size: 1.5em;
    font-weight: 700;
    text-shadow: 0 0 5px rgba(0, 0, 0, 0.5);
    animation-name: ws-t12-heart-fall;
    animation-timing-function: linear;
    animation-fill-mode: forwards;
}

@keyframes ws-t12-heart-fall {
    0% {
        opacity: 1;
        transform: translate3d(0, -10%, 0) scale(0.7);
    }

    100% {
        opacity: 0.2;
        transform: translate3d(var(--particle-drift), 110vh, 0) scale(1.2);
    }
}

.ws-t12-particle-layer .snowflake {
    z-index: 9997;
    color: rgba(255, 255, 255, 0.96);
    font-weight: 700;
    text-shadow: 0 0 6px rgba(0, 0, 0, 0.55);
    animation-name: ws-t12-snowflake-fall;
    animation-timing-function: linear;
    animation-fill-mode: forwards;
}

@keyframes ws-t12-snowflake-fall {
    0% {
        opacity: 0.95;
        transform: translate3d(0, -10%, 0) rotate(0deg) scale(0.8);
    }

    100% {
        opacity: 0.18;
        transform: translate3d(var(--particle-drift), 110vh, 0) rotate(420deg) scale(1.15);
    }
}

@media (prefers-reduced-motion: reduce) {
    .ws-t12-particle-layer {
        display: none;
    }
}

.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: "Fz-Photograph.ttf", cursive;
    font-size: clamp(40px, 10.5vw, 58px);
    font-weight: 400;
    line-height: 1.2;
}

.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-t12-save-date {
    width: 100%;
    min-height: clamp(730px, 188.235vw, 941px);
    padding: clamp(150px, 33vw, 175px) 0 clamp(38px, 9vw, 52px);
    position: relative;
    isolation: isolate;
    overflow: hidden;
    color: #090909;
    background: #fff url('../images/template-12/bg-with-save-the-date.png') center / 100% 100% no-repeat;
}

.ws-t12-save-date__content {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

.ws-t12-save-date__names {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0 clamp(8px, 2.5vw, 14px);
    width: calc(100% - 42px);
    min-height: 58px;
    margin: 0 auto clamp(18px, 4.5vw, 26px);
    color: #070707;
    font-family: 'VIP High Spirited', 'Great Vibes', cursive;
    font-size: clamp(36px, 10vw, 53px);
    font-weight: 400;
    line-height: 1;
    text-align: center;
}

.ws-t12-save-date__names>span {
    font-family: 'VIP High Spirited', 'Great Vibes', cursive;
}

.ws-t12-save-date__ampersand {
    font-size: .78em;
}

.ws-t12-save-date__photo {
    position: relative;
    width: min(76%, 360px);
    aspect-ratio: 2 / 3;
    margin: 0 auto clamp(24px, 6vw, 34px);
    background: #ebe8e7;
}

.ws-t12-save-date__photo>img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.ws-t12-save-date__photo .ws-image-placeholder,
.ws-t12-save-date__photo .ws-wedding-image-placeholder {
    width: 100%;
    height: 100%;
}

.ws-t12-save-date__calendar {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(120px, 1.22fr) minmax(52px, .55fr);
    align-items: stretch;
    width: min(86%, 410px);
    min-height: clamp(70px, 18vw, 92px);
    margin: 0 auto;
    font-family: Georgia, 'Times New Roman', serif;
}

.ws-t12-save-date__calendar * {
    font-family: 'Lora', Georgia, serif;
}

.ws-t12-save-date__calendar-side {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    line-height: 1.12;
}

.ws-t12-save-date__time {
    font-size: clamp(20px, 5.7vw, 29px);
}

.ws-t12-save-date__weekday {
    margin-top: 5px;
    font-size: clamp(15px, 4.4vw, 22px);
    white-space: nowrap;
}

.ws-t12-save-date__date {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 clamp(10px, 3vw, 18px);
    border-right: 1.5px solid #151515;
    border-left: 1.5px solid #151515;
    font-size: clamp(37px, 10.8vw, 56px);
    font-weight: 500;
    line-height: 1;
    white-space: nowrap;
}

.ws-t12-save-date__calendar-side--right {
    gap: 5px;
    font-size: clamp(21px, 6vw, 31px);
}

.ws-t12-save-date__lunar {
    width: calc(100% - 48px);
    margin: clamp(17px, 4vw, 24px) auto 0;
    font-family: 'Quicksand', sans-serif;
    font-size: clamp(14px, 4vw, 20px);
    font-style: italic;
    line-height: 1.4;
    text-align: center;
}

@media (max-width: 380px) {
    .ws-t12-save-date {
        min-height: 730px;
        padding-top: 142px;
    }

    .ws-t12-save-date__names {
        width: calc(100% - 24px);
        font-size: 36px;
    }

    .ws-t12-save-date__photo {
        width: 78%;
    }

    .ws-t12-save-date__calendar {
        width: 90%;
        grid-template-columns: minmax(0, 1fr) minmax(108px, 1.15fr) minmax(46px, .5fr);
    }

    .ws-t12-save-date__weekday {
        font-size: 14px;
    }
}

#ws-couple-section [data-aos] {
    transition-property: opacity, transform !important;
}

/* 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 {
    --t12-timeline-accent: #9f2d22;
    --t12-timeline-panel: #f2f1f0;
    position: relative;
    z-index: 1;
    width: 100%;
    padding: clamp(40px, 10vw, 58px) 0 clamp(46px, 11vw, 64px);
    overflow: hidden;
    border-top: 1px solid rgba(67, 45, 42, 0.04);
    border-bottom: 1px solid rgba(67, 45, 42, 0.04);
    color: #090909;
    background: #f0f2f7;
}

.ws-t12-events+.album-section {
    padding-top: 0;
}

.ws-timeline-love__layout {
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr);
    align-items: start;
    column-gap: clamp(16px, 4vw, 24px);
    box-sizing: border-box;
    width: calc(100% - 46px);
    margin: 0 auto;
}

.ws-timeline-love__media {
    position: relative;
    align-self: start;
    min-width: 0;
    box-sizing: border-box;
    aspect-ratio: 2 / 3;
    margin-top: 0;
    overflow: hidden;
    border: clamp(3px, 1vw, 5px) solid #fff;
    border-radius: 3px;
    background-color: #eadfdb;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    box-shadow: 0 10px 24px rgba(67, 45, 42, 0.14);
}

.ws-timeline-love__media::after {
    content: none;
}

.ws-timeline-love__content {
    position: relative;
    z-index: 1;
    box-sizing: border-box;
    min-width: 0;
    padding: 0;
    background: transparent;
}

.ws-timeline-love__background-placeholder {
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
    opacity: 0.65;
}

.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;
    box-sizing: border-box;
    width: 100%;
    margin: 0;
    padding: 0;
}

.ws-timeline-love .section-title {
    margin: 0 auto clamp(22px, 6vw, 32px);
    padding: 0 20px;
    color: var(--t12-timeline-accent);
    font-family: 'VIP High Spirited', 'Great Vibes', cursive;
    font-size: clamp(38px, 10vw, 52px);
    font-style: normal;
    font-weight: 400;
    line-height: 1.05;
    text-align: center;
    text-shadow: none;
}

.ws-timeline-love__list {
    display: grid;
    gap: clamp(25px, 6.5vw, 36px);
    width: 100%;
    max-width: none;
    list-style: none;
    margin: 0;
    padding: 0;
}

.ws-timeline-love__list--empty {
    width: 100%;
}

.ws-timeline-love__empty {
    --ws-content-placeholder-border-color: rgba(159, 45, 34, 0.22);
    --ws-content-placeholder-background: #fff;
    --ws-content-placeholder-icon-color: var(--t12-timeline-accent);
    --ws-content-placeholder-icon-background: #f7e4e1;
    --ws-content-placeholder-title-color: #432d2a;
    --ws-content-placeholder-path-color: #69514d;
}

.ws-timeline-love__item {
    display: block;
    min-width: 0;
}

.ws-timeline-love__icon {
    display: none;
}

.ws-timeline-love__icon--image {
    position: relative;
}

.ws-timeline-love__icon--image::before {
    width: 21px;
    height: 21px;
    background: var(--t12-timeline-accent);
    content: '';
    -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 {
    display: none;
}

.ws-timeline-love__marker::after {
    position: absolute;
    top: 36px;
    bottom: -14px;
    left: 19px;
    width: 1px;
    border-radius: 2px;
    background: rgba(159, 45, 34, 0.34);
    content: '';
    transform: translateX(-50%);
}

.ws-timeline-love__item:last-child .ws-timeline-love__marker::after {
    display: none;
}

.ws-timeline-love__dot {
    display: none;
}

.ws-timeline-love__card {
    min-width: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    text-align: left;
}

.ws-timeline-love__date {
    margin: 0 0 5px;
    color: var(--t12-timeline-accent);
    font-family: 'Lora', Georgia, serif;
    font-size: clamp(21px, 5.5vw, 27px);
    font-weight: 700;
    line-height: 1.15;
}

.ws-timeline-love__heading {
    margin: 0;
    color: #432d2a;
    font-family: 'Lora', Georgia, serif;
    font-size: clamp(13px, 3.4vw, 16px);
    font-weight: 400;
    line-height: 1.4;
}

.ws-timeline-love__desc {
    margin: 5px 0 0;
    color: #634945;
    font-family: 'Lora', Georgia, serif;
    font-size: clamp(11px, 3vw, 14px);
    font-weight: 400;
    line-height: 1.55;
    overflow-wrap: anywhere;
}

.ws-timeline-love__figure {
    margin: 10px 0 0;
    overflow: hidden;
    border-radius: 9px;
}

.ws-timeline-love__img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 10;
    object-fit: cover;
}

@media (max-width: 480px) {
    .ws-timeline-love__layout {
        grid-template-columns: minmax(0, 1.13fr) minmax(0, 1fr);
        column-gap: 14px;
    }
}

@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;
    box-sizing: border-box;
    width: calc(100% - 46px);
    padding: clamp(28px, 7vw, 38px) 0 0;
    border: 0;
    background: transparent;
    box-shadow: none;
    justify-content: center;
    margin: auto;
}

.timeline-dress__inner {
    display: flex;
    flex-direction: column;
    width: 100%;
    align-items: center;
    justify-content: center;
}

.timeline-dress {
    padding: 0 0 clamp(18px, 4.5vw, 24px);
    color: var(--t12-timeline-accent);
    font-family: 'VIP High Spirited', 'Great Vibes', cursive;
    font-size: clamp(33px, 8.5vw, 42px);
    font-weight: 400;
    line-height: 1.05;
    text-align: center;
    text-shadow: none;
}

.timeline-dress__color {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 7px;
}

.timeline-dress__color-item {
    width: clamp(42px, 10.5vw, 52px);
    height: clamp(42px, 10.5vw, 52px);
    margin: 0;
    border: 3px solid #fff;
    border-radius: 50%;
    background: var(--timeline-dress-color, rgba(255, 255, 255, 1));
    background-clip: padding-box;
    box-shadow: 0 3px 10px rgba(67, 45, 42, 0.14), 0 0 0 1px rgba(67, 45, 42, 0.1);
}

/* Guestbook */
.guestbook-section {
    --t12-guestbook-accent: #9f2d22;
    --t12-guestbook-panel: #f0f2f7;
    position: relative;
    z-index: 1;
    width: 100%;
    overflow: hidden;
    background: #fff;
    color: #090909;
    text-align: center;
    padding-top: 0;
}

.guestbook-section .section-title {
    margin: 0 20px 8px !important;
    color: var(--t12-guestbook-accent);
    font-family: 'VIP High Spirited', 'Great Vibes', cursive;
    font-size: clamp(38px, 10vw, 52px);
    font-style: normal;
    font-weight: 400;
    line-height: 1.05;
    text-shadow: none;
}

.guestbook-grid {
    display: grid;
    gap: 0;
    box-sizing: border-box;
    width: 100%;
    margin: 26px auto 0;
    padding: clamp(22px, 6vw, 30px);
    border: 0;
    border-radius: clamp(30px, 10vw, 48px);
    background: var(--t12-guestbook-panel);
    box-shadow: none;
    text-align: left;
}

.guestbook-form {
    display: grid;
    gap: 13px;
    width: 100%;
    min-width: 0;
    z-index: 1;
}

.guestbook-field {
    position: relative;
    min-width: 0;
}

.guestbook-field input,
.guestbook-field textarea {
    width: 100%;
    box-sizing: border-box;
    margin: 0;
    padding: 12px 14px;
    border: 1px solid rgba(159, 45, 34, 0.24);
    border-radius: 11px;
    outline: none;
    background: #fff;
    color: #432d2a;
    font-family: 'Lora', Georgia, serif;
    font-size: 14px;
    font-style: normal;
    font-weight: 400;
    line-height: 1.5;
    transition: border-color 180ms ease, box-shadow 180ms ease;
}

.guestbook-field input::placeholder,
.guestbook-field textarea::placeholder {
    color: #8d7773;
    opacity: 1;
}

.guestbook-field input:focus,
.guestbook-field textarea:focus {
    border-color: var(--t12-guestbook-accent);
    box-shadow: 0 0 0 3px rgba(159, 45, 34, 0.12);
}

#ws-guestbook-message {
    min-height: 96px;
    overflow-y: hidden;
    resize: vertical;
    field-sizing: content;
}

.guestbook-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: 3px;
}

.btn-guestbook {
    display: inline-flex;
    width: 100%;
    min-height: 46px;
    align-items: center;
    justify-content: center;
    padding: 11px 20px;
    border: 1px solid var(--t12-guestbook-accent);
    border-radius: 9px;
    background: var(--t12-guestbook-accent);
    box-shadow: 0 8px 18px rgba(159, 45, 34, 0.16);
    color: #fff;
    font-family: 'Lora', Georgia, serif;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: 0.05em;
    text-align: center;
    text-transform: uppercase;
    cursor: pointer;
    transition: background-color 180ms ease, transform 180ms ease, box-shadow 180ms ease;
}

.btn-guestbook:hover,
.btn-guestbook:focus-visible {
    background: #862218;
    box-shadow: 0 10px 22px rgba(159, 45, 34, 0.23);
    color: #fff;
    opacity: 1;
    transform: translateY(-1px);
}

.btn-guestbook:focus-visible {
    outline: 2px solid var(--t12-guestbook-accent);
    outline-offset: 3px;
}

.btn-guestbook:disabled {
    cursor: not-allowed;
    opacity: 0.55;
    transform: none;
}

.guestbook-notice {
    padding: 9px 11px;
    border-radius: 9px;
    background: rgba(159, 45, 34, 0.08);
    color: #6d211b;
    font-family: 'Lora', Georgia, serif;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.5;
    text-align: center;
}

.guestbook-notice.is-error {
    background: #f8d7da;
    color: #842029;
}

.guestbook-notice[hidden] {
    display: none;
}

.guestbook-divider {
    width: 100%;
    height: 1px;
    background: rgba(159, 45, 34, 0.14);
}

.guestbook-list-wrap {
    display: grid;
    gap: 12px;
    margin-top: 24px;
    padding-top: 22px;
    border-top: 3px dashed rgba(255, 255, 255, 0.98);
    z-index: 2;
}

.guestbook-list-wrap[hidden] {
    display: none;
}

@media (max-width: 480px) {
    .guestbook-list {
        -webkit-overflow-scrolling: touch;
        scrollbar-width: thin;
        scrollbar-color: var(--t12-guestbook-accent) rgba(159, 45, 34, 0.12);
    }
}

.guestbook-list-count {
    color: #69514d;
    margin-left: 4px;
}

.guestbook-list {
    display: grid;
    gap: 10px;
    width: 100%;
    max-height: 300px;
    margin: 0;
    padding-right: 6px;
    overflow-y: auto;
}

.guestbook-list::-webkit-scrollbar {
    width: 4px;
    border-radius: 999px;
}

.guestbook-list::-webkit-scrollbar-track {
    background: rgba(159, 45, 34, 0.12);
    border-radius: 999px;
}

.guestbook-list::-webkit-scrollbar-thumb {
    background: var(--t12-guestbook-accent);
    border-radius: 999px;
    border: 0;
}

.guestbook-entry {
    display: grid;
    gap: 6px;
    width: 100%;
    padding: 12px 14px;
    border: 1px solid rgba(159, 45, 34, 0.1);
    border-left: 3px solid rgba(159, 45, 34, 0.72);
    border-radius: 11px;
    background: #fff;
    box-shadow: 0 4px 12px rgba(67, 45, 42, 0.05);
    text-align: left;
}

.guestbook-entry__name {
    color: var(--t12-guestbook-accent);
    font-family: 'Lora', Georgia, serif;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.35;
}

.guestbook-entry__message {
    color: #634945;
    font-family: 'Lora', Georgia, serif;
    font-size: 13px;
    font-weight: 400;
    line-height: 1.55;
    overflow-wrap: anywhere;
}

.guestbook-entry__message::before {
    content: none;
}

.guestbook-empty {
    padding: 24px 0;
    color: #69514d;
    font-family: 'Lora', Georgia, serif;
    font-size: 14px;
    font-style: italic;
    text-align: center;
}

.guestbook-section_desc {
    max-width: 390px;
    margin: 0 auto;
    padding: 0 24px;
    color: #69514d;
    font-family: 'Lora', Georgia, serif;
    font-size: 13px;
    font-style: normal;
    font-weight: 400;
    line-height: 1.6;
}

/* 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);
}

/* Template 12 couple and family story */
.ws-t12-love {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    color: #080808;
    padding-inline: 10px;
    padding-bottom: 0;
    background:
        linear-gradient(180deg, rgba(255, 250, 251, 0.72) 0%, #fff 12%, #fff 88%, rgba(255, 248, 249, 0.9) 100%);
}

.ws-t12-love__intro {
    position: relative;
    z-index: 1;
    margin: 0 auto clamp(34px, 8vw, 50px);
    text-align: center;
}

.ws-t12-love__intro p {
    margin: 0;
    color: #080808;
    font-family: 'VIP High Spirited', 'Great Vibes', cursive;
    font-size: clamp(28px, 7vw, 40px);
    font-style: normal;
    font-weight: 400;
    line-height: 1.32;
}

.ws-t12-love__people {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    gap: clamp(10px, 3vw, 18px);
}

.ws-t12-love__row {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 0.94fr) minmax(0, 1.06fr);
    gap: clamp(14px, 4vw, 24px);
    align-items: stretch;
}

.ws-t12-love__photo {
    width: 100%;
    min-width: 0;
    aspect-ratio: 2 / 3;
    margin: 0;
    padding: 3px;
    overflow: hidden;
    border-radius: 3px;
    background: #dedddd;
    box-shadow: 0 7px 18px rgba(37, 25, 25, 0.08);
}

.ws-t12-love__photo>img,
.ws-t12-love__photo>.ws-image-placeholder,
.ws-t12-love__photo>[class*="placeholder"] {
    display: block;
    width: 100%;
    height: 100%;
}

.ws-t12-love__photo>img {
    object-fit: cover;
    object-position: center top;
}

.ws-t12-love__details {
    display: flex;
    min-width: 0;
    flex-direction: column;
    justify-content: space-between;
    padding: clamp(18px, 5vw, 30px) 0 clamp(32px, 9vw, 54px);
    text-align: center;
}

.ws-t12-love__family,
.ws-t12-love__identity {
    min-width: 0;
}

.ws-t12-love__family h3,
.ws-t12-love__family p,
.ws-t12-love__family strong,
.ws-t12-love__role {
    font-family: 'Lora', Georgia, serif;
    font-style: normal;
    font-weight: bold;
}

.ws-t12-love__family h3 {
    margin: 0 0 clamp(8px, 2.5vw, 14px);
    line-height: 1.25;
    text-transform: uppercase;
    font-weight: bold;
    line-height: 1.6;
    color: rgb(0, 0, 0);
}

.ws-t12-love__family strong,
.ws-t12-love__family p {
    margin: 0;
    line-height: 1.55;
    text-transform: uppercase;
    overflow-wrap: anywhere;
    font-size: 13px;
    font-weight: bold;
    line-height: 1.6;
    color: rgb(0, 0, 0);
}

.ws-t12-love__role {
    margin: 0 0 clamp(8px, 2.4vw, 14px);
    color: #080808;
    font-size: clamp(18px, 5vw, 28px);
    font-weight: 400;
    line-height: 1.2;
    font-family: 'Philosopher', sans-serif;
}

.ws-t12-love__name {
    margin: 0;
    color: #080808;
    font-family: 'VIP High Spirited', 'Great Vibes', cursive;
    font-size: clamp(29px, 7.6vw, 33px);
    font-style: normal;
    font-weight: 400;
    line-height: 1.08;
    overflow-wrap: anywhere;
}

.ws-t12-love__invitation {
    position: relative;
    z-index: 1;
    margin-top: clamp(56px, 13vw, 78px);
    text-align: center;
}

.ws-t12-love__invite-label {
    margin: 0;
    color: #96291f;
    font-family: 'Lora', Georgia, serif;
    font-size: clamp(23px, 6vw, 34px);
    font-style: normal;
    font-weight: 400;
    line-height: 1.25;
    text-transform: uppercase;
}

.ws-t12-love__guest {
    position: relative;
    width: min(64%, 290px);
    min-height: auto;
    margin: clamp(24px, 6vw, 36px) auto 0;
    padding: 0.18em 12px 0.12em;
    overflow: visible;
    /* color: #96291f; */
    color: rgb(0, 0, 0);
    border-bottom: 1px dotted #352b29;
    font-style: normal;
    font-weight: 400;
    line-height: 1.25;
    overflow-wrap: anywhere;
    font-family: "Fz-Photograph.ttf", cursive;
    font-size: clamp(22px, 10cqi, 38px);
}

.ws-t12-love__date-grid {
    width: calc(100% + 20px);
    margin: clamp(28px, 7vw, 40px) -10px 0;
    gap: clamp(5px, 1.5vw, 8px);
    align-items: stretch;
    overflow: hidden;
}

.ws-t12-love__date-grid .ws-t12-love__date-card {
    position: relative;
    width: 100%;
    height: auto;
    aspect-ratio: 2 / 3;
    padding: 3px;
    overflow: hidden;
    border-radius: 0;
    background: #d9d6d6;
    box-shadow: none;
}

.ws-t12-love__date-card::after {
    content: '';
    position: absolute;
    z-index: 1;
    inset: 0;
    background: linear-gradient(180deg, rgba(93, 105, 80, 0) 36%, rgba(93, 105, 80, 0.72) 100%);
    pointer-events: none;
}

.ws-t12-love__date-card>img,
.ws-t12-love__date-card>.ws-image-placeholder,
.ws-t12-love__date-card>[class*="placeholder"] {
    display: block;
    width: 100%;
    height: 100%;
}

.ws-t12-love__date-card>img {
    object-fit: cover;
    object-position: center;
}

.ws-t12-love__date-part {
    position: absolute;
    z-index: 2;
    right: 0;
    bottom: clamp(14px, 4vw, 23px);
    left: 0;
    color: #fff;
    font-family: 'Lora', Georgia, serif;
    font-size: clamp(34px, 10vw, 57px);
    font-style: normal;
    font-weight: 700;
    line-height: 1;
    text-align: center;
    text-shadow: 0 2px 6px rgba(30, 35, 27, 0.22);
}

@media (max-width: 380px) {
    .ws-t12-love {
        padding-inline: 12px;
    }

    .ws-t12-love__row {
        gap: 11px;
    }

    .ws-t12-love__details {
        padding-top: 14px;
        padding-bottom: 25px;
    }

    .ws-t12-love__family p {
        font-size: 10px;
        line-height: 1.45;
    }

    .ws-t12-love__date-grid {
        width: calc(100% + 10px);
        margin-inline: -5px;
    }
}


/* Thanks */
.gift-section-wrapper-bottom {
    position: relative;
    isolation: isolate;
    width: 100%;
    min-height: 620px;
    max-height: 820px;
    aspect-ratio: 5 / 8;
    overflow: hidden;
    background: #2b342c;
}

.gift-thanks-banner {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.gift-thanks-banner-img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.gift-thanks-banner>.ws-image-placeholder {
    width: 100%;
    min-height: 100%;
    border-radius: 0;
}

.gift-section-wrapper-bottom::after {
    content: '';
    position: absolute;
    z-index: 1;
    inset: 0;
    background: linear-gradient(180deg,
            rgba(159, 45, 34, 0) 38%,
            rgba(159, 45, 34, 0.12) 55%,
            rgba(142, 35, 26, 0.72) 76%,
            rgba(125, 25, 18, 0.96) 100%);
    pointer-events: none;
}

.gift-section-wrapper-bottom-content {
    position: absolute;
    z-index: 2;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    gap: clamp(12px, 3.5vw, 20px);
    width: 100%;
    max-width: none;
    padding: 40px clamp(24px, 7vw, 56px) clamp(48px, 10vw, 68px);
    background: transparent;
}

.gift-thanks-title {
    z-index: 2;
    margin: 0;
    color: #fff;
    font-family: 'VIP High Spirited', 'Great Vibes', cursive;
    font-size: clamp(50px, 14vw, 76px);
    font-weight: 400;
    line-height: 1;
    text-align: center;
    text-shadow: 0 3px 5px rgba(42, 13, 10, 0.55);
}

.gift-thanks-text {
    width: min(100%, 680px);
    margin: 0;
    color: #fff;
    font-family: 'Lora', Georgia, serif;
    font-size: clamp(13px, 3.7vw, 17px);
    font-weight: 400;
    line-height: 1.8;
    text-align: center;
    text-wrap: balance;
    text-shadow: 0 2px 4px rgba(42, 13, 10, 0.75);
}

.gift-section-wrapper-bottom .vowry-me {
    z-index: 3;
    bottom: 10px;
    color: #fff;
    font-family: 'Lora', Georgia, serif;
    font-size: 9px;
    letter-spacing: 0.08em;
    opacity: 0.52;
}

@media screen and (max-width: 390px) {
    .gift-section-wrapper-bottom {
        min-height: 590px;
    }

    .gift-section-wrapper-bottom-content {
        padding-right: 22px;
        padding-bottom: 44px;
        padding-left: 22px;
    }
}

/* 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 {
    --focus-outline: #9f2d22;
    --ws-album-3d-dot-color: rgba(159, 45, 34, 0.24);
    --ws-album-3d-dot-active-color: #9f2d22;
    max-width: 100%;
    position: relative;
    background: #fff;
    color: #090909;
    padding-inline: 10px;
}

.album-section .section-title {
    margin-bottom: clamp(22px, 6vw, 32px);
    color: #9f2d22;
    font-family: 'VIP High Spirited', 'Great Vibes', cursive;
    font-size: clamp(38px, 10vw, 52px);
    font-style: normal;
    font-weight: 400;
    line-height: 1.05;
    text-shadow: none;
}

.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-cols--has-full-item .album-item--full {
    grid-column: 1 / -1;
}

.album-cols--has-full-item .album-item--full:first-child {
    grid-row: 1;
}

.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--full {
    aspect-ratio: 16 / 10;
}

.album-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.35s ease;
}

.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;
}

/* Template 12 keeps the collage as a compact two-column photo wall. */
.album-section--layout-collage .album-collage {
    --ws-album-collage-row: auto;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-auto-flow: row;
    grid-auto-rows: auto;
    gap: 4px;
    border-radius: 0;
}

.album-section--layout-collage .album-collage .album-collage__item:nth-child(n) {
    grid-column: auto;
    grid-row: auto;
    aspect-ratio: 2 / 3;
    border: 3px solid rgba(220, 220, 216, 0.9);
    border-radius: 0;
    box-shadow: none;
}

.album-section--layout-collage .album-collage:is([data-count="1"], [data-count="3"], [data-count="5"], [data-count="7"]) .album-collage__item:last-child {
    grid-column: 1 / -1;
    aspect-ratio: 3 / 2;
}

.album-more {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-family: 'Lora', Georgia, serif;
    font-size: clamp(18px, 2.05vw + 9.4px, 24px);
    letter-spacing: 3px;
    text-transform: uppercase;
    background: rgba(0, 0, 0, 0.25);
}

.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;
    }
}

/* Template 12 event card and save-the-date calendar */
.ws-t12-events.ws-section {
    --t12-event-accent: #9f2d22;
    --t12-event-panel: #f0f2f7;
    width: 100%;
    padding: clamp(30px, 8vw, 52px) 0 clamp(44px, 10vw, 70px);
    overflow: hidden;
    background: #fff;
    color: #090909;
}

.ws-t12-events__panel {
    width: calc(100% - 38px);
    margin: 0 auto;
    padding: 0;
    overflow: hidden;
    border-radius: clamp(30px, 10vw, 48px);
    background: var(--t12-event-panel);
}

.ws-t12-events__list {
    width: 100%;
}

.ws-t12-events__item {
    position: relative;
    width: 100%;
    padding: clamp(31px, 8vw, 43px) 22px clamp(28px, 7vw, 37px);
    text-align: center;
}

.ws-t12-events__item+.ws-t12-events__item {
    border-top: 3px dashed rgba(255, 255, 255, 0.98);
}

.ws-t12-events__title {
    margin: 0 0 14px;
    color: var(--t12-event-accent);
    font-family: 'Lora', Georgia, serif;
    font-size: clamp(23px, 6vw, 32px);
    font-weight: 700;
    line-height: 1.22;
    text-transform: uppercase;
}

.ws-t12-events__meta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin: 0 0 8px;
    color: #080808;
    font-family: 'Lora', Georgia, serif;
    font-size: clamp(19px, 5vw, 25px);
    font-weight: 400;
    line-height: 1.3;
    text-transform: uppercase;
}

.ws-t12-events__meta span,
.ws-t12-events__meta-divider {
    font-family: 'Lora', Georgia, serif;
}

.ws-t12-events__date {
    margin: 0;
    color: #050505;
    font-family: 'Lora', Georgia, serif;
    font-size: clamp(31px, 8.5vw, 43px);
    font-weight: 700;
    line-height: 1.25;
    letter-spacing: 0.025em;
}

.ws-t12-events__lunar {
    margin: 14px auto 0;
    color: #181818;
    font-family: 'Lora', Georgia, serif;
    font-size: clamp(14px, 4vw, 18px);
    font-style: italic;
    font-weight: 400;
    line-height: 1.55;
}

.ws-t12-events__venue {
    max-width: 350px;
    margin: 17px auto 0;
    color: #313131;
}

.ws-t12-events__place,
.ws-t12-events__address {
    margin: 0;
    font-family: 'Lora', Georgia, serif;
    line-height: 1.45;
}

.ws-t12-events__place {
    color: var(--t12-event-accent);
    font-size: 15px;
    font-weight: 700;
    text-transform: uppercase;
}

.ws-t12-events__address {
    margin-top: 3px;
    font-size: 13px;
    font-weight: 400;
}

.ws-t12-events__route {
    display: inline-flex;
    min-height: 34px;
    align-items: center;
    justify-content: center;
    gap: 7px;
    margin-top: 16px;
    padding: 7px 15px;
    border: 1px solid var(--t12-event-accent);
    border-radius: 999px;
    background: var(--t12-event-accent);
    box-shadow: 0 5px 12px rgba(159, 45, 34, 0.16);
    color: #fff;
    font-family: 'Lora', Georgia, serif;
    font-size: 11px;
    font-weight: 700;
    line-height: 1;
    letter-spacing: 0.06em;
    text-decoration: none;
    text-transform: uppercase;
    transition: transform 180ms ease, box-shadow 180ms ease;
}

.ws-t12-events__route span {
    font-family: 'Lora', Georgia, serif;
}

.ws-t12-events__route:hover,
.ws-t12-events__route:focus-visible {
    color: #fff;
    text-decoration: none;
    transform: translateY(-1px);
    box-shadow: 0 7px 16px rgba(159, 45, 34, 0.24);
}

.ws-t12-events__route:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 3px;
}

.ws-t12-month-calendar {
    width: 100%;
    padding: clamp(42px, 12vw, 68px) 10px 0;
    text-align: center;
}

.ws-t12-month-calendar__heading {
    margin: 0;
    color: #090909;
    font-family: 'Lora', Georgia, serif;
    font-size: clamp(31px, 8.5vw, 43px);
    font-weight: 400;
    line-height: 1.2;
    letter-spacing: 0.015em;
}

.ws-t12-month-calendar__month {
    margin: 10px 0 24px;
    color: #1a1a1a;
    font-family: 'VIP High Spirited', 'Great Vibes', cursive;
    font-size: clamp(29px, 8vw, 40px);
    font-weight: 400;
    line-height: 1.15;
}

.ws-t12-month-calendar__weekdays,
.ws-t12-month-calendar__days {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    width: 100%;
}

.ws-t12-month-calendar__weekdays {
    min-height: 50px;
    align-items: center;
    background: #e9ebf0;
}

.ws-t12-month-calendar__weekdays span {
    color: #090909;
    font-family: 'Lora', Georgia, serif;
    font-size: clamp(14px, 4vw, 19px);
    font-weight: 700;
    line-height: 1;
}

.ws-t12-month-calendar__days {
    padding: 17px 0 0;
    row-gap: 8px;
}

.ws-t12-month-calendar__day {
    position: relative;
    z-index: 0;
    display: grid;
    min-height: clamp(45px, 13vw, 62px);
    place-items: center;
    color: #111;
    font-family: 'Lora', Georgia, serif;
    font-size: clamp(17px, 5vw, 23px);
    font-weight: 400;
    line-height: 1;
}

.ws-t12-month-calendar__day.is-event-day {
    color: #fff;
    font-weight: 700;
}

.ws-t12-month-calendar__event-mark {
    position: absolute;
    z-index: 0;
    width: clamp(45px, 12vw, 56px);
    height: clamp(45px, 12vw, 56px);
    object-fit: contain;
    opacity: 0.9;
    filter: invert(22%) sepia(45%) saturate(2577%) hue-rotate(343deg) brightness(84%) contrast(91%);
    transform: rotate(-7deg);
    transform-origin: center;
    animation: ws-t12-event-mark-heartbeat 1.65s ease-in-out infinite;
    will-change: transform, opacity;
}

@keyframes ws-t12-event-mark-heartbeat {

    0%,
    46%,
    100% {
        opacity: 0.82;
        transform: rotate(-7deg) scale(0.96);
    }

    12% {
        opacity: 1;
        transform: rotate(-7deg) scale(1.1);
    }

    23% {
        opacity: 0.88;
        transform: rotate(-7deg) scale(0.99);
    }

    34% {
        opacity: 1;
        transform: rotate(-7deg) scale(1.06);
    }
}

.ws-t12-month-calendar__day-number {
    position: relative;
    z-index: 1;
    font-family: 'Lora', Georgia, serif;
}

.ws-t12-countdown {
    width: calc(100% - 38px);
    margin: clamp(38px, 10vw, 54px) auto 0;
    padding: clamp(28px, 8vw, 42px) clamp(12px, 4vw, 20px) clamp(30px, 8vw, 44px);
    border-radius: clamp(28px, 8vw, 40px);
    background: linear-gradient(180deg, rgba(240, 242, 247, 0.95) 0%, #fff 100%);
    text-align: center;
}

.ws-t12-countdown__title {
    margin: 0 0 clamp(22px, 6vw, 32px);
    color: var(--t12-event-accent);
    font-family: 'VIP High Spirited', 'Great Vibes', cursive;
    font-size: clamp(36px, 9vw, 48px);
    font-weight: 400;
    line-height: 1;
}

.ws-t12-countdown__grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    width: min(100%, 300px);
    margin: 0 auto;
    gap: clamp(7px, 2.2vw, 12px);
}

.ws-t12-countdown__unit {
    display: flex;
    min-width: 0;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 12px 4px 10px;
    border-radius: 17px;
    background: var(--t12-event-accent);
    box-shadow: 0 9px 20px rgba(159, 45, 34, 0.15);
    color: #fff;
}

.ws-t12-countdown__number {
    font-family: 'Lora', Georgia, serif;
    font-size: clamp(22px, 5.8vw, 28px);
    font-variant-numeric: tabular-nums;
    font-weight: 400;
    line-height: 1;
}

.ws-t12-countdown__label {
    margin-top: 10px;
    font-family: 'VIP High Spirited', 'Great Vibes', cursive;
    font-size: clamp(18px, 4.8vw, 24px);
    font-weight: 400;
    line-height: 1;
    white-space: nowrap;
}

.ws-t12-countdown.ws-countdown--ended .ws-t12-countdown__unit {
    box-shadow: none;
}

@media (max-width: 380px) {
    .ws-t12-events__panel {
        width: calc(100% - 26px);
    }

    .ws-t12-events__item {
        padding-right: 15px;
        padding-left: 15px;
    }

    .ws-t12-month-calendar {
        padding-right: 6px;
        padding-left: 6px;
    }

    .ws-t12-countdown {
        width: calc(100% - 26px);
        padding-right: 10px;
        padding-left: 10px;
    }

    .ws-t12-countdown__grid {
        gap: 6px;
    }

    .ws-t12-countdown__unit {
        min-height: 90px;
        border-radius: 20px;
    }

    .ws-t12-countdown__label {
        font-size: 18px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .ws-t12-events__route {
        transition: none;
    }

    .ws-t12-month-calendar__event-mark {
        animation: none;
        opacity: 0.9;
        transform: rotate(-7deg);
    }
}

/* Template 12 event RSVP button and modal */
.ws-t12-events__rsvp {
    display: grid;
    width: calc(100% - 38px);
    justify-items: center;
    gap: 10px;
    margin: 18px auto 0;
}

.ws-t12-events__confirm.btn-confirm {
    display: inline-flex;
    width: min(100%, 360px);
    min-height: 48px;
    align-items: center;
    justify-content: center;
    align-self: auto;
    margin: 0;
    padding: 12px 24px;
    border: 1px solid #9f2d22;
    border-radius: 8px;
    background: #9f2d22;
    box-shadow: 0 8px 18px rgba(159, 45, 34, 0.16);
    color: #fff;
    font-family: 'Lora', Georgia, serif;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    transition: background-color 180ms ease, transform 180ms ease, box-shadow 180ms ease;
}

.ws-t12-events__confirm.btn-confirm:hover,
.ws-t12-events__confirm.btn-confirm:focus-visible {
    background: #862218;
    color: #fff;
    opacity: 1;
    transform: translateY(-1px);
    box-shadow: 0 10px 22px rgba(159, 45, 34, 0.23);
}

.ws-t12-events__confirm.btn-confirm:focus-visible {
    outline: 2px solid #9f2d22;
    outline-offset: 3px;
}

.ws-t12-events__rsvp .ws-wedding-rsvp-inline-feedback {
    width: min(100%, 360px);
    margin: 0;
    font-family: 'Lora', Georgia, serif;
}

.ws-t12-rsvp-modal__form {
    margin: 0;
}

.ws-t12-rsvp-modal.ws-modal[hidden] {
    display: none !important;
}

.ws-t12-rsvp-modal.ws-modal {
    position: fixed;
    inset: 0;
    z-index: 10050;
    display: grid;
    width: auto;
    height: auto;
    place-items: center;
    padding: 16px;
}

.ws-t12-rsvp-modal__backdrop.ws-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(54, 23, 20, 0.66);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    cursor: pointer;
}

.ws-t12-rsvp-modal__content.ws-modal__content {
    position: relative;
    z-index: 1;
    width: min(470px, calc(100vw - 24px));
    max-height: none;
    padding: 0;
    overflow: visible;
    background: transparent;
    box-shadow: none;
}

.ws-t12-rsvp-modal__dialog {
    position: relative;
    display: grid;
    max-height: calc(100vh - 32px);
    max-height: calc(100dvh - 32px);
    gap: 18px;
    padding: 32px;
    overflow-y: auto;
    border: 1px solid rgba(159, 45, 34, 0.24);
    border-radius: 28px;
    outline: none;
    background: #fff;
    color: #9f2d22;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    box-shadow: 0 26px 70px rgba(54, 23, 20, 0.34);
    animation: ws-t12-rsvp-modal-in 260ms ease-out both;
}

@keyframes ws-t12-rsvp-modal-in {
    from {
        opacity: 0;
        transform: translateY(12px) scale(0.98);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.ws-t12-rsvp-modal__close {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 2;
    display: inline-grid;
    width: 34px;
    height: 34px;
    place-items: center;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: rgba(159, 45, 34, 0.1);
    color: #9f2d22;
    font-family: 'Inter', sans-serif;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
}

.ws-t12-rsvp-modal__close:hover {
    background: rgba(159, 45, 34, 0.18);
}

.ws-t12-rsvp-modal__close:focus-visible {
    outline: 2px solid #9f2d22;
    outline-offset: 2px;
}

.ws-t12-rsvp-modal__header {
    padding: 0 24px 2px;
    text-align: center;
}

.ws-t12-rsvp-modal__header h3 {
    margin: 0 0 8px;
    color: #9f2d22;
    font-family: 'VIP High Spirited', 'Great Vibes', cursive;
    font-size: clamp(35px, 10vw, 48px);
    font-weight: 400;
    line-height: 1.05;
}

.ws-t12-rsvp-modal__header p {
    margin: 0;
    color: #69514d;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.55;
}

.ws-t12-rsvp-modal .rsvp__notice {
    width: 100%;
    padding: 10px 12px;
    border-radius: 8px;
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    line-height: 1.45;
    text-align: center;
}

.ws-t12-rsvp-modal .rsvp__notice.is-hidden,
.ws-t12-rsvp-modal [data-ws-rsvp-modal-notice][hidden] {
    display: none;
}

.ws-t12-rsvp-modal .rsvp__notice--error {
    color: #842029;
    background: #f8d7da;
}

.ws-t12-rsvp-modal__field,
.ws-t12-rsvp-modal__attendance,
.ws-t12-rsvp-modal__count,
.ws-t12-rsvp-modal .ws-rsvp-question {
    color: #9f2d22;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    /* font-weight: 600; */
}

.ws-t12-rsvp-modal__field {
    display: grid;
    gap: 8px;
}

.ws-t12-rsvp-modal__field i {
    color: #9f2d22;
    font-style: normal;
}

.ws-t12-rsvp-modal__field input,
.ws-t12-rsvp-modal .ws-rsvp-question__text,
.ws-t12-rsvp-modal .ws-rsvp-question__select {
    width: 100%;
    border: 1px solid rgba(159, 45, 34, 0.25);
    border-radius: 11px;
    outline: none;
    background-color: #fff;
    color: #9f2d22;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    box-shadow: none;
}

.ws-t12-rsvp-modal__field input,
.ws-t12-rsvp-modal .ws-rsvp-question__select {
    height: 46px;
    padding: 11px 13px;
}

.ws-t12-rsvp-modal .ws-rsvp-question__text {
    min-height: 82px;
    padding: 11px 13px;
    resize: vertical;
}

.ws-t12-rsvp-modal__field input:focus,
.ws-t12-rsvp-modal .ws-rsvp-question__text:focus,
.ws-t12-rsvp-modal .ws-rsvp-question__select:focus {
    border-color: #9f2d22;
    box-shadow: 0 0 0 3px rgba(159, 45, 34, 0.12);
}

.ws-t12-rsvp-modal__attendance,
.ws-t12-rsvp-modal__attending-fields,
.ws-t12-rsvp-modal .ws-rsvp-question {
    min-width: 0;
    margin: 0;
    padding: 0;
    border: 0;
}

.ws-t12-rsvp-modal .ws-rsvp-question {
    display: grid;
    width: 100%;
    gap: 8px;
}

.ws-t12-rsvp-modal__attendance legend,
.ws-t12-rsvp-modal .ws-rsvp-question__label {
    display: block;
    margin-bottom: 8px;
    padding: 0;
    color: #9f2d22;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    line-height: 1.4;
    text-align: left;
}

.ws-t12-rsvp-modal__choices {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
}

.ws-t12-rsvp-modal .ws-rsvp-question__choices {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    width: 100%;
}

.ws-t12-rsvp-modal__choices label,
.ws-t12-rsvp-modal .ws-rsvp-question__choices label {
    position: relative;
    display: flex;
    width: 100%;
    min-width: 0;
    min-height: 44px;
    align-items: stretch;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    cursor: pointer;
    opacity: 1;
}

.ws-t12-rsvp-modal .ws-rsvp-question__choices label:has(input:checked),
.ws-t12-rsvp-modal .ws-rsvp-question__choices label:focus-within {
    border: 0;
    background: transparent;
    box-shadow: none;
}

.ws-t12-rsvp-modal__choices input,
.ws-t12-rsvp-modal .ws-rsvp-question__choices input {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    opacity: 0;
}

.ws-t12-rsvp-modal__choices span,
.ws-t12-rsvp-modal .ws-rsvp-question__choices span {
    display: flex;
    width: 100%;
    min-height: 44px;
    align-items: center;
    gap: 9px;
    padding: 9px 12px;
    border: 1px solid rgba(159, 45, 34, 0.22);
    border-radius: 11px;
    background: #fff;
    color: #9f2d22;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    /* font-weight: 600; */
    line-height: 1.4;
    transition: border-color 180ms ease, background-color 180ms ease, box-shadow 180ms ease;
}

.ws-t12-rsvp-modal__choices span::before,
.ws-t12-rsvp-modal .ws-rsvp-question__choices span::before {
    width: 14px;
    height: 14px;
    flex: 0 0 14px;
    border: 1px solid rgba(159, 45, 34, 0.5);
    border-radius: 50%;
    background: #fff;
    content: '';
}

.ws-t12-rsvp-modal__choices input:checked+span,
.ws-t12-rsvp-modal .ws-rsvp-question__choices input:checked+span {
    border-color: #9f2d22;
    background: #fff1ef;
    color: #9f2d22;
}

.ws-t12-rsvp-modal__choices input:checked+span::before,
.ws-t12-rsvp-modal .ws-rsvp-question__choices input:checked+span::before {
    border: 4px solid #9f2d22;
}

.ws-t12-rsvp-modal__choices input:focus-visible+span,
.ws-t12-rsvp-modal .ws-rsvp-question__choices input:focus-visible+span {
    outline: 2px solid #9f2d22;
    outline-offset: 2px;
}

.ws-t12-rsvp-modal .ws-rsvp-question__choices label:focus-within span {
    border-color: #9f2d22;
    box-shadow: 0 0 0 3px rgba(159, 45, 34, 0.12);
}

.ws-t12-rsvp-modal__attending-fields {
    display: grid;
    gap: 17px;
}

.ws-t12-rsvp-modal__attending-fields.is-hidden {
    display: none;
}

.ws-t12-rsvp-modal__count {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.ws-t12-rsvp-modal__count-control {
    display: grid;
    grid-template-columns: 32px 40px 32px;
    align-items: center;
    gap: 2px;
    padding: 3px;
    border: 1px solid rgba(159, 45, 34, 0.22);
    border-radius: 10px;
    background: #fff;
}

.ws-t12-rsvp-modal__count-control button {
    display: grid;
    width: 32px;
    height: 32px;
    place-items: center;
    padding: 0;
    border: 0;
    border-radius: 7px;
    background: #f7e4e1;
    color: #9f2d22;
    font-family: 'Inter', sans-serif;
    font-size: 18px;
    cursor: pointer;
}

.ws-t12-rsvp-modal__count-control input {
    width: 40px;
    height: 28px;
    padding: 0;
    border: 0;
    outline: none;
    background: transparent;
    color: #9f2d22;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 700;
    text-align: center;
    appearance: textfield;
    -moz-appearance: textfield;
}

.ws-t12-rsvp-modal__count-control input::-webkit-inner-spin-button,
.ws-t12-rsvp-modal__count-control input::-webkit-outer-spin-button {
    margin: 0;
    -webkit-appearance: none;
}

.ws-t12-rsvp-modal .ws-rsvp-questions {
    display: grid;
    gap: 17px;
    width: 100%;
}

.ws-t12-rsvp-modal .ws-rsvp-question--text,
.ws-t12-rsvp-modal .ws-rsvp-question--select {
    display: grid;
    gap: 8px;
}

.ws-t12-rsvp-modal .ws-rsvp-question__text::placeholder {
    color: #9f2d22;
    opacity: 0.75;
}

.ws-t12-rsvp-modal .ws-rsvp-question__select {
    padding-right: 46px;
    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='%239f2d22' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 15px center;
    background-size: 16px 16px;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
}

.ws-t12-rsvp-modal__submit {
    display: flex;
    width: 100%;
    min-height: 46px;
    align-items: center;
    justify-content: center;
    padding: 11px 20px;
    border: 1px solid #9f2d22;
    border-radius: 9px;
    background: #9f2d22;
    color: #fff;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    cursor: pointer;
}

.ws-t12-rsvp-modal__submit:hover {
    background: #862218;
}

.ws-t12-rsvp-modal__submit:focus-visible {
    outline: 2px solid #9f2d22;
    outline-offset: 2px;
}

.ws-t12-rsvp-modal__submit:disabled {
    cursor: wait;
    opacity: 0.68;
}

@media (max-width: 575px) {
    .ws-t12-rsvp-modal__dialog {
        gap: 16px;
        padding: 28px 20px 24px;
        border-radius: 22px;
    }

    .ws-t12-rsvp-modal__header {
        padding-right: 18px;
        padding-left: 18px;
    }
}

@media (prefers-reduced-motion: reduce) {

    .ws-t12-events__confirm.btn-confirm,
    .ws-t12-rsvp-modal__dialog {
        animation: none;
        transition: none;
    }
}

/* 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 {
    appearance: none;
    border: none;
    position: relative;
    cursor: pointer;
}

.gift-box--disabled {
    cursor: default;
}

.gift-box:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 4px;
}

.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;
    }

}

@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;
    }

}

/* Template 12 gift section - portrait and gift button */
.ws-t12-gift {
    --t12-gift-accent: #9f2d22;
    --t12-gift-panel: #f5f2ed;
    width: 100%;
    margin: 0;
    padding: clamp(28px, 7vw, 44px) 14px clamp(38px, 9vw, 58px);
    box-sizing: border-box;
    overflow: visible;
    background: #fff;
}

.ws-t12-gift .ws-t12-gift__panel {
    position: relative;
    bottom: auto;
    display: flex;
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
    flex-direction: column;
    align-items: center;
    gap: clamp(24px, 7vw, 34px);
    padding: 0;
    overflow: visible;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

.ws-t12-gift__portrait {
    position: relative;
    width: 190px;
    aspect-ratio: 501 / 493;
    color: var(--t12-gift-accent);
}

.ws-t12-gift__portrait::after {
    position: absolute;
    z-index: 2;
    inset: 4.5%;
    border: 2px solid rgba(159, 45, 34, 0.55);
    border-radius: 50%;
    content: '';
    pointer-events: none;
    animation: t12-gift-portrait-pulse 1.8s ease-out infinite;
}

.ws-t12-gift__portrait-image {
    position: absolute;
    top: 3.7%;
    right: 3.9%;
    bottom: 4.1%;
    left: 3.9%;
    overflow: hidden;
    border-radius: 50%;
    background: #f2f2f2;
    box-shadow: 0 8px 22px rgba(159, 45, 34, 0.12);
    cursor: pointer;
    touch-action: manipulation;
    transition: transform 0.25s ease, box-shadow 0.25s ease, filter 0.25s ease;
    will-change: transform;
}

.ws-t12-gift__portrait-image:hover,
.ws-t12-gift__portrait-image:focus-visible {
    transform: scale(1.04);
    box-shadow: 0 12px 30px rgba(159, 45, 34, 0.24);
    filter: brightness(1.04);
}

.ws-t12-gift__portrait-image:active {
    transform: scale(0.96);
    box-shadow: 0 5px 14px rgba(159, 45, 34, 0.18);
    filter: brightness(0.96);
    transition-duration: 0.08s;
}

.ws-t12-gift__portrait-image:focus-visible {
    outline: 3px solid rgba(159, 45, 34, 0.4);
    outline-offset: 4px;
}

.ws-t12-gift__portrait-image img {
    width: 100%;
    height: 100%;
    margin: 0;
    display: block;
    object-fit: cover;
    object-position: center;
}

.ws-t12-gift__portrait-placeholder,
.ws-t12-gift__portrait-placeholder .ws-image-placeholder {
    width: 100%;
    min-height: 100%;
    border-radius: 50%;
}

.ws-t12-gift__portrait-frame {
    position: absolute;
    inset: 0;
    z-index: 1;
    display: block;
    width: 100%;
    height: 100%;
    overflow: visible;
    pointer-events: none;
}

.ws-t12-gift .gift-box {
    display: inline-flex;
    height: 40px;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 0 12px;
    padding-right: 24px;
    border: 0;
    border-radius: 999px;
    background: var(--t12-gift-accent);
    box-shadow: 0 8px 20px rgba(159, 45, 34, 0.18);
    color: #fff;
    transition: background-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.ws-t12-gift__trigger-icon {
    display: grid;
    width: clamp(30px, 8vw, 37px);
    flex: 0 0 auto;
    place-items: center;
}

.ws-t12-gift__trigger-icon svg {
    display: block;
    width: 20px;
    height: auto;
}

.ws-t12-gift__open-label {
    position: static;
    padding: 0;
    background: transparent;
    box-shadow: none;
    color: inherit;
    font-family: 'Lora', Georgia, serif;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: 0.015em;
    text-transform: uppercase;
}

.ws-t12-gift .gift-box:hover,
.ws-t12-gift .gift-box:focus-visible {
    background: #862218;
    box-shadow: 0 10px 24px rgba(159, 45, 34, 0.25);
    transform: translateY(-2px);
}

.ws-t12-gift .gift-box:focus-visible {
    outline: 2px solid #9f2d22;
    outline-offset: 3px;
}

.ws-t12-gift.ws-t12-gift--direct {
    --t12-gift-direct: #9b2a2a;
    --t12-gift-direct-rgb: 155, 42, 42;
    padding-top: 0;
    font-family: 'Lato', sans-serif;
}

.ws-t12-gift.ws-t12-gift--direct .ws-t12-gift__panel {
    gap: 0;
}

.ws-t12-gift.ws-t12-gift--direct .section-title {
    color: var(--t12-gift-direct);
    font-family: 'Great Vibes', cursive;
    font-size: clamp(32px, 5.5vw, 42px);
    font-weight: 400;
    line-height: 1.2;
    text-align: center;
    text-shadow: 0 2px 3px rgba(0, 0, 0, 0.16);
    text-transform: capitalize;
    font-family: 'VIP High Spirited', 'Great Vibes', cursive;
    font-size: clamp(38px, 10vw, 52px);
}

.ws-t12-gift.ws-t12-gift--direct .gift__subtitle {
    width: min(100%, 500px);
    margin: auto;
    margin-bottom: 18px;
    color: var(--t12-gift-direct);
    font-family: 'Inter';
    font-size: 14px;
    font-style: italic;
    font-weight: 400;
    line-height: 24px;
    opacity: 0.92;
    text-align: center;

    color: #69514d;
    font-family: 'Lora', Georgia, serif;
    font-size: 13px;
    font-style: normal;
    font-weight: 400;
    line-height: 1.6;
}

.ws-t12-gift.ws-t12-gift--direct .gift-qr-panel {
    width: fit-content;
    gap: 10px;
    padding: 12px;
    border-radius: 18px;
}

.ws-t12-gift.ws-t12-gift--direct .gift-qr-panel__list {
    width: min(100%, 500px);
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
}

.ws-t12-gift.ws-t12-gift--direct .gift__single {
    width: 100%;
}

.ws-t12-gift.ws-t12-gift--direct .gift-qr-card {
    gap: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

.ws-t12-gift.ws-t12-gift--direct .gift-qr-card--panel {
    gap: 4px;
}

.ws-t12-gift.ws-t12-gift--direct .gift-qr-card__image img {
    max-width: 146px;
    padding: 8px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    background: #fff;
}

.ws-t12-gift.ws-t12-gift--direct .gift-qr-card--panel .gift-qr-card__image img {
    max-width: 100px;
    padding: 4px;
    border: 1px solid rgba(var(--t12-gift-direct-rgb), 0.12);
    border-radius: 6px;
}

.ws-t12-gift.ws-t12-gift--direct .gift-qr-card__download {
    padding: 4px 8px;
    border: 0;
    background: transparent;
    color: var(--t12-gift-direct);
    font-size: clamp(9px, 1.2vw, 12px);
}

.ws-t12-gift.ws-t12-gift--direct .gift-qr-card--panel .gift-qr-card__download {
    padding: 3px 6px;
    background: rgba(var(--t12-gift-direct-rgb), 0.06);
    color: var(--t12-gift-direct);
    font-size: clamp(8px, 1.1vw, 11px);
}

.ws-t12-gift.ws-t12-gift--direct .gift-qr-card__download.is-downloaded {
    border-color: var(--t12-gift-direct);
    color: var(--t12-gift-direct);
}

.ws-t12-gift.ws-t12-gift--direct .gift-qr-card__bank,
.ws-t12-gift.ws-t12-gift--direct .gift-qr-card__number,
.ws-t12-gift.ws-t12-gift--direct .gift-qr-card__name {
    color: var(--t12-gift-direct);
    font-family: inherit;
}

.ws-t12-gift.ws-t12-gift--direct .gift-qr-card__bank {
    font-size: clamp(12px, 1.6vw, 15px);
    font-weight: 400;
    line-height: 1.5;
}

.ws-t12-gift.ws-t12-gift--direct .gift-qr-card__number {
    width: auto;
    gap: 4px;
    padding: 4px 6px;
    border-radius: 6px;
    background: transparent;
    font-size: clamp(11px, 1.5vw, 14px);
    font-weight: 600;
    line-height: 1;
}

.ws-t12-gift.ws-t12-gift--direct .gift-qr-card--panel .gift-qr-card__bank,
.ws-t12-gift.ws-t12-gift--direct .gift-qr-card--panel .gift-qr-card__number,
.ws-t12-gift.ws-t12-gift--direct .gift-qr-card--panel .gift-qr-card__name {
    width: 100%;
    color: var(--t12-gift-direct);
    text-align: center;
}

.ws-t12-gift.ws-t12-gift--direct .gift-qr-card--panel .gift-qr-card__bank {
    font-size: clamp(10px, 1.4vw, 13px);
    font-weight: 500;
    line-height: 1.4;
}

.ws-t12-gift.ws-t12-gift--direct .gift-qr-card--panel .gift-qr-card__number {
    width: 100%;
    gap: 3px;
    padding: 3px 4px;
    box-sizing: border-box;
}

.ws-t12-gift.ws-t12-gift--direct .gift-qr-card--panel .gift-qr-card__number-value {
    font-size: clamp(10px, 1.4vw, 13px);
    font-weight: 600;
    line-height: 1.4;
    letter-spacing: 0.02em;
}

.ws-t12-gift.ws-t12-gift--direct .gift-qr-card__copy,
.ws-t12-gift.ws-t12-gift--direct .gift-qr-card--panel .gift-qr-card__copy {
    border: 0;
    background: none;
    color: var(--t12-gift-direct);
}

.ws-t12-gift.ws-t12-gift--direct .gift-qr-card--panel .gift-qr-card__copy {
    width: 18px;
    height: 18px;
    border-radius: 4px;
    background: rgba(var(--t12-gift-direct-rgb), 0.06);
}

.ws-t12-gift.ws-t12-gift--direct .gift-qr-card__copy.is-copied {
    border-color: var(--t12-gift-direct);
    background: #fff;
    color: var(--t12-gift-direct);
}

.ws-t12-gift.ws-t12-gift--direct .gift-qr-card--panel .gift-qr-card__number.is-copied {
    background: rgba(var(--t12-gift-direct-rgb), 0.08);
}

.ws-t12-gift.ws-t12-gift--direct .gift-qr-card__name {
    font-size: clamp(12px, 1.6vw, 15px);
    font-weight: 400;
    line-height: 1.5;
    text-transform: uppercase;
    opacity: 1;
}

.ws-t12-gift.ws-t12-gift--direct .gift-qr-card--panel .gift-qr-card__name {
    overflow: hidden;
    max-width: 100%;
    font-size: clamp(9px, 1.2vw, 12px);
    line-height: 1.4;
    text-overflow: ellipsis;
    text-transform: none;
    white-space: nowrap;
    opacity: 0.85;
}

@media screen and (min-width: 501px) {
    .ws-t12-gift.ws-t12-gift--direct .gift-qr-card--panel .gift-qr-card__image img {
        max-width: 96px;
    }
}

@media screen and (min-width: 768px) {
    .ws-t12-gift.ws-t12-gift--direct .gift-qr-card__image img {
        max-width: 180px;
    }

    .ws-t12-gift.ws-t12-gift--direct .gift-qr-card--panel .gift-qr-card__image img {
        max-width: 160px;
    }
}

.ws-t12-gift .gift-qr-panel {
    width: 100%;
    padding: 0;
    border-radius: 0;
}

.ws-t12-gift .gift-qr-panel__list,
.ws-t12-gift-modal .gift-qr-panel__list {
    width: 100%;
    gap: 10px;
}

.ws-t12-gift .gift__single {
    width: min(100%, 320px);
}

.ws-t12-gift .gift-qr-card,
.ws-t12-gift-modal .gift-qr-card {
    gap: 5px;
    min-width: 0;
    padding: 12px 8px 11px;
    border: 1px solid rgba(141, 97, 52, 0.16);
    border-radius: 13px;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 6px 16px rgba(67, 58, 55, 0.06);
}

.ws-t12-gift .gift-qr-card__image img,
.ws-t12-gift .gift-qr-card--panel .gift-qr-card__image img,
.ws-t12-gift-modal .gift-qr-card__image img,
.ws-t12-gift-modal .gift-qr-card--panel .gift-qr-card__image img {
    width: 100%;
    max-width: 112px;
    padding: 5px;
    border: 1px solid rgba(141, 97, 52, 0.14);
    border-radius: 8px;
    background: #fff;
}

.ws-t12-gift .gift-qr-card__download,
.ws-t12-gift .gift-qr-card--panel .gift-qr-card__download,
.ws-t12-gift-modal .gift-qr-card__download,
.ws-t12-gift-modal .gift-qr-card--panel .gift-qr-card__download {
    min-height: 25px;
    padding: 5px 8px;
    border: 1px solid rgba(141, 97, 52, 0.18);
    background: #fbf7f2;
    color: var(--t12-gift-accent, #8d6134);
    font-family: 'Lora', Georgia, serif;
    font-size: 9px;
    text-decoration: none;
}

.ws-t12-gift .gift-qr-card__bank,
.ws-t12-gift .gift-qr-card__number,
.ws-t12-gift .gift-qr-card__name,
.ws-t12-gift-modal .gift-qr-card__bank,
.ws-t12-gift-modal .gift-qr-card__number,
.ws-t12-gift-modal .gift-qr-card__name {
    width: 100%;
    color: #302827;
    font-family: 'Lora', Georgia, serif;
    text-align: center;
}

.ws-t12-gift .gift-qr-card__bank,
.ws-t12-gift-modal .gift-qr-card__bank {
    color: var(--t12-gift-accent, #8d6134);
    font-size: 11px;
    font-weight: 700;
}

.ws-t12-gift .gift-qr-card__number,
.ws-t12-gift-modal .gift-qr-card__number {
    width: auto;
    max-width: 100%;
    padding: 4px 6px;
    border-radius: 7px;
    background: #f4f5f8;
    font-size: 10px;
}

.ws-t12-gift .gift-qr-card__copy,
.ws-t12-gift .gift-qr-card--panel .gift-qr-card__copy,
.ws-t12-gift-modal .gift-qr-card__copy,
.ws-t12-gift-modal .gift-qr-card--panel .gift-qr-card__copy {
    background: rgba(141, 97, 52, 0.09);
    color: var(--t12-gift-accent, #8d6134);
}

.ws-t12-gift .gift-qr-card__name,
.ws-t12-gift-modal .gift-qr-card__name {
    font-size: 10px;
    line-height: 1.45;
    opacity: 0.78;
}

.ws-t12-gift-modal {
    --t12-gift-accent: #9f2d22;
    --t12-gift-panel: #f0f2f7;
    align-items: center;
    padding: 20px;
    font-family: 'Lora', Georgia, serif;
}

.ws-t12-gift-modal .gift-modal__backdrop {
    appearance: none;
    padding: 0;
    border: 0;
    background: rgba(48, 25, 22, 0.66);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    cursor: pointer;
}

.ws-t12-gift-modal .gift-modal__dialog {
    width: min(500px, 100%);
    max-height: min(780px, calc(100dvh - 40px));
    padding: 0;
    overflow: auto;
    border: 1px solid rgba(159, 45, 34, 0.12);
    border-radius: 24px;
    background: var(--t12-gift-panel);
    box-shadow: 0 24px 70px rgba(48, 25, 22, 0.3);
}

.ws-t12-gift-modal.is-open .gift-modal__dialog {
    animation: t12-gift-modal-in 0.24s ease-out both;
}

.ws-t12-gift-modal.is-manage-preview .gift-modal__dialog {
    max-height: min(780px, calc(var(--gift-modal-preview-visible-height, 100vh) - 40px));
}

.ws-t12-gift-modal .gift-modal__content {
    min-height: 100%;
    gap: 16px;
    padding: 24px;
    background-color: var(--t12-gift-panel);
    background-image:
        linear-gradient(rgba(248, 248, 249, 0.86), rgba(246, 247, 249, 0.92)),
        url('<?php echo esc_url(get_template_directory_uri() . ' /assets/images/template-3/bg-frame.webp'); ?>');
    background-position: center;
    background-size: cover;
}

.ws-t12-gift-modal .gift-modal__title {
    margin: 0 42px;
    color: var(--t12-gift-accent);
    font-family: 'VIP High Spirited', 'Great Vibes', cursive;
    font-size: clamp(34px, 9vw, 46px);
    font-weight: 400;
    line-height: 1.15;
    text-transform: none;
}

.ws-t12-gift-modal .gift-modal__subtitle {
    max-width: 420px;
    margin: 0;
    color: #634945;
    font-family: 'Lora', Georgia, serif;
    font-size: 13px;
    font-weight: 400;
    line-height: 1.6;
    text-align: center;
}

.ws-t12-gift-modal .gift-modal__close {
    z-index: 2;
    top: 14px;
    right: 14px;
    display: grid;
    width: 36px;
    height: 36px;
    padding: 0;
    place-items: center;
    border: 0;
    border-radius: 50%;
    background: #e9e9ec;
    color: var(--t12-gift-accent);
    font-size: 25px;
    line-height: 1;
    cursor: pointer;
}

.ws-t12-gift-modal .gift-qr-panel,
.ws-t12-gift-modal .gift__single {
    width: 100%;
    margin: 0;
    padding: 12px;
    background: transparent;
}

.ws-t12-gift-modal .gift-qr-panel__list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
}

.ws-t12-gift-modal .gift-qr-card {
    width: 100%;
    margin: 0;
    padding: 0;
    gap: 4px;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

.ws-t12-gift-modal .gift-qr-card__image img {
    max-width: 146px;
    padding: 8px;
    border: 2px solid rgba(159, 45, 34, 0.1);
    border-radius: 6px;
}

.ws-t12-gift-modal .gift-qr-card--panel .gift-qr-card__image img {
    max-width: 100px;
    padding: 4px;
    border-width: 1px;
}

.ws-t12-gift-modal .gift-qr-card__download,
.ws-t12-gift-modal .gift-qr-card--panel .gift-qr-card__download {
    min-height: 0;
    padding: 4px 8px;
    border: 0;
    background: rgba(159, 45, 34, 0.06);
    font-size: clamp(9px, 1.2vw, 12px);
    line-height: 1;
}

.ws-t12-gift-modal .gift-qr-card__bank {
    font-size: clamp(10px, 1.4vw, 13px);
    font-weight: 500;
    line-height: 1.4;
}

.ws-t12-gift-modal .gift-qr-card__number {
    width: fit-content;
    gap: 3px;
    padding: 3px 4px;
    box-sizing: border-box;
    background: rgba(255, 255, 255, 0.62);
    font-size: clamp(10px, 1.4vw, 13px);
    line-height: 1.4;
}

.ws-t12-gift-modal .gift-qr-card__copy,
.ws-t12-gift-modal .gift-qr-card--panel .gift-qr-card__copy {
    width: 18px;
    height: 18px;
    border: 0;
    border-radius: 4px;
    background: rgba(159, 45, 34, 0.06);
}

.ws-t12-gift-modal .gift-qr-card__name {
    overflow: hidden;
    max-width: 100%;
    font-size: clamp(9px, 1.2vw, 12px);
    line-height: 1.4;
    text-overflow: ellipsis;
    white-space: nowrap;
    opacity: 0.85;
}

@keyframes t12-gift-modal-in {
    from {
        opacity: 0;
        transform: translateY(18px) scale(0.98);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes t12-gift-portrait-pulse {
    0% {
        opacity: 0.85;
        box-shadow: 0 0 0 0 rgba(159, 45, 34, 0.42);
        transform: scale(0.96);
    }

    70%,
    100% {
        opacity: 0;
        box-shadow: 0 0 0 18px rgba(159, 45, 34, 0);
        transform: scale(1.06);
    }
}

@media (prefers-reduced-motion: reduce) {
    .ws-t12-gift__portrait::after {
        animation: none;
    }

    .ws-t12-gift__portrait-image {
        transition: none;
    }

    .ws-t12-gift__portrait-image:hover,
    .ws-t12-gift__portrait-image:focus-visible,
    .ws-t12-gift__portrait-image:active {
        transform: none;
    }

    .ws-t12-gift-modal.is-open .gift-modal__dialog {
        animation: none;
    }
}

@media screen and (max-width: 390px) {
    .ws-t12-gift .ws-t12-gift__panel {
        padding-right: 0;
        padding-left: 0;
        border-radius: 0;
    }

    .ws-t12-gift .gift-qr-panel__list {
        grid-template-columns: minmax(0, 1fr);
    }

    .ws-t12-gift .gift-qr-card__image img,
    .ws-t12-gift .gift-qr-card--panel .gift-qr-card__image img {
        max-width: 132px;
    }
}

@media screen and (max-width: 520px) {
    .ws-t12-gift-modal {
        align-items: flex-end;
        padding: 8px;
    }

    .ws-t12-gift-modal .gift-modal__dialog {
        max-height: calc(100dvh - 16px);
        border-radius: 22px;
    }

    .ws-t12-gift-modal.is-manage-preview .gift-modal__dialog {
        max-height: calc(var(--gift-modal-preview-visible-height, 100vh) - 16px);
    }

    .ws-t12-gift-modal .gift-modal__content {
        padding: 24px 18px 20px;
    }

    .ws-t12-gift-modal .gift-modal__title {
        font-size: 38px;
    }
}
