.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:hover,
.carousel-slide a:hover {
    text-decoration: none;
}

.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: #52b065cc;
    padding-top: 22px;
    padding-bottom: 12px;
}

.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;
}

.hero-slider .carousel-cell:nth-child(1) .slide-content .floater img {
    width: 100%;
    height: auto;
}

/* --------------------------------
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.2s backwards;
    opacity: 1;
}

.slide-content.mask .caption {
    animation-duration: 1s;
    animation-delay: 0.2s;
    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;
}

.hero-slider .carousel-cell:nth-child(1) .slide-content .floater {
    right: 50%;
    transform: translate(50%, 20%);
    text-align: right;
}

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

@media (max-width: 1440px) {
    .hero-slider .carousel-cell .slide-content .caption {
        max-width: 100%;
    }

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

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

@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:nth-child(1) .slide-content .floater {
        transform: translate(50%, 20%);
    }

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

    .hero-slider .carousel-cell:nth-child(1) .slide-content .floater img {
        max-width: inherit;
    }

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

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


}

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

    .hero-slider .carousel-cell:nth-child(1) .slide-content .floater {
        transform: translate(50%, -100%);
    }

    .hero-slider .carousel-cell:nth-child(1) .slide-content .floater img {
        max-width: inherit;
    }

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

.desktopslider {
    display: block;
}

.mobiler-slidr {
    display: none;
}

@media (max-width:768px) {
    .desktopslider {
        display: none;
    }

    .mobiler-slidr {
        display: block;
    }

    .slide-asda {
        background: #21b04c;
        padding: 20px;
        color: #fff;
    }

    .slide-caption h3 {
        color: #fff;
        font-size: 20px;
    }
}