.zfutura-doctors-slider__arrows {
    display: flex;
    justify-content: flex-end;
    gap: 4px;
    margin-bottom: 8px;
}

.zfutura-doctors-slider__arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 30px;
    padding: 0;
    border: none;
    background: none;
    color: inherit;
    cursor: pointer;
}

/* Override theme button styles. */
.zfutura-doctors-slider__arrow:hover,
.zfutura-doctors-slider__arrow:focus {
    background: none;
    color: inherit;
}

.zfutura-doctors-slider__arrow:hover,
.zfutura-doctors-slider__arrow:focus-visible {
    opacity: 0.6;
}

.zfutura-doctors-slider__arrow.swiper-button-disabled {
    opacity: 0.3;
    cursor: default;
}

.zfutura-doctors-slider__arrow svg {
    width: 20px;
    height: 20px;
}

/*
 * Until Swiper is initialized by JavaScript, each slide would take the full
 * width, showing the images much too large. Lay out the slides like Swiper
 * will, using the CSS variables set from the widget settings.
 */
.zfutura-doctors-slider .swiper:not(.swiper-initialized) .swiper-wrapper {
    gap: var(--zfutura-doctors-slider-spacing, 20px);
}

.zfutura-doctors-slider .swiper:not(.swiper-initialized) .swiper-slide {
    --zfutura-doctors-slider-n: var(--zfutura-doctors-slider-slides-to-show, 2);
    width: calc(
        (100% - (var(--zfutura-doctors-slider-n) - 1) * var(--zfutura-doctors-slider-spacing, 20px))
        / var(--zfutura-doctors-slider-n)
    );
}

.zfutura-doctors-slider__doctor {
    margin: 0;
}

/* Extra class needed to override Elementor's ".elementor img". */
.zfutura-doctors-slider .zfutura-doctors-slider__image {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 3 / 2;
    object-fit: cover;
    border-radius: 12px;
}

.zfutura-doctors-slider__caption {
    position: relative;
    display: flex;
    flex-direction: column;
    width: 80%;
    margin-top: -50px;
    padding: 25px 25px 25px 40px;
    border-radius: 12px;
    background-color: #ede6e2;
    font-size: 23px;
    font-style: normal;
    line-height: 1.9rem;
    letter-spacing: 0.02px;
}

.zfutura-doctors-slider__name {
    font-weight: 700;
    letter-spacing: 0.02px;
}

@media (max-width: 1024px) {
    .zfutura-doctors-slider__caption {
        width: 100%;
    }
}

@media (max-width: 767px) {
    .zfutura-doctors-slider__caption {
        margin-top: -29px;
        padding: 25px;
        font-size: 19px;
        line-height: 1.4em;
    }
}
