.custom-gallery .fancybox-thumbs ul {padding:0; text-align:center; white-space:nowrap; margin:0; }
.custom-gallery .fancybox-thumbs li {list-style:none;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    border:1px solid #cccccc;
    background-position: 50%;
    background-repeat: no-repeat;
    background-size: cover;
    cursor: pointer;
    display:inline-block;
    height: 80px;
    outline: none;
    overflow: hidden;
    padding: 0;
    position: relative;
    -webkit-tap-highlight-color: transparent;
    width: 80px;
    margin: 8px 2px;
    
}
.custom-gallery .fancybox-thumbs li:first-child {display:none;}
.custom-gallery .fancybox-thumbs li img {max-width:100% !important; height:auto !important; margin-top:0 !important; max-height:75px;}
.custom-gallery .fancybox-toolbar .fancybox-button--thumbs {display:none;}
.custom-gallery .fancybox-navigation .fancybox-button:disabled {height:35px; width:35px; padding:5px;}
.custom-gallery .fancybox-thumbs {
    width:100%;
    left: 0;
    min-height: 100px;
    max-height: 100px;
    top: auto;
    bottom: 0;
    background: #fafafa;
    overflow-y:hidden; overflow-x:auto;
}
.custom-gallery.fancybox-show-thumbs .fancybox-inner {
    right: 0;
}
.custom-gallery .card, .custom-gallery .card h5, .custom-gallery .card p {transition:all 0.3s;}
.custom-gallery .card:hover {background:#3575ab !important;}
.custom-gallery .card:hover .zoom, .custom-gallery .card .zoom:hover {background:rgba(0,0,0,.5); opacity: 1; filter: alpha(opacity=1);}
.custom-gallery .card:hover .zoom i {
    -moz-transform: translateY(0%);
    -o-transform: translateY(0%);
    -ms-transform: translateY(0%);
    -webkit-transform: translateY(0%);
    transform: translateY(0%);
    visibility: visible;
}

.custom-gallery .card:hover h5, .custom-gallery .card:hover p {color:#ffffff !important;}