.sps-slider {
    --sps-height: 500px;
    --sps-mobile-height: 300px;
    --sps-transition: 500ms;
    --sps-image-fit: cover;
    position: relative;
    width: 100%;
    height: var(--sps-height);
    overflow: hidden;
    background: #3d3d3d;
    border-radius: 4px;
    outline: none;
}

.sps-track,
.sps-slide,
.sps-link {
    width: 100%;
    height: 100%;
}

.sps-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity var(--sps-transition) ease, visibility var(--sps-transition) ease;
}

.sps-slide.is-active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    z-index: 1;
}

.sps-link {
    display: block;
}

.sps-fancybox {
    cursor: zoom-in;
}

.sps-slide img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: var(--sps-image-fit);
    object-position: center;
}

.sps-caption {
    position: absolute;
    z-index: 2;
    right: 0;
    bottom: 0;
    left: 0;
    padding: 45px 24px 22px;
    color: #fff;
    font-size: 20px;
    line-height: 1.35;
    text-shadow: 0 1px 3px rgba(0, 0, 0, .65);
    background: linear-gradient(to top, rgba(0, 0, 0, .78), rgba(0, 0, 0, 0));
}

.sps-arrow {
    position: absolute;
    z-index: 3;
    top: 50%;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    color: #fff;
    background: rgba(0, 0, 0, .42);
    font-size: 25px;
    line-height: 44px;
    text-align: center;
    cursor: pointer;
    transform: translateY(-50%);
    transition: background .2s ease, transform .2s ease;
}

.sps-arrow:hover,
.sps-arrow:focus {
    background: rgba(0, 0, 0, .72);
}

.sps-arrow:active {
    transform: translateY(-50%) scale(.95);
}

.sps-prev {
    left: 14px;
}

.sps-next {
    right: 14px;
}

.sps-dots {
    position: absolute;
    z-index: 4;
    right: 0;
    bottom: 12px;
    left: 0;
    display: flex;
    justify-content: center;
    gap: 8px;
    pointer-events: none;
}

.sps-caption + .sps-dots {
    bottom: 10px;
}

.sps-dot {
    width: 10px;
    height: 10px;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, .9);
    border-radius: 50%;
    background: rgba(0, 0, 0, .25);
    cursor: pointer;
    pointer-events: auto;
    transition: transform .2s ease, background .2s ease;
}

.sps-dot.is-active {
    background: #fff;
    transform: scale(1.2);
}

.sps-slider:focus-visible {
    box-shadow: 0 0 0 3px rgba(40, 120, 220, .35);
}

@media (max-width: 767px) {
    .sps-slider {
        height: var(--sps-mobile-height);
    }

    .sps-caption {
        padding: 35px 16px 18px;
        font-size: 16px;
    }

    .sps-arrow {
        width: 38px;
        height: 38px;
        line-height: 38px;
        font-size: 21px;
    }

    .sps-prev {
        left: 8px;
    }

    .sps-next {
        right: 8px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .sps-slide,
    .sps-arrow,
    .sps-dot {
        transition: none;
    }
}

/* Drag/swipe navigation */
.sps-slider[data-drag-enabled="1"] {
    cursor: grab;
    touch-action: pan-y pinch-zoom;
    user-select: none;
    -webkit-user-select: none;
}

.sps-slider[data-drag-enabled="1"].is-dragging {
    cursor: grabbing;
}

.sps-slider[data-drag-enabled="1"].is-dragging,
.sps-slider[data-drag-enabled="1"].is-dragging * {
    cursor: grabbing !important;
}

.sps-slider[data-drag-enabled="1"] img {
    -webkit-user-drag: none;
    user-select: none;
    -webkit-user-select: none;
}

.sps-slider[data-drag-enabled="1"] .sps-arrow,
.sps-slider[data-drag-enabled="1"] .sps-dot {
    cursor: pointer;
}
