.cdt-parallax-header {
    z-index: -1;
}

.page-template-default:not(.home) .cdt-parallax-header-img, .page:not(.home) .cdt-parallax-header-img, .single-cdt-map .cdt-parallax-header-img, .cdt-front-page-active-map .cdt-parallax-header-img, .single-post .cdt-parallax-header-img {
    height: 300px;
    overflow: hidden;
}

.cdt-parallax-header {
    width: 100%;
    text-align: center;
    align-self: flex-start;
}

.cdt-parallax-header-img {
    width: 100vw;
    left: 50%;
    margin-left: -50vw;
    overflow: hidden;
}

.cdt-parallax-header-img img {
    display: block;
    position: relative;
    width: 100%;
    height: auto;
    width: 2120px;
    margin-left: 0;
    margin-top: -20px;
    transform-origin: center center;
    /*transition: transform ease-out 0.3s;*/
}

.cdt-parallax-header-curves {
    position: absolute;
    top: 0;
    left: 50%;
    width: 100vw;
    left: 50%;
    margin-left: -50vw;
    max-height: calc(100vh - 300px - 122px);
    min-height: 350px;
    z-index: 30;
    overflow: hidden;
}

.home:not(.cdt-front-page-active-map) .cdt-parallax-header-curves {
    max-height: none;
}

.cdt-parallax-header-curves:after {
    display: block;
    position: absolute;
    content: "";
    bottom: 0;
    left: 0;
    height: 150px;
    width: 100%;
    background: linear-gradient(0deg, rgba(255, 255, 255, 1) 0%, rgba(255, 255, 255, 0) 100%);
    border-bottom: 30px solid #fff;
}

.cdt-parallax-header-curves img {
    display: block;
    position: relative;
    height: auto;
    width: 2120px;
    margin-top: -20px;
    transform-origin: center center;
    /*transition: transform ease-out 0.3s;*/
}

.page:not(.home) .cdt-parallax-header-curves:after, .single-post .cdt-parallax-header-curves:after {
    display: block;
    position: absolute;
    content: "";
    width: 100%;
    height: 60px;
    border-bottom: 10px solid var(--white-color);
    left: 0;
    bottom: 0;
    background: rgb(255, 255, 255);
    background: linear-gradient(0deg, rgba(255, 255, 255, 1) 0%, rgba(255, 255, 255, 0) 100%);
}

.cdt-parallax-header-plots {
    position: absolute;
    height: 100%;
    width: 2120px;
    top: 0;
    left: 0;
    overflow: hidden;
    z-index: 40;
}

@media screen and (-ms-high-contrast: active), (-ms-high-contrast: none) {
    .cdt-parallax-header-plots {
        display: none;
    }
 }

.cdt-parallax-header-plots .cdt-parallax-header-plots-box {
    display: block;
    position: relative;
    height: auto;
    width: 2120px;
    margin-top: 20px;
}

.cdt-parallax-header-plots .cdt-parallax-header-plots-box img{
    mask-image: url(/wp-content/themes/cdt/assets/svg/radial-mask.svg);
    mask-repeat: no-repeat;
    mask-origin: 0 0;
    mask-size: 500px 500px;
    -webkit-mask-image: url(/wp-content/themes/cdt/assets/svg/radial-mask.svg);
    -webkit-mask-repeat: no-repeat;
    -webkit-mask-origin: 0 0;
    -webkit-mask-size: 500px 500px;
}

/*.cdt-parallax-header-plots-box {
    position: absolute;
    top: 0;
    left: 0;
    width: 120px;
    height: 120px;
    opacity: 1;
    border-radius: 60px;
    background-attachment: fixed;
    background-size: 2120px auto;
    background-position: 0 0;
    z-index: 10;
}

.cdt-parallax-header-plots:hover .cdt-parallax-header-plots-box {
    opacity: 1;
}*/

/* Slider */

.cdt-parallax-header-slider {
    height: 300px;
}

.cdt-parallax-header-slider .cdt-parallax-header {
    position: absolute;
    top: 0;
    left: 0;
    transition: all 1s ease-in-out;
    opacity: 0;
}

.cdt-parallax-header-slider .cdt-parallax-header.cdt-parallax-header-active {
    opacity: 1;
}

/* Home */

.home:not(.cdt-front-page-active-map) .cdt-parallax-header-img {
    transition: all 0.3s ease-out;
    height: 885px;
}

.home .cdt-parallax-header-slider {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
}

.home:not(.cdt-front-page-active-map) .cdt-parallax-header-slider {
    height: 885px;
}

.home.cdt-front-page-active-map-ow .cdt-parallax-header:first-child, .home.cdt-front-page-active-map-nw .cdt-parallax-header:last-child {
    opacity: 0 !important;
}

.home.cdt-front-page-active-map-ow .cdt-parallax-header:last-child, .home.cdt-front-page-active-map-nw .cdt-parallax-header:first-child {
    opacity: 1 !important;
}

/* Oversize */

@media only screen and (min-width: 2120px) {
    .cdt-parallax-header-img img, .cdt-parallax-header-curves img {
        width: calc(100vw + 200px);
    }
}

.search .cdt-parallax-header-slider {
    display: none;
}

/* Responsive 1120px */

@media only screen and (max-width: 1120px) {
    .page:not(.home) .cdt-parallax-header-img, .page-template-default:not(.home) .cdt-parallax-header-img, .single-cdt-map .cdt-parallax-header-img, .cdt-front-page-active-map .cdt-parallax-header-img, .single-post .cdt-parallax-header-img, .cdt-parallax-header-slider {
        height: 158px;
    }
    .cdt-parallax-header-img .cdt-parallax-header-img-inner, .cdt-parallax-header-curves img {
        transform: none !important;
    }
    .cdt-parallax-header-curves {
        max-height: none;
    }
    .cdt-parallax-header-img img, .cdt-parallax-header-curves img {
        width: 1117px;
    }
    .cdt-parallax-header-plots {
        display: none;
    }
    .home:not(.cdt-front-page-active-map) .cdt-parallax-header-img {
        height: 700px;
    }
    .home:not(.cdt-front-page-active-map) .cdt-parallax-header-img img, .home:not(.cdt-front-page-active-map) .cdt-parallax-header-curves img {
        width: 1750px;
    }
}

/* Responsive 768px */

@media only screen and (max-width: 767px) {
    .page:not(.home) .cdt-parallax-header-img, .page-template-default:not(.home) .cdt-parallax-header-img, .single-cdt-map .cdt-parallax-header-img, .cdt-front-page-active-map .cdt-parallax-header-img, .single-post .cdt-parallax-header-img, .cdt-parallax-header-slider {
        height: 140px;
    }
    .cdt-parallax-header-img img, .cdt-parallax-header-curves img {
        width: 989.3333px;
    }
    .cdt-parallax-header-plots-box {
        background-size: 989.3333px auto;
    }
}