#modal-container {
  display: none;
  position: fixed;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(4px);
  text-align: center; 
  z-index: 6;
}

#modal-close-button {
  position: absolute;
  top: 1.25rem;
  right: 1rem;
  font-size: 3rem;
  line-height: 1rem;
  cursor: pointer;
  transition: 0.3s;
}

#modal-image {
  position: relative;
  display: inline-block;
  max-width: 95%;
  max-height: 80%;
  vertical-align: middle;
}

@keyframes zoom-in {
  from {
    transform: scale(0)
  }
  to {
    transform: scale(1)
  }
}

@keyframes zoom-out {
  from {
    transform: scale(1)
  }
  to {
    transform: scale(0)
  }
}

@-webkit-keyframes zoom-in {
  from {
    -webkit-transform: scale(0)
  }
  to {
    -webkit-transform: scale(1)
  }
}

@-webkit-keyframes zoom-out {
  from {
    transform: scale(1)
  }
  to {
    transform: scale(0)
  }
}

@media screen and (min-width: 800px) {
  #modal-image {
    max-width: 80%;
  }
}