/* The Modal (background) */
.modal {
  display: flex;
  position: fixed;
  z-index: 1;

  flex-direction: column;
  justify-content: center;
  align-items: center;

  /* Location of the box */
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;

  /* Black w/ opacity */
  background-color: rgba(0, 0, 0, 0.8);
}

/* Modal Content (image) */
.modal-content {
  width: auto;
  max-width: 100%;
  max-height: 100%;
}

/* Add Animation */
.modal-content {
  animation-name: zoom;
  animation-duration: 0.5s;
}

@keyframes zoom {
  from {
    transform: scale(0);
  }
  to {
    transform: scale(1);
  }
}

/* The Close Button */
.close {
  position: absolute;
  top: 32px;
  right: 32px;
  color: #f1f1f1;
  font-size: 40px;
  font-weight: bold;
  transition: 0.3s;
  line-height: 1; /* It was a lot taller than wide */
}

.close:hover,
.close:focus {
  color: #bbb;
  text-decoration: none;
  cursor: pointer;
}

.closed {
  display: none;
}
