.gallery-block {

}

.gallery-block__title {
    margin-bottom: 24px;
}

.gallery-block__text {
    margin-bottom: 27px;
}

.gallery-block__text p {
    font-weight: 400;
    font-size: 17px;
    line-height: 140%;
    margin: 0;
}

.gallery-block__picture img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gallery-block__slide{
    overflow: hidden;
}

@media (min-width: 1024px) {
    .gallery-block__slide .swiper {
        display: contents !important;
    }

    .gallery-block__slide .swiper-nav{
        display: none;
    }

    .gallery-block__grid {
        display: grid;
        grid-template-columns: repeat(7, 1fr);
        gap: 5px;
    }

    .gallery-block__grid:has(.gallery-block__picture:nth-child(10)) .gallery-block__picture:nth-child(8),
    .gallery-block__grid:has(.gallery-block__picture:nth-child(9)) .gallery-block__picture:nth-child(8) {
        height: 100%;
    }

    .gallery-block__picture {
        border-radius: 8px;
        overflow: hidden;
        grid-row: span 1;
        grid-column: span 2;
        height: 14vw;
    }



    .gallery-block__picture:nth-child(1), .gallery-block__picture:nth-child(8) {
        grid-row: span 2;
        grid-column: span 3;
        height: 100%;
    }

    .gallery-block__picture:nth-child(8) {
        height: 14vw;
    }
}


@media (max-width: 1024px) {
    .gallery-block__text p {
        font-size: 16px;
        color: var(--color-secondary);
    }

    .gallery-block__picture {
        border-radius: 8px;
        overflow: hidden;
        height: 28vw;
    }

    .gallery-block__slide{
        margin: 0 calc(100vw / (var(--vwIdth) / 15 * -1));

    }

    .gallery-block__slide .swiper {
        padding: 0 calc(100vw / (var(--vwIdth) / 15 ));
    }


    .gallery-block__slide .swiper-nav{
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 30px;
        margin-top: 30px;
    }

    .gallery-block__slide .swiper-nav .swiper-prev,
    .gallery-block__slide .swiper-nav .swiper-next {
        width: 22px;
        height: 22px;
        cursor: pointer;
        user-select: none;
        -webkit-tap-highlight-color: transparent;
        color: var(--primary);
    }

    .gallery-block__slide .swiper-nav .swiper-button-disabled{
        color: #AEAEB2;
    }

    .gallery-block__slide .swiper-nav:has(.swiper-button-lock) {
        display: none;
    }
}

@media (max-width: 768px) {
    .gallery-block__picture{
        height: 315px;
    }
}
