/* CSS Lightbox Gallery */

div.csslightbox {
  display: inline-block;
}

div.csslightbox_overlay {
  z-index: 1001;
  position: fixed;
  height: 100%;
  width: 100%;
  background-color: rgba(0,0,0,0.8);
  top: 0;
  left: 0;
  opacity: 0;
  pointer-events: none;
  cursor: default;
  transition: opacity 0.2s linear;
}

div.csslightbox_overlay img {
  position: fixed;
  background-color: white;
  margin: 0;
  padding: 0;
  max-height: 80%;
  max-width: 80%;
  top: 50%;
  left: 50%;
  margin-right: -50%;
  transform: translate(-50%, -50%);
  box-shadow: 0 0 20px black;
}

div.caption {
  color: #fff;
  font-size: 10pt;
  position: relative;
  max-width: 80%;
}

a.csslightbox_close,
a.csslightbox_prev,
a.csslightbox_next {
  z-index: 1001;
  position: fixed;
  text-decoration: none;
  visibility: hidden;
  color: white;
  font-size: 36px;
}

a.csslightbox_prev {
  left: 2%;
}

a.csslightbox_next {
  right: 2%;
}

a.csslightbox_close::after {
  /*  content: '\00d7';   replaced with image in HTML for this application*/
}

a.csslightbox_prev,
a.csslightbox_next {
  top: 50%;
  transform: translate(0%, -50%);
}



a:target ~ a.csslightbox_close,
a:target ~ a.csslightbox_prev,
a:target ~ a.csslightbox_next {
  visibility: visible;
}

a:target > img.csslightbox_thumb + div.csslightbox_overlay {
  visibility: visible;
  opacity: 1;
  pointer-events: initial;
}

/* This is the end of Gallery */