/* Simple Lightbox overlay */
#lightbox-overlay {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    justify-content: center;
    align-items: center;
    cursor: pointer;
}

#lightbox-overlay.active {
    display: flex;
}

#lightbox-img {
    max-width: 90vw;
    max-height: 90vh;
    object-fit: contain;
    cursor: default;
    border-radius: 4px;
}

#lightbox-close {
    position: fixed;
    top: 20px;
    right: 30px;
    font-size: 40px;
    color: #fff;
    cursor: pointer;
    z-index: 10001;
    line-height: 1;
    font-family: Arial, sans-serif;
}

#lightbox-close:hover {
    opacity: 0.7;
}

/* Navigation arrows */
#lightbox-prev,
#lightbox-next {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    font-size: 48px;
    color: #fff;
    cursor: pointer;
    z-index: 10001;
    user-select: none;
    -webkit-user-select: none;
    line-height: 1;
    font-family: Arial, sans-serif;
    padding: 16px;
    transition: opacity 0.2s;
}

#lightbox-prev {
    left: 16px;
}

#lightbox-next {
    right: 16px;
}

#lightbox-prev:hover,
#lightbox-next:hover {
    opacity: 0.7;
}

/* Image counter */
#lightbox-counter {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    color: #fff;
    font-size: 15px;
    font-family: Arial, sans-serif;
    z-index: 10001;
    user-select: none;
    -webkit-user-select: none;
    letter-spacing: 1px;
}

/* Mobile adjustments */
@media (max-width: 768px) {
    #lightbox-prev,
    #lightbox-next {
        font-size: 36px;
        padding: 12px;
    }

    #lightbox-prev {
        left: 4px;
    }

    #lightbox-next {
        right: 4px;
    }

    #lightbox-counter {
        bottom: 16px;
        font-size: 13px;
    }
}

.lightbox-gallery a,
.lightbox-gallery a:focus,
.lightbox-gallery a:active,
.lightbox-gallery a:focus-visible {
    outline: none !important;
    box-shadow: none !important;
    -webkit-tap-highlight-color: transparent;
}
