/* ============================================================
   Controls — side-overlay prev/next on carousel tracks
   ============================================================ */

/* Carousel track: positions the article + buttons together */
.carousel-track {
    position: relative;
}

/* The buttons live inside .controls, which is abs-positioned */
.controls {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    z-index: 10;
}

.prev,
.next {
    pointer-events: all;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 72px;
    border: 1px solid var(--border-bright);
    background: rgba(10, 10, 10, 0.55);
    color: var(--text-dim);
    font-size: 12px;
    font-family: var(--font-mono);
    cursor: crosshair;
    border-radius: 0;
    opacity: 0;
    transition: opacity var(--t-med), border-color var(--t-fast), color var(--t-fast), background var(--t-fast);
    user-select: none;
    flex-shrink: 0;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.prev { border-left: none; }
.next { border-right: none; }

.carousel-track:hover .prev,
.carousel-track:hover .next {
    opacity: 1;
}

.prev:hover,
.next:hover {
    border-color: var(--accent);
    color: var(--accent);
    background: rgba(10, 10, 10, 0.82);
}

.prev:active,
.next:active {
    background: var(--accent);
    color: var(--bg);
}

.section-controls { /* no extra rules needed */ }

@media screen and (max-width: 768px) {
    .controls {
        display: none;
    }
}
