/* ALBUM */
	
#immagine{
	display:inline-block;
	border:solid 1px #CC0000;
	padding:2px;
	margin:5px;
}

#anteprime{
	    margin-top: 15px;
    max-width: 1200px;
    margin: auto;
}

.titoloalbum{
	margin:30px 0 10px;	
	text-align: center;
}

.thumb {
	display: inline-block;
	cursor: pointer;
	width: 14.5%;
	margin: 1%;
	position:relative;
	overflow:hidden;
	box-shadow: 3px 3px 5px rgba(0, 0, 0, 0.35);
	    border-radius: 20px 0;
}

.thumb > img{
	vertical-align: top;
	width: 100%;
	overflow: hidden;
}

.anteprime .thumb{
	width:100px;
	height:100px;
	margin: 23px 10px;
}

#foto{
	display:none;
	overflow:hidden;
	width:100%;
	position:fixed;
	top:0;
	left:0;
	bottom:150px;
	z-index:9999;	
	text-align:center;
	background-image: url(../images/legno.jpg);
}

#foto div.foto {
    width: 100%;
	height:100%;
    position: absolute;
    z-index: 1;
    vertical-align: bottom;
    top: 0px;
    left: 0px;
	cursor: all-scroll;
}


#foto div.visibile {
    position: relative;
    z-index: 3;
    top: 0px;
    left: 0px;
	vertical-align: bottom;
	display:block;
}

.foto img{	
	max-width:90%;
	max-height:80%;
	vertical-align: bottom;
	position:relative;
	top:10%;
	border-radius:15px;
	overflow:hidden;
	border: solid 2px #fff;
	box-shadow: 0 0 50px;
}

#foto #avanti {
    display: block;
    width: 50px;
    height: 100%;
    margin-right: 30px;
    position: absolute;
    top: 0px;
    right: 0px;
    cursor: pointer;
    background-image: url('../images/avanti.png');
    background-position: right center;
    background-repeat: no-repeat;
    z-index: 11;
}

#foto #indietro {
        display: block;
    width: 50px;
    height: 100%;
    margin-left: 30px;
    position: absolute;
    top: 0px;
    left: 0px;
    cursor: pointer;
    background-image: url('../images/indietro.png');
    background-position: left center;
    background-repeat: no-repeat;
    z-index: 11;
}	

.chiudiAlbum{
	position: fixed;
	top: 10px;
	right: 10px;
	font-size: 24px;
	padding: 10px;
	background: #4682ca;
	color: #fff;
	font-family: arial;
	line-height: 24px;
	width: 24px;
	text-align: center;
	cursor: pointer;
	border-radius: 10px;
	z-index: 12;
}
	  
.chiudiAlbum:hover{
	background:#426e9a;
}

#load{
	top:0;
	left:0;
	width:100%;
	height:100%;
	position:fixed;
	display:none;
	z-index:9999;
}

#load img{
	top:50%;
	margin-top:-21px;
	left:50%;
	margin-left:-21px;	
	position:absolute;	
}

.coverThumb{
	position:absolute;
	background:rgba(88, 143, 204, 0.88);
	display:none;
	width:100%;
	height:100%;
	top:0;
	left:0;	
	cursor:zoom-in;
	border-radius:20px 0;
}

.coverThumb img{
	position:relative;
	top:50%;
	margin-top:-15px;		
}

.anteprime .coverThumb img{
	position: relative;
    left: 0;
    top: 50%;
    margin: 0 auto;
    margin-top: -15px;
}

.anteprime{
	display:none;
	position: fixed;
    bottom: 0px;
    z-index: 9999;
    left: 40px;
	right:40px;
	padding:0;
    height: 150px;
    margin: 0;
    text-align: center;
	background: #4682ca;	
}

.anteprime >div{
	white-space: nowrap;
	overflow: hidden;
}

.anteprime #indietro {
    display: block;
    width: 40px;
    height: 100%;
    position: absolute;
    top: 0px;
    left: -40px;
    cursor: pointer;
    background-image: url(../images/indietro.png);
    background-position: center;
    background-repeat: no-repeat;
    z-index: 11;
    background-color: #3975bd;
    box-shadow: 5px 0 10px rgba(0, 0, 0, 0.29);
}

.anteprime #avanti {
    display: block;
    width: 40px;
    height: 100%;
    position: absolute;
    top: 0px;
    right: -40px;
    cursor: pointer;
    background-image: url('../images/avanti.png');
    background-position: center;
    background-repeat: no-repeat;
    z-index: 11;
	background-color: #3975bd;
    box-shadow: -5px 0 10px rgba(0, 0, 0, 0.29);
}

.anteprime #indietro:hover, .anteprime #avanti:hover{
	background-color:#1c4e8a;
}

@media screen and (max-width:700px){
	.thumb {
		width: 30%;
		margin: 1.5%;
	}
	
	.anteprime .thumb{
		width:90px;
		height:90px;
	}
	
	.anteprime{
		height: 140px;
	}
	
	#foto{
		bottom:140px;
	}
}

@media screen and (max-width:400px){
	.thumb {
		width: 46%;
		margin: 2%;
	}
	
	.anteprime .thumb{
		width:80px;
		height:80px;
	}
	
	.anteprime{
		height: 130px;
	}
	
	#foto{
		bottom:130px;
	}
}