/* Gallery lightbox on NLPca wedding page */
/* v. 2022-01-30 */


.lb_lightbox {
  display: flex;
  flex-flow: row wrap;
  margin: 15px auto;
  width: 85%;
  background-color: transparent;
  padding: 0px 5px;
}

.lb_object {   /* the 'Thumbnails' */
  flex: 1 1 auto;
  width: 15%;
  height: 15vw;
  overflow: hidden;
  margin: 5px;
  padding: 5px 0;
  border-top: 3px solid transparent;
  border-bottom: 3px solid transparent;
  transition: 200ms;
}

@media screen and (max-width: 1000px) {
  .lb_object {
    width: 23%;
    height: 23vw;
  }
}

@media screen and (max-width: 600px) {
  .lb_object {
    width: 48%;
    height: 48vw;
  }
}

.lb_object_sm {
  flex: 1 1 auto;
  width: 85px;
  height: 90px;
  margin: 0 5px;
  padding: 5px 0;
  transition: 200ms;
}

.lb_object_sm:hover {
  transform: scale(1.05);
  transition: 200ms;
}

.lb_object > img,
.lb_object_sm > img {
  height: 100%;
  width: 100%;
  object-fit: cover;
  border: 1px solid #333;
  cursor: pointer;
}

.lb_object:hover {
  /* border-top: 3px solid rgb(68, 116, 138); */
  /* border-bottom: 3px solid rgb(68, 116, 138); */
  transform: scale(1.03);
  transition: 200ms;
}


/* Dark background */
.lb_overlay {
  display: none;
  position: fixed;
  z-index: 2;
  padding-top: 35px;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.93);
}


/* Container for overlay photo, caption, number and closebutton */
.lb_overlay_content {
  position: relative;
  z-index: 1;
  margin: 25px auto;
  padding: 0;
  width: 95%;
  max-width: 1200px;
  max-height: 95%;
  border: 2px solid #333;
}

/* The Close Button */
.close {
  color: white;
  position: absolute;
  top: 65px;
  right: 40px;
  font-size: 40px;
  font-weight: bold;
  cursor: pointer;
  z-index: 9999;
}

.close:hover,
.close:focus {
  color: #999;
  text-decoration: none;
}

/* Number text (1/3 etc) */
.numbertext {
  color: #f2f2f2;
  font-size: 12px;
  padding: 8px 15px;
  position: absolute;
  top: 0;
}

.lb_slide {
  display: none;
  height: 70vh;
  border: 0px solid green;
  padding: 10px;
  position: relative;
  padding-bottom: 15px;
}

.lb_slide img {
  display: inline;
  margin: 5px auto;
  border: 2px solid black;
  box-shadow: 0 0 0px 2px rgba(255, 255, 255, 0.15);
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  vertical-align: middle;
}

.lb_thumbnail {
  cursor: pointer;
  width: 100%;
  opacity: 0.5;
}

.lb_thumbnail:hover,
.active {
  opacity: 1
} /* Note script replaces class name with 'active' */

/* Next & previous buttons */
.prev,
.next {
  cursor: pointer;
  position: absolute;
  top: 50%;
  width: auto;
  padding: 40px 20px;
  margin-top: -50px;
  color: white;
  font-weight: bold;
  font-size: 20px;
  transition: 0.6s ease;
  border-radius: 0 3px 3px 0;
  user-select: none;
  -webkit-user-select: none;
}

/* Position the "next button" to the right */
.next {
  right: 0;
  border-radius: 3px 0 0 3px;
}

/* On hover, add a background  */
.prev:hover,
.next:hover {
  background-color: rgba(0, 0, 0, 0.8);
}

.caption-container {
  text-align: center;
  background-color: #111;
  padding: 2px 16px;
  color: white;
}
