/* ── Smart Banner Slider — Frontend ─────────────────────────────────────────── */

.sbs-slider {
    position: relative;
    width: 100%;
    overflow: hidden;
    background: #000;
    /* CSS custom properties set inline by shortcode */
    height: var(--sbs-h-desk, 560px);
}

/* ── Track ───────────────────────────────────────────────────────────────────── */
.sbs-track {
    position: relative;
    width: 100%;
    height: 100%;
}

/* ── Slides ──────────────────────────────────────────────────────────────────── */
.sbs-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 0.8s ease;
    pointer-events: none;
}
.sbs-slide--active {
    opacity: 1;
    pointer-events: auto;
}

/* ── Link wrapper ────────────────────────────────────────────────────────────── */
.sbs-slide__link {
    display: block;
    width: 100%;
    height: 100%;
    text-decoration: none;
    cursor: pointer;
}

/* ── Images ──────────────────────────────────────────────────────────────────── */
.sbs-img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    /* Crisp rendering on retina */
    image-rendering: auto;
}

/* Show desktop, hide mobile by default */
.sbs-img--mob  { display: none; }
.sbs-img--desk { display: block; }

/* ── Dot navigation ──────────────────────────────────────────────────────────── */
.sbs-dots {
    position: absolute;
    left: 50%;
    transform: translate(-50%, -50%);
    top: var(--sbs-nav-top, 90%);
    display: flex;
    align-items: center;
    gap: 8px;
    z-index: 10;
    padding: 6px 10px;
    border-radius: 20px;
    background: rgba(0, 0, 0, 0.25);
}

.sbs-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.8);
    background: transparent;
    cursor: pointer;
    padding: 0;
    transition: background 0.3s ease, transform 0.2s ease;
    flex-shrink: 0;
}
.sbs-dot--active {
    background: #fff;
    transform: scale(1.25);
    border-color: #fff;
}
.sbs-dot:hover:not(.sbs-dot--active) {
    background: rgba(255, 255, 255, 0.5);
}
/* Remove default button styles */
.sbs-dot {
    -webkit-appearance: none;
    appearance: none;
    outline: none;
    box-shadow: none;
    line-height: 1;
}
.sbs-dot:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 2px;
}

/* ── Mobile breakpoint ───────────────────────────────────────────────────────── */
@media (max-width: 768px) {
    .sbs-slider {
        height: var(--sbs-h-mob, 56vw);
    }
    /* Show mobile image, hide desktop */
    .sbs-img--mob  { display: block; }
    .sbs-img--desk { display: none; }

    .sbs-dot {
        width: 8px;
        height: 8px;
    }
    .sbs-dots {
        gap: 6px;
    }
}

/* ── Reduced motion ──────────────────────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
    .sbs-slide {
        transition: none;
    }
}
