/**
 * Lightbox Styles for Gallery
 * Nero Theme
 */

/* Lightbox Container */
.nero-lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    display: none;
}

.nero-lightbox-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    cursor: pointer;
}

.nero-lightbox-container {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    box-sizing: border-box;
}

/* Content */
.nero-lightbox-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.nero-lightbox-image {
    display: block;
    max-width: 100%;
    max-height: 80vh;
    width: auto;
    height: auto;
}

.nero-lightbox-loading {
    padding: 40px;
    text-align: center;
    color: #666;
    font-size: 16px;
}

/* Info */
.nero-lightbox-info {
    padding: 15px 20px;
    background: #f8f9fa;
    border-top: 1px solid #dee2e6;
}

.nero-lightbox-title {
    font-weight: 600;
    color: #212529;
    margin-bottom: 5px;
    font-size: 16px;
}

.nero-lightbox-caption {
    color: #6c757d;
    font-size: 14px;
    line-height: 1.4;
}

/* Navigation */
.nero-lightbox-prev,
.nero-lightbox-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.7);
    color: white;
    border: none;
    width: 50px;
    height: 50px;
    font-size: 24px;
    cursor: pointer;
    border-radius: 50%;
    transition: all 0.3s ease;
    z-index: 10;
}

.nero-lightbox-prev:hover,
.nero-lightbox-next:hover {
    background: rgba(0, 0, 0, 0.9);
    transform: translateY(-50%) scale(1.1);
}

.nero-lightbox-prev {
    left: 20px;
}

.nero-lightbox-next {
    right: 20px;
}

/* Close Button */
.nero-lightbox-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
}

.nero-lightbox-close:hover {
    background: rgba(0, 0, 0, 0.9);
    transform: scale(1.1);
}

/* Counter */
.nero-lightbox-counter {
    position: absolute;
    top: 15px;
    left: 15px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 8px 12px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
    z-index: 10;
}

/* Body class when lightbox is open */
.nero-lightbox-open {
    overflow: hidden;
}

/* Responsive */
@media (max-width: 768px) {
    .nero-lightbox-container {
        padding: 10px;
    }
    
    .nero-lightbox-content {
        max-width: 95%;
        max-height: 95%;
    }
    
    .nero-lightbox-image {
        max-height: 70vh;
    }
    
    .nero-lightbox-prev,
    .nero-lightbox-next {
        width: 40px;
        height: 40px;
        font-size: 20px;
    }
    
    .nero-lightbox-prev {
        left: 10px;
    }
    
    .nero-lightbox-next {
        right: 10px;
    }
    
    .nero-lightbox-close {
        width: 35px;
        height: 35px;
        font-size: 20px;
        top: 10px;
        right: 10px;
    }
    
    .nero-lightbox-counter {
        top: 10px;
        left: 10px;
        padding: 6px 10px;
        font-size: 12px;
    }
    
    .nero-lightbox-info {
        padding: 12px 15px;
    }
    
    .nero-lightbox-title {
        font-size: 14px;
    }
    
    .nero-lightbox-caption {
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .nero-lightbox-prev,
    .nero-lightbox-next {
        width: 35px;
        height: 35px;
        font-size: 18px;
    }
    
    .nero-lightbox-image {
        max-height: 60vh;
    }
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.nero-lightbox-content {
    animation: slideIn 0.3s ease;
}

/* Loading animation */
.nero-lightbox-loading::after {
    content: "";
    display: inline-block;
    width: 20px;
    height: 20px;
    margin-left: 10px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid #007cba;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}