/* Check the default.css for common details/summary styling */
.container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    /*grid-auto-rows: 360px;*/
    grid-gap: 10px;
    grid-auto-flow: dense;
}

.gallery-item {
    width: 100%;
    height: 100%;
    position: relative;
}

.gallery-item .image {
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.gallery-item .image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 50% 50%;
    cursor: pointer;
    transition: .5s ease-in-out;
}

.narrow {
    grid-column: span 1;
}
.wide {
    grid-column: span 2;
}
.three {
    grid-column: span 3;
}

@media screen and (max-width: 850px) {
    
    .container {
        grid-template-columns: repeat(1, 1fr);
    }
    
    .wide, .three {
        grid-column: span 1;
    }
}