/* Provient de: 

http://tympanus.net/codrops/2011/12/26/css3-lightbox/

*/


div.lb-image{
	display: inline-block;
	/* Distance entre les images */
	margin: 10px;
}

div.lb-image > a, div.lb-image > a img{
	display: block;
	border-style: none;
	-moz-border-radius: 0.5em;
	-webkit-border-radius: 0.5em;
	border-radius: 0.5em;
}

/* Pour les thumbnails */
div.lb-image > a{
	position: relative;
	/* Largeur de la bordure */
	/* padding: 3px; */
	/* Couleur de contour du thumbnail */
	/* background: rgb(128,0,0); */
	/* Petit dégradé à mettre sur le contour pour faire 3D... */
	/* -webkit-box-shadow: 1px 1px 2px #fff, 1px 1px 2px rgba(158,111,86,0.3) inset; */
	/* -moz-box-shadow: 1px 1px 2px #fff, 1px 1px 2px rgba(158,111,86,0.3) inset; */
	/* box-shadow: 1px 1px 2px #fff, 1px 1px 2px rgba(158,111,86,0.3) inset; */
	/* -moz-border-radius: 0.5em; */
	/* -webkit-border-radius: 0.5em; */
	/* border-radius: 0.5em; */
}

/* Pour l'intérieur des thumbnails */
div.lb-image > a span{
	/* Mettre la grandeur des thumbnails ici */
	width: 100%;
	height: 100%;
	/*width: 124px;*/
	/*height: 93px;*/
	/*line-height: 124px; /* Même que la hauteur */
	position: absolute;
	/* Largeur de la bordure --- Va avec la valeur plus haut */
	/* -moz-border-radius: 3px; */
	/* -webkit-border-radius: 3px; */
	/* border-radius: 3px; */
	top: 0px;
	left: 0px;
	text-align: center;
	color: white;
	font-size: 24px;
	font-family: 'BebasNeueRegular', 'Arial Narrow', Arial, sans-serif;
	text-shadow: 0px 1px 1px rgba(0,0,0,0.6);
	opacity: 0;
	filter: alpha(opacity=0); /* internet explorer */
    -ms-filter:"progid:DXImageTransform.Microsoft.Alpha(opacity=0)"; /*IE8*/
	background: rgb(128,0,0);
	background: -moz-radial-gradient(center, ellipse cover, rgba(255,255,255,0.40) 0%, rgba(18,62,15,1) 100%);
	background: -webkit-gradient(radial, center center, 0px, center center, 100%, color-stop(0%,rgba(255,255,255,0.40)), color-stop(100%,rgba(18,62,15,1)));
	background: -webkit-radial-gradient(center, ellipse cover, rgba(255,255,255,0.40) 0%,rgba(18,62,15,1) 100%);
	background: -o-radial-gradient(center, ellipse cover, rgba(255,255,255,0.40) 0%,rgba(18,62,15,1) 100%);
	background: -ms-radial-gradient(center, ellipse cover, rgba(255,255,255,0.40) 0%,rgba(18,62,15,1) 100%);
	background: radial-gradient(center, ellipse cover, rgba(255,255,255,0.40) 0%,rgba(18,62,15,1) 100%);
	-webkit-transition: opacity 0.4s linear;
	-moz-transition: opacity 0.4s linear;
	-o-transition: opacity 0.4s linear;
	-ms-transition: opacity 0.4s linear;
	transition: opacity 0.4s linear;
	-moz-border-radius: 0.4em;
	-webkit-border-radius: 0.4em;
	border-radius: 0.4em;

}

div.lb-image > a:hover span{
	opacity: 1;
	filter: alpha(opacity=99); /* internet explorer */
    -ms-filter:"progid:DXImageTransform.Microsoft.Alpha(opacity=99)"; /*IE8*/
}

/* Fait le montage de la liste, et fait le background */
div.lb-overlay{
	width: 0px;
	height: 0px;
	position: fixed;
	overflow: hidden;
	left: 0px;
	top: 0px;
	padding: 0px;
	z-index: 50;
	text-align: center;
	background: rgb(128,0,0);
	background: -moz-radial-gradient(center, ellipse cover, rgba(255,255,255,0.75) 0%, rgba(18,62,15,1) 100%);
	background: -webkit-gradient(radial, center center, 0px, center center, 100%, color-stop(0%,rgba(255,255,255,0.75)), color-stop(100%,rgba(18,62,15,1)));
	background: -webkit-radial-gradient(center, ellipse cover, rgba(255,255,255,0.75) 0%,rgba(18,62,15,1) 100%);
	background: -o-radial-gradient(center, ellipse cover, rgba(255,255,255,0.75) 0%,rgba(18,62,15,1) 100%);
	background: -ms-radial-gradient(center, ellipse cover, rgba(255,255,255,0.75) 0%,rgba(18,62,15,1) 100%);
	background: radial-gradient(center, ellipse cover, rgba(255,255,255,0.75) 0%,rgba(18,62,15,1) 100%);
}

.lb-overlay > img{
	border-style: none;
	z-index: 100;
	/* height: 100%; For Opera max-height does not seem to work */
	max-height: 100%;
	max-width: 100%;
	position: relative;
	/* margin: auto; --- Fonctionnerai peut être sur les petits écrans... */
	-webkit-box-shadow: 0px 0px 12px rgba(18,62,15,1);
	-moz-box-shadow: 0px 0px 12px rgba(18,62,15,1);
	box-shadow: 0px 0px 12px rgba(18,62,15,1);
	-moz-border-radius: 0.5em;
	-webkit-border-radius: 0.5em;
	border-radius: 0.5em;
}

div.lb-overlay  span {	
	color: black;
	font-size: 12px;
	font-family: Arial;
}

div.lb-overlay  p {	
	color: white;
	font-size: 36px;
	font-family: 'BebasNeueRegular', 'Arial Narrow', Arial, sans-serif;
	text-shadow: 0px 1px 1px rgba(0,0,0,0.6);
	margin: 1%;
}

/* Pour le Bouton Close */
a.lb-close{
	z-index: 0;
	position: absolute;
	top: 0; /* 43px 7% */
	left: 0;
	text-align: right;
	width: 100%;
	height: 100%;

}

a.lb-close img{
	border-style: none;
	width: 3%;
	margin: 1%;
}

a.lb-prev, a.lb-next{
	z-index: 50;
	position: absolute;
	top: 45%;
	width: 5%;
	text-decoration: none;
	opacity: 0.75;
	filter: alpha(opacity=75); /* internet explorer */
    -ms-filter:"progid:DXImageTransform.Microsoft.Alpha(opacity=75)"; /*IE8*/
}

a.lb-prev > img, a.lb-next > img{
	border-style: none;
	max-height: 100%;
	max-width: 100%;
}

a.lb-prev{
	left: 0;
}

a.lb-next{
	right: 0;
}

a.lb-prev:hover, a.lb-next:hover{
	opacity: 1;
	filter: alpha(opacity=99); /* internet explorer */
    -ms-filter:"progid:DXImageTransform.Microsoft.Alpha(opacity=99)"; /*IE8*/
}

.lb-overlay:target {
	width: auto;
	height: auto;
	bottom: 0px;
	right: 0px;
	padding: 5% 5% 10% 5%;
}

.lb-overlay:target img {
	-webkit-animation: fadeInScale 1.2s ease-in-out;
	-moz-animation: fadeInScale 1.2s ease-in-out;
	-o-animation: fadeInScale 1.2s ease-in-out;
	-ms-animation: fadeInScale 1.2s ease-in-out;
	animation: fadeInScale 1.2s ease-in-out;
}
.lb-overlay:target a.lb-close{
	opacity: 1;
	filter: alpha(opacity=99); /* internet explorer */
    -ms-filter:"progid:DXImageTransform.Microsoft.Alpha(opacity=99)"; /*IE8*/
}

@-webkit-keyframes fadeInScale {
  0% { -webkit-transform: scale(0.6); opacity: 0; }
  100% { -webkit-transform: scale(1); opacity: 1; }
}
@-moz-keyframes fadeInScale {
  0% { -moz-transform: scale(0.6); opacity: 0; }
  100% { -moz-transform: scale(1); opacity: 1; }
}
@-o-keyframes fadeInScale {
  0% { -o-transform: scale(0.6); opacity: 0; }
  100% { -o-transform: scale(1); opacity: 1; }
}
@-ms-keyframes fadeInScale {
  0% { -ms-transform: scale(0.6); opacity: 0; }
  100% { -ms-transform: scale(1); opacity: 1; }
}
@keyframes fadeInScale {
  0% { transform: scale(0.6); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}

/* 
	100% Height for Opera as the max-height seems to be ignored, not optimal for large screens 
	http://bricss.net/post/11230266445/css-hack-to-target-opera 
*/
x:-o-prefocus, .lb-overlay img {
    height: 100%;
}

@media screen and (max-width: 1200px) {
div.lb-overlay  p {	
	font-size: 30px;
}
}

@media screen and (max-width: 800px) {
div.lb-overlay  p {	
	font-size: 22px;
}
}

@media screen and (max-width: 600px) {
div.lb-overlay  p {	
	font-size: 18px;
}
}

@media screen and (max-width: 350px) {
div.lb-overlay  p {	
	font-size: 14px;
}
}