/*==========================***---GALLERY---***==========================*/


.th {
    width: 100%;
    position: relative;
    overflow: hidden;
}
.th img {
    min-width: 100%;
    transition: all 0.2s ease-in-out;
}
.page-content {
    position: relative;
}
div.on-hover {
    position: absolute;
    background: none repeat scroll 0 0 rgba(3, 3, 3, 0.6);
    bottom: 0;
    left: 0;
    right: 0;
    top: 0;
    -webkit-transition: all 300ms ease-out;
    -moz-transition: all 300ms ease-out;
    -o-transition: all 300ms ease-out;
    transition: all 300ms ease-out;
    display: none;
}
.on-hover-text {
    position: relative;
    width: 80%;
    margin: 20px auto;
    color: #fff;
    height: auto;
    text-align: center;
    padding: 0 20px;
    text-decoration: underline;
    top: 35%;
}
.gallery-content {
}
.gallery-content ul li:hover .on-hover {
    display: block;
}

ul.clearing li {
    width: 31.5%;
    margin-right: 2%;
    margin-bottom: 2%;
}
ul.clearing li:nth-child(3n) {
    margin-right: 0;
}
.visible-img img {
    width: auto;
}
.clearing-blackout {
    background: rgba(0, 0, 0, 0.95);
}
.clearing-assembled .clearing-container .visible-img {
    background: rgba(0, 0, 0, 0.3);
    height: 100%;
}
.clearing-assembled.clearing-blackout .clearing-container .carousel {
    background: rgba(0, 0, 0, 1);
    display: none;
}
.clearing-caption {
    background: rgba(0, 0, 0, 0.95);
}

.gallery_catg_tabs.catg_fixed {
    position: fixed;
    top: 0px !important;
    opacity: 1;
    bottom: auto;
}
.catg_fixed li a{
    color: white;
}

.gallery_catg_tabs li a {
    padding: 5px;
    font-size: 0.8rem;
    background: transparent;
    text-transform: uppercase;
}
.gallery_catg_tabs {
    margin-right: 0;
    width: 100%;
    left: 0;
    bottom: 0;
    position: absolute;
    z-index: 100;
    opacity: 0.7;
    padding: 8px;
}
.catg_tabs li{
    display: inline-block;
    margin: 1%;
    line-height: 2;
}
.catg_tabs li:last-child {
    margin-right: 0;
}
.catg_tabs li a {
    color: #414141;
}
.gallery_catg_tabs li.active {
    border-top: 2px solid;
}

@media all and (max-width:1024px) {
    .catg_tabs {
        margin: auto;
    }
}
@media (max-width: 770px) {
    ul.clearing li {
        width: 46%;
        margin-right: 4%;
        margin-bottom: 4%;
    }
    ul.clearing li:nth-child(3n) {
        margin-right: 4%;
    }
    ul.clearing li:nth-child(2n) {
        margin-right: 0;
    }
}

@media (max-width: 640px) {
    .gallery-content {
        padding-left: 10px;
    }
}


/*===========----***GALLERY-ENDS***----===========*/