.pcs-slider {
    --pcs-transition: 500ms;
    width: 100% !important;
    max-width: none !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    position: relative;
    width: 100%;
    min-height: 220px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
}

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

.pcs-track {
    width: 100% !important;
    max-width: none !important;
    position: relative;
    width: 100%;
    height: 100%;
    min-height: inherit;
    display: flex;
    align-items: center;
    justify-content: center;
    touch-action: pan-y;
    user-select: none;
}

.pcs-track.is-dragging {
    cursor: grabbing;
}

.pcs-card {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 292px;
    height: 170px;
    overflow: hidden;
    transform:
        translate(-50%, -50%)
        translateX(calc(var(--pcs-offset) * 180px))
        scale(0.72);
    opacity: 0;
    visibility: hidden;
    z-index: var(--pcs-order, 1);
    border-radius: 7px;
    transition:
        transform var(--pcs-transition) ease,
        opacity var(--pcs-transition) ease,
        visibility var(--pcs-transition) ease;
    pointer-events: none;
    background: #ddd;
}

.pcs-card.is-center {
    transform: translate(-50%, -50%) translateX(0) scale(1);
    opacity: 1;
    visibility: visible;
    z-index: 30;
    pointer-events: auto;
}

.pcs-card.is-prev,
.pcs-card.is-next {
    opacity: 1;
    visibility: visible;
    z-index: 10;
    pointer-events: auto;
}

/* Side cards are edge-to-center panels; the active card sits above them. */

.pcs-card img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    display: block;
    -webkit-user-drag: none;
}

.pcs-overlay,
.pcs-gradient {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.pcs-overlay {
    z-index: 1;
    background: rgba(0,0,0,.18);
}

.pcs-gradient {
    z-index: 2;
    height: 65%;
    top: auto;
    background: linear-gradient(to top, rgba(0,0,0,.78), transparent);
}

.pcs-content {
    position: absolute;
    left: 12px;
    bottom: 10px;
    z-index: 5;
    max-width: 90%;
}

.pcs-title {
    color: #fff;
    margin-bottom: 5px;
    font-size: 11px;
    line-height: 1.2;
    font-weight: 500;
    text-shadow: 0 1px 3px rgba(0,0,0,.25);
}

.pcs-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 4px 9px;
    min-height: 15px;
    border: 0;
    background: #fff;
    color: #333;
    border-radius: 20px;
    text-decoration: none !important;
    font-size: 6px;
    line-height: 1;
    transition: all .2s ease;
}

.pcs-button:hover {
    background: #eee;
    color: #222;
}

.pcs-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 50;
    width: 34px;
    height: 34px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: rgba(255,255,255,.9);
    color: #222;
    cursor: pointer;
    font-size: 16px;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all .2s ease;
}

.pcs-arrow:hover {
    transform: translateY(-50%) scale(1.08);
}

.pcs-arrow:disabled {
    opacity: .35;
    cursor: default;
}

.pcs-arrow-prev { left: 10px; }
.pcs-arrow-next { right: 10px; }

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

.pcs-dot {
    width: 7px;
    height: 7px;
    min-width: 7px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: #fff;
    opacity: .45;
    cursor: pointer;
}

.pcs-dot.active {
    opacity: 1;
}

@media (max-width: 767px) {
    .pcs-card {
        width: min(76vw, 292px);
        height: 155px;
    }

    .pcs-card.is-prev {
        left: 0;
        transform: translateY(-50%) scale(var(--pcs-side-scale, .58));
        transform-origin: right center;
    }

    .pcs-card.is-next {
        left: auto;
        right: 0;
        transform: translateY(-50%) scale(var(--pcs-side-scale, .58));
        transform-origin: left center;
    }

    .pcs-arrow {
        width: 30px;
        height: 30px;
    }
}

@media (max-width: 480px) {
    .pcs-slider {
        min-height: 170px;
    }

    .pcs-card {
        width: 78vw;
        height: 140px;
    }

    .pcs-card.is-prev {
        left: 0;
        transform: translateY(-50%) scale(var(--pcs-side-scale, .55));
        transform-origin: right center;
    }

    .pcs-card.is-next {
        left: auto;
        right: 0;
        transform: translateY(-50%) scale(var(--pcs-side-scale, .55));
        transform-origin: left center;
    }

    .pcs-content {
        left: 10px;
        bottom: 8px;
    }
}


/* Reference-style full-width presentation */
.pcs-slider {
    width: 100% !important;
    max-width: none !important;
}

.pcs-track {
    width: 100% !important;
}

.pcs-card.is-center {
    z-index: 30;
}

.pcs-card.is-prev,
.pcs-card.is-next {
    width: 50%;
    max-width: none;
}

@media (max-width: 767px) {
    .pcs-card.is-prev,
    .pcs-card.is-next {
        width: 50%;
    }
}
