/* The Modal (background) */
.modal {
  display: none; 
  position: fixed; 
  z-index: 1000; 
  padding-top: 60px; 
  left: 0;
  top: 0;
  width: 100%; 
  height: 100%; 
  overflow: hidden; 
  background-color: rgba(0,0,0,0.9); 
}

/* Modal Content (image) */
.modal-img {
  margin: auto;
  display: block;
  max-width: 80%;
  max-height: 80%;
}

/* Caption */
#caption {
  margin: auto;
  display: block;
  text-align: center;
  color: #fff;
  font-size: 18px;
  padding: 10px 0;
}

/* Close Button */
.close {
  position: absolute;
  top: 20px;
  right: 35px;
  color: #fff;
  font-size: 40px;
  font-weight: bold;
  cursor: pointer;
}

/* Thumbnail hover */
.thumb {
  width: 100px;
  height: auto;
  cursor: pointer;
  transition: 0.3s;
}

.thumb:hover {
  opacity: 0.7;
}
.prev, .next {
  cursor: pointer;
  position: absolute;
  top: 50%;
  width: auto;
  padding: 16px;
  color: white;
  font-weight: bold;
  font-size: 30px;
  transition: 0.3s;
  user-select: none;
  border-radius: 3px;
}

.prev { left: 20px; }
.next { right: 20px; }

.prev:hover, .next:hover {
  background-color: rgba(0,0,0,0.4);
}
