.simple-posts-slider {
    --sps-control-size: 2.75rem;

    position: relative;
    display: flex;
    flex-direction: column;
    gap: 0;
    box-sizing: border-box;
    width: 100%;
    min-height: 0;
    color: inherit;
    background: transparent;
}

.sps-header {
    position: relative;
    z-index: 2;
}

.sps-heading {
    margin: 0;
    color: inherit;
    font-size: clamp(1.5rem, 3vw, 2.5rem);
    line-height: 1.2;
}

.sps-card-area {
    display: flex;
    flex: 1 1 auto;
    box-sizing: border-box;
    width: 100%;
    min-height: 0;
}

.sps-card-area.is-placement-top {
    align-items: flex-start;
}

.sps-card-area.is-placement-bottom {
    align-items: flex-end;
}

.sps-card-area.is-aligned-left {
    justify-content: flex-start;
}

.sps-card-area.is-aligned-center {
    justify-content: center;
}

.sps-card-area.is-aligned-right {
    justify-content: flex-end;
}

.sps-card-area.is-width-content .sps-card {
    width: min(760px, 100%);
}

.sps-card-area.is-width-wide .sps-card {
    width: min(1200px, 100%);
}

.sps-card-area.is-width-full .sps-card {
    width: 100%;
}

.sps-card {
    position: relative;
    box-sizing: border-box;
    overflow: hidden;
    color: inherit;
    background: transparent;
}

.sps-slides {
    position: relative;
}

.sps-slide {
    position: absolute;
    inset: 0;
    visibility: hidden;
    opacity: 0;
    transition:
        opacity 600ms ease,
        visibility 600ms ease;
}

.sps-slide.is-active {
    position: relative;
    visibility: visible;
    opacity: 1;
    z-index: 1;
}

.sps-slide-link {
    position: relative;
    display: block;
    color: inherit;
    background: transparent;
    text-decoration: none;
}

.sps-slide-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.sps-content {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    box-sizing: border-box;
    width: min(760px, 100%);
}

.sps-card.has-fixed-height .sps-slides,
.sps-card.has-fixed-height .sps-slide,
.sps-card.has-fixed-height .sps-slide-link,
.sps-card.has-fixed-height .sps-content {
    height: 100%;
}

.sps-card.has-fixed-height .sps-content {
    min-height: 0;
}

.sps-label {
    align-self: flex-start;
    font-size: 0.75rem;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.sps-title {
    font-size: clamp(1.5rem, 4vw, 3.5rem);
    font-weight: 700;
    line-height: 1.1;
    text-wrap: balance;
    overflow-wrap: anywhere;
}

.sps-excerpt {
    max-width: 60ch;
    font-size: clamp(0.95rem, 2vw, 1.15rem);
    line-height: 1.5;
    overflow-wrap: anywhere;
}

.sps-controls {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 5px;
}

.sps-button,
.sps-dot {
    border: 0;
    cursor: pointer;
}

.sps-button {
    display: inline-grid;
    width: var(--sps-control-size);
    height: var(--sps-control-size);
    place-items: center;
    border-radius: 50%;
    background: transparent;
    color: inherit;
    font-size: 1.5rem;
    line-height: 1;
}

.sps-button:hover,
.sps-button:focus-visible {
    opacity: 0.75;
}

.sps-toggle .sps-play-icon {
    display: none;
    font-size: 0.85rem;
}

.simple-posts-slider.is-paused .sps-toggle .sps-pause-icon {
    display: none;
}

.simple-posts-slider.is-paused .sps-toggle .sps-play-icon {
    display: inline;
}

.sps-pagination {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px;
    padding: 7px;
    background: transparent;
    border-radius: 15px;
}

.sps-dot {
    position: relative;
    width: 1.5rem;
    height: 1.5rem;
    padding: 0;
    border-radius: 50%;
    background: transparent;
}

.sps-dot::before {
    position: absolute;
    inset: 0.425rem;
    border-radius: inherit;
    background: currentcolor;
    content: '';
    opacity: 0.45;
}

.sps-dot.is-active::before {
    opacity: 1;
}

.sps-button:focus-visible,
.sps-dot:focus-visible,
.sps-slide-link:focus-visible {
    outline: 3px solid currentcolor;
    outline-offset: 3px;
}

@media (max-width: 600px) {
    .sps-excerpt {
        display: none;
    }
}

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