/**
 * Lightbox styles for EazyDocs images
 */

#ezd-lightbox-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 99999;
    cursor: pointer;
}

.ezd-lightbox-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.ezd-lightbox-image {
    max-width: 100%;
    max-height: 80vh;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.ezd-lightbox-close {
    position: absolute;
    top: -50px;
    right: 0;
    color: white;
    font-size: 35px;
    font-weight: bold;
    cursor: pointer;
    z-index: 100001;
    transition: color 0.3s ease;
}

.ezd-lightbox-close:hover {
    color: #007cba;
}

.ezd-lightbox-caption {
    color: white;
    text-align: center;
    margin-top: 15px;
    font-size: 16px;
    line-height: 1.5;
    max-width: 600px;
}

/* Prevent body scroll when lightbox is open */
body.ezd-lightbox-open {
    overflow: hidden;
}

/* Image cursor styles */
.doc-content-wrap .wp-block-image img,
.doc-content-wrap img {
    cursor: zoom-in;
    transition: transform 0.3s ease;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .ezd-lightbox-content {
        max-width: 95%;
        max-height: 95%;
    }
    
    .ezd-lightbox-image {
        max-height: 70vh;
    }
    
    .ezd-lightbox-close {
        top: -35px;
        font-size: 30px;
    }
    
    .ezd-lightbox-caption {
        font-size: 14px;
        margin-top: 10px;
    }
}

/* Animation for lightbox */
#ezd-lightbox-overlay {
    animation: fadeIn 0.3s ease;
}

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

.ezd-lightbox-content {
    animation: zoomIn 0.3s ease;
}

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