.gallery {
    display: grid;
    grid-template-columns: 1fr;
    grid-auto-flow: dense;
    gap: 8px;
}

.gallery .item {
    height: auto;
    aspect-ratio: 1;
    background-size: cover;
    background-position: center;
}

@media all and (width >= 500px) {
    .gallery {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media all and (width >= 750px) {
    .gallery {
        grid-template-columns: repeat(3, 1fr);
    }
    .gallery .item[style="background-image: url('img/gallery-010.webp')"]
    {
        grid-column: auto / span 2;
        aspect-ratio: 2;
    }
}
