/* The work below, CSSBox, is released under the Creative Commons
   Attribution-ShareAlike 4.0 license and is available on
   https://github.com/TheLastProject/CSSBox. You are not required to add
   additional credit to your website, just leave the above text in this file */
div.cssbox {
  display: inline-block;
}

span.cssbox_full {
  z-index: 999999;
  position: fixed;
  height: 100%;
  width: 100%;
  background-color:rgba(0, 0, 0, 0.85);
  top: 0;
  left: 0;
  opacity: 0;
  pointer-events: none;
  cursor: default;
}

span.cssbox_full img {
  position: fixed;
  margin: 0;
  padding: 0;
  max-height: 90%;
  max-width: calc(100% - 60px);
  top: 50%;
  left: 50%;
  margin-right: -50%;
  transform: translate(-50%, -50%);
}

a.cssbox_close,
a.cssbox_prev,
a.cssbox_next {
  z-index: 999999;
  position: fixed;
  text-decoration: none;
  visibility: hidden;
  color: white;
}

a.cssbox_close{
  margin-top: 0px !important;
  transform-origin: center center;
  transition: 0.35s transform;
}

a.cssbox_close:hover{
  transform: rotate(180deg);
  opacity: 0.5;
}

a.cssbox_close {
  top: 30px;
  right: 25px;
}

a.cssbox_prev:hover,
a.cssbox_next:hover{
  opacity: 0.5;
}

a.cssbox_prev,
a.cssbox_next {
  top: 50%;
  transform: translate(0%, -50%);
}

a.cssbox_prev {
  left: 30px;
}

a.cssbox_next {
  right: 30px;
  transform: translate(0%, -50%) scaleX(-1);
}

@media screen and (max-width:991px){
  span.cssbox_full img {
    max-width: calc(100% - 120px);
  }

  a.cssbox_prev {
    left: 15px;
  }
  a.cssbox_next {
    right: 15px;
  }
  a.cssbox_close {
    top:15px;
    right: 15px;
  }
}

a:target ~ a.cssbox_close,
a:target ~ a.cssbox_prev,
a:target ~ a.cssbox_next {
  visibility: visible;
}

a:target > img.cssbox_thumb + span.cssbox_full {
  opacity: 1;
  pointer-events: initial;
}

/* This is the end of CSSBox */
