/* stile per le miniature */
a.lightbox img {
/*border: 3px solid white;*/
/*box-shadow: 0px 0px 8px rgba(0,0,0,.3);*/
width:140px;
margin:1px;
padding:0px;
}

a.lightbox img:hover{ opacity:0.8;}

/* stile per lo sfondo del lightbox */
.lightbox-target {
position:fixed;
top:0;
left:0;
width:100%;
background: rgba(0,0,0,0.8);
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:9999;

}

/* 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:absolute;
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,0.3);
box-sizing: border-box;
-webkit-transition: 1s ease-in-out;
-moz-transition: 1s ease-in-out;
-o-transition: 1s ease-in-out;
transition: 1s ease-in-out;



}

/* stile del link close, aggiunge animazione di comparsa verso il basso */

a.lightbox-close {
display: block;
width:50px;
height:50px;
box-sizing: border-box;
background: white;
color: black;
text-decoration: none;
position: absolute;
top: -80px;
right: 7px;
-webkit-transition: 1.5s ease-in-out;
-moz-transition: 1.5s ease-in-out;
-o-transition: 1.5s ease-in-out;
transition: 1.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: black;
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: black;
position: absolute;
left:26px;
top:10px;
-webkit-transform:rotate(-45deg);
-moz-transform:rotate(-45deg);
-o-transform:rotate(-45deg);
transform:rotate(-45deg);
}



/*avanti e indietro*/
.prev{
	position: absolute;
	width:60px;
	height:60px;
	/*
	left: 230px;
	bottom: 10px;
	margin-left: -30px;
	*/
	margin:auto auto auto 7px;
	top:0;
	left:0;
	right:0;
	bottom:0;
	
	background-image: url(../img/prev.png);
	background-repeat: no-repeat;
	background-position: left top;
	
}

.next{
	position: absolute;
	width:60px;
	height:60px;
	margin:auto 7px auto auto;
	top:0;
	left:0;
	right:0;
	bottom:0;
	/*
	right: 200px;
	bottom: 10px;
	margin-left: 6px;
	*/
	background-image: url(../img/next.png);
	background-repeat: no-repeat;
	background-position: left top;
	
}

.next:hover{
	background-image: url(../img/next_su.png);
}
.prev:hover{
	background-image: url(../img/prev_su.png);
	}

/* 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: 100%;
max-width: 100%;
}

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