.photoswipe-gallery {
    > div {
        display: grid;
        grid-template-columns: 1fr 1fr;
        grid-gap: 1rem;

        @media (min-width: 576px){
            grid-template-columns: 1fr 1fr 1fr;
        }

        @media (min-width: 1200px){
            grid-template-columns: 1fr 1fr 1fr 1fr;    
        }

        @media (min-width: 1400px){
            grid-template-columns: 1fr 1fr 1fr 1fr 1fr;    
        }
            
        > div {
            display: block;
            aspect-ratio: 1;
        }
    }

    img {
        width: 100%;
        max-width: 100%;
        height: 100%;
        max-height: 100%;
        object-fit: cover;
    }
}