body.modal-open{
    overflow:visible;
    padding-right:0 !important
}@media (min-width: 1366px){
    .modal-lg{width:1280px}
}

.gallery {
    margin-left: 0;
    margin-right: 0;
}
.grid {
    /*height: auto!important;*/
}
.grid-item {
    margin-top: 0;
    margin-right: 0;
    margin-bottom: 0;
    margin-left: 0;
    border: 1px solid white
}
#gallery-content .gallery-buttons{

    padding:0 0 20px;
    text-align:left
}
.buttons-row{
    padding:0 2px;
}
#gallery-content .gallery-buttons button{
    border-radius:0;
    color:#fff;
    padding:10px 25px;
    position:relative;
    font-size: 13px;

}
@media (max-width: 611px){
    #gallery-content .gallery-buttons button{
        display:block;
        margin:10px auto
    }
}
#gallery-content .gallery-buttons button.active:before{
    content:" ";
    position:absolute;
    padding:10px 25px;
    z-index:0;
    top:-5px;
    left:-5px;
    right:-5px;
    bottom:-5px;

}

#gallery-content .gallery-buttons button:focus{
    outline:none
}
#gallery-content .gallery-buttons #all{
    background-color: #9c9c9c
}
#gallery-content .gallery-buttons #all.active{
    background-color: #a89e61;
}

#gallery-content .gallery-buttons #zfp-gallery{
    background-color:#9c9c9c
}
#gallery-content .gallery-buttons #zfp-gallery.active{
    background-color: #a89e61;
}
#gallery-content .gallery-buttons #tp-gallery{
    background-color:#9c9c9c
}
#gallery-content .gallery-buttons #tp-gallery.active{
    background-color: #a89e61;
}


#gallery-content .grid-item{
    display:inline-block;
    max-width:100%;
    height:auto;
    padding:0;

    border-radius:0;
    line-height:1.42857;
    background-color:transparent;
    transition:all .2s ease-in-out;
    text-align:center;

    margin-top: 0;
    margin-right: 0;
    margin-bottom: 0;
    margin-left: 0;
    border: 2px solid white
}

@media (max-width: 767px){
    #gallery-content .grid-item{
        pointer-events:none
    }
}#gallery-content .grid-item img{
     border-radius:0;
     border:0;
     padding:0;
     display:inline-block;
     max-width:100%;
     min-width:48px;
     min-height:48px;
     background-repeat:no-repeat;
     background-image:url("../images/download.gif");
     background-position:center
 }



#gallery-content .gallery-container{
    padding-left:0;
    padding-right:0;
    padding-bottom: 35px
}
#gallery-content .list-inline{
    margin-bottom:0;
    margin-left:0;
}

#gallery-content .modal{
    text-align:center;
    padding:0 !important;
    z-index:9999;
    background: rgba(0,0,0,0.6)
}

#gallery-content .modal-dialog{
    -ms-transform:translate(-50%, -50%);
    transform:translate(-50%, -50%);
    position:absolute;
    top:calc(50% - 26px);
    left:50%
}

#gallery-content .width-auto{
    width:auto;
    margin:auto
}

#gallery-content .modal-content{
    border:0;
    background:transparent;
}

#gallery-content .modal-content .modal-header{
    border-bottom:0 solid transparent;
    position:absolute;
    top:0;
    left:0;z-index:9;
    width:100%
}

#gallery-content .modal-content .modal-body{
    border-bottom:0 solid transparent;
    padding:0
}

#gallery-content .carousel-control{
    background-image:none
}
span.fa.fa-arrow-right {
    position: relative;
    top: 49%;
}
span.fa.fa-arrow-left {
    position: relative;
    top: 49%;
}
#gallery-content .carousel-inner>.item>img{
    object-fit:cover;
    background-size:cover;
    margin:auto;width:100%
}

#gallery-content .carousel-inner>.item>.item-caption{
    position:absolute;
    bottom:10px;
    right:15px;
    color:#fff;
    font-size:13px
}

#gallery-content .img-thumbnail{
    padding:0
}