/* Gallery flexbin */

.gallery-content .flexbin {
    display: flex;
    overflow: hidden;
    flex-wrap: wrap;
    margin: -2.5px;
}
.gallery-content .flexbin:after {
    content: '';
    flex-grow: 999999999;
    min-width: 300px;
    height: 0;
}
.gallery-content .flexbin > * {
    position: relative;
    display: block;
    height: 250px;
    margin: 2.5px;
    flex-grow: 1;
}
.gallery-content .flexbin > * > img {
    height: 250px;
    object-fit: cover;
    max-width: 100%;
    min-width: 100%;
    vertical-align: bottom;
    height: inherit !important;
}
.gallery-content .flexbin.flexbin-margin {
    margin: 2.5px;
}
@media (max-width: 980px) {
    .gallery-content .flexbin {
        display: flex;
        overflow: hidden;
        flex-wrap: wrap;
        margin: -2.5px;
    }
    .gallery-content .flexbin:after {
        content: '';
        flex-grow: 999999999;
        min-width: 150px;
        height: 0;
    }
    .gallery-content .flexbin > * {
        position: relative;
        display: block;
        height: 150px;
        margin: 2.5px;
        flex-grow: 1;
    }
    .gallery-content .flexbin > * > img {
        height: 150px;
        object-fit: cover;
        max-width: 100%;
        min-width: 100%;
        vertical-align: bottom;
    }
    .gallery-content .flexbin.flexbin-margin {
        margin: 2.5px;
    }
}
@media (max-width: 400px) {
    .gallery-content .flexbin {
        display: flex;
        overflow: hidden;
        flex-wrap: wrap;
        margin: -2.5px;
    }
    .gallery-content .flexbin:after {
        content: '';
        flex-grow: 999999999;
        min-width: 100px;
        height: 0; }
    .gallery-content .flexbin > * {
        position: relative;
        display: block;
        height: 100px;
        margin: 2.5px;
        flex-grow: 1; }
    .gallery-content .flexbin > * > img {
        height: 100px;
        object-fit: cover;
        max-width: 100%;
        min-width: 100%;
        vertical-align: bottom;
    }
    .gallery-content .flexbin.flexbin-margin {
        margin: 2.5px;
    }
}

.gallery-content .flexbin {
    height: 510px;
    margin: 0;
    position: relative;
}

@media only screen and (max-width: 980px) { /* ------------------------- */
/* start */

.gallery-content .flexbin {
    height: 310px;
}

/* end 980 */ }

@media only screen and (max-width: 400px) { /* ------------------------- */
/* start */

.gallery-content .flexbin {
    height: 314px;
}

/* end 400 */ }

.gallery-content .flexbin:after {
    position: absolute;
    content: "";
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    opacity: .60;
    pointer-events: none;
}

.gallery-content .flexbin a {
    position: relative;
    text-decoration: none;
}

.gallery-content .flexbin a i {
    position: absolute;
    top: 50%;
    left: 50%;
    -webkit-transform: translateX(-50%) translateY(-50%);
    -moz-transform: translateX(-50%) translateY(-50%);
    -ms-transform: translateX(-50%) translateY(-50%);
    -o-transform: translateX(-50%) translateY(-50%);
    transform: translateX(-50%) translateY(-50%);
    font-size: 40px;
    width: 70px;
    line-height: 70px;
    text-align: center;
    border-radius: 35px;
    background: rgba(255,255,255,.9);
    color: #757575;
    z-index: 2;
    opacity: 0;
    transition: .6s;
}

.gallery-content .flexbin a:hover i {
    opacity: 1;
    transition: .6s;
}

.gallery-content .flexbin a:before {
    background-color: rgba(255,255,255,.3);
    bottom: 0%;
    content: "";
    left: 50%;
    position: absolute;
    right: 51%;
    top: 0%;
    opacity: 1;
    -webkit-transition: all 0.8s ease 0s;
    -o-transition: all 0.8s ease 0s;
    transition: all 0.8s ease 0s;
}

.gallery-content .flexbin a:after {
    background-color: rgba(255,255,255,.3);
    bottom: 50%;
    content: "";
    left: 0%;
    position: absolute;
    right: 0%;
    top: 51%;
    -webkit-transition: all 0.8s ease 0s;
    -o-transition: all 0.8s ease 0s;
    transition: all 0.8s ease 0s;
    opacity: 1;
}

.gallery-content .flexbin a:hover::before {
    left: 0%;
    right: 0%;
    opacity: 0;
    -webkit-transition: all 0.8s ease 0s;
    -o-transition: all 0.8s ease 0s;
    transition: all 0.8s ease 0s;
}

.gallery-content .flexbin a:hover::after {
    top: 0%;
    bottom: 0%;
    opacity: 0;
    -webkit-transition: all 0.8s ease 0s;
    -o-transition: all 0.8s ease 0s;
    transition: all 0.8s ease 0s;
}