/* The main lightbox container (the dark overlay) */
.lightbox {
  display: none; /* Hidden by default */
  position: fixed; /* Stay in place */
  z-index: 2000; /* Sit on top of everything */
  padding-top: 60px; /* Location of the box */
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto; /* Enable scroll if needed */
  background-color: rgba(34, 33, 33, 0.9); /* Black with opacity */
  transition: opacity 0.6s ease;
}

/* The enlarged image */
.lightbox-content {
  margin: auto;
  display: block;
  max-width: 85%;
  max-height: 80vh;
  /* Animation */
  animation-name: zoom;
  animation-duration: 0.6s;
}

/* The caption text */
.lightbox-caption {
  margin: auto;
  display: block;
  width: 90%;
  max-width: 700px;
  text-align: center;
  color: #ccc;
  padding: 10px 0;
  height: 150px;
}

/* The Close Button */
.lightbox-close {
  position: absolute;
  top: 55px;
  right: 25px;
  color: rgb(231, 236, 231);
  font-size: 40px;
  font-weight: bold;
  transition: 0.5s;
  cursor: pointer;
}

.lightbox-close:hover,
.lightbox-close:focus {
  color: #bbb;
  text-decoration: none;
}

/* Add Zoom Animation */
@keyframes zoom {
  from {
    transform: scale(0.8);
  }
  to {
    transform: scale(1);
  }
}

/* Make images with the trigger class clickable */
.lightbox-trigger {
  cursor: zoom-in;
  transition: opacity 0.3s;
}

.lightbox-trigger:hover {
  opacity: 0.8;
}
