section.image-carousel .image-carousel__header {
    max-width: 900px;
    margin: 0 auto 5rem;
    text-align: center;
}

section.image-carousel .image-carousel__header h2,
section.image-carousel .image-carousel__header p {
    text-wrap: balance;
}

section.image-carousel .image-carousel__header p + a.button {
    margin-top: 2rem;
}

/* Carousel */
@media (min-width: 1025px) {
    section.image-carousel .splide__arrow:hover {
        background-color: var(--light-blue);
    }

    section.image-carousel .splide__arrow:hover svg {
        fill: var(--dark-blue);
        opacity: 0.5;
    }
}

section.image-carousel .splide__slide img {
    width: 100%;
    height: auto;
    -o-object-fit: cover;
    object-fit: cover;
    aspect-ratio: 2 / 1;
}

section.image-carousel .splide__pagination {
    justify-content: center;
}

@media (min-width: 1025px) {
    section.image-carousel .splide__arrow--prev {
        left: 0;
        transform: translate(-50%, -50%);
    }

    section.image-carousel .splide__arrow--next {
        right: 0;
        transform: translate(50%, -50%);
    }
}

@media (max-width: 1024px) {
    section.image-carousel .splide__pagination {
        bottom: -3rem;
    }

    section.image-carousel .splide__slide img {
        aspect-ratio: 1 / 1;
    }

    section.image-carousel .splide__arrow {
        top: 100%;
    }

    section.image-carousel .splide__arrow--prev {
        left: 50%;
        bottom: 0;
        transform: translate(-150%, -50%);
    }

    section.image-carousel .splide__arrow--next {
        right: 50%;
        bottom: 0;
        transform: translate(150%, -50%);
    }
}

/* Case Studies */
.single-case-study .image-carousel {
    max-width: 1400px;
    margin: 0 auto;
}
