/* Beautiful Modern Lightbox - Instagram/Pinterest Style */
.lightbox {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    overflow: auto;
}

.lightbox.active {
    display: flex !important;
    align-items: center;
    justify-content: center;
    padding: 0;
}

/* Wrapper for all lightbox content */
.lightbox-wrapper {
    position: relative;
    max-width: 1200px;
    width: 90%;
    max-height: 95vh;
    margin: auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Content Container - Centered and Spacious */
.lightbox-content {
    position: relative;
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    width: 100%;
    max-width: 900px;
    display: flex;
    flex-direction: column;
}

/* Image Container - Takes most of the space */
.lightbox-image-container {
    width: 100%;
    background: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 400px;
    max-height: 70vh;
}

.lightbox-image {
    width: 100%;
    height: auto;
    max-height: 70vh;
    object-fit: contain;
    display: block;
}

/* Caption Area - Clean and spacious at bottom */
.lightbox-caption {
    padding: 30px 40px;
    background: #ffffff;
    text-align: center;
}

.lightbox-title {
    font-size: 28px;
    font-weight: 700;
    color: #2c3e50;
    margin: 0 0 12px 0;
    font-family: 'Playfair Display', 'Georgia', serif;
}

.lightbox-description {
    font-size: 16px;
    color: #666;
    line-height: 1.6;
    margin: 0;
    font-family: 'Open Sans', 'Arial', sans-serif;
}

/* Close Button - Modern and prominent */
.lightbox-close {
    position: absolute;
    top: 20px;
    right: 20px;
    color: #ffffff;
    font-size: 42px;
    font-weight: 300;
    cursor: pointer;
    z-index: 10001;
    background: rgba(0, 0, 0, 0.5);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    line-height: 1;
    padding: 0;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.lightbox-close:hover {
    background: rgba(220, 53, 69, 0.9);
    transform: rotate(90deg);
    border-color: #ffffff;
}

/* Navigation Buttons - Sleek and modern */
.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    color: #ffffff;
    font-size: 32px;
    font-weight: 300;
    padding: 20px 18px;
    cursor: pointer;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 8px;
    transition: all 0.3s ease;
    z-index: 10001;
    user-select: none;
}

.lightbox-prev {
    left: 20px;
}

.lightbox-next {
    right: 20px;
}

.lightbox-nav:hover {
    background: rgba(220, 53, 69, 0.9);
    border-color: #ffffff;
    transform: translateY(-50%) scale(1.1);
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .lightbox-wrapper {
        width: 95%;
        max-height: 90vh;
    }
    
    .lightbox-content {
        border-radius: 8px;
    }
    
    .lightbox-image-container {
        min-height: 300px;
        max-height: 60vh;
    }
    
    .lightbox-image {
        max-height: 60vh;
    }
    
    .lightbox-caption {
        padding: 20px 25px;
    }
    
    .lightbox-title {
        font-size: 22px;
    }
    
    .lightbox-description {
        font-size: 14px;
    }
    
    .lightbox-close {
        top: 10px;
        right: 10px;
        width: 40px;
        height: 40px;
        font-size: 32px;
    }
    
    .lightbox-nav {
        font-size: 24px;
        padding: 15px 12px;
    }
    
    .lightbox-prev {
        left: 10px;
    }
    
    .lightbox-next {
        right: 10px;
    }
}

/* Animation */
@keyframes lightboxFadeIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.lightbox.active .lightbox-content {
    animation: lightboxFadeIn 0.3s ease;
}