/* Lightbox Modal Styles */
.lightbox-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.lightbox-overlay.show {
    opacity: 1;
}

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

.lightbox-image {
    max-width: 100%;
    max-height: 80vh;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.lightbox-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 1rem;
    gap: 1rem;
}

.lightbox-nav {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #f0f0f0;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: 'Fira Code', monospace;
    font-size: 0.9rem;
}

.lightbox-nav:hover {
    background: rgba(46, 226, 230, 0.2);
    color: #2de2e6;
    border-color: #2de2e6;
}

.lightbox-nav:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.lightbox-nav:disabled:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #f0f0f0;
    border-color: rgba(255, 255, 255, 0.2);
}

.lightbox-close {
    position: absolute;
    top: -3rem;
    right: 0;
    background: none;
    border: none;
    color: #f0f0f0;
    font-size: 2rem;
    cursor: pointer;
    padding: 0.5rem;
    line-height: 1;
    transition: color 0.2s ease;
    z-index: 2001;
}

.lightbox-close:hover {
    color: #2de2e6;
}

.lightbox-counter {
    color: #f0f0f0;
    font-family: 'Fira Code', monospace;
    font-size: 0.9rem;
    opacity: 0.8;
}

/* Navigation arrows */
.lightbox-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #f0f0f0;
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.2rem;
    transition: all 0.2s ease;
    z-index: 2001;
}

.lightbox-arrow:hover {
    background: rgba(46, 226, 230, 0.2);
    color: #2de2e6;
    border-color: #2de2e6;
}

.lightbox-arrow:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.lightbox-arrow.prev {
    left: 2rem;
}

.lightbox-arrow.next {
    right: 2rem;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    .lightbox-content {
        max-width: 95vw;
        max-height: 95vh;
    }
    
    .lightbox-image {
        max-height: 75vh;
    }
    
    .lightbox-close {
        top: -2rem;
        font-size: 1.5rem;
    }
    
    .lightbox-arrow {
        width: 2.5rem;
        height: 2.5rem;
        font-size: 1rem;
    }
    
    .lightbox-arrow.prev {
        left: 1rem;
    }
    
    .lightbox-arrow.next {
        right: 1rem;
    }
    
    .lightbox-controls {
        flex-wrap: wrap;
        gap: 0.5rem;
    }
}