@charset "UTF-8";

.lightboxed {
	padding:0;
	margin:0;
	text-align:center;
	font-size: 1rem;
	counter-reset: numberof;
}
.page-count::before {
  counter-increment: numberof;
  content: counter(numberof) " of ";
}

.lightbox-slide p.page-count,
.lightbox-slide p.page-detail {
	width:100%;
	position: absolute;
	color: #555;
	float:left;
	bottom: 15px
}

.lightbox-slide p.page-count {
	text-align: right;
	right:21%
}

.lightbox-slide p.page-detail {
	font-style:italic;
	text-align: left;
	left:21%
}

.lightbox-slide img {
  position: absolute;
  z-index: 9999;
  max-width: 100%;
  max-height: 85%;
  top: 48%;
  left: 200%;
  transform: translate(-50%, -50%);
  animation-name: hide;
  animation-duration: 0.5s;
  animation-iteration-count: 1;
  animation-direction: linear;
  animation-fill-mode: forwards;
}

.lightbox-slide:target .btn {
  display: block;
}

.lightbox-slide:target img {
  opacity: 0;
  animation-name: show;
  animation-duration: 0.5s;
  animation-iteration-count: 1;
  animation-direction: linear;
  animation-fill-mode: forwards;
}

.lightbox-slide {
position: fixed;
top: -100%;
width: 100%;
background: rgba(255,255,255,1);
opacity: 0;
overflow: hidden;
  left:0%;
  z-index:10000
}

.lightbox-slide:target {
opacity: 1;
top: 0;
bottom: 0
}

@-webkit-keyframes show {
  0% {
	  opacity: 1;
    left: 200%;
  }
  30% {
    opacity: 1;
  }
  100% {
    opacity: 1;
    left: 50%;
  }
}
@-webkit-keyframes hide {
  0% {
    opacity: 1;
    left: 50%;
  }
  30% {
    opacity: 1;
  }
  100% {
	  opacity: 1;
    left: -100%;
  }
}
.btn {
  position: absolute;
  z-index: 10000;
  display: none;
  transition: all 0.2s;
  width: 60px;
  height: 60px;
  margin: -30px 0 0;
  line-height: 60px;
  text-decoration: none;
  color: #95a5a6;
	font-size:3rem
}

.btn:hover {
	color: #000
}

.btn-left,
.btn-right
{
	top: 50%;
}

.btn-left {
  left: 5%
}

.btn-left:after {
  content: "\276E";
}

.btn-right {
  right: 5%
}

.btn-right:after {
  content: "\276F";
}
@media only screen and ( max-width: 1100px ) /* 640 40em*/
{
.btn {
  width: 40px;
  height: 40px;
  line-height: 40px;
  font-size:2.5rem
}	
		
.lightbox-slide img,
.btn-left,
.btn-right {
top: 30%		
	}	
	
.lightbox-slide img {
  max-height: 38% 
}
.btn-left {
  left: 1%
}
.btn-right {
  right: 1%
}
.lightbox-slide p.page-count {
	text-align: center;
	top:51%
}	
}