.gallery-box {
    display: flex;
    flex-wrap: wrap;
    /* Compensate for excess margin on outer gallery flex items */
    margin: 0 auto;
}

.gallery-item {
    /* Minimum width of 24rem and grow to fit available space */
    flex: 17%;
    /* Margin value should be half of grid-gap value as margins on flex items don't collapse */
    margin: 0;
    /*    box-shadow: 0.3rem 0.4rem 0.4rem rgba(0, 0, 0, 0.4);*/
    position: relative;
    text-decoration: none;
    -webkit-transition: all 0.3s ease-in-out;
    -moz-transition: all 0.3s ease-in-out;
    transition: all 0.3s ease-in-out;
}

.gallery-image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gallery-item .content-overlay {
    background: rgba(255, 255, 255, 0.3);
    position: absolute;
    height: 100%;
    width: 100%;
    opacity: 0;
    -webkit-transition: all 0.3s ease-in-out;
    -moz-transition: all 0.3s ease-in-out;
    transition: all 0.3s ease-in-out;
}

.gallery-item2 {
    flex: 17%;
    position: relative;
}

.gallery-item:hover .content-overlay {
    opacity: 1;
    overflow-y: hidden;
    -webkit-transition: all 0.3s ease-in-out;
    -moz-transition: all 0.3s ease-in-out;
    transition: all 0.3s ease-in-out;
}

@media only screen and (max-width: 1280px) {
    .gallery-item {
        flex: 25%;
    }

    .gallery-item2 {
        flex: 25%;
    }
}

@media only screen and (max-width: 1024px) {}

@media only screen and (max-width: 720px) {}

@media only screen and (max-width: 480px) {
    
    .gallery-item {
        flex: 35%;
    }

    .gallery-item2 {
        flex: 35%;
    }
}

@media only screen and (max-width: 320px) {
    
    .gallery-item {
        flex: 35%;
    }

    .gallery-item2 {
        flex: 35%;
    }
}

/*
.fadeIn-top {
    top: 20%;
}

.gallery-item .content-details {
    position: absolute;
    text-align: center;
    padding-left: 1em;
    padding-right: 1em;
    width: 100%;
    top: 50%;
    left: 50%;
    opacity: 0;
    -webkit-transform: translate(-50%, -50%);
    -moz-transform: translate(-50%, -50%);
    transform: translate(-50%, -50%);
    -webkit-transition: all 0.3s ease-in-out;
    -moz-transition: all 0.3s ease-in-out;
    transition: all 0.3s ease-in-out;
}

.gallery-item:hover .content-details {
    top: 50%;
    left: 50%;
    opacity: 1;
    -webkit-transform: translate(-50%, -50%);
    -moz-transform: translate(-50%, -50%);
    transform: translate(-50%, -50%);
    -webkit-transition: all 0.3s ease-in-out;
    -moz-transition: all 0.3s ease-in-out;
    transition: all 0.3s ease-in-out;
}

.gallery-item:hover .text-overlay-en {
    color: #000000;
    padding: 5pt 10pt;
    font-weight: 300;
    margin: 0 auto;
    font-size: 14pt;
}

.gallery-item:hover .text-overlay-es {
    color: #000000;
    padding: 5pt 10pt;
    font-weight: 200;
    margin: 0 auto;
    font-size: 14pt;
}
*/
