


.autoplay-progress {
    position: absolute;
    right: 16px;
    bottom: 16px;
    z-index: 10;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: var(--swiper-theme-color);
}

.autoplay-progress svg {
    --progress: 0;
    position: absolute;
    left: 0;
    top: 0px;
    z-index: 10;
    width: 100%;
    height: 100%;
    stroke-width: 4px;
    stroke: var(--swiper-theme-color);
    fill: none;
    stroke-dashoffset: calc(125.6px * (1 - var(--progress)));
    stroke-dasharray: 125.6;
    transform: rotate(-90deg);
}

.frame-type-ws_slider {
    position: relative;
}

/* Slides: images never wider than the slide (works without a CSS framework) */
.swiper-slide img {
    display: block;
    max-width: 100%;
    height: auto;
}

/* Caption of a slide (title / description of the item) */
.ws-slider-item {
    position: relative;
}

.ws-slider-item__caption {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 1rem 1.25rem 2.25rem;
    /* solid enough for white text on bright images (contrast > 4.5:1 on white) */
    background: rgba(0, 0, 0, 0.65);
    color: #fff;
}

.ws-slider-item__caption--left,
.ws-slider-item__caption--right {
    top: 0;
    max-width: 50%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.ws-slider-item__caption--left {
    right: auto;
}

.ws-slider-item__caption--right {
    left: auto;
}

.ws-slider-item__title {
    margin: 0 0 0.25rem;
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1.3;
}

.ws-slider-item__caption a {
    color: inherit;
}

.ws-slider-item__text > :last-child {
    margin-bottom: 0;
}

@media (max-width: 575.98px) {
    .ws-slider-item__caption--left,
    .ws-slider-item__caption--right {
        top: auto;
        max-width: none;
        left: 0;
        right: 0;
    }

    .ws-slider-item__title {
        font-size: 1rem;
    }
}

/* Pagination bullets sit on the caption band: light inactive bullets */
.swiper:has(.ws-slider-item__caption) .swiper-pagination-bullet {
    background: #fff;
    opacity: 0.6;
}

.swiper:has(.ws-slider-item__caption) .swiper-pagination-bullet-active {
    background: var(--swiper-pagination-color, var(--swiper-theme-color));
    opacity: 1;
}
