/* Elemento di apertura (pulsante, link, immagine...) */
.openModalTrigger {
  padding: 0px 0px;
  background-color: #4f46e5;
  color: #000;
  border: none;
  border-radius: 0px;
  cursor: pointer;
  font-size: 10px;
  transition: transform 0.8s;
}
/* Zoom automatico dell'immagine */
.openModalTrigger:hover {
  -ms-transform: scale(2); /* IE 9 */           /* fattore d'ingrandimento 1,5 (modificabile qui) */
  -webkit-transform: scale(2); /* Safari 3-8 */ /* fattore d'ingrandimento 1,5 (modificabile qui) */
  transform: scale(2);                          /* fattore d'ingrandimento 1,5 (modificabile qui) */
}
/* Overlay scuro */
.pageOverlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.75);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  animation: fadeInOverlay 0.5s;
}
/* Finestra modale */
.modalContainer {
  background-color: #fff;
  padding: 5px;
  border-radius: 6px;
  text-align: center;
  position: relative;
  animation: fadeIn 0.8s;
}
/* Sezione <DIV> con l'immagine */
.modalImageCtn {
  border: none;
  border-radius: 0px;
  color: #000;
  max-width: 70%;
  max-height: 60%;
}
/* Modal image */
.modal-img {
  width: 540px;
}
/* Pulsante X di chiusura */
#closeIcon {
  position: absolute;
  top: 15px;
  right: 20px;
  margin: 0px;
  padding: 0px;
  color: white;
  font-size: 50px;
  cursor: pointer;
}
/* Pulsante chiudi */
#closeButton {
  margin-top: 2px;
  padding: 10px 18px;
  background: #ef4444;
  color: white;
  border: none;
  border-radius: 6px;
  cursor: pointer;
}

/* Animazione */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: scale(0.5);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}
@keyframes fadeInOverlay {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}