/* gallery */


/* gallery zoom */

@import url('../css/fancybox.css');
.masonry {
    -webkit-column-gap: 1em;
    -moz-column-gap: 1em;
    column-gap: 1em;
    -moz-column-gap: 1.5em;
    -webkit-column-gap: 1.5em;
    column-gap: 1.5em;
}

.gallery-box .img {
    max-width: 100%;
}

.masonry .item {
    display: inline-block;
    background: #ffffff;
    padding: 0px;
    margin: 0 0 1.5em;
    width: 100%;
    transition: 1s ease all;
    -webkit-transition: 1s ease all;
    box-sizing: border-box;
    -moz-box-sizing: border-box;
    -webkit-box-sizing: border-box;
    box-shadow: 2px 2px 4px 0 #ccc;
    /* float: left; */
}

@media only screen and (max-width:320px) {
    .masonry {
        -moz-column-count: 1;
        -webkit-column-count: 1;
        column-count: 1;
    }
}

@media only screen and (min-width:321px) and (max-width:768px) {
    .masonry {
        -moz-column-count: 2;
        -webkit-column-count: 2;
        column-count: 2;
    }
}

@media only screen and (min-width:769px) and (max-width:1200px) {
    .masonry {
        -moz-column-count: 3;
        -webkit-column-count: 3;
        column-count: 3;
    }
}

@media only screen and (min-width:1201px) {
    .masonry {
        -moz-column-count: 3;
        -webkit-column-count: 3;
        column-count: 3;
    }
}

.gallery-title .div-title {
    font-size: 18px;
    color: #000;
    line-height: 28px;
    text-align: center;
    margin-bottom: 0;
    margin-top: 12px;
}

.gallery-box:hover .gallery-title .div-title {
    color: #fdb811;
}

.gallery-box {
    position: relative;
}

.gallery-box a {
    display: block;
    position: relative;
}

.gallery-box a:before {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #f9f1e775;
    -webkit-transition: 0.4s;
    -o-transition: 0.4s;
    transition: 0.4s;
    opacity: 0;
    -webkit-transition: all 0.3s ease;
    -o-transition: all 0.3s ease;
    transition: all 0.3s ease;
}

.gallery-box:hover a::before {
    opacity: 1;
}

.gallery-box .overlay {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    opacity: 0;
    -webkit-transition: all 0.3s ease;
    -o-transition: all 0.3s ease;
    transition: all 0.3s ease;
}

.gallery-box:hover .overlay {
    opacity: 1;
}

.gallery-box .overlay img {
    width: auto;
    height: 50px;
    object-fit: contain;
}


/* gallery */