.carousel-wrap {
    --thumb-h: 64px;
    --thumb-gap: 6px;
    position: relative;
    max-width: 580px;
    margin: 0 auto;
    user-select: none;
    }
.carousel-track {
    display: flex;
    gap: var(--thumb-gap);
    overflow-x: hidden;
    scroll-behavior: smooth;
    padding: 4px 0;
    }
.carousel-track img.screen {
    height: var(--thumb-h);
    width: auto;
    flex-shrink: 0;
    border-radius: 4px;
    cursor: pointer;
    opacity: 0.75;
    transition: opacity 0.15s, outline-color 0.15s;
    outline: 2px solid transparent;
    }
.carousel-track img.screen:hover {
    opacity: 1;
    outline-color: rgba(255,255,255,0.5);
    }
/* hover-scroll zones */
.carousel-zone {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 36px;
    z-index: 2;
    cursor: pointer;
    opacity: 0;
    transition: opacity 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: #fff;
    pointer-events: none;
    }
.carousel-wrap:hover .carousel-zone { 
    pointer-events: auto; 
    }
.carousel-zone.left  {
    left: 0;
    background: linear-gradient(to right, rgba(255,255,255,0.9), transparent);
    padding-right: 6px;
    }
.carousel-zone.right {
    right: 0;
    background: linear-gradient(to left, rgba(255,255,255,0.9), transparent);
    padding-left: 6px;
    }
.carousel-zone:hover {
    opacity: 1; 
    }
/* lightbox */
.carousel-lightbox {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(0,0,0,0.85);
    align-items: center;
    justify-content: center;
    cursor: zoom-out;
    }
.carousel-lightbox.open { 
    display: flex; 
    }
.carousel-lightbox img {
    max-width: 92vw;
    max-height: 90vh;
    border-radius: 6px;
    cursor: default;
    box-shadow: 0 8px 40px rgba(0,0,0,0.6);
    }
.lb-arrow {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    width: 36px;
    height: 36px;
    cursor: pointer;
    opacity: 0.4;
    transition: opacity 0.2s;
    z-index: 10000;
    filter: brightness(0) invert(1);
}
.lb-arrow:hover {
    opacity: 1;
}
.lb-left  {
    left: 24px; 
    }
.lb-right {
    right: 24px; 
    }    
/* crop off macOS screenshot shadow */
.carousel-lightbox img {
    clip-path: inset(3% 2% 4% 2%);
}
.carousel-zone img {
    width: 48px;
    height: 48px;
    color: white;
}    
[class*="carousel-"] {
    transition: opacity 0.5s ease-in-out;
}    

/* ----- END OF FILE ----- */    