/* ================= Invitation ================= */

.invitation {
    display: none;
    opacity: 0;
    min-height: 100vh;
    overflow-x: hidden;
    transition: opacity .72s ease;
}

.invitation.show {
    display: block;
    opacity: 1;
}

.invitation__header {
    position: fixed;
    display: flex;
    justify-content: space-between;
    align-items: center;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 480px;
    min-height: 1.02rem;
    padding: .16rem .28rem;
    color: #fff;
    background: transparent;
    transition: background .3s ease, color .3s ease, box-shadow .3s ease;
    z-index: 1000;
}

.invitation__header.scrolled,
.invitation__header.menu-open {
    color: #333;
    background: rgba(255, 255, 255, .88);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    box-shadow: 0 8px 22px rgba(0, 0, 0, .08);
}

.invitation__logo {
    /* Đồng bộ font nickname (theme fonts inject / --font-nickname) */
    font-family: var(--font-nickname, "Great Vibes", cursive);
    font-size: .46rem;
    line-height: 1;
}

.invitation-menu__toggle {
    width: .72rem;
    height: .72rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    color: inherit;
    background: rgba(255, 255, 255, .16);
    border: 1px solid rgba(255, 255, 255, .25);
    font-size: .42rem;
    line-height: 1;
}

.invitation__header.scrolled .invitation-menu__toggle,
.invitation__header.menu-open .invitation-menu__toggle {
    background: rgba(var(--primary-rgb), .12);
    border-color: rgba(var(--primary-rgb), .18);
}

.invitation-menu {
    position: absolute;
    top: calc(100% + .12rem);
    left: .28rem;
    right: .28rem;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .12rem;
    padding: .22rem;
    border-radius: 16px;
    background: rgba(255, 255, 255, .94);
    border: 1px solid rgba(var(--primary-rgb), .16);
    box-shadow: 0 18px 40px rgba(0, 0, 0, .12);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity .25s ease, visibility .25s ease, transform .25s ease;
    pointer-events: none;
}

.invitation__header.menu-open .invitation-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
}

.invitation-menu__item {
    width: 100%;
    min-height: .72rem;
    padding: .12rem .14rem;
    border-radius: 12px;
    color: #444;
    background: rgba(var(--primary-rgb), .1);
    font-size: .23rem;
    line-height: 1.25;
    text-align: center;
    white-space: pre-line;
}

.invitation-menu__item:hover {
    color: #fff;
    background: var(--primary-color);
}

.invitation__container {
    position: relative;
    transform: translateY(18px) scale(.99);
    transition: transform .82s cubic-bezier(.22, 1, .36, 1);
    will-change: transform;
}

.invitation.show .invitation__container {
    transform: translateY(0) scale(1);
}

.invitation section {
    scroll-margin-top: 1.25rem;
}

.poster {
    position: relative;
    width: 100%;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.wave {
    position: absolute;
    left: 0;
    bottom: -1px;
    width: 100%;
    height: 120px;
    z-index: 10;
}

.poster img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    animation: kenburns 8s linear forwards;
}

.poster::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, .25);
}

.poster::after {
    content: "";
    position: absolute;
    inset: 0;

    background: linear-gradient(to top,
            rgba(0, 0, 0, .65) 0%,
            rgba(0, 0, 0, .35) 35%,
            rgba(0, 0, 0, .1) 70%,
            rgba(0, 0, 0, 0) 100%);

    z-index: 1;
}

.poster-content {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: center;
    text-align: center;
    color: #fff;
    padding-bottom: 10vh;
    z-index: 5;
}

.couple {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    padding: 0 18px;
    row-gap: .2rem;
}

.text_1,
.text_2 {
    min-width: 0;
    font-family: var(--font-nickname, "Great Vibes", cursive);
    font-size: .7rem;
    font-weight: 400;
    line-height: 1.2;
    word-break: keep-all;
    text-shadow: 0 2px 10px rgba(0, 0, 0, .38);
}

.text_1 {
    align-self: flex-start;
    text-align: left;
}

.text_2 {
    align-self: flex-end;
    text-align: right;
}

.heart {
    align-self: center;
    font-size: .62rem;
    line-height: .8;
    text-shadow: 0 2px 10px rgba(0, 0, 0, .28);
}

@media (max-width: 360px) {
    .couple {
        padding: 0 16px;
        row-gap: .06rem;
    }

    .text_1,
    .text_2 {
        font-size: .76rem;
    }

    .heart {
        font-size: .5rem;
    }
}

/* Poster size: theme-unifier --poster-date-size / --poster-location-size */
.date__time {
    margin-top: .52rem;
    letter-spacing: .15rem;
    text-transform: uppercase;
}

.location {
    margin-top: .15rem;
    letter-spacing: .08rem;
    opacity: .9;
}

.text_1,
.text_2,
.heart,
.info {
    opacity: 0;
    transform: translate3d(0, 28px, 0);
    transition: opacity .75s ease, transform .75s cubic-bezier(.22, 1, .36, 1);
    backface-visibility: hidden;
}

.text_1.show,
.text_2.show,
.heart.show,
.info.show {
    opacity: 1;
    transform: translate3d(0, 0, 0);
}

/*================ SAVE DATE ================*/

.save-date {
    padding: 0.5rem .2rem;
    text-align: center;
    background: #fff;
}

.save-title {
    letter-spacing: .15rem;
    color: var(--primary-color);
    margin-bottom: .4rem;
}

.month-year {
    margin: .45rem 0 .8rem;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: .18rem;
    color: var(--primary-color);
    font-size: .42rem;
    letter-spacing: .08rem;
    font-weight: 500;
}

.dot {
    opacity: .45;
    font-size: .8rem;
}

.days {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: .12rem;
}

.days span {
    display: flex;
    justify-content: center;
    align-items: center;
    height: .65rem;
}

/*================ CALENDAR ================*/

.calendar {
    position: relative;
    overflow: hidden;
    max-width: 320px;
    margin: 0 auto;
    border-radius: 0 0 18px 18px;
    padding: .5rem;
    background: white;
    box-shadow: 0 12px 20px -12px rgba(0, 0, 0, .15);
}

.calendar::before {

    content: "";

    position: absolute;

    inset: 0;

    background: linear-gradient(to top,

            rgba(var(--primary-rgb), .55) 0%,

            rgba(var(--primary-rgb), .65) 25%,

            rgba(var(--primary-rgb), .25) 55%,

            rgba(var(--primary-rgb), 0) 100%);

    pointer-events: none;

    z-index: 0;
}

.calendar>* {

    position: relative;

    z-index: 2;
}

.week,
.days {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
}

.week span {
    font-size: .22rem;
    color: #999;
    margin-bottom: .15rem;
}

.days span {
    height: .65rem;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: .28rem;
}

.active {
    position: relative;
    width: .72rem;
    height: .72rem;
    background: transparent;
    margin: auto;
    font-weight: bold;
    z-index: 1;
    isolation: isolate;
}

.active::before {
    content: "\F417";
    position: absolute;
    inset: 50% auto auto 50%;
    transform: translate(-50%, -50%) scale(1);
    font-family: "bootstrap-icons";
    font-weight: 400;
    color: #ff365bc7;
    font-size: 1rem;
    line-height: 1;
    z-index: -1;
    animation: calendarHeartBeat 1.2s ease-in-out infinite;
}

/*================ SECTION DIVIDER ================*/

.section-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .22rem;
    padding: .45rem .55rem;
    background: #fff;
}

.section-divider::before,
.section-divider::after {
    content: "";
    flex: 1;
    height: 1px;
    max-width: 2.3rem;
    background: linear-gradient(
        to right,
        rgba(var(--primary-rgb), 0),
        rgba(var(--primary-rgb), .75)
    );
}

.section-divider::after {
    background: linear-gradient(
        to left,
        rgba(var(--primary-rgb), 0),
        rgba(var(--primary-rgb), .75)
    );
}

.section-divider span {
    position: relative;
    width: .58rem;
    height: .58rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.section-divider span::before {
    content: "\F772";
    font-family: "bootstrap-icons";
    font-weight: 400;
    color: var(--primary-color);
    font-size: .45rem;
    line-height: 1;
    filter: drop-shadow(0 4px 8px rgba(var(--primary-rgb), .25));
}

/*================ ABOUT ================*/
.about {
    padding: 0rem .5rem;
    background: #fff;
}

.about-title {
    text-align: center;
    margin-bottom: .8rem;
    letter-spacing: .15rem;
    color: var(--primary-color);
}

.person {
    text-align: center;
    margin-bottom: 1rem;
}

.person img {
    width: 4rem;
    height: 4rem;
    border-radius: 50%;
    object-fit: cover;
    margin: auto;
}

.person-name {
    margin-top: .35rem;
    font-size: .42rem;
    font-weight: 400;
}

.parent {
    margin-top: .15rem;
    color: #666;
    line-height: 1.6;
    font-weight: 400;
    font-size: .3rem;
}

/*================ TIMELINE ================*/
.timeline {

    padding: 0rem .35rem;

    background: #fff;

}

.section-title {
    text-align: center;
    margin-bottom: .8rem;
    letter-spacing: .15rem;
    color: var(--primary-color);
}

.timeline-card {

    position: relative;

    background: white;

    border-radius: 20px;

    overflow: hidden;

    box-shadow: 0 12px 25px rgba(0, 0, 0, .08);

    margin-bottom: .45rem;

}

.timeline-card>img {

    width: 100%;

    height: 6rem;

    object-fit: cover;

}

.timeline-content {

    padding: .35rem;

}

.timeline-events {

    display: flex;

    align-items: stretch;

    gap: .24rem;

}

.timeline-event {

    flex: 1;

    min-width: 0;

    padding: .18rem .08rem .28rem;

}

.timeline-event + .timeline-event {

    border-left: 1px solid rgba(var(--primary-rgb), .28);

}

.timeline-name {

    text-align: center;

    font-size: .34rem;

    font-weight: 400;

    margin-bottom: .24rem;

    line-height: 1.35;

}

.timeline-row {
    display: flex;
    align-items: center;
    gap: .18rem;
    margin: .2rem 0;
}

.timeline-event .timeline-row {

    justify-content: center;

    text-align: center;

}

.timeline-address {

    justify-content: center;

    text-align: center;

    margin: .28rem auto 0;

    padding-top: .28rem;

    border-top: 1px solid rgba(var(--primary-rgb), .25);

}

.timeline-row i {
    font-size: .4rem;
    color: var(--primary-color);
}

.timeline-row span {
    font-size: .27rem;
    color: #555;
    line-height: 1.5;
}

.timeline-map-link {
    width: fit-content;
    margin: .22rem auto 0;
    padding: .16rem .34rem;
    border-radius: 999px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .14rem;
    color: #fff;
    background: var(--primary-color);
    font-size: .27rem;
    font-weight: 400;
    text-decoration: none;
    box-shadow: 0 8px 20px rgba(var(--primary-rgb), .28);
    transition: background .25s ease, transform .25s ease, box-shadow .25s ease;
}

.timeline-map-link:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 12px 24px rgba(var(--primary-rgb), .38);
}

.timeline-map-link i {
    font-size: .32rem;
}

/*================ GALLERY ================*/
.gallery {
    padding: 0rem .3rem 1rem .3rem;
    background: #fff;
}

.gallery-grid {
    position: relative;
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    grid-template-rows: repeat(10, 1.08rem);
    gap: .13rem;
    padding: .4rem;
    overflow: hidden;
    background: #fff;
    border: 1px solid rgba(var(--primary-rgb), .18);
    box-shadow: 0 18px 44px rgba(0, 0, 0, .08);
}

.gallery-item {
    position: relative;
    min-width: 0;
    min-height: 0;
    overflow: hidden;
}

.gallery-intro {
    z-index: 2;
    grid-column: 1 / span 2;
    grid-row: 1 / span 2;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    padding: .02rem 0 0 .04rem;
    color: #2f2f2f;
}

.gallery-intro__eyebrow,
.gallery-intro__title {
    font-family: "Cormorant Garamond", serif;
    font-size: .26rem;
    line-height: .9;
    letter-spacing: .025rem;
    text-transform: uppercase;
}

.gallery-intro__script {
    margin: .03rem 0 .02rem;
    font-family: "Great Vibes", cursive;
    font-size: .38rem;
    line-height: .8;
    color: var(--primary-color);
}

.gallery-intro__line {
    width: .28rem;
    height: 1px;
    margin: .16rem 0 .13rem;
    background: rgba(47, 47, 47, .55);
}

.gallery-intro__date {
    font-size: .18rem;
    letter-spacing: .035rem;
    color: #555;
}

.gallery-frame {
    z-index: 2;
    margin: 0;
    background: rgba(var(--primary-rgb), .08);
}

.gallery-frame img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gallery-frame--1 {
    grid-column: 3 / span 4;
    grid-row: 1 / span 4;
}

.gallery-frame--2 {
    grid-column: 1 / span 1;
    grid-row: 3 / span 2;
}

.gallery-frame--3 {
    grid-column: 2 / span 1;
    grid-row: 3 / span 2;
}

.gallery-frame--4 {
    grid-column: 1 / span 2;
    grid-row: 5 / span 3;
}

.gallery-frame--5 {
    grid-column: 3 / span 3;
    grid-row: 5 / span 3;
}

.gallery-frame--6 {
    grid-column: 1 / span 2;
    grid-row: 8 / span 2;
}

.gallery-frame--7 {
    grid-column: 3 / span 2;
    grid-row: 8 / span 3;
}

.gallery-frame--8 {
    grid-column: 1 / span 2;
    grid-row: 10 / span 1;
}

.gallery-frame--9 {
    grid-column: 5 / span 1;
    grid-row: 8 / span 2;
}

.gallery-poster--few {
    grid-template-columns: repeat(20, minmax(0, 1fr));
    grid-template-rows: repeat(9, 1.08rem);
}

.gallery-poster--few .gallery-intro {
    grid-column: 1 / span 3;
    grid-row: 1 / span 2;
}

.gallery-poster--few .gallery-frame--1 {
    grid-column: 4 / span 17;
    grid-row: 1 / span 4;
}

.gallery-poster--few .gallery-frame--2 {
    grid-column: 1 / span 3;
    grid-row: 3 / span 4;
}

.gallery-poster--few .gallery-frame--3 {
    grid-column: 4 / span 2;
    grid-row: 5 / span 2;
}

.gallery-poster--few .gallery-frame--4 {
    grid-column: 6 / span 10;
    grid-row: 5 / span 2;
}

.gallery-poster--few .gallery-frame--5 {
    grid-column: 1 / span 15;
    grid-row: 7 / span 3;
}

.gallery-poster--full,
.gallery-poster--medium {
    grid-template-columns: repeat(6, minmax(0, 1fr));
}

.gallery-poster--medium {
    grid-template-rows: repeat(11, 1.08rem);
}

.gallery-poster--medium .gallery-frame--6 {
    grid-column: 1 / span 2;
    grid-row: 8 / span 4;
}

.gallery-poster--medium .gallery-frame--7 {
    grid-column: 3 / span 3;
    grid-row: 8 / span 4;
}

.gallery-poster--many {
    grid-auto-flow: dense;
    grid-auto-rows: .86rem;
    grid-template-rows: none;
    padding-right: .34rem;
}

.gallery-poster--many .gallery-intro {
    grid-column: 1 / span 2;
    grid-row: span 2;
}

.gallery-poster--many .gallery-frame {
    grid-column: span 2;
    grid-row: span 2;
}

.gallery-poster--many .gallery-frame--1 {
    grid-column: 3 / span 4;
    grid-row: span 4;
}

.gallery-poster--many .gallery-frame:not(.gallery-frame--1):nth-of-type(4n + 1) {
    grid-row: span 3;
}

.gallery-poster--many .gallery-frame:nth-of-type(6n + 2) {
    grid-column: span 3;
}

.gallery-poster--many .gallery-side-text {
    right: .12rem;
    bottom: .5rem;
    font-size: .2rem;
    opacity: .65;
}

.gallery-poster--many .gallery-fan--top {
    top: 5.6rem;
}

.gallery-side-text {
    position: absolute;
    z-index: 3;
    right: .5rem;
    bottom: 1.2rem;
    writing-mode: vertical-rl;
    text-orientation: mixed;
    font-size: .35rem;
    line-height: 1;
    letter-spacing: .09rem;
    color: #333;
}

.gallery-fan {
    position: absolute;
    z-index: 1;
    width: 1.62rem;
    height: 1.62rem;
    border-radius: 50%;
    opacity: .26;
    background: repeating-conic-gradient(
        from -18deg,
        rgba(var(--primary-rgb), .45) 0deg 2deg,
        transparent 2deg 10deg
    );
    -webkit-mask-image: linear-gradient(to top, #000 52%, transparent 52%);
    mask-image: linear-gradient(to top, #000 52%, transparent 52%);
    pointer-events: none;
}

.gallery-fan--top {
    right: .36rem;
    top: 6.1rem;
    transform: rotate(-8deg);
}

.gallery-fan--bottom {
    right: 1.05rem;
    bottom: -.34rem;
    transform: rotate(12deg);
}

@media (max-width: 420px) {
    .gallery {
        padding-right: .22rem;
        padding-left: .22rem;
    }

    .gallery-grid {
        grid-template-rows: repeat(10, 1rem);
        gap: .11rem;
        padding: .36rem;
    }

    .gallery-side-text {
        right: .5rem;
        bottom: 1.08rem;
        font-size: .35rem;
    }

    .gallery-poster--few {
        grid-template-columns: repeat(20, minmax(0, 1fr));
        grid-template-rows: repeat(9, 1rem);
    }

    .gallery-poster--medium {
        grid-template-rows: repeat(11, 1rem);
    }

    .gallery-poster--many {
        grid-auto-rows: .78rem;
        padding-right: .3rem;
    }

    .gallery-poster--many .gallery-side-text {
        right: .1rem;
        bottom: .42rem;
        font-size: .18rem;
    }
}

/*================ WISH ================*/

.wish {
    padding: 0rem .4rem;
    background: #fff;
}

.wish-form {
    background: #fff;
    border-radius: 18px;
    padding: .45rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, .08);
}

.wish input,
.wish textarea {
    width: 100%;
    padding: .25rem;
    margin-bottom: .25rem;
    border: 1px solid #ddd;
    border-radius: 12px;
    outline: none;
    font-size: .28rem;
}

.wish input{
    margin-bottom: 0;
}

.wish textarea {

    resize: none;

}

.wish-side {
    width: 100%;
    gap: .5rem;
    margin: .25rem 0;
}

.wish-attendance {
    margin: .25rem 0;
}

.wish-label {
    margin-bottom: .14rem;
    color: #666;
    font-size: .25rem;
    font-weight: 400;
}

.wish-side label {

    display: flex;

    align-items: center;

    gap: .1rem;

    font-size: .26rem;

}

#wishBtn {

    background: var(--primary-color);

    border: none;

    color: white;

    padding: .25rem;

    border-radius: 12px;

    font-size: .3rem;

}

.wish-toast {
    position: fixed;
    left: 50%;
    bottom: .46rem;
    z-index: 12000;
    width: calc(100% - .8rem);
    max-width: 420px;
    padding: .24rem .34rem;
    border-radius: 999px;
    color: #fff;
    background: var(--primary-color);
    box-shadow: 0 14px 34px rgba(var(--primary-rgb), .34);
    font-size: .27rem;
    font-weight: 400;
    text-align: center;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translate(-50%, 18px) scale(.96);
    transition:
        opacity .25s ease,
        visibility .25s ease,
        transform .28s cubic-bezier(.22, 1, .36, 1);
}

.wish-toast.show {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, 0) scale(1);
}

.wish-toast.error {
    background: #b76e79;
    box-shadow: 0 14px 34px rgba(183, 110, 121, .28);
}

/*================ WISH LIST ================*/

.wish-list {
    margin-top: .6rem;
}

.wish-card {
    position: relative;
    background: #fff;
    border-radius: 18px;
    padding: .35rem .95rem .35rem .35rem;
    margin-bottom: .3rem;
    box-shadow: 0 10px 20px rgba(0, 0, 0, .08);

    opacity: 0;
    transform: translateY(20px);
    animation: fadeUp .5s forwards;
}

.wish-pin {
    position: absolute;
    top: -.18rem;
    right: .18rem;
    width: .72rem;
    height: .72rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    background: var(--primary-color);
    box-shadow: 0 8px 18px rgba(var(--primary-rgb), .3);
    font-size: .42rem;
    z-index: 2;
}

.wish-header {
    display: flex;
    align-items: center;
    gap: .25rem;
}

.avatar {
    width: .8rem;
    height: .8rem;
    border-radius: 50%;
    background: var(--primary-color);
    color: #fff;

    display: flex;
    justify-content: center;
    align-items: center;

    font-weight: bold;
    font-size: .35rem;
}

.user-info {
    flex: 1;
}

.user-name {
    font-weight: bold;
    font-size: .3rem;
}

.user-side {
    font-size: .22rem;
    color: #888;
}

.attendance-badge {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    margin-top: .12rem;
    padding: .08rem .18rem;
    border-radius: 999px;
    font-size: .22rem;
    font-weight: 400;
}

.attendance-badge.attending {
    color: var(--primary-color);
    background: rgba(var(--primary-rgb), .12);
}

.attendance-badge.absent {
    color: #777;
    background: #f1f1f1;
}

.wish-message {
    margin: .25rem 0;
    line-height: 1.6;
}

.wish-time {
    text-align: right;
    color: #999;
    font-size: .22rem;
}

@keyframes fadeUp {

    from {

        opacity: 0;

        transform: translateY(20px);

    }

    to {

        opacity: 1;

        transform: translateY(0);

    }

}

.load-more {

    display: flex;
    justify-content: center;
    align-items: center;
    gap: .12rem;

    margin: .6rem auto 0;

    padding: .22rem .7rem;

    background: var(--primary-color);
    color: #fff;

    border: none;
    border-radius: 999px;

    font-size: .28rem;
    font-weight: 500;
    letter-spacing: .02rem;

    cursor: pointer;

    transition: .3s;

    box-shadow:
        0 8px 20px rgba(var(--primary-rgb), .35);

}

.load-more:hover {

    background: var(--primary-hover);

    transform: translateY(-2px);

    box-shadow:
        0 12px 24px rgba(var(--primary-rgb), .45);

}

.load-more:active {

    transform: scale(.96);

}

.load-more::after {

    content: "▼";

    margin-left: .15rem;

    font-size: .18rem;

    transition: .3s;

}

.load-more.collapse::after {

    content: "▲";

}

/*================ SIDE SELECT ================*/

.side-group {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: .2rem;
    margin: .2rem 0;
    width: 100%;
}

.side-card {
    display: flex;
    justify-content: center;
    width: 100%;
    cursor: pointer;
}

.side-card input {
    display: none;
}

.side-content {

    position: relative;
    border: 2px solid #e6e6e6;
    border-radius: 12px;
    background: #fff;
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: .12rem;
    width: 100%;
    min-height: .9rem;
    padding: .18rem .28rem;
    text-align: center;
    transition: .25s;
}

.side-icon {

    font-size: .42rem;
    line-height: 1;
}

.side-text {

    font-size: .29rem;
    font-weight: 400;
    line-height: 1.35;

    display: flex;
    align-items: center;
    justify-content: center;
}

.side-card input:checked+.side-content {

    border-color: var(--primary-color);
    background: rgba(var(--primary-rgb), .1);

    box-shadow:
        0 10px 25px rgba(var(--primary-rgb), .25);
}

.side-card input:checked+.side-content::after {

    content: "✓";

    position: absolute;

    top: .1rem;
    right: .1rem;

    width: .34rem;
    height: .34rem;

    border-radius: 50%;

    background: var(--primary-color);
    color: #fff;

    display: flex;
    justify-content: center;
    align-items: center;

    font-size: .22rem;
    font-weight: bold;
}

.side-content:hover {
    border-color: var(--primary-color);
}

/*================ GIFT ================*/

.gift {
    padding: 0rem .35rem 1rem .35rem;
    background: #fff;
}

.gift-desc {

    text-align: center;

    color: #777;

    line-height: 1.7;

    margin-bottom: .7rem;

    font-size: .26rem;

}

.gift-box {
    position: relative;
    display: block;
    width: 3.2rem;
    height: 2.7rem;
    margin: 0 auto;
    border: none;
    background: transparent;
    cursor: pointer;
}

.gift-box__body,
.gift-box__lid {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 2.45rem;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-hover));
    box-shadow: 0 18px 35px rgba(var(--primary-rgb), .28);
}

.gift-box__body {
    bottom: .25rem;
    height: 1.55rem;
    border-radius: .16rem .16rem .22rem .22rem;
}

.gift-box__lid {
    bottom: 1.68rem;
    height: .48rem;
    border-radius: .18rem;
    transform-origin: left bottom;
    transition: transform .45s cubic-bezier(.22, 1, .36, 1);
}

.gift-box__ribbon {
    position: absolute;
    left: 50%;
    bottom: .25rem;
    width: .38rem;
    height: 1.9rem;
    transform: translateX(-50%);
    background: rgba(250, 230, 10, 0.72);
    border-radius: 999px;
}

.gift-box__ribbon::before,
.gift-box__ribbon::after {
    content: "";
    position: absolute;
    top: -.5rem;
    width: .78rem;
    height: .48rem;
    border: .12rem solid rgba(250, 230, 10, 0.72);
    border-radius: 50%;
}

.gift-box__ribbon::before {
    right: .12rem;
    transform: rotate(-18deg);
}

.gift-box__ribbon::after {
    left: .12rem;
    transform: rotate(18deg);
}

.gift-box__text {
    position: absolute;
    left: 0;
    right: 0;
    bottom: -.18rem;
    color: var(--primary-color);
    font-size: .3rem;
    font-weight: 700;
}

.gift-box:hover .gift-box__lid {
    transform: translateX(-50%) translateY(-.12rem) rotate(-5deg);
}

.gift-modal {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: .42rem;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity .25s ease, visibility .25s ease;
    z-index: 10000;
}

.gift-modal.show {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.gift-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, .45);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

.gift-modal__content {
    position: relative;
    width: min(100%, 430px);
    max-height: 86vh;
    overflow-y: auto;
    padding: 1rem .35rem .35rem;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 22px 55px rgba(0, 0, 0, .22);
    transform: translateY(18px) scale(.96);
    transition: transform .3s cubic-bezier(.22, 1, .36, 1);
}

.gift-modal.show .gift-modal__content {
    transform: translateY(0) scale(1);
}

.gift-modal__close {
    position: absolute;
    top: .18rem;
    right: .18rem;
    width: .62rem;
    height: .62rem;
    border-radius: 50%;
    background: rgba(var(--primary-rgb), .12);
    color: var(--primary-color);
    font-size: .44rem;
    line-height: 1;
    cursor: pointer;
}

.gift-card {

    background: #fff;

    border: 1px solid rgba(var(--primary-rgb), .18);

    border-radius: 14px;

    padding: .35rem;

    margin-bottom: .28rem;

    text-align: center;

    box-shadow: 0 10px 22px rgba(0, 0, 0, .06);

}

.gift-name {

    font-size: .36rem;

    font-weight: 400;

    color: var(--primary-color);

    margin-bottom: .3rem;

}

.gift-qr {
    width: 5rem;
    height: 5rem;
    object-fit: cover;
    margin: .2rem auto .4rem;
}

.gift-bank {

    font-size: .34rem;

    font-weight: 400;

}

.gift-account-name {

    margin-top: .15rem;

    color: #555;

}

.copy-box {
    margin-top: .35rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #f6f6f6;
    border-radius: 12px;
    padding: .22rem .3rem;
    cursor: pointer;
    transition: .25s;
}

.copy-box:hover {
    background: #eeeeee;
}

.copy-box span {
    font-size: .32rem;
    font-weight: 400;
    color: #444;
    letter-spacing: 1px;
}

.copy-box i {
    font-size: .42rem;
    opacity: .7;
    color: var(--primary-color);
}

.timeline-side-badge {
    position: absolute;
    top: .28rem;
    left: .28rem;
    z-index: 4;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 1.55rem;
    padding: .12rem .24rem;
    border-radius: 999px;
    color: #fff;
    background: rgba(var(--primary-rgb), .92);
    box-shadow: 0 10px 22px rgba(var(--primary-rgb), .28);
    font-family: var(--font-body, "Quicksand", sans-serif);
    font-size: .3rem;
    font-weight: 800;
    letter-spacing: .04rem;
    text-transform: uppercase;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.about-portrait {
    display: none;
}

.section-subtitle {
    width: min(100%, 7.2rem);
    margin: -.52rem auto .72rem;
    color: #666;
    font-weight: 400;
    line-height: 1.72;
    text-align: center;
    white-space: pre-line;
}

.section-subtitle[hidden] {
    display: none;
}

.save-date .section-subtitle {
    margin-top: -.16rem;
    margin-bottom: .38rem;
}

.gift .section-subtitle {
    margin-bottom: .22rem;
}

.countdown .section-subtitle {
    color: rgba(255, 255, 255, .88);
    text-shadow: 0 2px 8px rgba(0, 0, 0, .22);
}

.thanks .section-subtitle {
    margin-top: -.22rem;
    margin-bottom: .42rem;
}

.wish input,
.wish textarea {
    font-size: max(16px, .28rem);
}
