.imgs-grid {
    max-width: 100%;
    margin: 0 auto;
    font-size: 0;
}
.imgs-grid.imgs-grid-1 .imgs-grid-image {
    width: 100%;
}

.imgs-grid.imgs-grid-2 .imgs-grid-image {
    width: 50%;
}

.imgs-grid.imgs-grid-3 .imgs-grid-image:nth-child(1) {
    width: 100%;
}
.imgs-grid.imgs-grid-3 .imgs-grid-image:nth-child(2),
.imgs-grid.imgs-grid-3 .imgs-grid-image:nth-child(3) {
    width: 50%;
}

.imgs-grid.imgs-grid-4 .imgs-grid-image:nth-child(1) {
    width: 100%;
}
.imgs-grid.imgs-grid-4 .imgs-grid-image:nth-child(2),
.imgs-grid.imgs-grid-4 .imgs-grid-image:nth-child(3),
.imgs-grid.imgs-grid-4 .imgs-grid-image:nth-child(4) {
    width: 33.333333333333336%;
}

.imgs-grid.imgs-grid-5 .imgs-grid-image:nth-child(1),
.imgs-grid.imgs-grid-5 .imgs-grid-image:nth-child(2),
.imgs-grid.imgs-grid-5 .imgs-grid-image:nth-child(3) {
    width: 33.333333333333336%;
}
.imgs-grid.imgs-grid-5 .imgs-grid-image:nth-child(4),
.imgs-grid.imgs-grid-5 .imgs-grid-image:nth-child(5) {
    width: 50%;
}

.imgs-grid.imgs-grid-6 .imgs-grid-image {
    width: 33.333333333333336%;
}

.imgs-grid.imgs-grid-7 .imgs-grid-image:nth-child(1),
.imgs-grid.imgs-grid-7 .imgs-grid-image:nth-child(2),
.imgs-grid.imgs-grid-7 .imgs-grid-image:nth-child(3) {
    width: 33.333333333333336%;
}

.imgs-grid.imgs-grid-7 .imgs-grid-image:nth-child(4),
.imgs-grid.imgs-grid-7 .imgs-grid-image:nth-child(5),
.imgs-grid.imgs-grid-7 .imgs-grid-image:nth-child(6),
.imgs-grid.imgs-grid-7 .imgs-grid-image:nth-child(7){
    width: 25%;
}

.imgs-grid.imgs-grid-8 .imgs-grid-image:nth-child(1),
.imgs-grid.imgs-grid-8 .imgs-grid-image:nth-child(2),
.imgs-grid.imgs-grid-8 .imgs-grid-image:nth-child(3){
    width: 33.333333333333336%;
}
.imgs-grid.imgs-grid-8 .imgs-grid-image:nth-child(4),
.imgs-grid.imgs-grid-8 .imgs-grid-image:nth-child(5){
    width: 50%;
}
.imgs-grid.imgs-grid-8 .imgs-grid-image:nth-child(6),
.imgs-grid.imgs-grid-8 .imgs-grid-image:nth-child(7),
.imgs-grid.imgs-grid-8 .imgs-grid-image:nth-child(8){
    width: 33.333333333333336%;
}
/*
.imgs-grid.imgs-grid-9 .imgs-grid-image:nth-child(1),
.imgs-grid.imgs-grid-9 .imgs-grid-image:nth-child(2),
.imgs-grid.imgs-grid-9 .imgs-grid-image:nth-child(3) {
    width: 33.333333333333336%;
}
.imgs-grid.imgs-grid-9 .imgs-grid-image:nth-child(4),
.imgs-grid.imgs-grid-9 .imgs-grid-image:nth-child(5){
    width: 50%;
}
.imgs-grid.imgs-grid-9 .imgs-grid-image:nth-child(6),
.imgs-grid.imgs-grid-9 .imgs-grid-image:nth-child(7),
.imgs-grid.imgs-grid-9 .imgs-grid-image:nth-child(8),
.imgs-grid.imgs-grid-9 .imgs-grid-image:nth-child(9) {
    width: 25%;
}
*/

.imgs-grid.imgs-grid-9 .imgs-grid-image:nth-child(1),
.imgs-grid.imgs-grid-9 .imgs-grid-image:nth-child(2),
.imgs-grid.imgs-grid-9 .imgs-grid-image:nth-child(3),
.imgs-grid.imgs-grid-9 .imgs-grid-image:nth-child(4),
.imgs-grid.imgs-grid-9 .imgs-grid-image:nth-child(5),
.imgs-grid.imgs-grid-9 .imgs-grid-image:nth-child(6),
.imgs-grid.imgs-grid-9 .imgs-grid-image:nth-child(7),
.imgs-grid.imgs-grid-9 .imgs-grid-image:nth-child(8),
.imgs-grid.imgs-grid-9 .imgs-grid-image:nth-child(9) {
    width: 33.333333333333336%;
}


.imgs-grid .imgs-grid-image {
    position: relative;
    display: inline-block;
    padding: 1px;
    box-sizing: border-box;
    text-align: center;
    background-position: center center;
    background-size: cover; 
    border: 1px solid #fff;
}
.imgs-grid .imgs-grid-image:before {
    content: "";
    display: block;
    position: absolute;
    top: 1px;
    left: 1px;
    right: 1px;
    bottom: 1px;
    /*background-color: #f0f0f0;*/

}
.imgs-grid .imgs-grid-image:hover {
    cursor: pointer;
}
.imgs-grid .imgs-grid-image .image-wrap {
    position: relative;
    display: inline-block;
    overflow: hidden;
    vertical-align: middle;
}
.imgs-grid .imgs-grid-image .image-wrap img {
    position: relative;
    width: 100%;
    height: auto;
    margin: 0;
    /*visibility: hidden;*/
}
.imgs-grid .imgs-grid-image .view-all {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    text-align: center;
}
.imgs-grid .imgs-grid-image .view-all:before {
    display: inline-block;
    content: "";
    vertical-align: middle;
    height: 100%;
}
.imgs-grid .imgs-grid-image .view-all:hover {
    cursor: pointer;
}
.imgs-grid .imgs-grid-image .view-all:hover .view-all-text {
    text-decoration: underline;
}
.imgs-grid .imgs-grid-image .view-all .view-all-cover {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: black;
    opacity: 0.4;
}
.imgs-grid .imgs-grid-image .view-all .view-all-text {
    position: relative;
    font-size: 16px;
    font-family: sans-serif;
    color: white;
}
@media (max-width: 350px) {
    .imgs-grid .imgs-grid-image .view-all .view-all-text {
        font-size: 10px;
    }
}
.imgs-grid-modal {
    position: fixed;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    background-color: black;
    opacity: 0;
    z-index: 100;
    -webkit-user-select: none;
    -moz-user-select: -moz-none;
    -khtml-user-select: none;
    -o-user-select: none;
    user-select: none;
}
.imgs-grid-modal .modal-caption {
    padding: 30px 50px;
    text-align: center;
    color: white;
}
.imgs-grid-modal .modal-close {
    position: absolute;
    right: 10px;
    top: 10px;
    width: 35px;
    height: 35px;
    background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAIAAAABBCAMAAAAuVFzoAAABBVBMVEUAAAD///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////85QWmiAAAAVnRSTlMAAAEDBgoMDQ8VHCMkJScoKS0uMjdBQkhJSkxNTlFSVFVbXGJpdXZ4gIGCiIyNjpCUl5mjpaaqrLCxsrO0t77J0dLT1dfY3N3k5uvu7/Hz9Pb3+vv9/gejZ9kAAAHUSURBVHja3ZlpT8JAEIYrLSpYD7RWRbyPeiuKF943oggi7v//Kb4kJtMmhpbQ7Zs4X9iFNM+T0u7Ozhidwyp97fums/UH20gyrLJSn775iVKVJA3Sl0qpPUMi30rUIH0NfjHl/2qhCYNhGh9RgEE1lyyfZNDf5u+CTzIYvAF/+8+f8g0xIPARLgzeHQ5fDGqObv4mBiSDzB34ntEp3A+NBpn7MD7CqcFgksMXg4ari7+OAckg+wj+KgYkg+yz8ENjvAqDaRofkYNBs6CBzzIYAr+1hAHJwK4IP3KMVWAwx+LLZRx+9xd6XmCaOpDrRtu3cl6zuqfUhp9fVK2VOB4mO+LDawU3efMI0/Oe+fL6dplmmCVMylaAn6BBkC9Lqm6DgXaqu5P65Z9Z8W0q2ScxiJDsW6f4KJkx8WUbX4tocFgO4WtKZMRA+MYrUivw4zKYiGBwpRDH4NMF+H8B/yHkv4ayEM2QFiL6UhzbZvTdBT9uA/ul1+0YMcJMSPgpGT8p5aflcjBZ7uFgwjqasQ+n5OP5FLtAwS7RsItU/7JMB4PbUAO3Dr6jt1S7FVqqZRerueX6N4fdsGC3bNhNK37bjmWwmGTjEgYXhNYtoXlNbt/3keMHl+Hm+QGDfIIAAAAASUVORK5CYII=);
    background-repeat: no-repeat;
    background-position: -100px;
}
.imgs-grid-modal .modal-close:hover {
    cursor: pointer;
}
.imgs-grid-modal .modal-inner {
    position: absolute;
    top: 60px;
    bottom: 60px;
    left: 0;
    right: 0;
}
.imgs-grid-modal .modal-inner .modal-control {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 70px;
}
.imgs-grid-modal .modal-inner .modal-control:hover {
    cursor: pointer;
}
.imgs-grid-modal .modal-inner .modal-control.left {
    left: 0;
}
.imgs-grid-modal .modal-inner .modal-control.right {
    right: 0;
}
.imgs-grid-modal .modal-inner .modal-control .arrow {
    margin: 0 auto;
    height: 100%;
    width: 40px;
    background-repeat: no-repeat;
    background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAIAAAABBCAMAAAAuVFzoAAABBVBMVEUAAAD///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////85QWmiAAAAVnRSTlMAAAEDBgoMDQ8VHCMkJScoKS0uMjdBQkhJSkxNTlFSVFVbXGJpdXZ4gIGCiIyNjpCUl5mjpaaqrLCxsrO0t77J0dLT1dfY3N3k5uvu7/Hz9Pb3+vv9/gejZ9kAAAHUSURBVHja3ZlpT8JAEIYrLSpYD7RWRbyPeiuKF943oggi7v//Kb4kJtMmhpbQ7Zs4X9iFNM+T0u7Ozhidwyp97fums/UH20gyrLJSn775iVKVJA3Sl0qpPUMi30rUIH0NfjHl/2qhCYNhGh9RgEE1lyyfZNDf5u+CTzIYvAF/+8+f8g0xIPARLgzeHQ5fDGqObv4mBiSDzB34ntEp3A+NBpn7MD7CqcFgksMXg4ari7+OAckg+wj+KgYkg+yz8ENjvAqDaRofkYNBs6CBzzIYAr+1hAHJwK4IP3KMVWAwx+LLZRx+9xd6XmCaOpDrRtu3cl6zuqfUhp9fVK2VOB4mO+LDawU3efMI0/Oe+fL6dplmmCVMylaAn6BBkC9Lqm6DgXaqu5P65Z9Z8W0q2ScxiJDsW6f4KJkx8WUbX4tocFgO4WtKZMRA+MYrUivw4zKYiGBwpRDH4NMF+H8B/yHkv4ayEM2QFiL6UhzbZvTdBT9uA/ul1+0YMcJMSPgpGT8p5aflcjBZ7uFgwjqasQ+n5OP5FLtAwS7RsItU/7JMB4PbUAO3Dr6jt1S7FVqqZRerueX6N4fdsGC3bNhNK37bjmWwmGTjEgYXhNYtoXlNbt/3keMHl+Hm+QGDfIIAAAAASUVORK5CYII=);
}
.imgs-grid-modal .modal-inner .modal-control .arrow.left {
    background-position: 2px center;
}
.imgs-grid-modal .modal-inner .modal-control .arrow.right {
    background-position: -42px center;
}
.imgs-grid-modal .modal-inner .modal-image {
    position: absolute;
    top: 0;
    left: 70px;
    right: 70px;
    bottom: 0;
    text-align: center;
}
.imgs-grid-modal .modal-inner .modal-image:before {
    display: inline-block;
    content: "";
    vertical-align: middle;
    height: 100%;
}
.imgs-grid-modal .modal-inner .modal-image img {
    max-width: 100%;
    max-height: 100%;
    vertical-align: middle;
}
.imgs-grid-modal .modal-inner .modal-image img:hover {
    cursor: pointer;
}
.imgs-grid-modal .modal-inner .modal-loader {
    display: inline-block;
    vertical-align: middle;
    color: silver;
    font-size: 14px;
}
@media (max-width: 800px) {
    .imgs-grid-modal .modal-inner .modal-control {
        width: 40px;
    }
    .imgs-grid-modal .modal-inner .modal-control .arrow {
        -webkit-transform: scale(0.7);
        -moz-transform: scale(0.7);
        -o-transform: scale(0.7);
        -ms-transform: scale(0.7);
        transform: scale(0.7);
    }
    .imgs-grid-modal .modal-inner .modal-image {
        left: 0;
        right: 0;
    }
}
.imgs-grid-modal .modal-indicator {
    position: absolute;
    bottom: 0;
    height: 60px;
    width: 100%;
    text-align: center;
}
.imgs-grid-modal .modal-indicator ul {
    margin: 0;
    padding: 0;
}
.imgs-grid-modal .modal-indicator ul li {
    display: inline-block;
    width: 12px;
    height: 12px;
    border: 1px solid white;
    box-sizing: border-box;
    border-radius: 100%;
    margin: 0 1px;
    vertical-align: middle;
}
.imgs-grid-modal .modal-indicator ul li:hover {
    cursor: pointer;
}
.imgs-grid-modal .modal-indicator ul li.selected {
    background-color: white;
    width: 14px;
    height: 14px;
    margin: 0;
}
.imgs-grid-modal .modal-inner .modal-video {
    margin: 0 auto;
    text-align: center;
}