.fnc-slider {
    overflow: hidden;
    box-sizing: border-box;
    position: relative;
    height: calc( 100vh - 105px);
    max-height:700px;
}

    .fnc-slider *, .fnc-slider *:before, .fnc-slider *:after {
        box-sizing: border-box;
    }

.fnc-slider__slides {
    position: relative;
    height: 100%;
    transition: -webkit-transform 1s 0.6666666667s;
    transition: transform 1s 0.6666666667s;
    transition: transform 1s 0.6666666667s, -webkit-transform 1s 0.6666666667s;
}

.fnc-slider .m--blend-dark .fnc-slide__inner {
    background-color: #8a8a8a;
}

.fnc-slider .m--navbg-dark {
    background-color: #575757;
}

.fnc-slider .m--blend-green .fnc-slide__inner {
    background-color: #6d9b98;
}

.fnc-slider .m--blend-red .fnc-slide__inner {
    background-color: #ea2329;
}

.fnc-slider .m--navbg-red {
    background-color: #990e13;
}

.fnc-slider .m--blend-blue .fnc-slide__inner {
    background-color: #59aecb;
}

.fnc-slider .m--navbg-blue {
    background-color: #bbbbbb;
}

.fnc-slide {
    overflow: hidden;
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    -webkit-transform: translate3d(0, 0, 0);
    transform: translate3d(0, 0, 0);
}

    .fnc-slide.m--before-sliding {
        z-index: 2 !important;
        -webkit-transform: translate3d(100%, 0, 0);
        transform: translate3d(100%, 0, 0);
    }

    .fnc-slide.m--active-slide {
        z-index: 1;
        transition: -webkit-transform 1s 0.6666666667s ease-in-out;
        transition: transform 1s 0.6666666667s ease-in-out;
        transition: transform 1s 0.6666666667s ease-in-out, -webkit-transform 1s 0.6666666667s ease-in-out;
        -webkit-transform: translate3d(0, 0, 0);
        transform: translate3d(0, 0, 0);
    }

.fnc-slide__inner {
    position: relative;
    height: 100%;
    background-size: cover;
    background-position: center top;
    -webkit-transform: translate3d(0, 0, 0);
    transform: translate3d(0, 0, 0);
}

.m--global-blending-active .fnc-slide__inner, .m--blend-bg-active .fnc-slide__inner {
    background-blend-mode: luminosity;
}

.m--before-sliding .fnc-slide__inner {
    -webkit-transform: translate3d(-100%, 0, 0);
    transform: translate3d(-100%, 0, 0);
}

.m--active-slide .fnc-slide__inner {
    transition: -webkit-transform 1s 0.6666666667s ease-in-out;
    transition: transform 1s 0.6666666667s ease-in-out;
    transition: transform 1s 0.6666666667s ease-in-out, -webkit-transform 1s 0.6666666667s ease-in-out;
    -webkit-transform: translate3d(0, 0, 0);
    transform: translate3d(0, 0, 0);
}

.fnc-slide__content {
    z-index: 2;
    position: absolute;
    /* right: 0; */
    left: 0;
    text-align: center;
    bottom: 25px;
    background: #fff;
}

.fnc-slide__heading {
    margin: 0;
    font-size: 5px;
}

.fnc-slide__heading-line {
    font-family: 'Playfair Display', serif;
    overflow: hidden;
    position: relative;
    padding: 25px 20px 25px 0;
    font-size: 25px;
    color: #747071;
    word-spacing: 10px;
}

    .fnc-slide__heading-line:nth-child(2) {
        padding-left: 30px;
    }

.m--before-sliding .fnc-slide__heading-line {
    -webkit-transform: translateY(100%);
    transform: translateY(100%);
}

.m--active-slide .fnc-slide__heading-line {
    transition: -webkit-transform 1.5s 1s;
    transition: transform 1.5s 1s;
    transition: transform 1.5s 1s, -webkit-transform 1.5s 1s;
    -webkit-transform: translateY(0);
    transform: translateY(0);
}

.m--previous-slide .fnc-slide__heading-line {
    transition: -webkit-transform 1.5s;
    transition: transform 1.5s;
    transition: transform 1.5s, -webkit-transform 1.5s;
    -webkit-transform: translateY(-100%);
    transform: translateY(-100%);
}

.fnc-slide__heading-line span {
    display: block;
}

    .fnc-slide__heading-line span p span {
        display: inline-block;
    }

.m--before-sliding .fnc-slide__heading-line span {
    -webkit-transform: translateY(-100%);
    transform: translateY(-100%);
}

.m--active-slide .fnc-slide__heading-line span {
    transition: -webkit-transform 1.5s 1s;
    transition: transform 1.5s 1s;
    transition: transform 1.5s 1s, -webkit-transform 1.5s 1s;
    -webkit-transform: translateY(0);
    transform: translateY(0);
}

.m--previous-slide .fnc-slide__heading-line span {
    transition: -webkit-transform 1.5s;
    transition: transform 1.5s;
    transition: transform 1.5s, -webkit-transform 1.5s;
    -webkit-transform: translateY(100%);
    transform: translateY(100%);
}

.fnc-slide__action-btn {
    position: relative;
    /*margin-left: 200px;*/
    padding: 7px 15px;
    font-size: 18px;
    line-height: 1;
    color: transparent;
    border: none;
    text-transform: uppercase;
    background: transparent;
    cursor: pointer;
    text-align: center;
    outline: none;
    display: inline-block;
}

    .fnc-slide__action-btn span {
        position: absolute;
        left: 0;
        top: 0;
        width: 100%;
        height: 100%;
        -webkit-perspective: 1000px;
        perspective: 1000px;
        -webkit-transform-style: preserve-3d;
        transform-style: preserve-3d;
        transition: -webkit-transform 0.3s;
        transition: transform 0.3s;
        transition: transform 0.3s, -webkit-transform 0.3s;
        -webkit-transform-origin: 50% 0;
        transform-origin: 50% 0;
        line-height: 32px;
        color: #ffffff;
        background: #9e7ba8;
    }

        .fnc-slide__action-btn span:before {
            content: "";
            position: absolute;
            left: 0;
            top: 0;
            width: 100%;
            height: 100%;
            border: 2px solid #9e7ba8;
            border-top: none;
            border-bottom: none;
        }

        .fnc-slide__action-btn span:after {
            content: attr(data-text);
            position: absolute;
            left: 0;
            top: 0;
            width: 100%;
            height: 100%;
            line-height: 40px;
            background: #c9b5ce;
            opacity: 0;
            -webkit-transform-origin: 50% 0;
            transform-origin: 50% 0;
            -webkit-transform: translateY(100%) rotateX(-90deg);
            transform: translateY(100%) rotateX(-90deg);
            transition: opacity 0.15s 0.15s;
        }

    .fnc-slide__action-btn:hover span {
        -webkit-transform: rotateX(90deg);
        transform: rotateX(90deg);
    }

        .fnc-slide__action-btn:hover span:after {
            opacity: 1;
            transition: opacity 0.15s;
        }

.fnc-nav {
    z-index: 5;
    position: absolute;
    right: 10px;
    bottom: 10px;
    height: 8px;
    /* width: 100%; */
    text-align: center;
}

.fnc-nav__bgs {
    z-index: -1;
    overflow: hidden;
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
}

.fnc-nav__bg {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
}

    .fnc-nav__bg.m--nav-bg-before {
        z-index: 2 !important;
        -webkit-transform: translateX(100%);
        transform: translateX(100%);
    }

    .fnc-nav__bg.m--active-nav-bg {
        z-index: 1;
        transition: -webkit-transform 1s 0.6666666667s;
        transition: transform 1s 0.6666666667s;
        transition: transform 1s 0.6666666667s, -webkit-transform 1s 0.6666666667s;
        -webkit-transform: translateX(0);
        transform: translateX(0);
    }

.fnc-nav__controls {
    font-size: 0;
}

.fnc-nav__control {
    overflow: hidden;
    position: relative;
    display: inline-block;
    vertical-align: top;
    width: 40px;
    height: 8px;
    font-size: 14px;
    color: #fff;
    text-transform: uppercase;
    background: #9f7ba9;
    border: none;
    outline: none;
    cursor: pointer;
    transition: background-color 0.5s;
    margin: 0 5px;
}

    .fnc-nav__control.m--active-control {
        background: rgba(31, 40, 51, 0.73);
    }

.fnc-nav__control-progress {
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 2px;
    background: #fff;
    -webkit-transform-origin: 0 50%;
    transform-origin: 0 50%;
    -webkit-transform: scaleX(0);
    transform: scaleX(0);
    transition-timing-function: linear !important;
}

.m--with-autosliding .m--active-control .fnc-nav__control-progress {
    -webkit-transform: scaleX(1);
    transform: scaleX(1);
}

.m--prev-control .fnc-nav__control-progress {
    -webkit-transform: translateX(100%);
    transform: translateX(100%);
    transition: -webkit-transform 0.5s !important;
    transition: transform 0.5s !important;
    transition: transform 0.5s, -webkit-transform 0.5s !important;
}

.m--reset-progress .fnc-nav__control-progress {
    -webkit-transform: scaleX(0);
    transform: scaleX(0);
    transition: -webkit-transform 0s 0s !important;
    transition: transform 0s 0s !important;
    transition: transform 0s 0s, -webkit-transform 0s 0s !important;
}

.m--autosliding-blocked .fnc-nav__control-progress {
    transition: all 0s 0s !important;
    -webkit-transform: scaleX(0) !important;
    transform: scaleX(0) !important;
}

.demo-cont {
    overflow: hidden;
    position: relative;
    height: 100vh;
    -webkit-perspective: 1500px;
    perspective: 1500px;
    background: #000;
}

.demo-cont__credits {
    box-sizing: border-box;
    overflow-y: auto;
    z-index: 1;
    position: absolute;
    right: 0;
    top: 0;
    width: 400px;
    height: 100%;
    padding: 20px 10px 30px;
    background: #303030;
    font-family: "Open Sans", Helvetica, Arial, sans-serif;
    color: #fff;
    text-align: center;
    transition: -webkit-transform 0.7s;
    transition: transform 0.7s;
    transition: transform 0.7s, -webkit-transform 0.7s;
    -webkit-transform: translate3d(100%, 0, 0) rotateY(-45deg);
    transform: translate3d(100%, 0, 0) rotateY(-45deg);
    will-change: transform;
}

.credits-active .demo-cont__credits {
    transition: -webkit-transform 0.7s 0.2333333333s;
    transition: transform 0.7s 0.2333333333s;
    transition: transform 0.7s 0.2333333333s, -webkit-transform 0.7s 0.2333333333s;
    -webkit-transform: translate3d(0, 0, 0);
    transform: translate3d(0, 0, 0);
}

.demo-cont__credits *, .demo-cont__credits *:before, .demo-cont__credits *:after {
    box-sizing: border-box;
}

.demo-cont__credits-close {
    position: absolute;
    right: 20px;
    top: 20px;
    width: 28px;
    height: 28px;
    cursor: pointer;
}

    .demo-cont__credits-close:before, .demo-cont__credits-close:after {
        content: "";
        position: absolute;
        left: 0;
        top: 50%;
        width: 100%;
        height: 2px;
        margin-top: -1px;
        background: #fff;
    }

    .demo-cont__credits-close:before {
        -webkit-transform: rotate(45deg);
        transform: rotate(45deg);
    }

    .demo-cont__credits-close:after {
        -webkit-transform: rotate(-45deg);
        transform: rotate(-45deg);
    }

.demo-cont__credits-heading {
    text-transform: uppercase;
    font-size: 40px;
    margin-bottom: 20px;
}

.demo-cont__credits-img {
    display: block;
    width: 60%;
    margin: 0 auto 30px;
    border-radius: 10px;
}

.demo-cont__credits-name {
    margin-bottom: 20px;
    font-size: 30px;
}

.demo-cont__credits-link {
    display: block;
    margin-bottom: 10px;
    font-size: 24px;
    color: #fff;
}

.demo-cont__credits-blend {
    font-size: 30px;
    margin-bottom: 10px;
}

.example-slider {
    z-index: 2;
    -webkit-transform: translate3d(0, 0, 0);
    transform: translate3d(0, 0, 0);
    transition: -webkit-transform 0.7s;
    transition: transform 0.7s;
    transition: transform 0.7s, -webkit-transform 0.7s;
}

.credits-active .example-slider {
    -webkit-transform: translate3d(-400px, 0, 0) rotateY(10deg) scale(0.9);
    transform: translate3d(-400px, 0, 0) rotateY(10deg) scale(0.9);
}

    .example-slider .fnc-slide-3 .fnc-slide__inner:before {
        content: "";
        position: absolute;
        left: 0;
        top: 0;
        width: 100%;
        height: 100%;
        background: rgba(255, 255, 255, 0.1);
    }

    .example-slider .fnc-slide-4 .fnc-slide__inner:before {
        content: "";
        position: absolute;
        left: 0;
        top: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.2);
    }

.example-slider .fnc-slide__heading,
.example-slider .fnc-slide__action-btn,
.example-slider .fnc-nav__control {
    font-family: 'Playfair Display';
}

/* COLORFUL SWITCH STYLES 
   ORIGINAL DEMO - https://codepen.io/suez/pen/WQjwOb */
.colorful-switch {
    position: relative;
    width: 180px;
    height: 77.1428571429px;
    margin: 0 auto;
    border-radius: 32.1428571429px;
    background: #cfcfcf;
}

    .colorful-switch:before {
        content: "";
        z-index: -1;
        position: absolute;
        left: -5px;
        top: -5px;
        width: 190px;
        height: 87.1428571429px;
        border-radius: 37.1428571429px;
        background: #314239;
        transition: background-color 0.3s;
    }

    .colorful-switch:hover:before {
        background: #4C735F;
    }

.colorful-switch__checkbox {
    z-index: -10;
    position: absolute;
    left: 0;
    top: 0;
    opacity: 0;
}

.colorful-switch__label {
    z-index: 1;
    overflow: hidden;
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    border-radius: 32.1428571429px;
    cursor: pointer;
}

.colorful-switch__bg {
    position: absolute;
    left: 0;
    top: 0;
    width: 540px;
    height: 100%;
    background: linear-gradient(90deg, #14DCD6 0, #10E7BD 180px, #EF9C29 360px, #E76339 100%);
    transition: -webkit-transform 0.5s;
    transition: transform 0.5s;
    transition: transform 0.5s, -webkit-transform 0.5s;
    -webkit-transform: translate3d(-360px, 0, 0);
    transform: translate3d(-360px, 0, 0);
}

.colorful-switch__checkbox:checked ~ .colorful-switch__label .colorful-switch__bg {
    -webkit-transform: translate3d(0, 0, 0);
    transform: translate3d(0, 0, 0);
}

.colorful-switch__dot {
    position: absolute;
    left: 131.1428571429px;
    top: 50%;
    width: 5.1428571429px;
    height: 5.1428571429px;
    margin-left: -2.5714285714px;
    margin-top: -2.5714285714px;
    border-radius: 50%;
    background: #fff;
    transition: -webkit-transform 0.5s;
    transition: transform 0.5s;
    transition: transform 0.5s, -webkit-transform 0.5s;
    -webkit-transform: translate3d(0, 0, 0);
    transform: translate3d(0, 0, 0);
}

.colorful-switch__checkbox:checked ~ .colorful-switch__label .colorful-switch__dot {
    -webkit-transform: translate3d(-80.3571428571px, 0, 0);
    transform: translate3d(-80.3571428571px, 0, 0);
}

.colorful-switch__on {
    position: absolute;
    left: 104.1428571429px;
    top: 22.5px;
    width: 19.2857142857px;
    height: 36px;
    transition: -webkit-transform 0.5s;
    transition: transform 0.5s;
    transition: transform 0.5s, -webkit-transform 0.5s;
    -webkit-transform: translate3d(0, 0, 0);
    transform: translate3d(0, 0, 0);
}

.colorful-switch__checkbox:checked ~ .colorful-switch__label .colorful-switch__on {
    -webkit-transform: translate3d(-80.3571428571px, 0, 0);
    transform: translate3d(-80.3571428571px, 0, 0);
}

.colorful-switch__on__inner {
    position: absolute;
    width: 100%;
    height: 100%;
    transition: -webkit-transform 0.25s 0s cubic-bezier(0.52, -0.96, 0.51, 1.28);
    transition: transform 0.25s 0s cubic-bezier(0.52, -0.96, 0.51, 1.28);
    transition: transform 0.25s 0s cubic-bezier(0.52, -0.96, 0.51, 1.28), -webkit-transform 0.25s 0s cubic-bezier(0.52, -0.96, 0.51, 1.28);
    -webkit-transform-origin: 100% 50%;
    transform-origin: 100% 50%;
    -webkit-transform: rotate(45deg) scale(0) translateZ(0);
    transform: rotate(45deg) scale(0) translateZ(0);
}

.colorful-switch__checkbox:checked ~ .colorful-switch__label .colorful-switch__on__inner {
    transition: -webkit-transform 0.25s 0.25s cubic-bezier(0.67, -0.16, 0.47, 1.61);
    transition: transform 0.25s 0.25s cubic-bezier(0.67, -0.16, 0.47, 1.61);
    transition: transform 0.25s 0.25s cubic-bezier(0.67, -0.16, 0.47, 1.61), -webkit-transform 0.25s 0.25s cubic-bezier(0.67, -0.16, 0.47, 1.61);
    -webkit-transform: rotate(45deg) scale(1) translateZ(0);
    transform: rotate(45deg) scale(1) translateZ(0);
}

.colorful-switch__on__inner:before, .colorful-switch__on__inner:after {
    content: "";
    position: absolute;
    border-radius: 2.5714285714px;
    background: #fff;
}

.colorful-switch__on__inner:before {
    left: 0;
    bottom: 0;
    width: 100%;
    height: 6.1428571429px;
}

.colorful-switch__on__inner:after {
    right: 0;
    top: 0;
    width: 6.1428571429px;
    height: 100%;
}

.colorful-switch__off {
    position: absolute;
    left: 131.1428571429px;
    top: 50%;
    width: 41.1428571429px;
    height: 41.1428571429px;
    margin-left: -20.5714285714px;
    margin-top: -20.5714285714px;
    transition: -webkit-transform 0.5s;
    transition: transform 0.5s;
    transition: transform 0.5s, -webkit-transform 0.5s;
    -webkit-transform: translate3d(0, 0, 0);
    transform: translate3d(0, 0, 0);
}

.colorful-switch__checkbox:checked ~ .colorful-switch__label .colorful-switch__off {
    -webkit-transform: translate3d(-80.3571428571px, 0, 0);
    transform: translate3d(-80.3571428571px, 0, 0);
}

.colorful-switch__off:before, .colorful-switch__off:after {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    width: 100%;
    height: 5.1428571429px;
    margin-top: -2.5714285714px;
    border-radius: 2.5714285714px;
    background: #fff;
    transition: -webkit-transform 0.25s 0.25s;
    transition: transform 0.25s 0.25s;
    transition: transform 0.25s 0.25s, -webkit-transform 0.25s 0.25s;
}

.colorful-switch__checkbox:checked ~ .colorful-switch__label .colorful-switch__off:before, .colorful-switch__checkbox:checked ~ .colorful-switch__label .colorful-switch__off:after {
    transition-delay: 0s;
}

.colorful-switch__off:before {
    -webkit-transform: rotate(45deg) scaleX(1) translateZ(0);
    transform: rotate(45deg) scaleX(1) translateZ(0);
}

.colorful-switch__checkbox:checked ~ .colorful-switch__label .colorful-switch__off:before {
    -webkit-transform: rotate(45deg) scaleX(0) translateZ(0);
    transform: rotate(45deg) scaleX(0) translateZ(0);
}

.colorful-switch__off:after {
    transition-timing-function: cubic-bezier(0.67, -0.16, 0.47, 1.61);
    -webkit-transform: rotate(-45deg) scaleX(1) translateZ(0);
    transform: rotate(-45deg) scaleX(1) translateZ(0);
}

.colorful-switch__checkbox:checked ~ .colorful-switch__label .colorful-switch__off:after {
    transition-timing-function: ease;
    -webkit-transform: rotate(-45deg) scaleX(0) translateZ(0);
    transform: rotate(-45deg) scaleX(0) translateZ(0);
}

@media only screen and (max-width: 1024px) {
    .fnc-slide__mask {
        left: 65%;
        width: 43.25vh;
        height: 57vh;
        -webkit-clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%, 0 0, 6vh 0, 6vh 51vh, 37vh 51vh, 37vh 6vh, 6vh 6vh);
        clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%, 0 0, 6vh 0, 6vh 51vh, 37vh 51vh, 37vh 6vh, 6vh 6vh);
    }

    /*.fnc-slide__content {
        right: 31%;
    }*/

    .fnc-slide__heading-line {
        font-size: 45px;
    }
}



@media only screen and (max-width: 726px) {
    .fnc-slide__heading-line {
        font-size: 35px;
    }

    /*.fnc-slide__content {
        right: 25%;
    }*/
}

@media only screen and (max-width: 477px) {
    .fnc-slide__heading-line {
        font-size: 25px;
    }
}

@media only screen and (max-width: 375px) {
    .fnc-slide__heading-line {
        font-size: 20px;
    }

    /*.fnc-slide__content {
        right: 2%;
    }*/
}
