/* -------------------------------- 
Main Components 
-------------------------------- */
.cd-header {
    position: relative;
    height: 150px;
    background-color: #331d35;
}
.cd-header h1 {
    color: #ffffff;
    line-height: 150px;
    text-align: center;
    font-size: 2.4rem;
    font-weight: 300;
}
@media only screen and (min-width: 1170px) {
    .cd-header {
        height: 180px;
    }
    .cd-header h1 {
        line-height: 180px;
    }
}

.cd-main-content {
    margin: 20px 0 0;
}
.cd-main-content:after {
    content: "";
    display: table;
    clear: both;
}
.cd-main-content.is-fixed .cd-tab-filter-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
}
.cd-main-content.is-fixed .cd-gallery {
    padding-top: 76px;
}
@media only screen and (min-width: 768px) {
    .cd-main-content.is-fixed .cd-gallery {
        padding-top: 90px;
    }
}
@media only screen and (min-width: 1170px) {
    .cd-main-content.is-fixed .cd-gallery {
        padding-top: 100px;
    }
}

/* -------------------------------- 

xtab-filter 

-------------------------------- */
.cd-tab-filter-wrapper {
    z-index: 1;
}
.cd-tab-filter-wrapper:after {
    content: "";
    display: table;
    clear: both;
}

.cd-tab-filter {
    /* tabbed navigation style on mobile - dropdown */
    position: relative;
    z-index: 1;
}
.cd-tab-filter::after {
    /* small arrow icon */
    content: '';
    position: absolute;
    right: 14px;
    top: 50%;
    bottom: auto;
    -webkit-transform: translateY(-50%);
    -moz-transform: translateY(-50%);
    -ms-transform: translateY(-50%);
    -o-transform: translateY(-50%);
    transform: translateY(-50%);
    display: inline-block;
    width: 16px;
    height: 16px;
    /*    background: url("../img/cd-icon-arrow.svg") no-repeat center center;*/
    -webkit-transition: all 0.3s;
    -moz-transition: all 0.3s;
    transition: all 0.3s;
    pointer-events: none;
}
.cd-tab-filter ul {
    position: absolute;
    top: 0;
    left: 0;
    background-color: #ffffff;
    box-shadow: inset 0 -2px 0 #41307c;
}
.cd-tab-filter li {
    display: none;
}
.cd-tab-filter li:after{
    /*    content: '/';
        position: absolute;
        top: 15px;
        color: #ccc;*/
}
.cd-tab-filter li:last-child:after { content: ""; }
.cd-tab-filter li:first-child {
    /* this way the placehodler is alway visible */
    /*display: block;*/
}
.cd-tab-filter a {
    /* display: block; */
    /* set same size of the .cd-tab-filter */
    /* height: 42px; */
    /* width: 140px; */
    /* line-height: 50px; */
    /* padding-left: 14px; */
    /* padding-right: 6px; */
}
.cd-tab-filter a.selected {
    background: #41307c;
    color: #ffffff;
}
.cd-tab-filter.is-open::after {
    /* small arrow rotation */
    -webkit-transform: translateY(-50%) rotate(-180deg);
    -moz-transform: translateY(-50%) rotate(-180deg);
    -ms-transform: translateY(-50%) rotate(-180deg);
    -o-transform: translateY(-50%) rotate(-180deg);
    transform: translateY(-50%) rotate(-180deg);
}
.cd-tab-filter.is-open ul {
    box-shadow: inset 0 -2px 0 #41307c, 0 2px 10px rgba(0, 0, 0, 0.2);
}
.cd-tab-filter.is-open ul li {
    display: block;
}
.cd-tab-filter.is-open .placeholder a {
    /* reduces the opacity of the placeholder on mobile when the menu is open */
    opacity: .4;
}
/*@media only screen and (min-width: 768px) {*/
.cd-tab-filter {
    /* tabbed navigation style on medium devices */
    width: auto;
    cursor: auto;
}
.cd-tab-filter::after {
    /* hide the arrow */
    display: none;
}
.cd-tab-filter ul {
    background: transparent;
    position: static;
    box-shadow: none;
    /* text-align: center; */
}
.cd-tab-filter li {
    display: inline-block;
}
.cd-tab-filter li.placeholder {
    display: none !important;
}
.cd-tab-filter a {
    display: block;
    /* margin: auto; */
    /* width: auto; */
    color: #ffffff;
    /* text-transform: uppercase; */
    /* font-weight: 600; */
    /* font-size: 14px; */
}
.no-touch .cd-tab-filter a:hover {
    color: #41307c;
}
.cd-tab-filter li.filter { 
    background: transparent !important;
    padding: 0;
    margin: 0;
    margin-left: 6px
}
.cd-tab-filter li.filter:hover{
    box-shadow: none;
}
.cd-tab-filter li.filter a{
    background-color: #00bcd4 !important;
    padding: 5px 10px;
    transition: .5s ease-in-out;
    border-radius: 5px !important;
    color: #fff;
    margin-bottom: 18px;
    margin-right: 12px;
}
.cd-tab-filter li.filter a:hover,
.cd-tab-filter li.filter a.selected {
    box-shadow: 0px 0px 0px 0.2px #fff, 0px 0px 0px 3px #00bcd4, 0px 0px 0px 6px white, 0px 0px 0px 6.5px #00bcd4;
    background: #fff !important;
    color: #00bcd4; 
}
.cd-tab-filter a.selected {
    background: transparent;
    color: #00bcd4;
    /* create border bottom using box-shadow property */
    /* box-shadow: inset 0 -2px 0 #41307c; */
}
.cd-tab-filter.is-open ul li {
    display: inline-block;
}
/*}*/
@media only screen and (min-width: 1170px) {
    .cd-tab-filter {
        /* tabbed navigation on big devices */
        width: 100%;
        float: right;
        margin: 0;
        -webkit-transition: width 0.3s;
        -moz-transition: width 0.3s;
        transition: width 0.3s;
    }
    .cd-tab-filter.filter-is-visible {
        /* reduce width when filter is visible */
        width: 80%;
    }
}

/* -------------------------------- 

xgallery 

-------------------------------- */
.cd-gallery {
    /*padding: 26px 5%;*/
    width: 100%;
}
.cd-gallery li {
    margin-bottom: 1.6em;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
    display: none;
}
.cd-gallery li.gap {
    /* used in combination with text-align: justify to align gallery elements */
    opacity: 0;
    height: 0;
    display: inline-block;
}
.cd-gallery img {
    display: block;
    width: 100%;
}
.cd-gallery .cd-fail-message {
    display: none;
    text-align: center;
}
@media only screen and (min-width: 768px) {
    .cd-gallery {
        padding: 15px 0;
    }
    .cd-gallery ul {
        text-align: justify;
        margin-bottom: 0;
    }
    .cd-gallery ul:after {
        content: "";
        display: table;
        clear: both;
    }
    .collection2 .cd-gallery li {
        margin-bottom: 20px;
    }
    .collection2 .cd-gallery li.gap {
        margin-bottom: 0px;
    }
    .cd-gallery li {
        width: 24% !important;
        margin-bottom: 0em;
    }   
    /*Effect 25*/
    .grid_gallery3 li {
        width: 33.08% !important;
    }
}
@media only screen and (min-width: 1170px) {
    .cd-gallery {
        /*padding: 50px 2%;*/
        float: right;
        -webkit-transition: width 0.3s;
        -moz-transition: width 0.3s;
        transition: width 0.3s;
    }
    .cd-gallery li {
        width: 22%;
    }
    .cd-gallery.filter-is-visible {
        /* reduce width when filter is visible */
        width: 80%;
    }
}

@media (max-width:767px){
    .cd-tab-filter li:after{
        display: none;
    }
    .cd-gallery{
        /*padding-top: 70px !important;*/
    }
    .cd-tab-filter a{
        /*width: 50px !important;*/
        text-align: center
    }
}