#imageswitcher {
    position: relative;
    width: 100%;
}

#imageswitcher .slide {
    position: absolute;
    height: 100%;
    width: 50%;
    bottom: 0;
    transition: width 1s ease-in-out;
    white-space: nowrap;
    overflow: hidden;
    color: #000;
    background-repeat:no-repeat;
}

#imageswitcher .slide.active {
    width: calc(100% - 340px);
}

#imageswitcher .slide.inactive {
    width: 340px;
}

/*
#imageswitcher .imageswitcher-title, #imageswitcher .imageswitcher-subtitle {
    transform: translate3d(0,40px,0);
    transition: transform 0.5s ease-in-out;
}
*/

#imageswitcher .imageswitcher-title {
    font-family: var(--font-montserrat);
    font-weight: 600;
    font-size: 36px;
    text-transform: uppercase;
    line-height: 1.3;
}

#imageswitcher .btn-primary{
    border-radius: 0;
    font-size: 14px;
    font-family: var(--font-opensan);
    text-transform: uppercase;
    margin-top: 35px;
    text-align: center;
    padding: 10px 25px;
    transition: ease-in-out .3s;
    position: relative;
    border: transparent;
    overflow: hidden;
}

#imageswitcher-right .btn-primary {
    background: #ec654c;
    border: #ec654c;
    transition: ease-in-out .5s;
}

#imageswitcher-right .btn-primary:hover {
    background: #bf523f;
}

#imageswitcher .btn-primary > span {
    display: block;
    width: 100%;
    height: 100%;
    transition: ease-in-out .8s;
}

#imageswitcher .btn-primary:after {
    content: attr(data-hover);
    display: block;
    opacity: 0;
    text-align: center;
    position: absolute;
    left: -100%;
    bottom: 0;
    height: 100%;
    width: 100%;
    padding: 10px 25px;
    background: var(--color-black);
    color: white;
    transition: opacity ease-in-out .5s;

}

#imageswitcher .btn-primary:hover:after {
    left: 0;
    opacity: 1;
}

#imageswitcher .btn-primary:hover span {
    transform: translateX(100%);
}

/*
#imageswitcher .imageswitcher-subtitle {
    position: absolute;
    top: 75px;
    opacity: 0;
    transition: opacity 0.5s ease-in-out,  transform 0.7s ease-in-out;
    text-shadow: 0px 0px 5px #000;
}
*/
.slide:hover .imageswitcher-subtitle {
    transition-delay: 1s;
}

.imageswitcher-innerContent {
    display: block;
    position: relative;
    background: rgba(0, 0, 0, 0.75);
    color: white;
    padding: 90px 35px 35px 35px;
    max-width: 340px;
    transition: ease-in-out .4s;
    height: 100%;
    opacity: 1;
    white-space:normal;
}

.imageswitcher-innerContent:after {
    content: '';
    display: block;
    position: absolute;
    height: 6px;
    width: calc(100% + 200px);
    bottom: 95px;
}


#imageswitcher-right .imageswitcher-innerContent{
    margin-left: auto;
}


#imageswitcher .active .imageswitcher-title {
    transform: translate3d(0, 0, 0);
}

#imageswitcher .active .imageswitcher-subtitle {
    opacity: 1;
    transform: translate3d(0, 0, 0);
}

#imageswitcher-left {
    left: 0;
    background-position: left center;
    /*background-position: -380px 50%;*/
}

#imageswitcher-right {
    right: 0;
    background-position:right center;
    /*background-position: -60px 50%;*/
}

#imageswitcher-left > div {
    left: 100px;
    text-align: left;
}

#imageswitcher-right > div {
    right: 100px;
    text-align: right;
}


@media (max-width: 1280px) {
    #imageswitcher-left > div {
        left: 40px;
    }

    #imageswitcher-right > div {
        right: 40px;
    }
}

@media (max-width: 1130px) {
    #imageswitcher-left > div {
        left: 0;
        padding: 0 40px;
    }

    #imageswitcher-right > div {
        right: 0;
        padding: 0 40px;
    }

    #imageswitcher .slide {
        white-space: initial;
    }
}


@media (max-width: 1024px) {
    #imageswitcher {
        height: 100% !important;
    }

    #imageswitcher .slide {
        background-size: cover;
    }

    #imageswitcher .slide.active, #imageswitcher .slide.inactive {
        width: 100%;
    }

    #imageswitcher .slide {
        width: 100%;
        /*height: 310px;*/
        position: relative;
    }

    #imageswitcher a:last-child .slide {
        background-position: 89% center;
    }

    #imageswitcher .imageswitcher-subtitle {
        opacity: 1;
    }
}

@media (max-width: 640px) {
    .imageswitcher-innerContent{
        padding-top: 30px;
    }
    #imageswitcher-left .imageswitcher-innerContent {
        background: rgb(255,255,255);
        background: -moz-linear-gradient(270deg, rgba(255,255,255,0) 0%, rgba(0,0,0,0.5480567226890756) 100%);
        background: -webkit-linear-gradient(270deg, rgba(255,255,255,0) 0%, rgba(0,0,0,0.5480567226890756) 100%);
        background: linear-gradient(270deg, rgba(255,255,255,0) 0%, rgba(0,0,0,0.5480567226890756) 100%);

    }

    #imageswitcher-right .imageswitcher-innerContent{
        background: rgb(255,255,255);
        background: -moz-linear-gradient(87deg, rgba(255,255,255,0) 0%, rgba(0,0,0,0.5480567226890756) 100%);
        background: -webkit-linear-gradient(87deg, rgba(255,255,255,0) 0%, rgba(0,0,0,0.5480567226890756) 100%);
        background: linear-gradient(87deg, rgba(255,255,255,0) 0%, rgba(0,0,0,0.5480567226890756) 100%);
        filter: progid:DXImageTransform.Microsoft.gradient(startColorstr="#ffffff",endColorstr="#000000",GradientType=1);
    }
    #imageswitcher .imageswitcher-title{
        font-size: 18px;
    }
}


@media screen and (min-width: 2000px) {
    #imageswitcher{
        margin: auto;
    }
    #imageswitcher .slide{
        background-size: cover;
        background-position: top center;
    }
}