/* SERSEO GALLERY – LIGHTBOX */

#sgp-lightbox {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 999999;
    background: rgba(0, 0, 0, .9);
}

body.sgp-lightbox-open {
    overflow: hidden;
}

.sgp-lb-bg {
    position: absolute;
    inset: 0;
    cursor: zoom-out;
}

.sgp-lb-img {
    position: absolute;
    top: 50%;
    left: 50%;
    z-index: 2;
    display: block;
    max-width: calc(100vw - 120px);
    max-height: calc(100vh - 80px);
    margin: 0;
    border-radius: 6px;
    box-shadow: 0 0 25px rgba(0, 0, 0, .7);
    object-fit: contain;
    transform: translate(-50%, -50%);
}

.sgp-lb-close,
.sgp-lb-prev,
.sgp-lb-next {
    position: absolute;
    z-index: 3;
    border: 0;
    background: transparent;
    color: #fff;
    cursor: pointer;
    font: inherit;
    line-height: 1;
    text-shadow: 0 1px 3px rgba(0, 0, 0, .8);
}

.sgp-lb-close {
    top: 20px;
    right: 30px;
    padding: 6px 10px;
    font-size: 36px;
}

.sgp-lb-prev,
.sgp-lb-next {
    top: 50%;
    padding: 18px;
    font-size: 48px;
    transform: translateY(-50%);
}

.sgp-lb-prev {
    left: 12px;
}

.sgp-lb-next {
    right: 12px;
}

.sgp-lb-close:hover,
.sgp-lb-prev:hover,
.sgp-lb-next:hover,
.sgp-lb-close:focus-visible,
.sgp-lb-prev:focus-visible,
.sgp-lb-next:focus-visible {
    color: #ddd;
    outline: 2px solid #fff;
    outline-offset: 2px;
}

@media (max-width: 600px) {
    .sgp-lb-img {
        max-width: calc(100vw - 56px);
        max-height: calc(100vh - 100px);
    }

    .sgp-lb-prev,
    .sgp-lb-next {
        padding: 10px;
        font-size: 36px;
    }

    .sgp-lb-close {
        top: 12px;
        right: 12px;
        font-size: 30px;
    }
}
