.gallery {
    background-color: #F0F0F0;
    padding: 60px 0 120px;
}

.gallery .block-title {
    margin-bottom: 40px;
}

.gallery .gallery-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    grid-auto-rows: 200px;
    gap: 16px;
}

.gallery .gallery-item:nth-child(1) {
    grid-column: span 6;
    grid-row: span 2;
}

.gallery .gallery-item:nth-child(2),
.gallery .gallery-item:nth-child(3) {
    grid-column: span 3;
}

.gallery .gallery-item:nth-child(4) {
    grid-column: span 6;
    grid-row: span 2;
}

.gallery .gallery-item:nth-child(5) {
    grid-column: span 3;
}

.gallery .gallery-item:nth-child(6) {
    grid-column: span 3;
    grid-row: span 2;
}

.gallery .gallery-item:nth-child(7) {
    grid-column: span 3;
    grid-row: span 1;
}

.gallery .gallery-item:nth-child(8),
.gallery .gallery-item:nth-child(9) {
    grid-column: span 3;
}

.gallery .gallery-item {
    position: relative;
}

.gallery .gallery-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: #0A0A0A66;
    transition: opacity .3s ease;
}

.gallery .gallery-item::after {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    transition: opacity .3s ease;
    background-image: url(../../assets/images/search.svg);
    opacity: 0;
    background-repeat: no-repeat;
    background-position: 50% 50%;
}

.gallery .gallery-item:hover::before {
    opacity: 0;
}

.gallery .gallery-item:hover::after {
    opacity: 1;
}

.gallery .gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 50% 50%;
    display: block;
}

.gallery .gallery-swiper {
    display: none;
}

@media (max-width:991px) {
    .gallery {
        padding: 26px 0 46px;
    }

    .gallery .block-title {
        margin-bottom: 8px;
    }
}

@media (max-width: 768px) {
    .gallery .gallery-grid {
        display: none;
    }

    .gallery .gallery-swiper {
        display: block;
        padding-bottom: 70px;
    }

    .gallery .gallery-swiper img {
        width: 100%;
        height: auto;
        display: block;
        aspect-ratio: 343 / 200;
    }
}