/* ===========================
   Global variables
   =========================== */
   :root {
    --lottie-gap: clamp(16px, 4vw, 28px); /* gap between logos and animation */
    --lottie-max-h: 456px; /* mobile helper */
    --lottie-min-h: 280px; /* mobile helper */
    --lottie-header-height-desktop: 90px;
}

.lottie-animation-block {
    position: relative;
    overflow: hidden;
    height: min(100vh, 900px);
    max-height: 900px;
}

.lottie-animation-block-container {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lottie-animation-block-background {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    display: flex;
    align-items: center;
    justify-content: center;
    max-width: 1440px;
    margin: 0 auto;
}

.lottie-animation-block-background-container {
    width: 65%;
    height: 100%;
}

.lottie-animation-block-background-images {
    display: none;
}

.lottie-animation-block-logos {
    position: relative;
    z-index: 2;
    width: 100%;
}

.lottie-animation-block-logos.mobile {
    display: none;
}

.lottie-animation-block-logos-images {
    display: flex;
    justify-content: space-between;
    width: 100%;
    gap: 30px;
}

.lottie-animation-block-logos-images img {
    width: 100%;
    height: 127px;
    object-fit: contain;
}

.lottie-animation-block-logos-images img.first {
    object-position: left;
}
.lottie-animation-block-logos-images img.second {
    object-position: right;
}

@media (max-width: 1024px) {
    .lottie-animation-block {
        height: 100svh;
        min-height: 100svh;
        max-height: unset;
    }

    .lottie-animation-block-container {
        flex-direction: column;
        align-items: stretch;
        justify-content: stretch;
        gap: var(--lottie-gap);
        padding-top: 110px;
        padding-bottom: 50px;
    }

    .lottie-animation-block-logos {
        flex: 0 0 auto;
        width: 100%;
    }

    .lottie-animation-block-logos-images {
        height: auto;
        flex-direction: column;
        gap: var(--lottie-gap);
        justify-content: flex-start;
    }

    .lottie-animation-block-background {
        position: relative;
        top: auto;
        flex: 1 1 auto;
        min-height: 0;
        max-width: none;
        margin: 0;
        overflow-x: visible;
    }

    .lottie-animation-block-background-container {
        width: 160vw;
        position: relative;
        max-width: none;
        flex: 0 0 auto;
    }

    .lottie-animation-block-logos.mobile {
        display: block;
        flex: 0 0 auto;
        width: 100%;
    }

    .lottie-animation-block-logos-images img {
        width: auto;
        height: 87px;
        object-fit: contain;
        margin: 0 auto;
    }

    .lottie-animation-block-logos-images img.second {
        display: none;
    }
}

@media (max-width: 768px) {
    .lottie-animation-block-background-container {
        width: 200vw;
    }
}
