.text-slider_columns {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: clamp(40px, calc(2.5rem + ((1vw - 10.24px) * 10.6383)), 80px);
    align-items: center;
}

.text-slider_column {
    min-width: 0;
}

.text-slider_column.text .title {
    font-size: clamp(23px, calc(1.4375rem + ((1vw - 10.24px) * 3.9773)), 30px);
    margin-bottom: 25px;
}

.text-slider_columns.desktop-slider-first .text-slider_column.text {
    order: 2;
}

/* Slider */

.text-slider_frame {
    position: relative;
}

.block-text-slider .swiper-wrapper {
    padding-bottom: 0;
}

.block-text-slider .swiper-slide {
    margin: 0;
}

.text-slider_image {
    aspect-ratio: 4 / 3;
    overflow: hidden;
}

.ratio-3-2 .text-slider_image {
    aspect-ratio: 3 / 2;
}

.ratio-1-1 .text-slider_image {
    aspect-ratio: 1 / 1;
}

.ratio-4-5 .text-slider_image {
    aspect-ratio: 4 / 5;
}

.text-slider_image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Reset the theme's global figcaption rule (absolute, faded) so the credit sits under the image */
.block-text-slider .text-slider_credit {
    position: static;
    opacity: 1;
    line-height: 1.4;
    margin-top: 8px;
    font-size: 12px;
    font-style: italic;
    color: var(--text-80);
}

.block-text-slider.green-bg .text-slider_credit,
.block-text-slider.green-dark-bg .text-slider_credit {
    color: var(--white-80);
}

.block-text-slider button.slider-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 5;
}

.block-text-slider button.slider-nav.slider-prev {
    left: 15px;
}

.block-text-slider button.slider-nav.slider-next {
    right: 15px;
}

/* The credit sits under the image, so centre the arrows on the image only */
.block-text-slider .text-slider_frame:has(.text-slider_credit) button.slider-nav {
    top: calc(50% - 14px);
}

.block-text-slider button.slider-nav:focus-visible {
    outline: 2px solid var(--white);
    outline-offset: 2px;
}

.block-text-slider .progress-bar {
    top: auto;
    margin-top: 20px;
}

.block-text-slider.green-bg a,
.block-text-slider.green-dark-bg a {
    color: var(--white);
}

@media (max-width:1024px) {
    .text-slider_columns {
        grid-template-columns: minmax(0, 1fr);
    }

    .text-slider_columns .text-slider_column.text,
    .text-slider_columns.desktop-slider-first .text-slider_column.text {
        order: 1;
    }

    .text-slider_columns .text-slider_column.slider {
        order: 2;
    }

    .text-slider_columns.mobile-slider-first .text-slider_column.slider {
        order: 0;
    }
}

@media (max-width:768px) {
    .block-text-slider button.slider-nav {
        width: 42px;
        height: 42px;
    }

    .block-text-slider button.slider-nav.slider-prev {
        left: 10px;
    }

    .block-text-slider button.slider-nav.slider-next {
        right: 10px;
    }
}
