/* Lightbox Styles */
.lightbox-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    box-sizing: border-box;
}

.lightbox-overlay.active {
    opacity: 1;
    visibility: visible;
}

.lightbox-content {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
    transform: scale(0.8);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.lightbox-overlay.active .lightbox-content {
    transform: scale(1);
}

.lightbox-image {
    width: 100%;
    height: auto;
    max-width: 90vw;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.lightbox-close {
    position: absolute;
    top: -50px;
    right: 0;
    background: rgba(255, 255, 255, 0.9);
    color: #333;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 18px;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10001;
}

.lightbox-close:hover {
    background: #fff;
    transform: scale(1.1);
}

.lightbox-navigation {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.9);
    color: #333;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 20px;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10001;
}

.lightbox-prev {
    left: -70px;
}

.lightbox-next {
    right: -70px;
}

.lightbox-navigation:hover {
    background: #fff;
    transform: translateY(-50%) scale(1.1);
}

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

.lightbox-navigation:disabled:hover {
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.9);
}

.lightbox-caption {
    position: absolute;
    bottom: -60px;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    color: #333;
    padding: 1rem 2rem;
    border-radius: 12px;
    text-align: center;
    font-size: 1rem;
    line-height: 1.4;
    backdrop-filter: blur(10px);
}

/* Clickable image cursor */
img[data-lightbox] {
    cursor: pointer;
    transition: all 0.3s ease;
}

img[data-lightbox]:hover {
    opacity: 0.9;
    transform: scale(1.02);
}

/* Mobile adjustments */
@media (max-width: 768px) {
    .lightbox-overlay {
        padding: 1rem;
    }
    
    .lightbox-close {
        top: -40px;
        right: -10px;
    }
    
    .lightbox-prev {
        left: -60px;
    }
    
    .lightbox-next {
        right: -60px;
    }
    
    .lightbox-caption {
        bottom: -50px;
        padding: 0.8rem 1rem;
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .lightbox-prev {
        left: 10px;
        top: 10px;
        transform: none;
    }
    
    .lightbox-next {
        right: 10px;
        top: 10px;
        transform: none;
    }
    
    .lightbox-close {
        top: 10px;
        right: 50%;
        transform: translateX(50%);
    }
    
    .lightbox-caption {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        border-radius: 0;
        border-top-left-radius: 12px;
        border-top-right-radius: 12px;
    }
}