/*Taille de chaque bloc de création*/
.danslabox {
	overflow: hidden;
	width: 100%;
	height: 0;
	padding-bottom: 100%;
	position: relative;
}

/* Contenu de ces blocs en hover */
.danslabox > a span {
	position: absolute;
	width: 100%;
	height: 100%;
	top: 0;
	left: 0;
	text-align: center;
	color: #e3b31f;
	font-weight: 700;
	text-shadow: 0px 1px 1px rgba(255, 255, 255, 0.6);
	font-size: 24px;
	opacity: 0;
	background: #ffffff;
	background: radial-gradient(ellipse at center, rgba(255, 255, 255, 0.9) 36%, #c4c4c4 100%);
	background-position: fixed;
	transition: opacity 0.3s linear;
	display: flex;
	justify-content: center;
	align-items: center;
}
/* à l'activation du hover */
.danslabox > a:hover span {
	opacity: 1;
}

.box img {
	max-width: 100%;

	display: block;
	margin-right: auto;
	margin-left: auto;
}
/* L'écran qui va afficher els créations et leurs détails */
.lightbox {
	width: 0px; /* Tout ceci sert à le cacher au début */
	height: 0px;
	position: fixed;
	overflow: auto;
	left: 0px;
	top: 0px;
	padding: 0px;
	z-index: 99;
	text-align: center;
	background: rgba(255, 255, 255, 0.9);
	border-radius: 25px;
}

/* Le contenu textuel*/
.lightbox > div {
	position: relative;
	color: black;
	text-shadow: 0px 1px 1px rgba(255, 255, 255, 0.6);
}

/* Si j'ai besoin de plus de marges ou padding*/
.lightbox div h3,
.lightbox div p {
	padding: 0px 20px;
}

.lightbox a {
	text-decoration: none;
	color: inherit;
	cursor: default;
	line-height:1.5rem;
}

/* Réglage du titre */
.lightbox div h3 {
	font-size: 36px;
	margin-right: auto;
	margin-left: auto;
	margin-bottom: 15px;
	margin-top: 15px;
	text-align: center;
	font-family: "latoregular", serif;
	line-height: normal;
}

/* Regalge du texte */
.lightbox div p {
	font-size: 16px;
	font-family: "latoregular", serif;
	text-align: justify;
}

/* Le bouton de fermeture du truc */
.lightbox a.lb-close {
	background: rgba(255, 255, 255, 0.8);
	box-shadow: 5px 5px 10px 50px black;
	border-radius: 10px;
	z-index: 1001;
	color: #b32848;
	position: absolute;
	cursor: pointer;
	top: 43px;
	left: 50%;
	font-size: 17px;
	line-height: 26px;
	font-weight: 700;
	text-align: center;
	min-width: 50px;
	padding: 5px;
	height: 23px;
	overflow: hidden;
	margin-left: -25px;
	opacity: 0;
	filter: alpha(opacity=0); /* internet explorer */
	-ms-filter: "progid:DXImageTransform.Microsoft.Alpha(opacity=0)"; /*IE8*/
	-webkit-box-shadow: 0px 1px 2px rgba(0, 0, 0, 0.3);
	-moz-box-shadow: 0px 1px 2px rgba(0, 0, 0, 0.3);
	box-shadow: 0px 1px 2px rgba(0, 0, 0, 0.3);
}

/*L'image quoi */
.lightbox img {
	/* height: 100%; For Opera max-height does not seem to work */
	position: relative;
	opacity: 0;
	filter: alpha(opacity=0); /* internet explorer */
	-ms-filter: "progid:DXImageTransform.Microsoft.Alpha(opacity=0)"; /*IE8*/
	-webkit-box-shadow: 1px 1px 4px rgba(0, 0, 0, 0.3);
	-moz-box-shadow: 1px 1px 4px rgba(0, 0, 0, 0.3);
	box-shadow: 0px 2px 7px rgba(0, 0, 0, 0.2);
	-webkit-transition: opacity 0.5s linear;
	-moz-transition: opacity 0.5s linear;
	-o-transition: opacity 0.5s linear;
	-ms-transition: opacity 0.5s linear;
	transition: opacity 0.5s linear;
}

/*suivant et précédent*/
.lb-prev,
.lb-next {
	text-indent: -9000px;
	position: absolute;
	top: -32px;
	width: 24px;
	height: 25px;
	left: 50%;
	opacity: 0.8;
	filter: alpha(opacity=80); /* internet explorer */
	-ms-filter: "progid:DXImageTransform.Microsoft.Alpha(opacity=80)"; /*IE8*/
}

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

/* L'image prev */
.lb-prev {
	margin-left: -30px;
	background: transparent url(../images/arrows.png) no-repeat top left;
}

/* L'image next */
.lb-next {
	margin-left: 6px;
	background: transparent url(../images/arrows.png) no-repeat top right;
}

/* BOUM APPARATION!*/
.lightbox:target {
	width: auto;
	height: auto;
	bottom: 0px;
	right: 0px;
	padding: 5% 5% 5% 5%;
}

/* Bah appartition du reste */
.lightbox:target img,
.lightbox:target a.lb-close {
	opacity: 1;
	filter: alpha(opacity=99); /* internet explorer */
	-ms-filter: "progid:DXImageTransform.Microsoft.Alpha(opacity=99)"; /*IE8*/
}
/* 
	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,
.lightbox img {
	height: 100%;
}

@media only screen and (max-width: 480px) {
	/* Smartphone */

	.box {
		width: 48.333333333333%;
	}

	.lightbox > div.col_6,
	.lightbox > a div.col_6 {
		width: 98.333333333333%;
	}
}
@media only screen and (max-width: 650px) and (min-width: 481px) {
	/* Tablette*/
	.box {
		width: 31.666666666667%;
	}

	.lightbox > div.col_6,
	.lightbox > a div.col_6 {
		width: 98.333333333333%;
	}
}

@media only screen and (max-width: 1050px) and (min-width: 651px) {
	/* Grosse tablette */
	.box {
		width: 23.333333333333%;
	}

	.lightbox > div.col_6,
	.lightbox > a div.col_6 {
		width: 98.333333333333%;
	}
}
@media only screen and (max-width: 1290px) and (min-width: 1051px) {
	/* Super ordi */
	.box {
		width: 23.333333333333%;
	}
}
