.grid-with-3d-models {
    background: var(--d-dark);
}

.grid-with-3d-models .container {
    width: 100%;
    max-width: 1920px;
    margin: 0 auto;
    padding: 140px 100px;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 80px;
}

.grid-with-3d-models .text-content {
    display: flex;
    width: 100%;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 16px;
}

.grid-with-3d-models .text-content .h2 {
    color: var(--n-white);
}

.grid-with-3d-models .text-content .subtitle-medium {
    color: var(--d-light-grey)
}

.grid-with-3d-models .swiper-main-container {
    display: none;
}

.grid-with-3d-models .swiper-container {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 32px;
}

.grid-with-3d-models .swiper-wrapper {
    display: grid;
    gap: 32px;
    grid-template-columns: 1fr 1fr 1fr;
}

.grid-with-3d-models .swiper-slide {
    padding: 24px;
    display: flex;
    flex-direction: column;
    align-items: start;
    justify-content: end;
    gap: 12px;
    border-radius: 20px;
    overflow: hidden;
    position: relative;
    box-sizing: border-box;
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
    aspect-ratio: 552 / 344;
}

.grid-with-3d-models .slide-hover-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    align-items: center;
    justify-content: center;
    background: #03143C80;
    transition: 0.2s;
    display: none;
    cursor: pointer;
}

.grid-with-3d-models .model-container {
    display: none;
    align-items: center;
    justify-content: center;
    position: fixed;
    top: 0px;
    left: 0px;
    width: 100vw;
    height: 100vh;
    z-index: 1000;
    padding: 100px;
    background: #0B1521CC;
}

.grid-with-3d-models .model-container.active {
    display: flex;
}

.grid-with-3d-models .modal {
    display: flex;
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
    border-radius: 20px;
}

.grid-with-3d-models .model-container svg {
    position: absolute;
    top: 20px;
    right: 40px;
    width: 32px;
    height: 32px;
    cursor: pointer;
}

.grid-with-3d-models iframe {
    width: 100%;
    height: 100%;
}

.grid-with-3d-models .swiper-slide:hover .slide-hover-overlay {
    display: flex;
}

.grid-with-3d-models .swiper-slide:first-child {
    grid-column: span 2;
    grid-row: span 2;
}

.grid-with-3d-models .h5 {
    color: var(--n-light-blue-BG);
}

.grid-with-3d-models svg.open-model {
    display: none;
}

.grid-with-3d-models .small-text-medium {
    color: var(--n-very-light-accent);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 100px;
    background: #0C408E66;
    padding: 8px 16px;
}

.grid-with-3d-models .modal-header {
    display: none;
}

.grid-with-3d-models .link-m {
    display: none;
}

@media screen and (max-width: 1919px) {
    .grid-with-3d-models .container {
        padding: 100px 80px;
        gap: 60px;
    }

    .grid-with-3d-models .swiper-wrapper {
        gap: 24px;
    }

    .grid-with-3d-models .swiper-slide {
        padding: 24px;
        gap: 12px;
    }

}

@media screen and (max-width: 1439px) {
    .grid-with-3d-models .container {
        padding: 80px 60px;
        gap: 40px;
    }

    .grid-with-3d-models .swiper-wrapper {
        gap: 20px;
    }

    .grid-with-3d-models .swiper-slide {
        border-radius: 16px;
    }

    .grid-with-3d-models .small-text-medium {
        display: none;
    }

    .grid-with-3d-models .model-container {
        padding: 80px;
    }
}

@media screen and (max-width: 1079px) {
    .grid-with-3d-models .container {
        padding: 80px 40px;
    }

    .grid-with-3d-models .swiper-wrapper {
        grid-template-columns: 1fr 1fr;
    }

    .grid-with-3d-models .swiper-slide {
        padding: 20px;
        aspect-ratio: 334 / 220;
    }

    .grid-with-3d-models .swiper-slide:first-child {
        grid-row: span 1;
        grid-column: span 1;
    }

    .grid-with-3d-models .model-container {
        padding: 0;
    }

    .grid-with-3d-models .modal {
        border-radius: 0;
        flex-direction: column;
    }

    .grid-with-3d-models .model-container>svg {
        display: none;
    }

    .grid-with-3d-models .modal-header {
        display: flex;
        height: 72px;
        width: 100%;
        flex-direction: row;
        align-items: center;
        justify-content: end;
        background: var(--d-dark);
        padding: 0 40px;
    }


    .grid-with-3d-models svg.open-model {
        display: flex;
        position: absolute;
        top: 10px;
        right: 10px;
    }

    .grid-with-3d-models .swiper-slide .slide-hover-overlay a {
        display: none !important;
    }

    .grid-with-3d-models .link-m {
        width: 100%;
        height: 100%;
        display: block;
        position: absolute;
        left: 0;
        top: 0;
        z-index: 100;
    }
}

@media screen and (max-width: 576px) {
    .grid-with-3d-models .container {
        padding: 60px 16px;
    }

    .grid-with-3d-models .swiper-main-container {
        display: block;
    }

    .grid-with-3d-models .swiper__pagination-container {
        line-height: 8px;
        text-align: center;
    }

    .grid-with-3d-models .swiper-pagination-bullet {
        opacity: 1;
        background-color: var(--n-grey-60);
    }

    .grid-with-3d-models .swiper-wrapper {
        display: flex;
        gap: 0;
    }

    .grid-with-3d-models .swiper-pagination-bullet-active {
        opacity: 1;
        background-color: var(--bright-blue);
    }

    .grid-with-3d-models .swiper-slide {
        aspect-ratio: 343 / 360;
    }

    .grid-with-3d-models .swiper-slide .slide-hover-overlay {
        display: none !important;
    }

    .grid-with-3d-models .modal-header {
        padding: 0 16px;
    }


}