.m-gallery .gallery-plate {
    float:left;
    margin-right: 10px;
    margin-bottom: 10px;
}

.m-gallery div.gallery-item {
    position: relative;
    cursor: zoom-in;
    width: 380px;
    height: 250px;
    overflow: hidden;
}

.gallery-big-box-view {
    transform: scale(.5);
    position: fixed;
    left: 50%;
    top: 50%;
    display: none;
    transform: translate(-50%, -50%);
    width: auto;
    max-width: 65%;
    height: auto;
    max-height: 92%;
    z-index: 851;
    background: transparent;
    padding: 0px;
    /*border-radius: 5px;*/
}


div.image {
    /*width:100%;*/
    margin:0 auto;
    text-align: center;
}

.gallery-overlay-popup span.gallery-close {
    font-weight: bolder;
    font-size: 60px;
    transform: scale(0.8);
    color:#fff;
    top: 0px;
    right: 10px;
    z-index: 860;
    padding: 4px 7px 3px 6px;
    position: fixed;
}

.gallery-overlay-popup span.gallery-close:hover{
    color:#f79906;
    cursor: pointer;
}

.gallery-big-box-view span.arrow{
    font-size: 60px;
    position: fixed;
    top: 40%;
    color: #fff;
}

.gallery-big-box-view span:hover{
    color: #f79906;
    background: transparent;
    cursor: pointer;
}

.gallery-big-box-view span.pev-img{
    left:0;
}

.gallery-big-box-view span.next-img {
    right:0;
}

.gallery-big-box-view .description-box span{
    cursor:default;
    color:black;
    display: inline-block;
    width:100%;
    text-align: center;
    font-size: 80%;
    font-weight: bolder;
}

.gallery-big-box-view .description-box {
    height:67px;
    padding: 4px;
    background: #fff;
    width:100%;
    display: inline-block;
    vertical-align: middle;

}
.gallery-big-box-view img{
    width:100%;
    height:auto;
    max-height: 800px;
}

.gallery-big-box-view img.loader {
    width:32px;
    height:32px;
    margin:30px 0px 60px 0px ;
    position:relative;
    left:50%;
    top:50%;
    opacity:1;
}

.slideRight {
    right:0 !important;
    -webkit-transition: all .4s;
    -moz-transition: all .4s;
    -o-transition: all .4s;
    transition: all .4s ;
}

.gallery-overlay-popup {
    position: fixed;
    z-index:850;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    top:0;
    left:0;
    display:none;
}

.m-gallery div.gallery-item img{
    position: absolute;
    width:auto;
    /*width:380px;*/
    min-width: 150px;
    height:auto;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    margin: auto;
    height:auto;
}

.m-gallery div.gallery-item img.show {
    width: 100%;
    height: 100%;
    -webkit-transition: all .4s 1s;
    -moz-transition: all .4s 1s;
    -o-transition: all .4s 1s;
    transition: all .4s ease-out 1s;
}
.fadeOut {
    background: rgba(0,0,0,0.4) !important;
    -webkit-transition: all .4s;
    -moz-transition: all .4s;
    -o-transition: all .4s;
    transition: all .4s ;
}

.slideLeft{
    left:0 !important;
    -webkit-transition: all .4s;
    -moz-transition: all .4s;
    -o-transition: all .4s;
    transition: all .4s ;
}
.m-gallery div.gallery-item .gallery-item-overlay {
    text-transform: fullsize-kana;
    font-size:80%;
    position:absolute;
    z-index: 500;
    top:0;
    left:0;
    height:100%;
    width:100%;
    background: rgba(0,0,0,0.0);
    overflow: hidden;
    -webkit-transition: background .4s;
    -moz-transition: background .4s;
    -o-transition: background .4s;
    transition: background .4s ;
}

.m-gallery div.gallery-item .gallery-item-overlay .gallery-item-title{
    background: rgba(0,0,0,0.3);
    padding:15px;
    top:0;
    left:-400px;
    width:100%;
    position: absolute;
    color:#fff;
}

.m-gallery div.gallery-item .gallery-item-overlay .gallery-item-description{
    background: rgba(0,0,0,0.3);
    padding:15px;
    bottom:0;
    position: absolute;
    width:100%;
    color:#fff;
    right:-400px;
    text-align: right;
}

.m-gallery div.gallery-item .m-gallery-admin a{
    color:#aaa;
}

.m-gallery div.gallery-item .m-gallery-admin{
    position: absolute;
    z-index: 501;
    padding: 5px;
    background: rgba(0,0,0,0.5);
    border:2px solid rgba(255, 255, 255, 0.2);
    right:0;
}

.m-gallery div.gallery-item .m-gallery-admin .item-edit:hover,
.m-gallery div.gallery-item .m-gallery-admin .item-trash:hover {
    /*color: #b10404;*/
    color:#fff;
    cursor: pointer;
}

.m-gallery div.gallery-item .m-gallery-admin .item-edit,
.m-gallery div.gallery-item .m-gallery-admin .item-trash {
    margin-left:10px;
    margin-right:10px;
}