.osts-slider {
    position: relative;
    margin: 24px 0;
    z-index: 5;
    --osts-item-width: 140px;
    --osts-item-height: 140px;
    --osts-gap: 16px;
    --osts-slider-bg: #ffffff;
    --osts-pop-scale: 1.2;
}

.osts-frame {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 14px;
    align-items: center;
    overflow: visible;
}

.osts-viewport {
    overflow-x: hidden;
    overflow-y: visible;
    padding: 24px 6px 20px;
    position: relative;
    z-index: 1;
}

.osts-track {
    display: grid;
    grid-auto-flow: column;
    align-items: center;
    will-change: transform;
    transition-property: transform;
    transition-timing-function: ease;
    position: relative;
    overflow: visible;
}

.osts-slide {
    position: relative;
    z-index: 1;
    min-width: 0;
    transition: transform 240ms ease, filter 240ms ease;
}

.osts-slide-card {
    height: 100%;
    min-height: var(--osts-item-height);
    background: var(--osts-slider-bg);
    border: 1px solid #d1d5db;
    border-radius: 18px;
    padding: 8px;
    box-shadow: 0 5px 10px rgba(15, 23, 42, 0.05);
    transition: transform 240ms ease, box-shadow 240ms ease, background-color 240ms ease;
    overflow: visible;
    transform-origin: center center;
}

.osts-slide img {
    width: 90%;
    height: calc(var(--osts-item-height) * 0.9);
    object-fit: contain;
    display: block;
    border-radius: 10px;
    margin: 0 auto;
}

.osts-slide.is-pop {
    z-index: 30;
}

.osts-slide.is-pop .osts-slide-card {
    position: relative;
    transform: scale(var(--osts-pop-scale));
    background: var(--osts-slider-bg);
    border-color: #cbd5e1;
    box-shadow: 0 1px 3px rgba(30, 41, 59, 0.14);
    isolation: isolate;
}

.osts-caption {
    margin-top: 10px;
    font-size: 13px;
    line-height: 1.4;
    color: #334155;
    text-align: center;
}

.osts-control {
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 999px;
    background: #1f2937;
    color: #fff;
    cursor: pointer;
    box-shadow: 0 10px 20px rgba(15, 23, 42, 0.18);
}

.osts-control[disabled] {
    opacity: 0.35;
    cursor: default;
    box-shadow: none;
}

.osts-control span {
    font-size: 26px;
    line-height: 1;
}

.osts-pager {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 12px;
}

.osts-dot {
    width: 10px;
    height: 10px;
    border: 0;
    border-radius: 999px;
    background: #cbd5e1;
    cursor: pointer;
}

.osts-dot.is-active {
    background: #1f2937;
}

.osts-image-link {
    display: block;
}

@media (max-width: 781px) {
    .osts-frame {
        grid-template-columns: 1fr;
    }

    .osts-control {
        display: none;
    }

    .osts-viewport {
        padding-left: 0;
        padding-right: 0;
    }
}
