/* 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;*/
}

img.cssbox_thumb{
	width: 100%;
	height: 100%;
}

span.cssbox_full {
  z-index: 999999;
  position: fixed;
  height: 100%;
  width: 100%;
  background-color: rgba(41,48,62,0.9);
  top: 0;
  left: 0;
  opacity: 0;
  pointer-events: none;
  cursor: default;
  /*transition: opacity 0.5s linear;*/
}

span.cssbox_full img {
  position: fixed;
  background-color: white;
  margin: 0;
  padding: 0;
  max-height: calc(90% - 50px);
  max-width: 90%;
  top: calc(50% + 50px);
  left: 50%;
  margin-right: -50%;
  transform: translate(-50%, -50%);
  box-shadow: 0 0 20px black;
	border:8px solid #fff;
}

a.cssbox_close,
a.cssbox_prev,
a.cssbox_next {
  z-index: 999999;
  position: fixed;
  text-decoration: none;
  visibility: hidden;
  color: white;
  font-size: 60px;
}

a.cssbox_close {
  top: calc(1% + 100px);
  right: 5%;
	text-shadow: -1px 1px 0 #29303e,
                 1px 1px 0 #29303e,
                 1px -1px 0 #29303e,
                 -1px -1px 0 #29303e;
}

a.cssbox_close::after {
  content: '\00d7';
}

a.cssbox_prev,
a.cssbox_next {
  top: calc(50% + 50px);
  transform: translate(0%, -50%);
	text-shadow: -1px 1px 0 #29303e,
                 1px 1px 0 #29303e,
                 1px -1px 0 #29303e,
                 -1px -1px 0 #29303e;
}

a.cssbox_prev {
  left: 5%;
}

a.cssbox_next {
  right: 5%;
}

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 {
  visibility: visible;
  opacity: 1;
  pointer-events: initial;
}
@keyframes fade-in {
  from {opacity: 0;}
  to {opacity: 1;}
}
a:target > span.cssbox_full img {
	animation-name: fade-in;
  animation-duration: 0.8s;
}
/* This is the end of CSSBox */
