.crust-gallery-filter {
    width: 100%;
}

.crust-gallery-filter ul,
.crust-gallery-filter ul li {
    text-align: center;
}

.crust-gallery-filter ul {
    margin: 0 0 30px 0;
    padding: 0;
    text-align: center;
}

.crust-gallery-filter {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-flow: row wrap;
    padding: 0;
    margin: 0;
}

.crust-gallery-filter ul li {
    list-style: none;
    display: inline-block;
    text-align: center;
    padding: 6px 13px;
    font-size: 14px;
    line-height: 1.3;
    cursor: pointer;
    margin: 0 5px;
    font-weight: bold;
    transition: all .4s ease;
}

.crust-gallery-filter ul li a.control {
    font-family: 'Montserrat', sans-serif;
    font-size: 16px;
    font-weight: 600;
    padding: 10px 25px;
    margin: 10px 6px;
}

.crust-gallery-filter ul li.filter.active{
    background-color: #19D0D6;
    color: #fff;
}

a.crust-gallery-load-more, a.crust-gallery-load-more:hover {
    text-decoration: none;
}

.mfp-wrap ~ div.dialog-widget {
    display: none !important;
}

.crust-gallery-wrapper .crust-gallery-container{
    display: flex;
    flex-wrap: wrap;
    margin: -5px;
}

.crust-columns-2 .crust-gallery-item-wrap{
    width: 50%;
}

.crust-columns-3 .crust-gallery-item-wrap{
    width: 33.3333%;
}

.crust-columns-4 .crust-gallery-item-wrap{
    width: 25%;
}

.crust-columns-5 .crust-gallery-item-wrap{
    width: 20%;
}

.crust-columns-6 .crust-gallery-item-wrap{
    width: 16%;
}

.crust-columns-7 .crust-gallery-item-wrap{
    width: 14.22%;
}

.crust-gallery-item {
    position: relative;
    overflow: hidden;
    margin: 5px;
}

.crust-gallery-item-wrap.caption-style-hoverer .gallery-item-caption-wrap {
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    z-index: 4;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    visibility: hidden;
    opacity: 0;
    transition: .4s all ease;
}

.crust-gallery-item-wrap.caption-style-hoverer:hover .gallery-item-caption-wrap {
    opacity: 1;
    visibility: visible;
}

.crust-gallery-item-wrap .crust-gallery-item .gallery-item-thumbnail-wrap > img {
    -o-object-fit: cover;
    object-fit: cover;
    transition: all 1.5s ease;
}

.crust-gallery-container[data-layout="grid"] .crust-gallery-item-wrap .crust-gallery-item .gallery-item-thumbnail-wrap > img{
    height: 100%;
    width: 100%;
}

/*-- Gallery content --*/
.fg-item-title,
.fg-item-content {
    color: #fff;
}

.fg-item-title{
    font-weight: 500;
}

.fg-item-content{
    font-size: .9rem;
}

.crust-gallery-item.js-tilt{
    transform-style: preserve-3d;
}

.crust-gallery-item.js-tilt .gallery-item-caption-wrap{
    transform: translateZ(80px) scale(.92);
}

.gallery-item-buttons > a {
    display: inline-block;
    font-size: 16px;
    color: #000;
    margin-right: 10px;
}

.gallery-item-buttons > a:last-child{
    margin-right: 0;
}

.gallery-item-buttons > a:visited {
    color: #000;
}

/*-- Item hover --*/
.gallery-item-thumbnail-wrap .gallery-item-hoverer-bg {
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 100%;
    content: '';
    background: rgba(0,0,0,.6);
    z-index: -1;
    transition: all 0.4s ease;
    opacity: 0;
}

.crust-gallery-item-wrap.caption-style-hoverer:hover .gallery-item-hoverer-bg{
    opacity: 1;
    z-index: 2;
}

.crust-gallery-item:hover .gallery-item-thumbnail-wrap > img{
    transform: scale(1.2);
}


.crust-gallery-item-wrap.caption-style-hoverer .fg-item-title,
.crust-gallery-item-wrap.caption-style-hoverer .fg-item-content,
.crust-gallery-item-wrap.caption-style-hoverer .gallery-item-buttons > a{
    transition: .4s all ease-in-out;
    opacity: 0;
}

.crust-gallery-item-wrap.caption-style-hoverer .fg-item-title,
.crust-gallery-item-wrap.caption-style-hoverer .fg-item-content,
.crust-gallery-item-wrap.caption-style-hoverer .gallery-item-buttons > a {
    transform: translateY(25px);
}

.crust-gallery-item-wrap.caption-style-hoverer:hover .fg-item-title,
.crust-gallery-item-wrap.caption-style-hoverer:hover .gallery-item-buttons > a,
.crust-gallery-item-wrap.caption-style-hoverer:hover .fg-item-content {
    opacity: 1;
    transform: translateY(0);
}

.crust-gallery-item-wrap.caption-style-hoverer .fg-item-title + .fg-item-content,
.crust-gallery-item-wrap.caption-style-hoverer .fg-item-title + .gallery-item-buttons > a{
    transition-delay: .15s;
}

.crust-gallery-item-wrap.caption-style-hoverer .fg-item-title + .fg-item-content + .gallery-item-buttons > a{
    transition-delay: .3s;
}

.gallery-item-caption-wrap .gallery-item-buttons > a span {
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    outline: none;
    text-decoration: none;
    text-align: center;
    transition: all .4s ease;
}

.gallery-item-caption-wrap .gallery-item-buttons > a span:hover{
    transform: scale(1.2);
}

/*-- Video Gallery --*/
.gallery-item-thumbnail-wrap {
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.video-popup,
.video-popup-bg {
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 100%;
}

.video-popup > i {
    position: relative;
    z-index: 999;
    transition: all .3s ease;
    transition-delay: .2s;
    transform: scale(0);
    color: #fff;
    font-size: 25px;
    visibility: hidden;
    opacity: 0;
}

.video-popup {
    display: flex;
    align-items: center;
    justify-content: center;
}

.video-popup:hover > i {
    transform: scale(1);
    visibility: visible;
    opacity: 1;
}

.video-popup-bg {
    visibility: hidden;
    opacity: 0;
    transition: all .35s ease;
}

.crust-gallery-item:hover .video-popup-bg {
    visibility: visible;
    opacity: 1;
}

.gallery-item-caption-wrap .gallery-item-buttons > a > i {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
}

@media only screen and (max-width: 767px) {
    .crust-gallery-wrapper .crust-gallery-container {
        display: block;
    }
    .crust-gallery-item-wrap{
        width: 100% !important;
    }
}

.fg-caption-head {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 35px 35px;
    z-index: 3;
    color: #fff;
    font-size: 18px;
    font-weight: 700;
}

.fg-item-category > span {
    font-size: 12px;
    color: #fff;
    background: #fa9196;
    padding: 10px 12px;
    display: inline-block;
}

.fg-item-category {
    position: absolute;
    left: 0;
    top: 0;
    text-align: center;
    width: 100%;
    height: 30px;
    margin-top: -15px;
    z-index: 11;
}

.fg-item-category span {
    border-radius: 5px;
    line-height: 1;
    visibility: hidden;
    opacity: 0;
    transition: 300ms;
}