/**
 * Lightbox CSS - Minimal lightbox styles
 * This is a simplified version for fallback when lightbox.js is not available
 */

.lb-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.lb-overlay.lb-visible {
    opacity: 1;
    visibility: visible;
}

.lb-container {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    max-width: 90%;
    max-height: 90%;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s ease;
}

.lb-container.lb-visible {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, -50%) scale(1);
}

.lb-image {
    max-width: 100%;
    max-height: 80vh;
    display: block;
    box-shadow: 0 0 25px rgba(0, 0, 0, 0.9);
}

.lb-caption {
    color: white;
    text-align: center;
    padding: 15px;
    background: rgba(0, 0, 0, 0.8);
    font-size: 14px;
}

.lb-close {
    position: absolute;
    top: -40px;
    right: 0;
    width: 40px;
    height: 40px;
    background: none;
    border: none;
    color: white;
    font-size: 30px;
    cursor: pointer;
    line-height: 1;
    padding: 0;
}

.lb-close:hover {
    color: #ccc;
}

.lb-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background: rgba(0, 0, 0, 0.6);
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.lb-nav:hover {
    opacity: 1;
    background: rgba(0, 0, 0, 0.8);
}

.lb-prev {
    left: -60px;
}

.lb-next {
    right: -60px;
}

.lb-loading {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
}

/* Responsive */
@media (max-width: 768px) {
    .lb-prev {
        left: 10px;
    }
    
    .lb-next {
        right: 10px;
    }
    
    .lb-close {
        top: 10px;
        right: 10px;
    }
    
    .lb-nav {
        width: 40px;
        height: 40px;
        font-size: 18px;
    }
}

/* Hide scrollbars when lightbox is open */
body.lb-disable-scrolling {
    overflow: hidden;
}