/* Lightbox Styles */

.sk-lightbox-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.9);
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.sk-lightbox-container {
    background: #1a1a1a;
    max-width: 900px;
    width: 100%;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    position: relative;
}

.sk-lightbox-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    font-size: 30px;
    color: white;
    cursor: pointer;
    z-index: 1000;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.5);
    transition: background 0.3s ease;
}

.sk-lightbox-close:hover {
    background: rgba(0, 0, 0, 0.8);
}

.sk-lightbox-header {
    background: #2c3e50;
    color: white;
    padding: 15px 20px;
    border-bottom: 1px solid #34495e;
    display: block !important;
}

.sk-lightbox-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.sk-lightbox-title {
    margin: 0;
    font-size: 18px;
    color: white;
    max-width: 70%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.sk-lightbox-meta {
    display: flex;
    gap: 20px;
    font-size: 14px;
    color: #bdc3c7;
}

.sk-lightbox-content-wrapper {
    flex: 1;
    overflow: hidden;
    position: relative;
    display: flex;
    flex-direction: column;
}

.sk-lightbox-content {
    padding: 30px;
    text-align: center;
    min-height: 300px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex: 1;
    overflow-y: auto;
}

.sk-lightbox-content img {
    width: 100%;
    max-height: calc(90vh - 180px);
    object-fit: cover;
    border-radius: 4px;
}

.sk-lightbox-caption {
    margin-top: 15px;
    font-size: 16px;
    color: #eee;
    line-height: 1.5;
    padding: 10px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    max-width: 100%;
    text-align: center;
}

.sk-lightbox-navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    background: transparent;
    border: none;
}

.sk-lightbox-prev,
.sk-lightbox-next {
    padding: 8px 16px;
    background: #0073aa;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s ease;
    min-width: 100px;
    visibility: visible; /* Default to visible */
}

.sk-lightbox-prev:hover,
.sk-lightbox-next:hover {
    background: #005a87;
    transform: translateY(-1px);
}

.sk-lightbox-prev:disabled,
.sk-lightbox-next:disabled {
    background: #cccccc;
    cursor: not-allowed;
    transform: none;
}

.sk-lightbox-counter {
    font-weight: bold;
    color: white;
    font-size: 14px;
    padding: 5px 15px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 20px;
}

/* Loading and Error States */
.sk-lightbox-loading {
    padding: 50px;
    text-align: center;
    color: #ccc;
    font-size: 16px;
}

.sk-loading-spinner {
    border: 4px solid #f3f3f3;
    border-top: 4px solid #0073aa;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: sk-spin 1s linear infinite;
    margin: 0 auto 15px;
}

@keyframes sk-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.sk-lightbox-error {
    padding: 50px;
    text-align: center;
    color: #ff6b6b;
    font-size: 16px;
    background: rgba(255, 107, 107, 0.1);
    border-radius: 4px;
    margin: 20px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .sk-lightbox-container {
        max-width: 95%;
        max-height: 95vh;
    }
    
    .sk-lightbox-content {
        padding: 15px;
    }
    
    .sk-lightbox-content img {
        max-height: 60vh;
    }
    
    .sk-lightbox-info {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }
    
    .sk-lightbox-title {
        max-width: 100%;
        font-size: 16px;
    }
    
    .sk-lightbox-prev,
    .sk-lightbox-next {
        min-width: 80px;
        padding: 6px 12px;
        font-size: 13px;
    }
}