.slot-lightbox-overlay {
    position: fixed;
    inset: 0;
    z-index: 900;
    background: rgba(0,0,0,0.88);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.slot-lightbox-inner {
    position: relative;
    max-width: 900px;
    width: 100%;
    background: #0d1422;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.12);
}

.slot-lightbox-content {
    min-height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,0.2);
    font-family: var(--font-mono);
    font-size: 13px;
}

.slot-lightbox-img {
    display: block;
    max-width: 100%;
    max-height: 70vh;
    object-fit: contain;
    opacity: 0;
    transition: opacity 0.18s ease;
}

.slot-lightbox-img-visible { opacity: 1; }

.slot-lightbox-controls {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    display: flex;
    justify-content: space-between;
    pointer-events: none;
    transform: translateY(-50%);
    padding: 0 8px;
}

.slot-lightbox-prev,
.slot-lightbox-next {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(0,0,0,0.55);
    border: 1px solid rgba(255,255,255,0.18);
    color: #fff;
    font-size: 22px;
    line-height: 1;
    font-family: var(--font-sans);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: auto;
    transition: background 0.15s ease, border-color 0.15s ease;
    flex: 0 0 auto;
}

.slot-lightbox-prev:hover:not(:disabled),
.slot-lightbox-next:hover:not(:disabled) {
    background: rgba(0,0,0,0.78);
    border-color: rgba(255,255,255,0.35);
}

.slot-lightbox-prev:disabled,
.slot-lightbox-next:disabled {
    opacity: 0.25;
    cursor: default;
}

.slot-lightbox-meta {
    padding: 10px 16px;
    font-size: 12px;
    color: rgba(255,255,255,0.5);
    font-family: var(--font-mono);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}

.slot-lightbox-meta-text {
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.slot-lightbox-counter {
    flex: 0 0 auto;
    color: rgba(255,255,255,0.35);
    font-size: 11px;
}

.slot-lightbox-close {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255,255,255,0.12);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 20px;
    line-height: 1;
    font-family: var(--font-sans);
}

.slot-lightbox-close:hover { background: rgba(255,255,255,0.2); }

@media (max-width: 767px) {
    .slot-lightbox-overlay {
        padding: 0;
        align-items: stretch;
    }

    .slot-lightbox-inner {
        max-width: 100%;
        width: 100%;
        height: 100vh;
        height: 100dvh;
        border-radius: 0;
        border: none;
        display: flex;
        flex-direction: column;
    }

    .slot-lightbox-content {
        flex: 1 1 0;
        min-height: 0;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .slot-lightbox-img {
        max-width: 100%;
        max-height: 100%;
        width: auto;
        height: auto;
        object-fit: contain;
    }

    .slot-lightbox-controls {
        position: absolute;
        top: auto;
        bottom: 56px;
        left: 0;
        right: 0;
        transform: none;
        padding: 0;
        pointer-events: none;
    }

    .slot-lightbox-prev,
    .slot-lightbox-next {
        width: 52px;
        height: 52px;
        font-size: 26px;
        pointer-events: auto;
        background: rgba(0,0,0,0.62);
    }

    .slot-lightbox-meta {
        flex: 0 0 auto;
        background: rgba(0,0,0,0.72);
        padding: 10px 16px;
        padding-bottom: calc(10px + env(safe-area-inset-bottom, 0px));
    }

    .slot-lightbox-close {
        top: calc(10px + env(safe-area-inset-top, 0px));
        right: 10px;
        width: 48px;
        height: 48px;
        font-size: 24px;
        background: rgba(0,0,0,0.62);
    }
}

@media (max-width: 480px) {
    .slot-lightbox-controls {
        bottom: 58px;
    }

    .slot-lightbox-prev,
    .slot-lightbox-next {
        width: 56px;
        height: 56px;
        font-size: 28px;
    }
}
