/* ==================================================
   CUSTOM HERO CAROUSEL
================================================== */

.custom-hero-carousel {
    position: relative;
    width: 100%;
    overflow: hidden;
    background: #414042;
}

.custom-hero-carousel .swiper {
    width: 100%;
    overflow: hidden;
}

.custom-hero-carousel__slide {
    position: relative;
}

.custom-hero-carousel .swiper-slide {
    position: relative;
}

/* ==================================================
   IMAGES
================================================== */

.custom-hero-carousel__image,
.custom-hero-carousel picture img {
    display: block;
    width: 100%;
    height: auto;
}

/* Optional fixed hero height */

.custom-hero-carousel--hero-height picture img {
    height: 700px;
    object-fit: cover;
}

/* ==================================================
   OVERLAY CONTENT
================================================== */

.custom-hero-carousel__content {
    position: absolute;
    z-index: 20;
    max-width: 520px;
    padding: 2rem;
    backdrop-filter: blur(8px);
}

.custom-hero-carousel__content h2 {
    margin: 0 0 1rem;
    font-size: clamp(2rem, 3vw, 3.5rem);
    line-height: 1.1;
}

.custom-hero-carousel__content p {
    margin: 0 0 1.5rem;
    font-size: 1rem;
    line-height: 1.6;
}

/* LIGHT THEME */

.custom-hero-carousel__content--light {
    background: rgba(255, 255, 255, .8);
    color: #000;
}

.custom-hero-carousel__content--light h2,
.custom-hero-carousel__content--light p {
    color: #000;
}

.custom-hero-carousel__content--light .custom-hero-carousel__button {
    background: #000;
    color: #fff;
}

/* DARK THEME */

.custom-hero-carousel__content--dark {
    background: rgba(0, 0, 0, .8);
    color: #fff;
}

.custom-hero-carousel__content--dark h2,
.custom-hero-carousel__content--dark p {
    color: #fff;
}

.custom-hero-carousel__content--dark .custom-hero-carousel__button {
    background: #fff;
    color: #000;
}

/* ==================================================
   OVERLAY POSITIONS
================================================== */

.custom-hero-carousel__content--left {
    top: 50%;
    left: 5%;
    transform: translateY(-50%);
}

.custom-hero-carousel__content--right {
    top: 50%;
    right: 5%;
    transform: translateY(-50%);
}

.custom-hero-carousel__content--top {
    top: 5%;
    left: 50%;
    transform: translateX(-50%);
}

.custom-hero-carousel__content--bottom {
    bottom: 5%;
    left: 50%;
    transform: translateX(-50%);
}

/* ==================================================
   BUTTON
================================================== */

.custom-hero-carousel__button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0.75rem 1.5rem;
    text-decoration: none;
    background: #000;
    color: #fff;
    transition: all .25s ease;
}

.custom-hero-carousel__button:hover {
    background: #222;
    color: #fff;
}

/* ==================================================
   NAVIGATION
================================================== */

.custom-hero-carousel__prev,
.custom-hero-carousel__next {
    position: absolute;
    top: 50%;
    z-index: 50;
    font-size: 48px;
    border: none;
    color: #FFFFFF;
    background: rgba(0, 0, 0, .3);
    cursor: pointer;
    transform: translateY(-50%);
    transition: all .2s ease;
}

.custom-hero-carousel__prev:hover,
.custom-hero-carousel__next:hover {
    background: rgba(0, 0, 0, .8);
}

.custom-hero-carousel__prev {
    left: 20px;
}

.custom-hero-carousel__next {
    right: 20px;
}

/* ==================================================
   PAGINATION
================================================== */

.custom-hero-carousel__pagination {
    display: flex;
    justify-content: center;
    position: absolute;
    bottom: 10px !important;
    left: 0;
    right: 0;
    z-index: 30;
    width: 100%;
    margin: auto;
}

.custom-hero-carousel__pagination .swiper-pagination-bullet {
    width: 10px;
    height: 10px;
    background: rgba(255, 255, 255, .5);
}

.custom-hero-carousel__pagination .swiper-pagination-bullet-active {
    background: #ff6900;
}

/* ==================================================
   MOBILE
================================================== */

@media (max-width: 768px) {

    .custom-hero-carousel picture img {
        height: auto;
    }

    .custom-hero-carousel__content {
        position: relative;
        left: auto;
        right: auto;
        top: auto;
        bottom: auto;
        transform: none;
        max-width: 100%;
        width: 100%;
        box-shadow: none;
        padding: 1.5rem;
    }

    .custom-hero-carousel__content h2 {
        font-size: 2rem;
    }

    .custom-hero-carousel__prev,
    .custom-hero-carousel__next {
        width: 40px;
        height: 40px;
    }
}

/* ==================================================
   EDITOR
================================================== */
.custom-hero-carousel.is-editor-preview a {
    pointer-events: none !important;
}