/* CSS Document */



/* The Modal (background) */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8);
  align-items: center;
  justify-content: center;
  transition: opacity 0.5s ease; 
}

/* Modal content (image) */
.modal-content {
  position: relative;
  height: 90%;
  width: auto;
  max-height: 90%;
  max-width: auto;  
  border-radius: 5px;
  overflow: hidden;
  animation: zoomIn 0.5s;  
  transition: transform .2s; /* Animation */  
}

@keyframes zoomIn {
  from {transform: scale(0.6);}
  to {transform: scale(1);}  
}


.modal-content:hover {  
  cursor:zoom-in;  
} 


.modal-content:focus,
.modal-content:active {
  cursor:zoom-in;
  transform: scale(1.5);   
}


.modal.show {
  display: flex;
  opacity: 1;  
}

/* Close button */
.close {
  position: absolute;
  top: 10px;
  right: 15px;
  color: #ffffff;
  font-size: 35px;
  font-weight: bold;
  cursor: pointer;
  transition: transform 0.3s;
}

/* Caption of modal image */
.caption {
  position: absolute;
  bottom: 2px;
  width: 100%;
  text-align: center;
  color: #ffffff;
  font-size: 20px;
}

@media screen and (max-width: 768px) {
  .modal-content {
    width : 90%;
    height: auto;
    max-width: 90%;
    max-height: auto;
  }
}
