/* ── Wrapper ─────────────────────────────────────────────────────── */
.cvst-wrap {
    position: relative;
    width: 100%;
    overflow: hidden;
    padding: 40px 0;
}

/* ── Stage ───────────────────────────────────────────────────────── */
.cvst-stage {
    position: relative;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    perspective: 1200px;
    user-select: none;
    -webkit-user-select: none;
}

/* ── Track ───────────────────────────────────────────────────────── */
.cvst-track {
    position: relative;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: grab;
    height: var(--cvst-center-h, 460px);
}

.cvst-track.is-grabbing { cursor: grabbing; }

/* ── Cards ───────────────────────────────────────────────────────── */
.cvst-card {
    position: absolute;
    border-radius: 14px;
    overflow: hidden;
    will-change: transform, opacity, width, height;
    background: #111;
    /* No box-shadow here — controlled entirely via inline style from JS */
}

.cvst-card img,
.cvst-card video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    pointer-events: none;
}

/* ── Unmute button ───────────────────────────────────────────────── */
.cvst-unmute {
    position: absolute;
    bottom: 16px;
    right: 16px;
    z-index: 10;
    background: rgba(0,0,0,0.55);
    border: none;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #fff;
    font-size: 16px;
    transition: background 0.2s;
    backdrop-filter: blur(4px);
}
.cvst-unmute:hover { background: rgba(0,0,0,0.8); }

/* ── Arrow buttons ───────────────────────────────────────────────── */
.cvst-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 50;
    background: rgba(255,255,255,0.15);
    border: none;
    color: #fff;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
    backdrop-filter: blur(4px);
    flex-shrink: 0;
}
.cvst-arrow:hover { background: rgba(255,255,255,0.3); }
.cvst-arrow--left  { left: 16px; }
.cvst-arrow--right { right: 16px; }

/* ── Mobile ──────────────────────────────────────────────────────── */
@media (max-width: 768px) {

    .cvst-wrap {
        padding: 0 !important;
        margin-left: calc(-50vw + 50%) !important;
        margin-right: calc(-50vw + 50%) !important;
        width: 100vw !important;
        max-width: 100vw !important;
        height: 100svh !important;
        height: 100vh !important; /* fallback */
        overflow: hidden !important;
    }

    .cvst-stage {
        width: 100% !important;
        height: 100% !important;
        perspective: none !important;
        overflow: hidden !important;
    }

    .cvst-track {
        width: 100% !important;
        height: 100% !important;
        cursor: default !important;
        overflow: hidden !important;
        /* touch-action intentionally not set — JS handles direction detection */
    }

    .cvst-card {
        width: 100vw !important;
        height: 100% !important;
        border-radius: 0 !important;
        box-shadow: none !important;
        top: 0 !important;
        left: 0 !important;
        opacity: 1 !important;
        transform: translateX(var(--cvst-mobile-tx, 0px)) !important;
        transition: transform 0.38s cubic-bezier(0.25,0.46,0.45,0.94) !important;
    }

    .cvst-card.no-transition {
        transition: none !important;
    }

    .cvst-arrow { display: none !important; }

    .cvst-unmute {
        bottom: 32px;
        right: 20px;
        width: 44px;
        height: 44px;
        font-size: 20px;
    }
}