
.thumbnail {
  cursor: pointer;
}
.lightbox {
  display: none;
  position: fixed;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(235, 235, 235, 0.9);
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

.lightbox-content {
  text-align: center;
  width: auto;
}

.lightbox-caption {
  color: black;
  font-size: 16px;
  margin-top: 15px;
  width: 100%;
}

.lightbox-image {
  max-width: 60vw;
  max-height: 85vh;
  width: auto;
  height: auto;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.lightbox-image.fade.in {
  opacity: 1;
}

.close {
  position: absolute;
  top: 17px;
  right: 20px;
  cursor: pointer;
}

.close svg {
  width: 25px;
}

.lightbox .nav {
  display: none;
  cursor: pointer;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  user-select: none;
  padding: 10px;
}

.nav svg {
  width: 30px;
}

.left {
  left: 30px;
}

.left svg {
  transform: rotate(180deg);
}

.right {
  right: 30px;
}

.nav:hover,
.close:hover {
  color: #ccc;
}

@media screen and (max-width: 768px) {  
  .lightbox-image {
    max-width: 90vw;
  }
  .lightbox .nav {
    bottom: 0px;
    top: unset;
    padding: 0; 
  }

  .left {
    left: 20px;
  }

  .right {
    right: 20px;
  }
}