/* Custom Modern Lightbox Gallery */
.site-lightbox-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 10, 10, 0.94);
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, visibility 0.25s ease;
    user-select: none;
    -webkit-user-select: none;
}

.site-lightbox-overlay.active {
    opacity: 1;
    visibility: visible;
}

.site-lightbox-content {
    position: relative;
    max-width: 90vw;
    max-height: 88vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.site-lightbox-img-wrapper {
    position: relative;
    max-width: 90vw;
    max-height: 78vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.site-lightbox-img {
    max-width: 90vw;
    max-height: 78vh;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 4px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.85);
    transition: transform 0.2s cubic-bezier(0.165, 0.84, 0.44, 1), opacity 0.2s ease;
    transform: scale(0.96);
    opacity: 0;
}

.site-lightbox-overlay.active .site-lightbox-img {
    transform: scale(1);
    opacity: 1;
}

/* Close Button (X) */
.site-lightbox-close {
    position: absolute;
    top: 22px;
    right: 25px;
    width: 46px;
    height: 46px;
    background: rgba(255, 255, 255, 0.18);
    border: 2px solid rgba(255, 255, 255, 0.45);
    color: #ffffff;
    font-size: 26px;
    font-weight: 300;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.2s ease;
    z-index: 1000000;
    outline: none;
    padding: 0;
}

.site-lightbox-close:hover {
    background: #c0392b;
    border-color: #e74c3c;
    color: #ffffff;
    transform: scale(1.1);
}

/* Navigation Arrows (< and >) */
.site-lightbox-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 54px;
    height: 54px;
    background: rgba(255, 255, 255, 0.18);
    border: 2px solid rgba(255, 255, 255, 0.45);
    color: #ffffff;
    font-size: 24px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.2s ease;
    z-index: 1000000;
    outline: none;
    padding: 0;
}

.site-lightbox-btn:hover {
    background: rgba(255, 255, 255, 0.4);
    border-color: #ffffff;
    transform: translateY(-50%) scale(1.12);
}

.site-lightbox-prev {
    left: 25px;
}

.site-lightbox-next {
    right: 25px;
}

/* Bottom Bar: Caption & Counter */
.site-lightbox-footer {
    margin-top: 14px;
    text-align: center;
    color: #f0f0f0;
    max-width: 80vw;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

.site-lightbox-caption {
    font-size: 15px;
    font-weight: 500;
    line-height: 1.45;
    color: #ffffff;
    text-shadow: 0 1px 4px rgba(0,0,0,0.85);
}

.site-lightbox-counter {
    margin-top: 5px;
    font-size: 13px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.7);
    letter-spacing: 1px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .site-lightbox-close {
        top: 14px;
        right: 14px;
        width: 40px;
        height: 40px;
        font-size: 22px;
    }
    .site-lightbox-btn {
        width: 44px;
        height: 44px;
        font-size: 20px;
    }
    .site-lightbox-prev {
        left: 10px;
    }
    .site-lightbox-next {
        right: 10px;
    }
    .site-lightbox-img {
        max-width: 95vw;
        max-height: 70vh;
    }
    .site-lightbox-caption {
        font-size: 13px;
    }
}

