/* imageZoom.css - Stili per la funzionalità di zoom delle immagini */

.modal-container {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    z-index: 1000;
    justify-content: center;
    align-items: center;
    opacity: 0;
    /*transition: opacity 0.3s ease;*/
}

.modal-container.show {
    opacity: 1;
}

.modal-image {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
    border: 2px solid white;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
    transform: scale(0.9);
    /*transition: transform 0.3s ease;*/
}

.modal-container.show .modal-image {
    transform: scale(1);
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 25px;
    color: white;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    /*transition: color 0.2s ease;*/
}

.modal-close:hover {
    color: #dddddd;
}

/* Stile per rendere visibile che le immagini sono cliccabili */
.img-gallery {
    /*transition: transform 0.2s ease, box-shadow 0.2s ease;*/
}

.img-gallery:hover {
    transform: scale(1.02);
    /*box-shadow: 0 5px 15px rgba(0,0,0,0.2);*/
}

/* Aggiusta lo stile per dispositivi mobili */
@media only screen and (max-width: 500px) {
    .modal-image {
        max-width: 95%;
        max-height: 80%;
    }
    
    .modal-close {
        top: 10px;
        right: 15px;
        font-size: 30px;
    }
}
