.hero-slider {
    height: 500px;
    overflow: hidden;
    margin-left: calc(-100vw / 2 + 100% / 2);
    margin-right: calc(-100vw / 2 + 100% / 2);
    max-width: 100vw;
    width: auto !important;
}

.hero-slider .carousel-cell {
    width: 100%;
    height: 100%;
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
}

.hero-slider .carousel-cell .slide-content {
    position: relative;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    z-index: 1;
}

.hero-slider .carousel-cell .slide-content-inner {
    background: #0079c2a6;
    padding-top: 24px;
    padding-bottom: 16px;
}

.hero-slider .carousel-cell .slide-content p {
    line-height: normal;
}

.hero-slider .carousel-cell .slide-content .title {
    position: relative;
    font-size: 1.8rem;
    font-style: italic;
    color: #ffffff;
}

.hero-slider .carousel-cell .slide-content .caption {
    text-transform: uppercase;
    font-size: 2.5rem;
    font-weight: bold;
    color: #ffffff;
}

/* --------------------------------
Masking
-------------------------------- */
.slide-content .title,
.slide-content .caption {
    position: relative;
    opacity: 0;
    animation-fill-mode: forwards;
}

.slide-content.mask .mask {
    position: relative;
    overflow: hidden;
}

.slide-content.mask .title {
    animation: slide-up 1s cubic-bezier(0.85, 0, 0.15, 1) 0.3s backwards;
    opacity: 1;
}

.slide-content.mask .caption {
    animation-duration: 2s;
    animation-delay: 0.3s;
    animation-name: slide-down;
    animation-timing-function: cubic-bezier(0.85, 0, 0.15, 1);
}

@keyframes slide-up {
    from {
        opacity: 0;
        transform: translateX(100%);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slide-down {
    from {
        opacity: 0;
        transform: translateX(-100%);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes poof {
    0% {
        opacity: 0;
        background-position: 100% 150%;
        transform: rotateZ(0) scale(1);
    }

    50% {
        opacity: 0.5;
        background-position: 100% 100%;
        transform: rotateZ(-10deg) scale(1.5);
    }

    100% {
        opacity: 0;
        background-position: 100% 50%;
        transform: rotateZ(-20deg) scale(2);
    }
}

/* Slides */

.floater {
    position: absolute;
    right: 15px;
    bottom: 40%;
    transform: translateY(50%);
    text-align: right;
    /* z-index: -1; */
    z-index: 2;
}


.flickity-button {
    display: none !important;
}

@media (max-width: 1359px) {
    .hero-slider .carousel-cell .slide-content .title {
        font-size: 1.2rem;
    }

    .hero-slider .carousel-cell .slide-content .caption {
        font-size: 1.8rem;
    }
}

@media (max-width:1170px) {

    .hero-slider {
        height: 530px;
    }

    .slide-content.mask .mask {
        text-align: center;
    }

    .floater {
        right: 50%;
        transform: translate(50%, 50%);
        text-align: center;
    }

    .hero-slider .carousel-cell .slide-content .floater img {
        max-width: 350px;
    }


    .hero-slider .carousel-cell .slide-content .title {
        font-size: 1.1rem;
    }

    .hero-slider .carousel-cell .slide-content .caption {
        font-size: 1.8rem;
    }

}

@media (max-width:767px) {
    .hero-slider .carousel-cell .slide-content .floater img {
        max-width: 300px;
    }


    .hero-slider .carousel-cell .slide-content .floater {
        transform: translate(50%, 10%);
        width: 80%;
    }

    .hero-slider .carousel-cell .slide-content .caption {
        font-size: 1.5rem;
    }
}