.msps {
    --msps-arrow-bg: rgba(0, 0, 0, .42);
    --msps-arrow-color: #fff;
    --msps-arrow-hover-bg: rgba(0, 0, 0, .72);
    --msps-arrow-spacing: 18px;
    --msps-dot-active-color: #fff;
    --msps-dot-color: rgba(255, 255, 255, .55);
    --msps-excerpt-color: rgba(255, 255, 255, .88);
    --msps-meta-color: rgba(255, 255, 255, .86);
    --msps-overlay-opacity: .42;
    --msps-panel-bg: rgba(0, 0, 0, .58);
    --msps-offset: 0%;
    --msps-ratio: 20 / 9;
    --msps-speed: 600ms;
    --msps-title-color: #fff;
    --msps-title-hover: #fff;
    box-sizing: border-box;
    width: 100%;
}

.msps *,
.msps *::before,
.msps *::after {
    box-sizing: border-box;
}

.msps .msps-viewport {
    aspect-ratio: var(--msps-ratio);
    background: #111827;
    min-height: 420px;
    overflow: hidden;
    position: relative;
    width: 100%;
}

.msps .msps-track {
    height: 100%;
    position: relative;
    width: 100%;
}

.msps.msps-effect-slide .msps-track {
    display: flex;
    transform: translate3d(var(--msps-offset), 0, 0);
    transition: transform var(--msps-speed) ease;
    will-change: transform;
}

.msps.msps-no-transition .msps-track {
    transition: none;
}

.msps .msps-slide {
    height: 100%;
    inset: 0;
    opacity: 0;
    overflow: hidden;
    pointer-events: none;
    position: absolute;
    transition: opacity var(--msps-speed) ease, transform var(--msps-speed) ease;
    visibility: hidden;
    width: 100%;
}

.msps.msps-effect-slide .msps-slide {
    flex: 0 0 100%;
    inset: auto;
    opacity: 1;
    position: relative;
    transform: none;
    visibility: visible;
}

.msps .msps-slide.is-active {
    opacity: 1;
    pointer-events: auto;
    transform: translateX(0);
    visibility: visible;
    z-index: 2;
}

.msps.msps-effect-slide .msps-slide.is-active {
    transform: none;
    z-index: auto;
}

.msps.msps-effect-fade .msps-slide {
    transform: none;
    visibility: visible;
}

.msps .msps-card {
    color: inherit;
    display: block;
    height: 100%;
    position: relative;
    text-decoration: none;
    width: 100%;
}

.msps .msps-card:hover,
.msps .msps-card:focus {
    color: inherit;
    text-decoration: none;
}

.msps .msps-image {
    background: #1f2937;
    display: block;
    inset: 0;
    overflow: hidden;
    position: absolute;
    z-index: 1;
}

.msps .msps-image::after {
    background: #000;
    content: "";
    inset: 0;
    opacity: var(--msps-overlay-opacity);
    pointer-events: none;
    position: absolute;
    z-index: 2;
}

.msps .msps-image img {
    display: block;
    height: 100%;
    object-fit: cover;
    transform: scale(1);
    transition: transform 1.1s ease;
    width: 100%;
}

.msps .msps-card:hover .msps-image img,
.msps .msps-card:focus .msps-image img {
    transform: scale(1.035);
}

.msps .msps-image-placeholder {
    background: linear-gradient(135deg, #1f2937, #111827);
}

.msps .msps-content {
    align-items: center;
    display: flex;
    height: 100%;
    justify-content: center;
    padding: 36px 72px;
    position: relative;
    width: 100%;
    z-index: 3;
}

.msps .msps-panel {
    background: var(--msps-panel-bg);
    color: #fff;
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-width: 560px;
    padding: 20px 28px;
    text-align: center;
    width: 100%;
}

.msps .msps-meta {
    color: var(--msps-meta-color);
    display: flex;
    flex-wrap: wrap;
    font-size: 13px;
    gap: 6px 14px;
    justify-content: var(--msps-meta-align, center);
    line-height: 1.35;
}

.msps .msps-title {
    color: var(--msps-title-color);
    display: block;
    font-family: inherit;
    font-size: clamp(22px, 3vw, 42px);
    font-weight: 800;
    letter-spacing: 0;
    line-height: 1.12;
    overflow: visible;
    text-transform: uppercase;
    transition: color .28s ease;
}

.msps .msps-card:hover .msps-title,
.msps .msps-card:focus .msps-title {
    color: var(--msps-title-hover);
}

.msps .msps-excerpt {
    color: var(--msps-excerpt-color);
    display: -webkit-box;
    font-size: 15px;
    line-height: 1.45;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.msps .msps-arrow {
    align-items: center;
    background: var(--msps-arrow-bg);
    border: 0;
    border-radius: 999px;
    color: var(--msps-arrow-color);
    cursor: pointer;
    display: flex;
    font-size: 34px;
    height: 44px;
    justify-content: center;
    line-height: 1;
    margin: 0;
    opacity: 0;
    padding: 0;
    pointer-events: none;
    position: absolute;
    top: 50%;
    transform: translateY(-50%) scale(.96);
    transition: background-color .24s ease, opacity .24s ease, transform .24s ease;
    width: 44px;
    z-index: 5;
}

.msps:hover .msps-arrow,
.msps:focus-within .msps-arrow {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(-50%) scale(1);
}

.msps .msps-arrow:hover,
.msps .msps-arrow:focus {
    background: var(--msps-arrow-hover-bg);
    color: var(--msps-arrow-color);
    outline: 0;
}

.msps .msps-arrow-prev {
    left: var(--msps-arrow-spacing);
}

.msps .msps-arrow-next {
    right: var(--msps-arrow-spacing);
}

.msps .msps-dots {
    align-items: center;
    bottom: 18px;
    display: flex;
    gap: 8px;
    justify-content: center;
    left: 50%;
    position: absolute;
    transform: translateX(-50%);
    z-index: 5;
}

.msps .msps-dot {
    background: transparent;
    border: 0;
    cursor: pointer;
    height: 14px;
    margin: 0;
    padding: 0;
    position: relative;
    width: 14px;
}

.msps .msps-dot::before {
    background: var(--msps-dot-color);
    border-radius: 999px;
    content: "";
    height: 7px;
    left: 50%;
    position: absolute;
    top: 50%;
    transform: translate(-50%, -50%) scale(.9);
    transition: background-color .24s ease, transform .24s ease;
    width: 7px;
}

.msps .msps-dot.is-active::before,
.msps .msps-dot:hover::before,
.msps .msps-dot:focus::before {
    background: var(--msps-dot-active-color);
    transform: translate(-50%, -50%) scale(1.25);
}

.msps-empty {
    background: #f8fafc;
    border: 1px dashed #cbd5e1;
    color: #475569;
    padding: 18px;
    text-align: center;
}

@media (max-width: 960px) {
    .msps .msps-viewport {
        min-height: 340px;
    }

    .msps .msps-content {
        padding: 30px 58px;
    }

    .msps .msps-panel {
        max-width: 520px;
        padding: 18px 24px;
    }
}

@media (max-width: 640px) {
    .msps .msps-viewport {
        min-height: 260px;
    }

    .msps .msps-content {
        padding: 30px 42px 46px;
    }

    .msps .msps-panel {
        gap: 6px;
        padding: 14px 18px;
    }

    .msps .msps-title {
        font-size: 20px;
    }

    .msps .msps-meta,
    .msps .msps-excerpt {
        font-size: 12px;
    }

    .msps .msps-arrow {
        font-size: 26px;
        height: 34px;
        width: 34px;
    }

    .msps .msps-dots {
        bottom: 14px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .msps .msps-slide,
    .msps.msps-effect-slide .msps-track,
    .msps .msps-image img,
    .msps .msps-arrow,
    .msps .msps-dot::before {
        transition-duration: 1ms;
    }
}
