/*Gallery Filter buttons*/
.gallery_filter_buttons{
    text-align: center;
    position: static;
    width: auto !important;
    left: auto !important;
    margin: 0 0 60px;

}

.gallery_filter_buttons a{
    opacity: 1;
    position: relative;
    padding: 0 30px;
    background-color: transparent;
    display: inline-block;
    height: 50px;
    width: auto;
    color: #1a2f33;
    line-height: 54px;
    cursor: pointer;
    font-family: "Josefin Sans",sans-serif;
    -webkit-transform: scale(1) !important;
    transform: scale(1) !important;
    text-transform: uppercase;
    font-size: 12px;
    letter-spacing: 2px;
    font-weight: 800;
    border: none !important;
    -webkit-transition: .3s ease-in-out;
    transition: .3s ease-in-out;
    border-radius: 5px;
    width: auto;
    margin: 0 5px;
}

.gallery_filter_buttons a.filter__active, .gallery_filter_buttons a:hover{
    background-color: #9e2d0f;
    color: #ffffff;
}


/*Gallery items*/
.gallery_img_col{
    -ms-flex: 0 0 33.333333%;
    flex: 0 0 33.333333%;
    max-width: 33.333333%;
    width: 100%;
    min-height: 1px;
    padding-right: 15px;
    padding-left: 15px;
}

.gallery_img_container {
    margin-bottom: 30px;
    position: relative;
    background-color: #fff;
    -webkit-box-shadow: 0 5px 10px 0 rgb(26 47 51 / 15%);
    box-shadow: 0 5px 10px 0 rgb(26 47 51 / 15%);
    border-radius: 5px;
}

.gallery_img_image{
    position: relative;
    overflow: hidden;
    display: block;
    line-height: 0;
}

.gallery_img_image:after {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: -moz-linear-gradient(top,rgba(0,0,0,0) 0%,rgba(0,0,0,.75) 100%);
    background: -webkit-linear-gradient(top,rgba(0,0,0,0) 0%,rgba(0,0,0,.75) 100%);
    background: linear-gradient(to bottom,rgba(0,0,0,0) 0%,rgba(0,0,0,.75) 100%);
    opacity: 0;
    -webkit-transition: .4s ease-in-out;
    transition: .4s ease-in-out;
}

.gallery_img_image img{
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-radius: 5px;
    -webkit-transition: .4s ease-in-out;
    transition: .4s ease-in-out;
}

.gallery_txt {
    padding: 30px;
    pointer-events: none;
    position: absolute;
    left: 0;
    bottom: 0;
    color: #fff;
    opacity: 0;
    -webkit-transition: .6s ease-in-out;
    transition: .6s ease-in-out;
}

.gallery_txt .gallery_img_cat{
    opacity: .7;
    font-size: 17px;
    font-weight: 300;
    font-family: "Josefin Sans",sans-serif;
    margin: 0;
}

.gallery_txt .gallery_img_name{
    font-size: 24px;
    font-family: "Playfair Display",serif;
    font-weight: 900;
    margin: 0;
    -ms-word-wrap: break-word;
    word-wrap: break-word;
}


.gallery_img_container:hover .gallery_img_image:after,
.gallery_img_container:hover .gallery_txt 
{
    opacity: 1;
}

.gallery_img_container:hover .gallery_img_image img{
    -webkit-transform: scale(1.05);
    transform: scale(1.05);
}

@media screen and (max-width: 769px){
    .gallery_img_col{
        -ms-flex: 0 0 50%;
        flex: 0 0 50%;
        max-width: 50%;
        width: 100%;
    }
}

@media screen and (max-width: 426px){
    .gallery_img_col{
        -ms-flex: 0 0 100%;
        flex: 0 0 100%;
        max-width: 100%;
        width: 100%;
    }
    
    .gallery_filter_buttons a{
        margin-bottom: 10px;
    }
}