/* Starter Gallery — Front-end Lightbox */
.sg-lightbox-overlay {
    position: fixed;
    inset: 0;
    z-index: 999999;
    background: rgba(0, 0, 0, .88);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity .3s ease;
    cursor: zoom-out;
}
.sg-lightbox-overlay.sg-active { opacity: 1; }

.sg-lightbox-overlay img {
    max-width: 90vw;
    max-height: 88vh;
    border-radius: 6px;
    box-shadow: 0 8px 40px rgba(0,0,0,.5);
    cursor: default;
}

.sg-lightbox-caption {
    position: absolute;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    color: #fff;
    font-size: 15px;
    background: rgba(0,0,0,.55);
    padding: 8px 20px;
    border-radius: 6px;
    max-width: 80vw;
    text-align: center;
}

.sg-lightbox-close {
    position: absolute;
    top: 16px;
    right: 24px;
    color: #fff;
    font-size: 32px;
    cursor: pointer;
    background: none;
    border: none;
    line-height: 1;
    opacity: .8;
    transition: opacity .2s;
}
.sg-lightbox-close:hover { opacity: 1; }

.sg-lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: #fff;
    font-size: 36px;
    background: rgba(0,0,0,.35);
    border: none;
    border-radius: 50%;
    width: 48px;
    height: 48px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background .2s;
}
.sg-lightbox-nav:hover { background: rgba(0,0,0,.6); }
.sg-lightbox-prev { left: 16px; }
.sg-lightbox-next { right: 16px; }
