#lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

#lightbox img {
  max-width: 90%;
  max-height: 80%;
  width: 90%;
  object-fit: contain;
  margin: auto;
}

#lightbox .caption {
  color: #fff;
  font-size: 1.2rem;
  text-align: center;
  margin-top: 1rem;
  display: none;
}

#lightbox button {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 50px;
  height: 50px;
  background: transparent;
  border: none;
  cursor: pointer;
  color: #fff;
  font-size: 2rem;
}

#lightbox .prev {
  left: 5%;
}

#lightbox .next {
  right: 5%;
}

#lightbox .close {
  top: 5%;
  right: 5%;
}
