.kgallery-wrapper {
    width: 100%;
    position: relative;
    display: block;
    margin-bottom: 30px;
}

.kgallery-wrapper:after {
    display: block;
    content: " ";
    clear: both;
}

.foorce-hide-overflow {
    overflow: hidden !important;
}

.kgallery-item-w {
    width: 24%;
    margin-right: 10px;
    margin-bottom: 10px;
    float: left;
    height: 200px;
    overflow: hidden;
    position: relative;
    cursor: pointer;
}

.kgallery-item {
    width: 100%;
    margin-right: 10px;
    height: 100%;
    overflow: hidden;
    position: relative;
    background-position: center center;
    background-size: cover;
    text-align: center;
    -webkit-transition: all .2s linear;
    cursor: pointer;
}

.kg-item-title {
    position: absolute;
    top: 26%;
    margin-left: auto;
    margin-right: auto;
    color: #fff;
    left: 0;
    right: 0;
    text-align: center;
}

@-moz-document url-prefix() {
    .kgallery-itemfilter: url("data:image/svg+xml;utf8,<svg xmlns=\'http://www.w3.org/2000/svg\'><filter id=\'grayscale\'><feColorMatrix type=\'matrix\' values=\'0.3333 .3333 .3333 0 0 .3333 .3333 .3333 0 0 .3333 .3333 .3333 0 0 0 0 0 1 0\'/></filter></svg>#grayscale");
}

.kgallery-item:before {
    background-color: #000;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: block;
    content: " ";
    opacity: .4;
    transition: all .2s linear;
}

.kgallery-item-w:hover .kgallery-item:before {
    opacity: 0;
}    
}

.kgallery-item-w:hover .kgallery-item {
    -webkit-filter: saturate(100%) contrast(100%) brightness(100%);
}

.previtem {
    width: 90px;
    height: 58px;
    border: 2px solid #FFF;
    box-shadow: 2px 2px 2px #000;
    cursor: pointer;
    display: block;
    background-position: center center;
    background-size: cover;
}

#prevlist {
    display: inline-block;
}

#prevlist li {
    display: inline-block;
}

#wmask {
    -webkit-transition: all .5s linear;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    display: block;
    background-color: rgba(0,0,0,0.8);
    opacity: 0;
    z-index: 1000000;
}

#wcontroller {
    background-color: rgba(0,0,0,0.5);
    position: fixed;
    width: 100%;
    height: 84px;
    bottom: 0;
    top: auto;
    display: block;
    text-align: center;
    -webkit-transition: all .5s linear;
    transition: all .5s linear;
	opacity: 1;
}

#wcontroller.active {
    opacity: 1;
}

#wcontroller:hover {
    opacity: 1;
}

#tcontroller {
    background-color: rgba(0,0,0,0.5);
    position: fixed;
    width: 100%;
    height: 57px;
    top: 0;
    display: block;
    text-align: center;
    opacity: 1;
    -webkit-transition: all .5s linear;
    transition: all .5s linear;
}

#tcontroller:hover {
    opacity: 1;
}

.lbctrl {
    height: 57px;
    width: 88px;
    cursor: pointer;
    display: block;
    float: right;
}

.lbctrl div {
    -webkit-transition: all .2s linear;
    background-image: url(../images/lightbox-icons.png);
    width: 15px;
    height: 25px;
    display: block;
    margin-left: 32px;
    margin-top: 14px;
}

.lbctrl:hover {
    background-color: rgba(116,116,116,0.51);
}

.lbctrl .prev {
    background-position: -40px -3px;
}

.lbctrl .next {
    background-position: -70px -3px;
    margin-left: 40px;
}

.lbctrl .pause {
    background-position: -165px -3px;
    width: 17px;
    margin-left: 38px;
}

.lbctrl .play {
    background-position: -137px -3px;
}

.lbctrl .close {
    background-position: -2px -3px;
    width: 27px;
}

.lbctrl .thumb {
    background-image: url(../images/square.png);
    background-repeat: no-repeat;
    width: 27px;
}

.lbctrl .thumb.act {
    background-image: url(../images/square2.png);
}


.spinner {
    margin-left: auto;
    margin-right: auto;
    margin-top: 49vh;
    width: 40px;
    height: 40px;
    position: relative;
    text-align: center;
    -webkit-animation: rotate 2s infinite linear;
    animation: rotate 2s infinite linear;
}


.dot1,.dot2 {
    width: 60%;
    height: 60%;
    display: inline-block;
    position: absolute;
    top: 0;
    background-color: #fff;
    border-radius: 100%;
    -webkit-animation: bounce 2s infinite ease-in-out;
    animation: bounce 2s infinite ease-in-out;
}

.dot2 {
    top: auto;
    bottom: 0;
    -webkit-animation-delay: -1s;
    animation-delay: -1s;
}

@-webkit-keyframes rotate {
    100% {
        -webkit-transform: rotate(360deg);
    }
}

@keyframes rotate {
    100% {
        transform: rotate(360deg);
        -webkit-transform: rotate(360deg);
    }
}

@-webkit-keyframes bounce {
    0%,100% {
        -webkit-transform: scale(0.0);
    }

    50% {
        -webkit-transform: scale(1.0);
    }
}

@keyframes bounce {
    0%,100% {
        transform: scale(0.0);
        -webkit-transform: scale(0.0);
    }

    50% {
        transform: scale(1.0);
        -webkit-transform: scale(1.0);
    }
}
.kgallery-item-w:hover{
    opacity: 1;
    -webkit-transform: perspective(500px) scale(1.05);
    transform: perspective(500px) scale(1.05);
    -webkit-transition: -webkit-transform .35s;
    transition: -webkit-transform .35s;
    transition: transform .35s;
    transition: transform .35s,-webkit-transform .35s;	
}