/* assets/css/components/image-zoom.css */

.zoomable-image {
    cursor: zoom-in;
    transition: transform 0.3s ease;
    max-width: 100%; /* Ensures image doesn't overflow its container */
    height: auto;
    display: block; /* For mx-auto to work */
}

.prose img.modal-img {
    margin-left: auto !important;
    margin-right: auto !important;
    display: block !important;
}

.prose p img.modal-img {
    margin-left: auto !important;
    margin-right: auto !important;
    display: block !important;
}



.image-zoom-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    overflow: hidden;
}

.image-zoom-overlay.active {
    opacity: 1;
    visibility: visible;
}

.image-zoom-overlay img {
    max-width: none;
    max-height: none;
    cursor: zoom-out;
    transform-origin: 0 0;
}

