/* JH Embla Slider Styling */
/* =====================================
   EMBLA CAROUSEL
   ===================================== */

.embla {
    position: relative;
    width: 100%;
}


/* The visible window */

.embla__viewport {
    overflow: hidden;
}


/* Container containing all slides */

.embla__container {
    display: flex;
    touch-action: pan-y pinch-zoom;
}


/* Each individual slide */

.embla__slide {
    flex: 0 0 100%;
    min-width: 0;
    position: relative;
}


/* Slide image */

.embla__image {
    display: block;
    width: 100%;
    height: 500px;
    object-fit: cover;
}


/* Dark shading to improve text readability */

.embla__slide::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        90deg,
        rgba(0, 0, 0, 0.65) 0%,
        rgba(0, 0, 0, 0.30) 50%,
        rgba(0, 0, 0, 0) 75%
    );
}


/* Text positioned over the image */

.embla__overlay {
    position: absolute;
    z-index: 2;
    left: 8%;
    top: 50%;
    transform: translateY(-50%);

    width: 45%;
    max-width: 600px;

    color: #ffffff;
}


/* Heading */

.embla__overlay h2 {
    margin: 0 0 15px 0;
    font-size: 42px;
    line-height: 1.1;
}


/* Description */

.embla__overlay p {
    margin: 0 0 25px 0;
    font-size: 20px;
    line-height: 1.5;
}


/* Call-to-action button */

.embla__button {
    display: inline-block;

    padding: 12px 22px;

    background: #ffffff;
    color: #222222;

    text-decoration: none;
    font-weight: bold;

    border-radius: 4px;
}


.embla__button:hover {
    background: #eeeeee;
}


/* =====================================
   PREVIOUS / NEXT ARROWS
   ===================================== */

.embla__prev,
.embla__next {

    position: absolute;

    top: 50%;
    transform: translateY(-50%);

    z-index: 5;

    width: 46px;
    height: 46px;

    border: 0;
    border-radius: 50%;

    background: rgba(0, 0, 0, 0.45);
    color: #ffffff;

    font-size: 24px;

    cursor: pointer;
}


.embla__prev {
    left: 20px;
}


.embla__next {
    right: 20px;
}


.embla__prev:hover,
.embla__next:hover {
    background: rgba(0, 0, 0, 0.7);
}


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

@media (max-width: 767px) {

    .embla__image {
        height: 400px;
    }

    .embla__overlay {
        left: 12%;
        width: 76%;
    }

    .embla__overlay h2 {
        font-size: 30px;
    }

    .embla__overlay p {
        font-size: 17px;
    }

    .embla__prev {
        left: 8px;
    }

    .embla__next {
        right: 8px;
    }

}