/* ── Scroll-to-Top Button ─────────────────────────────────── */
#wsl-scroll-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 9999;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: none;
    background-color: rgba(0, 0, 0, 0.65);
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transform: translateY(12px);
    transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s ease, background-color 0.2s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

#wsl-scroll-top svg {
    width: 22px;
    height: 22px;
    pointer-events: none;
}

#wsl-scroll-top.wsl-visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

#wsl-scroll-top:hover {
    background-color: rgba(0, 0, 0, 0.88);
}

#wsl-scroll-top:focus-visible {
    outline: 3px solid #4a90d9;
    outline-offset: 3px;
}

/* ── Lightbox Overlay ─────────────────────────────────────── */
#wsl-lightbox {
    position: fixed;
    inset: 0;
    z-index: 99999;
    background-color: rgba(0, 0, 0, 0.92);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

#wsl-lightbox.wsl-open {
    opacity: 1;
    visibility: visible;
}

#wsl-lightbox-img {
    /* occupy 90% of the viewport in both dimensions */
    width: 90vw;
    height: 90vh;
    object-fit: contain;
    border-radius: 4px;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.6);
    transform: scale(0.92);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease;
    opacity: 0;
    user-select: none;
}

#wsl-lightbox.wsl-open #wsl-lightbox-img {
    transform: scale(1);
    opacity: 1;
}

#wsl-lightbox-close {
    position: absolute;
    top: 1.25rem;
    right: 1.5rem;
    background: none;
    border: none;
    color: #fff;
    font-size: 2.5rem;
    line-height: 1;
    cursor: pointer;
    opacity: 0.75;
    transition: opacity 0.2s ease;
    padding: 0.25rem 0.5rem;
}

#wsl-lightbox-close:hover {
    opacity: 1;
}

#wsl-lightbox-close:focus-visible {
    outline: 3px solid #4a90d9;
    outline-offset: 3px;
}

/* ── Zoomable Images ──────────────────────────────────────── */
.wsl-zoomable {
    cursor: zoom-in;
    transition: opacity 0.2s ease;
}

.wsl-zoomable:hover {
    opacity: 0.88;
}
