/**
 * Styles for resources/js/lib/gallery-lightbox.js. Kept in its own file
 * (imported only from the Portfolio detail page's inline @push('styles'),
 * not from app.css globally) so this CSS never ships to pages that don't
 * have a gallery — Section 13.20's "load assets only when needed" rule
 * applies to CSS as much as JS.
 */

.lightbox-overlay {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 1090;
    background: rgba(11, 16, 32, .92);
    align-items: center;
    justify-content: center;
}

.lightbox-overlay.is-open {
    display: flex;
}

.lightbox-image {
    max-width: min(90vw, 1100px);
    max-height: 85vh;
    border-radius: var(--radius-card);
    object-fit: contain;
}

.lightbox-close,
.lightbox-prev,
.lightbox-next {
    position: absolute;
    background: rgba(255, 255, 255, .1);
    color: #fff;
    border: none;
    border-radius: 50%;
    width: 44px;
    height: 44px;
    font-size: 1.25rem;
    line-height: 1;
    cursor: pointer;
}

.lightbox-close:hover,
.lightbox-prev:hover,
.lightbox-next:hover {
    background: rgba(255, 255, 255, .2);
}

.lightbox-close {
    top: 1.5rem;
    right: 1.5rem;
}

.lightbox-prev {
    left: 1.5rem;
    top: 50%;
    transform: translateY(-50%);
}

.lightbox-next {
    right: 1.5rem;
    top: 50%;
    transform: translateY(-50%);
}

@media (max-width: 576px) {
    .lightbox-prev,
    .lightbox-next {
        width: 36px;
        height: 36px;
        font-size: 1rem;
    }
}
