@import url("https://cdnjs.cloudflare.com/ajax/libs/fancybox/3.2.5/jquery.fancybox.min.css");
.fancybox-thumbs {
    top: auto !important;
    width: auto !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    height: 95px;
    padding: 10px 10px 5px 10px !important;
    box-sizing: border-box !important;
    background: rgba(0, 0, 0, 0.3) !important;
    text-align: center;
}
.UIGallery {
    margin: 30px 0;
  
}
.fancybox-show-thumbs .fancybox-inner {
    right: 0;
    bottom: 95px;
}

.fancybox-thumbs > ul > li {
    float: none;
    display: inline-block;
}
.fancybox-thumbs-x>ul{
    width:100% !important;
}
.UIGallery .item {
    width: 33.33%;
    float: left;
}

.UIGallery .container {
    max-width: 1170px;
    margin: auto;
}
.UIGallery .title-block {
    margin-bottom: 20px;
    color: #17a1be;
}
.UIGallery .item a {
    display: block;
    position: relative;
    cursor: zoom-in;
}

.UIGallery .item img {
    width: 100%;
    display: block;
    height: 200px;
    object-fit: cover;
}

.UIGallery .item .name {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    color: #fff;
    font-size: 20px;
    opacity: 0;
}

.UIGallery .item a:before {
    position: absolute;
    content: '';
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    opacity: 0;
    transition: all .5s ease;
}

.UIGallery .item a:hover:before {
    opacity: 1;
}

.UIGallery .item a:hover .name {
    opacity: 1;
}

.UIGallery .item * {
    transition: all .5s ease;
}
/*owl-custom*/
.UIGallery .owl-item .item {
    width: 100% !important;
}

.UIGallery .custom-nav .owl-nav {
    margin: 0 !important;
}

.UIGallery .custom-nav .owl-nav button {
        position: absolute;
        color: #999 !important;
        top: 50%;
        transition: all 0.2s ease;
        outline: none;
        z-index: 99999;
        opacity: .5;
        transform: translate(0, -50%);
    }

.UIGallery .custom-nav .owl-nav button i {
            font-size: 50px;
        }

.UIGallery .custom-nav .owl-nav .owl-prev {
        left: 0;
        border-radius: 0 4px 4px 0;
    }

.UIGallery .custom-nav .owl-nav .owl-next {
        right: 0;
    }

.UIGallery .custom-nav .owl-nav button:hover {
        opacity: 1;
        background: none !important;
    }

.UIGallery .custom-dots .owl-dots {
    position: absolute;
    text-align: center;
    width: 100%;
    bottom: 0;
    z-index: 9;
}

.UIGallery .custom-dots .owl-dots .owl-dot {
        outline: none;
    }

.UIGallery .custom-dots .owl-dots .owl-dot.active span {
            background-color: #d9282f;
            border: solid 2px #fff;
        }

.UIGallery .custom-dots .owl-dots .owl-dot span {
            height: 15px;
            width: 15px;
            margin: 5px;
            display: block;
            border-radius: 100%;
            box-shadow: 0 0 5px 0 #b3b3b3;
            background: #fff;
        }

.clear{
    clear:both;
}
.paging > * {
    display: inline-block;
    border: solid 1px #ccc;
    text-decoration: none;
    color: #333;
    padding: 5px 10px;
}

.paging {
    text-align: center;
    margin: 15px 0;
    display: block;
}

.paging a:hover {
    background: #eee;
}

.paging span {
    background: #eee;
    font-weight: bold;
}