

/* -------------------------------- 

xtab-filter 

-------------------------------- */
.cd-tab-filter-wrapper {
    z-index: 1;

    background-color: #fff;
    box-shadow: 0 1px 1px rgba(0, 0, 0, .08);
}
.cd-tab-filter-wrapper:after {
    display: table;
    clear: both;

    content: "";
}

.cd-tab-filter {
    /* tabbed navigation style on mobile - dropdown */
    position: relative;
    z-index: 1;

    width: 140px;
    height: 50px;
    margin: 0 auto;
}
.cd-tab-filter::after {
    position: absolute;
    top: 50%;
    right: 14px;
    bottom: auto;

    display: inline-block;
    width: 16px;
    height: 16px;
    /* small arrow icon */

    content: "";
    -webkit-transition: all .3s;
       -moz-transition: all .3s;
            transition: all .3s;
    -webkit-transform: translateY(-50%);
       -moz-transform: translateY(-50%);
        -ms-transform: translateY(-50%);
         -o-transform: translateY(-50%);
            transform: translateY(-50%);
    pointer-events: none;

    background: url("../images/cd-icon-arrow.svg") no-repeat center center;
}
.cd-tab-filter ul {
    position: absolute;
    top: 0;
    left: 0;

    background-color: #fff;
    box-shadow: inset 0 -2px 0 #41307c;
}
.cd-tab-filter li {
    display: none;
}
.cd-tab-filter li:first-child {
    /* this way the placehodler is alway visible */
    display: block;
}
.cd-tab-filter a {
    display: block;
    width: 140px;
    /* set same size of the .cd-tab-filter */
    height: 50px;
    padding-left: 14px;

    line-height: 50px;
}
.cd-tab-filter a.selected {
    color: #fff;
    background: #41307c;
}
.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, .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 {
        position: static;

        text-align: center;

        background: transparent;
        box-shadow: none;
    }
    .cd-tab-filter li {
        display: inline-block;
    }
    .cd-tab-filter li.placeholder {
        display: none !important;
    }
    .cd-tab-filter a {
        display: inline-block;
        width: auto;
        padding: 0 1em;

        font-size: 1.3rem;
        font-weight: 700;

        text-transform: uppercase;

        color: #9a9a9a;
    }
    .no-touch .cd-tab-filter a:hover {
        color: #41307c;
    }
    .cd-tab-filter a.selected {
        color: #41307c;
        background: transparent;
        /* 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 {
        float: right;
        /* tabbed navigation on big devices */
        width: 100%;
        margin: 0;

        -webkit-transition: width .3s;
           -moz-transition: width .3s;
                transition: width .3s;
    }
    .cd-tab-filter.filter-is-visible {
        /* reduce width when filter is visible */
        width: 80%;
    }
}

/* -------------------------------- 

xgallery 

-------------------------------- */
.cd-gallery {
    width: 100%;
    /* padding: 26px 5%; */
}
.cd-gallery li {
    display: none;
    /* margin-bottom: 1.6em; */
    /* box-shadow: 0 1px 4px rgba(0, 0, 0, .1); */
}
.cd-gallery li.gap {
    display: inline-block;
    height: 0;
    /* used in combination with text-align: justify to align gallery elements */

    opacity: 0;
}
.cd-gallery images {
    display: block;
    width: 100%;
}
.cd-gallery .cd-fail-message {
    display: none;

    text-align: center;
}
@media only screen and (min-width: 768px) {
    .cd-gallery {
        /* padding: 40px 3%; */
    }
    .cd-gallery ul {
        /* text-align: justify; */
    }
    .cd-gallery ul:after {
        display: table;
        clear: both;

        content: "";
    }
    .cd-gallery li {
        /* width: 48%; */
        /* margin-bottom: 2em; */
    }
}
@media only screen and (min-width: 1170px) {
    .cd-gallery {
        /* float: right; */
        /* padding: 50px 2%; */
        -webkit-transition: width .3s;
           -moz-transition: width .3s;
                transition: width .3s;
    }
    .cd-gallery li {
        /* width: 23%; */
    }
    .cd-gallery.filter-is-visible {
        /* reduce width when filter is visible */
        width: 80%;
    }
}

/* -------------------------------- 

xfilter 

-------------------------------- */
.cd-filter {
    /* position: absolute; */
    /* top: 0; */
    /* left: 0; */
    /* z-index: 2; */
    /* width: 280px; */
    /* height: 100%; */
    /* -webkit-transition: -webkit-transform .3s, box-shadow .3s; */
    -moz-transition: -moz-transform .3s, box-shadow .3s;
    /* transition:         transform .3s, box-shadow .3s; */
    /* Force Hardware Acceleration in WebKit */
    /* -webkit-transform: translateZ(0); */
    /* -webkit-transform: translateX(-100%); */
    -moz-transform: translateZ(0);
    -moz-transform: translateX(-100%);
     -ms-transform: translateZ(0);
     -ms-transform: translateX(-100%);
      -o-transform: translateZ(0);
      -o-transform: translateX(-100%);
    /* transform: translateZ(0); */
    /* transform: translateX(-100%); */
    /* background: #fff; */
    /* box-shadow: 4px 4px 20px transparent; */
    /* -webkit-backface-visibility: hidden; */
    /* backface-visibility: hidden; */
}
.cd-filter::before {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 2;

    width: 100%;
    height: 50px;
    /* top colored bar */
    /* content: ""; */
    /* background-color: #41307c; */
}
.cd-filter form {
    /* padding: 70px 20px; */
    display: flex;

    align-items: center;
}
.cd-filter .cd-close {
    position: absolute;
    top: 0;
    right: 0;
    z-index: 3;

    width: 60px;
    height: 50px;

    font-size: 1.3rem;
    line-height: 50px;

    -webkit-transition: opacity .3s;
       -moz-transition: opacity .3s;
            transition: opacity .3s;
    text-align: center;

    opacity: 0;
    color: #fff;
    background: #37296a;
}
.no-touch .cd-filter .cd-close:hover {
    background: #32255f;
}
.cd-filter.filter-is-visible {
    -webkit-transform: translateX(0);
       -moz-transform: translateX(0);
        -ms-transform: translateX(0);
         -o-transform: translateX(0);
            transform: translateX(0);

    box-shadow: 4px 4px 20px rgba(0, 0, 0, .2);
}
.cd-filter.filter-is-visible .cd-close {
    opacity: 1;
}
@media only screen and (min-width: 1170px) {
    .cd-filter {
        /* width: 20%; */
    }
    .cd-filter form {
        /* padding: 70px 10%; */
    }
}

.cd-filter-trigger {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 3;

    width: 60px;
    height: 50px;
    /* image replacement */
    overflow: hidden;

    line-height: 50px;

    white-space: nowrap;
    text-indent: 100%;

    color: transparent;
    background: transparent url("../images/cd-icon-filter.svg") no-repeat center center;
}
.cd-filter-trigger.filter-is-visible {
    pointer-events: none;
}
@media only screen and (min-width: 1170px) {
    .cd-filter-trigger {
        left: 2%;

        width: auto;
        padding-left: 24px;

        font-size: 1.3rem;
        font-weight: 700;

        -webkit-transition: color .3s;
           -moz-transition: color .3s;
                transition: color .3s;
        text-indent: 0;
        text-transform: uppercase;

        color: #9a9a9a;
        background-position: left center;
    }
    .no-touch .cd-filter-trigger:hover {
        color: #41307c;
    }
    .cd-filter-trigger.filter-is-visible,
    .cd-filter-trigger.filter-is-visible:hover {
        color: #fff;
    }
}

/* -------------------------------- 

xcustom form elements 

-------------------------------- */
.cd-filter-block {
    width: 100%;
    margin-bottom: 1.6em;
    /* text-align: center; */
}
.cd-filter-block h4 {
    /* filter block title */
    position: relative;

    padding: 10px 0 10px 20px;
    margin-bottom: .2em;

    font-size: 1.3rem;
    font-weight: 700;

    cursor: pointer;
    -webkit-user-select: none;
       -moz-user-select: none;
        -ms-user-select: none;
            user-select: none;
    text-transform: uppercase;

    color: #9a9a9a;
}
.no-touch .cd-filter-block h4:hover {
    color: #41307c;
}
.cd-filter-block h4::before {
    position: absolute;
    top: 50%;
    left: 0;

    width: 16px;
    height: 16px;
    /* arrow */

    content: "";
    -webkit-transition: -webkit-transform .3s;
       -moz-transition:    -moz-transform .3s;
            transition:         transform .3s;
    -webkit-transform: translateY(-50%);
       -moz-transform: translateY(-50%);
        -ms-transform: translateY(-50%);
         -o-transform: translateY(-50%);
            transform: translateY(-50%);

    background: url("../images/cd-icon-arrow.svg") no-repeat center center;
}
.cd-filter-block h4.closed::before {
    -webkit-transform: translateY(-50%) rotate(-90deg);
       -moz-transform: translateY(-50%) rotate(-90deg);
        -ms-transform: translateY(-50%) rotate(-90deg);
         -o-transform: translateY(-50%) rotate(-90deg);
            transform: translateY(-50%) rotate(-90deg);
}
.cd-filter-block input,
.cd-filter-block select,
.cd-filter-block .radio-label::before,
.cd-filter-block .checkbox-label::before {
    /* shared style for input elements */
    /* font-family: "Open Sans", sans-serif; */
    /* border: 2px solid #e6e6e6; */
    /* border-radius: 0; */
    /* background-color: #fff; */
}
.cd-filter-block input[type="search"],
.cd-filter-block input[type="text"],
.cd-filter-block select {
    width: 100%;
    padding: 1.5em 1em !important;

    box-shadow: none;

    -webkit-appearance: none;
       -moz-appearance: none;
        -ms-appearance: none;
         -o-appearance: none;
            appearance: none;
}
.cd-filter-block input[type="search"]:focus,
.cd-filter-block input[type="text"]:focus,
.cd-filter-block select:focus {
    border-color: #41307c;
    outline: none;
    background-color: #fff;
}
.cd-filter-block input[type="search"] {
    /* prevent jump - ios devices */
    font-size: 1.6rem !important;
    /* custom style for the search element */

    border-color: transparent;
    background-color: #e6e6e6;
}
.cd-filter-block input[type="search"]::-webkit-search-cancel-button {
    display: none;
}
.cd-filter-block .cd-select {
    /* select element wrapper */
    position: relative;
}
.cd-filter-block .cd-select::after {
    position: absolute;
    top: 50%;
    right: 14px;
    z-index: 1;

    display: block;
    width: 16px;
    height: 16px;
    /* switcher arrow for select element */

    content: "";
    -webkit-transform: translateY(-50%);
       -moz-transform: translateY(-50%);
        -ms-transform: translateY(-50%);
         -o-transform: translateY(-50%);
            transform: translateY(-50%);
    pointer-events: none;

    background: url("../images/cd-icon-arrow.svg") no-repeat center center;
}
.cd-filter-block select {
    /* font-size: 1.4rem; */
    cursor: pointer;
}
.cd-filter-block select::-ms-expand {
    display: none;
}
.cd-filter-block .list li {
    position: relative;

    margin-bottom: .8em;
}
.cd-filter-block .list li:last-of-type {
    margin-bottom: 0;
}
.cd-filter-block input[type=radio],
.cd-filter-block input[type=checkbox] {
    /* hide original check and radio buttons */
    position: absolute;
    top: 0;
    left: 0;
    z-index: 2;

    padding: 0;
    margin: 0;

    opacity: 0;
}
.cd-filter-block .checkbox-label,
.cd-filter-block .radio-label {
    padding-left: 24px;

    font-size: 1.4rem;

    -webkit-user-select: none;
       -moz-user-select: none;
        -ms-user-select: none;
            user-select: none;
}
.cd-filter-block .checkbox-label::before,
.cd-filter-block .checkbox-label::after,
.cd-filter-block .radio-label::before,
.cd-filter-block .radio-label::after {
    position: absolute;
    top: 50%;

    display: block;
    /* custom radio and check boxes */

    content: "";
    -webkit-transform: translateY(-50%);
       -moz-transform: translateY(-50%);
        -ms-transform: translateY(-50%);
         -o-transform: translateY(-50%);
            transform: translateY(-50%);
}
.cd-filter-block .checkbox-label::before,
.cd-filter-block .radio-label::before {
    left: 0;

    width: 16px;
    height: 16px;
}
.cd-filter-block .checkbox-label::after,
.cd-filter-block .radio-label::after {
    /* check mark - hidden */
    display: none;
}
.cd-filter-block .checkbox-label::after {
    /* check mark style for check boxes */
    width: 16px;
    height: 16px;

    background: url("../images/cd-icon-check.svg") no-repeat center center;
}
.cd-filter-block .radio-label::before,
.cd-filter-block .radio-label::after {
    border-radius: 50%;
}
.cd-filter-block .radio-label::after {
    left: 5px;
    /* check mark style for radio buttons */

    width: 6px;
    height: 6px;

    background-color: #fff;
}
.cd-filter-block input[type=radio]:checked + label::before,
.cd-filter-block input[type=checkbox]:checked + label::before {
    border-color: #41307c;
    background-color: #41307c;
}
.cd-filter-block input[type=radio]:checked + label::after,
.cd-filter-block input[type=checkbox]:checked + label::after {
    display: block;
}

@-moz-document url-prefix() {
    /* hide custom arrow on Firefox - select element */
    .cd-filter-block .cd-select::after {
        display: none;
    }
}
@media (min-width:768px) {
    .cd-filter-block {
        margin-right: 15px;
        margin-bottom: 0;
    }
}
@media (min-width: 992px) {
}
