@import url("common.css");
@import url("animation.css");

html {
    scrollbar-width: none !important;
    -ms-overflow-style: none !important;
}

.with-scrollbar {
    scrollbar-width: auto !important;
    -ms-overflow-style: auto !important;
}

.font-esthetic {
    font-family: 'Sacramento', cursive !important;
}

.font-arabic {
    font-family: 'Noto Naskh Arabic', serif !important;
}

.img-center-crop {
    width: 13rem;
    height: 13rem;
    max-width: 100%;
    max-height: 100%;
    object-fit: cover;
}

html[data-bs-theme="light"] .btn-transparent {
    background-color: rgba(var(--bs-light-rgb), 0.5) !important;
    backdrop-filter: blur(0.5rem);
}

.loading-page {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 1056;
}

.bg-cover-home {
    width: 100%;
    height: 100%;
    object-fit: cover;
    mask-image: linear-gradient(0.5turn, transparent, black 40%, black 60%, transparent);
}

.width-loading {
    width: 25%;
}

.home-slideshow {
    overflow: hidden;
    z-index: 0;
}

.home-content {
    z-index: 1;
}

.rsvp-section {
    background:
        radial-gradient(ellipse at top, rgba(216, 155, 43, 0.09), transparent 58%),
        var(--maple-cream);
}

.rsvp-card {
    max-width: 980px;
    margin-inline: auto;
    overflow: hidden;
    border: 1px solid rgba(184, 74, 58, 0.2);
    background-color: var(--maple-paper);
}

.rsvp-header {
    padding: clamp(1.5rem, 4vw, 3rem) clamp(1rem, 5vw, 3rem) 1.5rem;
    border-top: 5px solid var(--maple-gold);
}

.rsvp-flourish {
    display: inline-flex;
    width: 2.75rem;
    height: 2.75rem;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.5rem;
    border: 1px solid rgba(92, 127, 88, 0.28);
    border-radius: 50%;
    color: var(--maple-green);
    background-color: rgba(92, 127, 88, 0.08);
}

.rsvp-header h2 {
    color: var(--maple-ink);
    font-size: clamp(2.5rem, 5vw, 3.5rem);
}

.rsvp-header p {
    color: rgba(51, 45, 42, 0.82);
}

.rsvp-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    width: min(16rem, 70%);
    margin: 1.25rem auto;
    color: var(--maple-red);
    font-size: 0.75rem;
}

.rsvp-divider span {
    width: 4rem;
    border-top: 1px solid rgba(216, 155, 43, 0.55);
}

.rsvp-instruction {
    font-size: 0.95rem;
}

.rsvp-content {
    max-width: 760px;
    margin-inline: auto;
    padding: clamp(1.25rem, 4vw, 2.5rem);
}

.rsvp-footer {
    padding: 1.25rem 1rem 1.75rem;
}

@media screen and (max-width: 576px) {
    .rsvp-section {
        padding-inline: 0.75rem;
    }

    .rsvp-content {
        padding: 1rem;
    }
}

.image-modal-dialog {
    width: fit-content;
    max-width: 95vw;
}

.image-modal-dialog .modal-content {
    width: fit-content;
}

.image-modal-photo {
    display: block;
    width: auto;
    max-width: 95vw;
    max-height: 90vh;
    object-fit: contain;
}

.cursor-pointer {
    cursor: pointer;
}

@media screen and (min-width: 992px) {
    #root {
        width: 100%;
        max-width: 1600px;
        margin-inline: auto !important;
        box-sizing: border-box;
    }

    #home {
        min-height: min(900px, 100svh);
        display: flex;
        flex-direction: column;
        justify-content: center;
    }

    #home .home-content {
        width: 100%;
        padding-block: clamp(3rem, 8vh, 7rem);
    }

    #home .home-title {
        font-size: clamp(3rem, 5vw, 4.5rem) !important;
    }

    #home .home-portrait {
        width: clamp(15rem, 22vw, 20rem);
        height: clamp(15rem, 22vw, 20rem);
    }

    #home .home-names {
        font-size: clamp(3rem, 5vw, 4.5rem) !important;
    }

    #home .home-date {
        font-size: clamp(1.25rem, 2vw, 1.75rem) !important;
    }

    #bride .couple-profiles {
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
        align-items: center;
        gap: clamp(2rem, 6vw, 7rem);
        max-width: 1100px;
        margin-inline: auto;
    }

    #bride .couple-profile .img-center-crop {
        width: 15rem;
        height: 15rem;
    }

    #bride .couple-profiles > h2 {
        margin-block: 0 !important;
        font-size: clamp(4.5rem, 7vw, 6rem) !important;
    }

    #gallery .carousel {
        max-width: 1100px;
        margin-inline: auto;
    }
}

@media screen and (max-width: 992px) {
    .width-loading {
        width: 50%;
    }
}

@media screen and (max-width: 576px) {
    .width-loading {
        width: 75%;
    }
}

svg {
    display: block;
    line-height: 0;
    shape-rendering: geometricPrecision;
    backface-visibility: hidden;
}

.svg-wrapper {
    overflow: hidden !important;
    transform: translateZ(0) !important;
}

.no-gap-bottom {
    margin-bottom: -0.75rem !important;
}