#header-slider {
    height: calc(100vh - 75px);
    position: relative;
    display: grid;
    grid-template-rows: 100px auto 100px 100px 50px;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1250px) min(50vw, 600px) min(50vw,
            600px) minmax(0, 1250px) minmax(0, 1fr);
    background-color: #ebf1f3;

    &:has(> [data-slide="title"].active) .title-slide {
        opacity: 1;
    }

    &:has(> [data-slide="title"].active) .background-image:not(.title-slide) {
        opacity: 0;
    }

    &:has(> [data-slide="title"].active)>.slide:not([data-slide="title"]) {
        display: grid;


        grid-template-rows: 100px 1fr 100px 100px 50px;

        :not(.product-image) {
            display: none;
        }

        .product-image {
            margin-left: 0;
            /*height: max(600px, 50vw);*/

            &.boxed {
                opacity: 0;
                transform: scale(0.2);
            }

            &.full-top-right {
                opacity: 0;
                transform: translateX(100%);
            }
        }

        &.active {
            display: grid;

            .product-image {
                transition: transform 0.2s, opacity 0.1s;

                &.boxed {
                    opacity: 1;
                    transform: scale(1);
                }

                &.full-top-right {
                    opacity: 1;
                    transform: none;
                }
            }
        }

        &.last {
            .product-image {
                opacity: 0;
                transition: transform 0.2s, opacity 0.1s;

                &.boxed {
                    opacity: 0;
                    transform: scale(1);
                }

                &.full-top-right {
                    opacity: 0;
                    transform: none;
                }
            }
        }
    }

    &:has(> [data-slide="title"]:not(.active))>.slide:not([data-slide="title"]) {
        .product-image {
            opacity: 0;
            display: block;
            transition-behavior: allow-discrete;
        }

        .information {
            opacity: 0;
            display: block;
            margin-bottom: 0;

            transition-behavior: allow-discrete;
        }

        &.active {
            .product-image {
                opacity: 1;
                display: block;
                transition: opacity .4s, display .4s;
                transition-delay: 0.4s;
            }

            .information {
                opacity: 1;
                display: block;
                margin-bottom: 0;
                transition: opacity .4s, display .4s, margin-bottom .4s;
                transition-delay: 0.7s;
            }
        }

        &.last {
            .product-image {
                opacity: 0;
                display: block;
                transition: opacity .4s, display .4s;
            }

            .information {
                opacity: 0;
                display: block;
                transition: opacity .2s, display .4s, margin-bottom .3s;
                margin-bottom: 0;
            }
        }
    }

    .background-image {
        grid-row: 1/-1;
        grid-column: 2/6;
        z-index: 0;

        &.title-slide {
            z-index: 1;
            grid-row: 1/4;
        }

        img {
            position: relative;
            width: 100%;
            height: 100%;
            max-width: 3700px;
            max-height: calc(100vh - 35px);
            object-fit: cover;
            object-position: center;
        }
    }

    .title-slide {
        opacity: 0;
        /*transition: opacity 1s;*/
    }

    .claim {
        z-index: 4;
        grid-row: 3;
        grid-column: 3/5;
        max-height: 90px;
        width: initial;
        padding-inline: 10px;
    }

    .gradient {
        z-index: 3;
        grid-row: 3/4;
        grid-column: 1/-1;
        background: linear-gradient(0deg, #ebf1f3 0%, #ffffff00 100%);
        margin-top: -100px;
    }

    .slide {
        height: 100%;
        overflow: hidden;
        display: grid;
        position: relative;
        z-index: 2;
        grid-row: 1/-1;
        grid-column: 1/-1;
        grid-template-columns: subgrid;
        grid-template-rows: 100px 1fr auto 100px 50px;
        align-items: center;

        &.active,
        &.last {
            display: grid;
            z-index: 3;
            align-items: start;
        }

        .information {
            grid-row: 3;
            grid-column: 3/5;
            padding-bottom: 50px;
            padding-inline: 10px;
            z-index: 3;

            .description {
                display: none;
            }

            .button {
                text-transform: uppercase;
            }

            h1 {
                text-transform: uppercase;
            }
        }

        dotlottie-wc,
        .lottie-animation {
            grid-column: 1/-1;
            grid-row: 1/4;
            height: calc(100vh - 35px);
            width: 100vw;
            display: grid;
            grid-template-columns: subgrid;
            grid-template-rows: subgrid;

            img {
                grid-column: 2 / 6;
                grid-row: 1 / -1;
                z-index: 3;
                position: relative;
                width: 100%;
                height: 100%;
                max-width: 3700px;
                max-height: calc(100vh - 35px);
                object-fit: cover;
                object-position: center;
            }

            svg {
                grid-column: 1 / -1;
                grid-row: 1 / -1;
                width: 100%;
                height: 100%;
                transform: translate3d(0px, 0px, 0px);
                content-visibility: visible;
                z-index: 4;
                mix-blend-mode: multiply;
                filter: brightness(1.1);
            }
        }

        .product-image {
            grid-column: 2/6;
            object-fit: cover;
            height: 100%;
            max-width: 3700px;

            &.boxed {
                grid-row: 1/3;
                max-height: calc(100vh - 35px - 100px - 150px);
                transform: scale(1.4);
                margin-top: 10px;
            }

            &.full-top-right {
                grid-row: 1/3;
                max-height: calc(100vh - 35px);
            }
        }
    }

    .thumbnails {
        grid-row: 4;
        grid-column: 3/5;
        z-index: 3;
        width: 100%;
        display: grid;
        grid-template-columns: 1fr auto 1fr;

        a {
            cursor: pointer;
        }


        .thumbnails-swiper {
            overflow: hidden;
            overflow-x: scroll;
            scrollbar-width: none;
            display: flex;
            gap: 10px;

            /*touch-action: none;*/
            user-select: none;

            ::-webkit-scrollbar {
                display: none;
            }

            .thumbnail {
                width: 100px;
                height: 100px;
                flex-shrink: 0;
                border: solid #407990 1px;

                &.active,
                &:hover {
                    border-color: #f08100;
                }

                .thumbnail-image {
                    width: 100%;
                    height: 100%;
                    object-fit: cover;
                }
            }
        }

        .prev,
        .next {
            width: 50px;
            height: 50px;
            align-items: center;
            justify-content: center;
            display: flex;
            background-color: #407990;
            margin: 25px;
            font-size: 30px;
            color: white;
        }
    }


}

@media (min-width: 1024px) or (orientation: landscape) {
    #header-slider {
        height: calc(100vh - 35px);
        margin-top: -100px;
        grid-template-rows: 100px auto 100px 50px;

        &:has(> [data-slide="title"].active)>.slide:not([data-slide="title"]) {

            .product-image {
                height: 100%;
            }
        }

        &:has(> [data-slide="title"]:not(.active))>.slide:not([data-slide="title"]) {
            .product-image {
                height: 100%;
            }

            .information {
                margin-bottom: -200px;
            }
        }

        .background-image.title-slide {
            grid-row: 1/-1;
        }

        .gradient {
            grid-row: 3/-1;
        }


        .slide {
            grid-template-rows: subgrid;

            &.active,
            &.last {
                align-items: center;
            }

            .information {
                grid-row: 2;
                grid-column: 3;
                padding-bottom: 0px;

                .description {
                    display: block;
                }
            }

            .lottie-animation {
                grid-row: 1/-1;
            }

            .product-image {
                margin-left: 300px;
                transform: translateX(var(--product-image-offset));

                &.full-top-right {
                    grid-row: 1/-1;
                }

                &.boxed {
                    transform: scale(1);
                }
            }
        }
    }
}

@media (min-width: 1024px) {
    #header-slider {
        .claim {
            grid-column: 3;
        }

        .thumbnails {
            grid-row: 3;
            grid-column: 4;
        }
    }
}


@media (max-width: 1023px) {
    #header-slider {
        .slide {
            .information {
                margin-left: 15px;

                h1 {
                    font-size: 1.8rem;
                }
            }
        }
    }
}
