/* SC Gallery — Lightbox */

.sc-lightbox {
    position: fixed;
    inset: 0;
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.9);
    opacity: 0;
    transition: opacity 0.25s ease;
}

.sc-lightbox.sc-lightbox--visible {
    opacity: 1;
}

.sc-lightbox-img {
    max-width: 90vw;
    max-height: 90vh;
    object-fit: contain;
    display: block;
    user-select: none;
    -webkit-user-select: none;
}

/* Navigation arrows */
.sc-lightbox-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    border: none;
    font-size: 2rem;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease;
    z-index: 2;
    line-height: 1;
    padding: 0;
}

.sc-lightbox-arrow:hover {
    background: rgba(255, 255, 255, 0.35);
}

.sc-lightbox-prev {
    left: 16px;
}

.sc-lightbox-next {
    right: 16px;
}

/* Close button */
.sc-lightbox-close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    border: none;
    font-size: 1.5rem;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease;
    z-index: 2;
    line-height: 1;
    padding: 0;
}

.sc-lightbox-close:hover {
    background: rgba(255, 255, 255, 0.35);
}
