#lightbox,
#lightbox::before {
  opacity: 0;
  pointer-events: none;
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
  transition: all .3s ease-in-out;
}
#lightbox {
  position: fixed;
  cursor: pointer;
  z-index: 9999999;
  line-height: 1;
  font-family: sans-serif;
}
#lightbox::before {
  backdrop-filter: grayscale(1) blur(2px);
  transition: all .3s ease-in-out;
  background: rgba(0, 0, 0, .7);
  z-index: 0;
  content: "";
}
body.lightbox_visible #lightbox,
body.lightbox_visible #lightbox::before {
  opacity: 1;
  pointer-events: all;
}
#lightbox .img {
  position: relative;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  max-width: 100%;
  max-height: 100%;
}
#lightbox .img img {
  opacity: 0;
  pointer-events: none;
  width: auto;
}
@media screen and (min-width: 1200px) {
  #lightbox .img {
    max-width: 1200px;
  }
}
@media screen and (min-height: 1200px) {
  #lightbox .img {
    max-height: 1200px;
  }
}
#lightbox span {
  display: none;
}
#lightbox .videoWrapperContainer {
  position: relative;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 1200px;
  max-width: 100%;
  max-height: 100%;
}
#lightbox .videoWrapperContainer .videoWrapper {
  height: 0;
  line-height: 0;
  margin: 0;
  padding: 0;
  position: relative;
  padding-bottom: 56.333%;
  background: #000;
}
#lightbox .videoWrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}
#lightbox #prev,
#lightbox #next {
  display: none;
}
#lightbox #close {
  height: 50px;
  width: 50px;
  position: fixed;
  cursor: pointer;
  text-decoration: none;
  z-index: 99;
  right: 0;
  top: 0;
  background: 0 0 !important;
}
#lightbox #close:after,
#lightbox #close:before {
  position: absolute;
  margin-top: 22px;
  margin-left: 14px;
  content: "";
  height: 2px;
  background: #fff;
  width: 23px;
  transform-origin: 50% 50%;
  transform: rotate(-45deg);
}
#lightbox #close:after {
  transform: rotate(45deg);
}
#lightbox,
#lightbox * {
  user-select: none;
}
