@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;
}

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

.img-landing {
    width: 17rem;
    height: 17rem;
    object-fit: cover;
}

.img-gallery {
    width: 100%;
    aspect-ratio: 2 / 3;
    object-fit: cover;
}

#photobooth-viewfinder {
    aspect-ratio: 3 / 4;
    object-fit: cover;
}

/* Pratinjau ikut berubah supaya tamu melihat efeknya sebelum memotret.
   Nilainya sama dengan filmFilter di photobooth.js. */
.photobooth-film-on #photobooth-viewfinder {
    filter: sepia(0.32) saturate(1.25) contrast(0.88) brightness(1.06) hue-rotate(-6deg);
}

.photobooth-film-on::after {
    position: absolute;
    inset: 0;
    border-radius: var(--bs-border-radius-xl);
    background: radial-gradient(circle at 50% 50%, rgb(0 0 0 / 0%) 40%, rgb(38 22 10 / 52%) 100%);
    content: "";
    pointer-events: none;
}

.photobooth-thumb {
    aspect-ratio: 1 / 1;
    object-fit: cover;
}

.photobooth-credit {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    overflow: hidden;
    padding: 0.5rem 0.35rem 0.2rem;
    background: linear-gradient(180deg, rgb(0 0 0 / 0%) 0%, rgb(0 0 0 / 65%) 100%);
    color: #fff;
    font-size: 0.65rem;
    line-height: 1.1;
    text-align: center;
    text-overflow: ellipsis;
    white-space: nowrap;
    pointer-events: none;
}

#photobooth-flash {
    transition: opacity 0.35s ease-out;
}

.photobooth-flash-run {
    animation: photobooth-flash 0.35s ease-out;
}

@keyframes photobooth-flash {
    0% {
        opacity: 0.85;
    }

    100% {
        opacity: 0;
    }
}

@media (max-width: 340px) {
    .img-landing {
        width: 15rem;
        height: 15rem;
    }
}

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

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

html[data-bs-theme="light"] .color-theme-svg {
    color: rgb(255, 255, 255);
    background-color: var(--bs-light);
}

html[data-bs-theme="dark"] .color-theme-svg {
    color: rgb(0, 0, 0);
    background-color: var(--bs-dark);
}

html[data-bs-theme="light"] .bg-light-dark {
    background-color: rgb(var(--bs-light-rgb));
}

html[data-bs-theme="dark"] .bg-light-dark {
    background-color: rgb(var(--bs-dark-rgb));
}

html[data-bs-theme="light"] .bg-white-black {
    background-color: rgb(var(--bs-white-rgb));
}

html[data-bs-theme="dark"] .bg-white-black {
    background-color: rgb(var(--bs-black-rgb));
}

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


.cursor-pointer {
    cursor: pointer;
}



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