.gallery .row {
    display: flex;
    flex-wrap: wrap;
    width: 100%;
}

.gallery .row .column {
    flex: 33.3%;
    width: auto;
    overflow: hidden;
    padding: 0 10px;
    height: 100%;
}

.gallery .row .column img {
    margin-top: 4%;
    width: 100%;
    height: 100%;
    cursor: pointer;
    filter: grayscale(1) brightness(0.5);
    border-radius: 5px;
    transition: 0.3 linear;
}

.gallery .row .column img:hover {
    filter: grayscale(0) brightness(1);
    transform: scale(1.1);
}

/* Container holding the image and the text */
.img_container {
    position: relative;
}

/* Bottom right text */
.text-block {
    width: 99%;
    text-align: center;
    position: absolute;
    font-family: headingFont;
    bottom: 2px;
    right: 2px;
    opacity: .5;
    background-color: black;
    color: white;
    padding-left: 20px;
    padding-right: 20px;
}

@media only screen and (max-width: 680px) {
    .gallery .row .column {
        flex: 100%;
    }

    .gallery .row .column img {
        filter: grayscale(0) brightness(1);
    }
}