/* Lightbox Styles with Blur Effect and Image Carousel */

/* Lightbox Overlay */
.project-lightbox {
    position: fixed;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    overflow-y: auto;
}

.project-lightbox.active {
    display: flex;
}

/* Lightbox Content */
.lightbox-content {
    width: 95%;
    max-width: 1200px;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    position: relative;
    background-color: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
    color: #ffffff;
    overflow: hidden;
}

/* Close Button */
.lightbox-close {
    position: absolute;
    top: 16px;
    right: 16px;
    background-color: var(--primary-color);
    color: #fff;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: none;
    font-size: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    transition: background-color 0.3s ease;
}

.lightbox-close:hover {
    background-color: #c0392b;
}

/* Media Section */
.lightbox-media {
    width: 100%;
    height: 50vh;
    position: relative;
    overflow: hidden;
}

/* Carousel Styles */
.lightbox-carousel {
    width: 100%;
    height: 100%;
    position: relative;
}

.lightbox-carousel-container {
    width: 100%;
    height: 100%;
    position: relative;
}

.lightbox-carousel-item {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.lightbox-carousel-item.active {
    opacity: 1;
    z-index: 1;
}

.lightbox-carousel-item img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    background-color: rgba(0, 0, 0, 0.2);
}

/* Carousel Navigation */
.lightbox-carousel-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    color: #fff;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 2;
    transition: background-color 0.3s ease;
}

.lightbox-carousel-nav:hover {
    background-color: var(--primary-color);
}

.lightbox-carousel-nav.prev {
    left: 20px;
}

.lightbox-carousel-nav.next {
    right: 20px;
}

/* Carousel Indicators */
.lightbox-carousel-indicators {
    position: absolute;
    bottom: 20px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    gap: 10px;
    z-index: 2;
}

.lightbox-indicator {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    border: none;
    padding: 0;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.lightbox-indicator.active {
    background-color: var(--primary-color);
    transform: scale(1.3);
}

/* Info Section */
.lightbox-info {
    padding: 30px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.lightbox-info h3 {
    font-size: 2rem;
    margin-bottom: 5px;
    color: #ffffff;
    font-weight: 700;
}

.lightbox-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 20px;
    color: rgba(255, 255, 255, 0.9);
}

.lightbox-meta span {
    display: flex;
    align-items: center;
}

.lightbox-meta i {
    margin-right: 8px;
    color: var(--primary-color);
}

.lightbox-description {
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.8;
}

/* Responsive Styles */
@media (min-width: 992px) {
    .lightbox-content {
        flex-direction: row;
        max-height: 85vh;
    }
    
    .lightbox-media {
        width: 60%;
        height: auto;
        min-height: 85vh;
    }
    
    .lightbox-info {
        width: 40%;
        max-height: 85vh;
    }
}

/* For very large screens */
@media (min-width: 1400px) {
    .lightbox-content {
        max-width: 1400px;
        max-height: 90vh;
    }
    
    .lightbox-media {
        min-height: 90vh;
    }
    
    .lightbox-info {
        max-height: 90vh;
    }
}

@media (max-width: 768px) {
    .lightbox-media {
        height: 40vh;
    }
    
    .lightbox-carousel-nav {
        width: 36px;
        height: 36px;
    }
    
    .lightbox-carousel-nav.prev {
        left: 10px;
    }
    
    .lightbox-carousel-nav.next {
        right: 10px;
    }
    
    .lightbox-info h3 {
        font-size: 1.5rem;
    }
    
    .lightbox-meta {
        gap: 12px;
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .lightbox-media {
        height: 35vh;
    }
    
    .lightbox-info {
        padding: 16px;
    }
    
    .lightbox-info h3 {
        font-size: 1.3rem;
    }
    
    .lightbox-meta {
        flex-direction: column;
        gap: 8px;
    }
}
