/* Brand logo intro / preloader */
html.intro-scroll-locked,
body.intro-scroll-locked {
    height: 100%;
    overflow: hidden !important;
    overscroll-behavior: none;
}

body.intro-scroll-locked {
    position: fixed;
    right: 0;
    left: 0;
    width: 100%;
}

/* Hold page animations until the logo intro has completed. */
body.intro-pending * {
    animation-play-state: paused !important;
}

.preloader {
    position: fixed;
    inset: 0;
    z-index: 2147483647;
    display: grid;
    place-items: center;
    background: #ffffff;
    isolation: isolate;
    touch-action: none;
    opacity: 1;
    visibility: visible;
    transition: opacity 0.6s ease, visibility 0.6s ease;
}

.preloader.is-hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.preloader video {
    display: block;
    width: auto;
    height: auto;
    max-width: min(520px, 86vw);
    max-height: 70vh;
    object-fit: contain;
    background: #ffffff;
}

@media (max-width: 600px) {
    .preloader video {
        max-width: 82vw;
        max-height: 58vh;
    }
}
