h3 {
  text-align: center;
}

#image_container {
  display: flex;
  flex-flow: row wrap;
  justify-content: space-around;
  margin-left: 2em;
  margin-right: 2em;
}

#image_container > img {
  margin-left: 2em;
  margin-bottom: 2em;
}

.modal {
  display: none;
  position: fixed;
  z-index: 1;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.4);
}

.modal-image-container {
  display: flex;
  justify-content: space-around;
  background: white;
  margin-top: 1%;
  margin-left: 5%; /* must match the pointers left / right placement */
  margin-right: calc(5% - 1px);
  border: 1px solid black;
  width: 90%;
  height: 90%;
}

.gallery_photo {
  object-fit: contain;
  max-height: 800px;
  max-width: 600px;
}

.gallery_photo_thumbnail {
  width: 250px;
  height: 250px;
}

.gallery_photo_thumbnail:hover {
  cursor: pointer;
}

.prev, .next {
  cursor: pointer;
  position: absolute;
  top: 45%;
  width: auto;
  margin-top: -1.5em;
  padding: .5em;
  color: white;
  font-weight: bold;
  font-size: 2em;
  transition: 0.6s ease;
  border-radius: 0 3px 3px 0;
  user-select: none;
  background-color: rgba(0,0,0,0.4);
}

.prev:hover, .next:hover {
  background-color: rgba(0,0,0,0.9);
}

.next {
  right: 5%;
  border-radius: 3px 0 0 3px;
}

.prev {
  left: 5%;
  border-radius: 3px 0 0 3px;
}
