.gallery {
    width: 100%;
    margin-bottom: 50px;
}

.gallery__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    width: 100%;
}

.gallery__item {
    overflow: hidden;
    border-radius: 12px;
    aspect-ratio: 4 / 3;
}

.gallery__item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.gallery__item:hover img {
    transform: scale(1.05);
}

@media screen and (max-width: 900px) {
    .gallery {
        margin-bottom: 36px;
    }

    .gallery__grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media screen and (max-width: 600px) {
    .gallery__grid {
        grid-template-columns: 1fr;
    }
}