
/* Styles the thumbnail */

a.lightbox img {
border: 3px solid white;
box-shadow: 0px 0px 8px rgba(0,0,0,.3);
margin: 20px;
}

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

.lightbox-target {
position: fixed;
top: 0%;
left: 0%;
right: 0%;
width: 100%;
z-index: 10;
background: rgba(0,0,0,.9);
opacity: 0.8;
/*-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: auto;
}

.lightbox-target img {
margin: auto;
position: absolute;
top: 0%;
left: 0%;
right: 0%;
bottom: 0%;
/*max-height: 90%;
height: 100%;
max-width: 100%;*/
z-index: 200;
/*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 {
width:50px;
background-image: url(../pics/close.jpg);
border-color: white;
background-color: white;
height:50px;
position: absolute;
background-position:center;
background-repeat: no-repeat;
right: 0;
z-index: 100;
margin-right: 2vw;
-webkit-transition: .5s ease-in-out;
-moz-transition: .5s ease-in-out;
-o-transition: .5s ease-in-out;
transition: .5s ease-in-out;
}
a.lightbox-closebig {
width:100vw;
background-color: white;
opacity: 100%;
height:100vh;
position: absolute;
background-position:center;
background-repeat: no-repeat;
right: 0;
z-index: 100;
-webkit-transition: .5s ease-in-out;
-moz-transition: .5s ease-in-out;
-o-transition: .5s ease-in-out;
transition: .5s ease-in-out;
}
/* Uses the :target pseudo-class to perform the animations upon clicking the .lightbox-target anchor */

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

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

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