.image-gallery {
    display: flex;
    flex-flow: row wrap;
}
.image-gallery li{
    border-radius: .75rem;
    overflow: hidden;
    box-shadow: 0 2rem 6rem 0 rgba(31,2,89,.1);
    transition: all .3s cubic-bezier(.25,.8,.25,1);
    margin-bottom: 2rem;
    cursor: pointer;
    flex-basis: calc((100% - 1 * 2rem) / 2);
    margin-right: 1.5rem;
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
}
@media screen and (max-width: 600px) {
    .image-gallery li:nth-child(2n){
        margin-right: 0;
    }
}
@media screen and (min-width: 601px) and (max-width: 992px) {
    .image-gallery li{
        flex-basis: calc((100% - 2 * 1.5rem) / 3);
    }
    .image-gallery li:nth-child(3n){
        margin-right: 0;
    }
}
@media screen and (min-width: 993px) and (max-width: 1200px) {
    .image-gallery li{
        flex-basis: calc((100% - 3 * 1.5rem) / 4);
    }
    .image-gallery li:nth-child(4n){
        margin-right: 0;
    }
}
@media screen and (min-width: 1201px){
    .image-gallery li{
        flex-basis: calc((100% - 4 * 1.5rem) / 5);
    }
    .image-gallery li:nth-child(5n){
        margin-right: 0;
    }
}

.image-gallery li:hover {
    box-shadow: 0 2rem 6rem rgba(31,2,89,.1), 0 1rem 2rem rgba(31,2,89,.1);
}
.image-gallery li > img {
    display: none;
}
.aspect-ratio {
    width: 100%;
}
.aspect-ratio.ratio-1-1 {
    padding-top: calc(100% / 1 * 1);
}
.aspect-ratio.ratio-3-2 {
    padding-top: calc(100% / 3 * 2);
}
.aspect-ratio.ratio-4-3 {
    padding-top: calc(100% / 4 * 3);
}
.aspect-ratio.ratio-16-9 {
    padding-top: calc(100% / 16 * 9);
}
.aspect-ratio.ratio-16-10 {
    padding-top: calc(100% / 16 * 10);
}