/*-------

   Gallery

-------*/
.mbr-gallery .mbr-gallery-item {
    position: relative;
    height: 300px;

    /*display: inline-block;*/
    padding-bottom: 30px;
    -webkit-transition: .2s opacity ease-in-out;
    transition: .2s opacity ease-in-out; 
}

.mbr-gallery .mbr-gallery-row {
    margin-bottom: -30px;
    -webkit-transition: .4s height ease-in-out;
    transition: .4s height ease-in-out; 
}
.mbr-gallery .mbr-gallery-item img {
    width: 100%;
    height: 220px;
    opacity: 1;
    -webkit-transition: .2s opacity ease-in-out;
    transition: .2s opacity ease-in-out;
}
.mbr-gallery .mbr-gallery-item > a:hover img {
    opacity: 0.9;
}
.mbr-gallery .mbr-gallery-item .icon {
    position: absolute;
    font-size: 30px;
    top: 35%;
    left: 50%;
    color: #fff;
    opacity: 0;
    -webkit-transform: translateX(-50%) translateY(-50%);
    transform: translateX(-50%) translateY(-50%);
    -webkit-transition: .2s opacity ease-in-out;
    transition: .2s opacity ease-in-out;
}
.mbr-gallery .mbr-gallery-item > a:hover .icon {
    opacity: 1;
}

/*Filter*/
.mbr-gallery-item__hided {
    position: absolute !important;
    width: 0px !important;
    height: 0px;
    left: 0 !important;
}
.mbr-gallery-item__hided .mbr-figure__caption {display: none;}

.mbr-gallery-item__hided img {
    display: none;
}

.mbr-gallery-item__hided span {
    display: none;
}

.mbr-gallery-filter {
    padding-top: 30px;
    padding-bottom: 30px;
    text-align: center;
}

.mbr-gallery-filter ul {
    padding-left: 0px;
    display: inline-block;
    list-style: none;
    margin-bottom: 0px;
    //border-bottom: 2px solid #ddd;
}

.mbr-gallery-filter li {
    font-size: 14px;
    font-family: 'Montserrat';
    cursor: pointer;
    color: #000;
    display: inline-block;
    padding: 5px 20px 5px 20px;
    border: 2px solid transparent;
    transition: all 0.3s ease-out;
    background-color: transparent;
    position: relative;
    text-transform: uppercase;
}
/*
.mbr-gallery-filter li:after{
    content: "";
    background: #29d9c2;
    height: 2px;
    position: absolute;
    width: 100%;
    left: 0px;
    bottom: -2px;
    transition: all 250ms ease 0s;
    transform: scale(0);
}

.mbr-gallery-filter li.active:after{
    transform: scale(1);
}

.mbr-gallery-filter li:hover:after{
    transform: scale(1);
}

.mbr-gallery-filter li.active:hover {
    color: #29d9c2;
    border: 2px solid #29d9c2;
}
*/
.mbr-gallery-filter li:hover {
    color: #29d9c2;
}

.mbr-gallery-filter li.active {
    color: #29d9c2;
    border: 2px solid #29d9c2;
    background-color: transparent;
}



/* remove spacing */
.mbr-gallery .mbr-gallery-row.no-gutter {
    margin: 0;
}
.mbr-gallery .mbr-gallery-row.no-gutter .mbr-gallery-item {
    padding: 0;
}

/* container */
.mbr-gallery .container.mbr-gallery-layout-default {
    padding: 0px 0;
}

/* fix horizontal scrollbar */
.mbr-gallery .mbr-gallery-layout-default,
.mbr-gallery .mbr-gallery-layout-article {
    overflow: hidden;
}

/* article layout */
.mbr-gallery .mbr-gallery-layout-article > div {
    padding-left: 0;
    padding-right: 0;
}


/* lightbox */
.mbr-gallery .modal {
    position: fixed;
    overflow: hidden;
    padding-right: 0 !important;
}
.mbr-gallery .modal-body {
    padding: 0;
}
.mbr-gallery .modal-body img {
    width: 100%;
    -webkit-transition: all 0.2s ease-in-out 0s;
    -o-transition: all 0.2s ease-in-out 0s;
    transition: all 0.2s ease-in-out 0s;
}
.mbr-gallery .modal .close {
    position: absolute;
    background-image: none;
    font-size: 20px;
    width: 54px;
    height: 54px;
    top: 20px;
    right: 20px;
    line-height: 54px;
    opacity: 1;
    color: #fff;
    border: 2px solid #fff;
    border-radius: 50%;
    text-align: center;
    text-shadow: none;
    z-index: 5;
    -webkit-transition: all 0.2s ease-in-out 0s;
    -o-transition: all 0.2s ease-in-out 0s;
    transition: all 0.2s ease-in-out 0s;
}
.mbr-gallery .modal .close:hover {
    background: #29d9c2;
    color: #fff;
    border-color: #29d9c2;
}

/* modal back color opacity */
.modal-backdrop.in {
    opacity: 0.8;
    filter: alpha(opacity=80);
}


@media (max-width: 768px) {
    .mbr-gallery .modal-dialog {
        margin: 10px auto;
    }

    .mbr-gallery .carousel-indicators,
    .mbr-gallery .carousel-control,
    .mbr-gallery .modal .close {
        position: fixed;
    }
}


/* fix fade in effect */
.mbr-gallery .modal.fade .modal-dialog {
    margin-top: -100px;
    -webkit-transition: margin-top 0.3s ease-out;
    -moz-transition: margin-top 0.3s ease-out;
    -o-transition: margin-top 0.3s ease-out;
    transition: margin-top 0.3s ease-out;
}
.mbr-gallery .modal.in .modal-dialog,
.mbr-gallery .modal.fade .modal-dialog {
    -webkit-transform: none;
    -ms-transform: none;
    -o-transform: none;
    transform: none;
}
.mbr-gallery .modal.in .modal-dialog {
    margin-top: 30px;
}


/* media-caption styles */
.mbr-gallery .mbr-figure__caption {
    width: 100%;
    margin-left: 0;
    box-sizing: border-box;
    border: solid 15px transparent;
    border-style: none solid;
    left: 0;
    background: none;
    margin-bottom: 30px;
}
.mbr-gallery .mbr-figure__caption-small {
    position: relative;
    z-index: 2;
    padding: 0 10px;
}
.mbr-gallery .mbr-caption-background{
    position: absolute;
    z-index: 1;
    left: 0;
    top:0;
    width: 100%;
    height: 100%;
//    background: rgba(22, 10, 39, 0.87); 
    background: #4e2129;

}

.mbr-gallery1 .mbr-caption-background1{
    position: absolute;
    z-index: 1;
    left: 0;
    top:0;
    width: 100%;
    height: 100%;
//    background: rgba(22, 10, 39, 0.87); 
    background: #333;

}





.mbr-gallery .no-gutter .mbr-figure__caption {
    margin-bottom: 0;
    border-style: none none;
}


/*
.mbr-gallery .mbr-figure__caption--std-grid:before {
    content: none;
}

.mbr-gallery .container .mbr-figure__caption--std-grid {
    width: 90%;
    margin-left: -44.8%;
    margin-bottom: 30px;
}

@media (max-width: 768px) {
    .mbr-gallery .mbr-figure__caption--std-grid,
    .mbr-gallery .container .mbr-figure__caption--std-grid {

        width: 100%;
        margin-left: 0;
        padding-left: 15px;
        padding-right: 15px;
    }

    .mbr-gallery .mbr-gallery-row.no-gutter .mbr-figure__caption--std-grid {
        width: 100%;
        margin-left: 0;
        padding-left: 0;
        padding-right: 0;
    }
}

@media (min-width: 768px) and (max-width: 991px) {

    .mbr-gallery .mbr-figure__caption--std-grid {
        width: 100%;
//        width: 92.6%;
        margin-left: -46.3%;
    }

    .mbr-gallery .container .mbr-figure__caption--std-grid {
        width: 92%;
        margin-left: -46%;
        margin-bottom: 30px;
    }
}

.mbr-gallery .container.mbr-gallery-layout-article .mbr-figure__caption--std-grid {
    width: 85%;
    margin-left: -42.5%;
}

.mbr-gallery .container.mbr-gallery-layout-article .mbr-gallery-row.no-gutter .mbr-figure__caption--std-grid {
    width: 100%;
    margin-left: -50%;
}

@media (min-width: 768px) and (max-width: 991px) {
    .mbr-gallery .container.mbr-gallery-layout-article .mbr-figure__caption--std-grid {
//        width: 88%;
        width: 100%;
        margin-left: -44%;
    }
}

@media (max-width: 768px) {
    .mbr-gallery .mbr-gallery-layout-article.container .mbr-gallery-row.no-gutter .mbr-figure__caption--std-grid,
    .mbr-gallery .container.mbr-gallery-layout-article .mbr-figure__caption--std-grid {
        width: 100%;
        margin-left: 0;
    }
}

*/