/*Eliminates padding, centers the thumbnail */


/* Styles the thumbnail */

a.lightbox img {

}

/* Styles the lightbox, removes it from sight and adds the fade-in transition */

.lightbox-target {
position: fixed;
top: -100%;
width: 100%;
width: 100%;
opacity: 0;
-webkit-transition: opacity .5s ease-in-out;
-moz-transition: opacity .5s ease-in-out;
-o-transition: opacity .5s ease-in-out;
transition: opacity .5s ease-in-out;
overflow: hidden;
z-index: 10;
 
}

/* Styles the lightbox image, centers it vertically and horizontally, adds the zoom-in transition and makes it responsive using a combination of margin and absolute positioning */

.lightbox-target img {
margin: auto;
position: fixed;
top: 0;
left:0;
right:0;
bottom: 0;
max-height: 0%;
max-width: 0%;
border: 3px solid white;
box-shadow: 0px 0px 8px rgba(0,0,0,.3);
box-sizing: border-box;
-webkit-transition: .5s ease-in-out;
-moz-transition: .5s ease-in-out;
-o-transition: .5s ease-in-out;
transition: .5s ease-in-out;
  
}

/* Styles the close link, adds the slide down transition */

a.lightbox-close {
display: block;
width: 50px;
height: 50px;
box-sizing: border-box;
background: #3F444B;
color: black;
text-decoration: none;
position: absolute;
left: 1228px;
-webkit-transition: .5s ease-in-out;
-moz-transition: .5s ease-in-out;
-o-transition: .5s ease-in-out;
transition: .5s ease-in-out;
}

/* Provides part of the "X" to eliminate an image from the close link */

a.lightbox-close:before {
content: "";
display: block;
height: 30px;
width: 1px;
background: #ffffff;
position: absolute;
left: 26px;
top:10px;
-webkit-transform:rotate(45deg);
-moz-transform:rotate(45deg);
-o-transform:rotate(45deg);
transform:rotate(45deg);
}

/* Provides part of the "X" to eliminate an image from the close link */

a.lightbox-close:after {
content: "";
display: block;
height: 30px;
width: 1px;
background: #ffffff;
position: absolute;
left: 26px;
top:10px;
-webkit-transform:rotate(-45deg);
-moz-transform:rotate(-45deg);
-o-transform:rotate(-45deg);
transform:rotate(-45deg);
}

/* Uses the :target pseudo-class to perform the animations upon clicking the .lightbox-target anchor */

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

.lightbox-target:target img {
max-height: 75%;
max-width: 75%;
}

.lightbox-target:target a.lightbox-close {
top: 142px;
}

@media only screen and (max-width: 2560px) {
  .lightbox-target:target a.lightbox-close {
    top: 282px;
    left: 1341px;
  }
}

@media only screen and (max-width: 1800px) {
  .lightbox-target:target a.lightbox-close {
    top: 314px;
    left: 1273px;
  }
}

@media only screen and (max-width: 1680px) {
  .lightbox-target:target a.lightbox-close {
    top: 141px;
    left: 1229px;
  }
}

@media only screen and (max-width: 1600px) {
  .lightbox-target:target a.lightbox-close {
    top: 156px;
    left: 1198px;
  }
}

@media only screen and (max-width: 1500px) {
  .lightbox-target:target a.lightbox-close {
    top: 174px;
    left: 1161px;
  }
}

@media only screen and (max-width: 1399px) {
  .lightbox-target:target a.lightbox-close {
    top: 194px;
    left: 1032px;
  }
}

@media only screen and (max-width: 1199px){
  .lightbox-target:target a.lightbox-close {
    top: 229px;
    left: 868px;
  }
}

@media only screen and (max-width: 991px){
  .lightbox-target:target a.lightbox-close {
      top: 268px;
      left: 682px;
  }
}

@media only screen and (max-width: 767px){
  .lightbox-target:target a.lightbox-close {
      top: 309px;
      left: 507px;
  }
}

@media only screen and (max-width: 576px){
  .lightbox-target:target a.lightbox-close {
    top: 344px;
    left: 437px;
  }
}

@media only screen and (max-width: 512px){
  .lightbox-target:target a.lightbox-close {
    top: 356px;
    left: 399px;
  }
}

@media only screen and (max-width: 430px){
  .lightbox-target:target a.lightbox-close {
    top: 335px;
    left: 297px;
  }
}
