
/* 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,.7);
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%;
z-index: 20;
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);
background-color: white;
height:50px;
position: absolute;
background-position:center;
background-repeat: no-repeat;
right: 0;
-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-close1 {
display: block;
width:50px;
background-position:center;
background-image: url(../pics/close.jpg);
background-repeat: no-repeat;
background-color: white;
height:50px;
position: absolute;
left: 0;
-webkit-transition: .10s ease-in-out;
-moz-transition: .10s 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;
}