<style type="text/css">
.gallery_cards {
    text-align: center;
    padding: 30px 5px;
}
.gallery_cards ul {
    list-style: none;
}
.gallery_cards .gallery_ul {
    margin: 0 4%;
    padding-left: 0;
    list-style-type: none;
    text-align: left;
    display: flex;
    flex-flow: row wrap;
}
.gallery_cards .gallery_ul .gallery_li {
    width: 97.42268%;
    float: left;
    margin-top: 10px;
    margin-bottom: 10px;
    margin-left: 1.28866%;
    margin-right: 1.28866%;
}
.gallery_cards .gallery_ul .gallery_li a {
    display: block;
    overflow: hidden;
}
.gallery_cards .gallery_ul .gallery_li  img {
    display: block;
    width: 100%;
}
@media (min-width: 468px) {
    .gallery_cards {
        padding: 30px 10px;
    }
    .gallery_cards .gallery_ul .gallery_li {
        width: 47.42268%;
        float: left;
        margin-left: 1.28866%;
        margin-right: 1.28866%;
    }
}
@media (min-width: 768px) {
    .gallery_cards {
        padding: 40px 0;
    }
    .gallery_cards .gallery_ul .gallery_li {
        width: 30.75601%;
        float: left;
        margin-left: 1.28866%;
        margin-right: 1.28866%;
    }
}
@media (min-width: 992px) {
    .gallery_cards {
        padding: 35px 0 0;
    }
    .gallery_cards .gallery_ul {
        margin: 0;
    }
    .gallery_cards .gallery_ul .gallery_li {
        width: 22.42268%;
        float: left;
        margin-left: 1.28866%;
        margin-right: 1.28866%;
    }
}</style>