/* main CSS for Edouard Celle's Photography Website */

* {
	box-sizing: border-box;
	margin:0;
    padding:0;
}

html, body {
    height: 100vh;
}

footer, nav, .grille {
  padding: 10px;
}

body {
    font-family: Lora, serif;
}

h1, h2, h3, h4, h5, h7 {
    font-family: Oswald, sans-serif;
}

h1{
   margin-top: 0%;
   padding-bottom: 0%;
   font-weight: 600;
   font-size: 36px;
   overflow:auto;
}

h2 {
	font-weight: 500;
	font-size: 22px;
	margin: 0%;
	padding-top: 1%;
}

h3 {
	font-size: 28px;
	font-weight: 500;
	padding-left: 0%;
	padding-bottom: 5%;
	padding-top: 0%;
	text-align: center;
}

h4{
	margin-top: 5%;
   	text-align: center;
	margin-left: auto;
	margin-right: auto;	
}

h5{
   	font-weight: 500;
	font-size: 16px;
	margin: 0%;
	padding-top: 0%;
	padding-bottom: 10%;
}

h6 {
	font-weight: 600;
	font-size: 1.1em;
	margin: 0%;
	padding-top: 1%;
}

h7 {
	font-weight: 300;
	font-size: 15px;
	margin: 0%;
	padding-top: 0%;
}

ul {
	list-style-type: none;
	padding: 0;
	margin: 0;
}

a {
	text-decoration: none;
}

h1 a, h2 a, footer a {
	color: black;
}

li a {
	display: block;
	width: 280px;
	margin: 1px;
	color : black ;
    background-color : white ;
	padding: 1% 1% 1% 2%;
}

li a:hover {
	text-decoration-style: solid;
	background-color: black;
	color: white;
}

p a:visited {
    color : black ;
    background-color : white ;
}

p.intro {
	padding: 0 5% 0 5%;
	font-size: 0.8em;
	text-align: justify;
}

p.bio {
	padding: 0 20% 0 20%;
	font-size: 0.8em;
	text-align: justify;
}

p.commandes {
	padding: 0 20% 0 20%;
	font-size: 0.8em;
	text-align: left;
	float : top;
	color : blue;
}

i {
font-style: italic
}


/* menu */

span {
	cursor : pointer;
	display: block;
  	width: 280px;
	padding: 1% 1% 0% 0%;
	margin: 0px;
	text-decoration: none;
}

/* sub menus */

.slide {
  clear:both;
  width:100%;
  height:0px;
  overflow: hidden;
  transition: height .4s ease;
}

.slide li {
	padding-left: 0%;
	font-size: 1em;
}

#touch-1,
#touch-2,
#touch-3,
#touch-4,
#touch-5,
#touch-6,
#touch-7,
#touch-8,
#touch-9,
#touch-10,
#touch-11,
#touch-12,
#touch-13,
#touch-14,
#touch-15,
#touch-16,
#touch-17,
#touch-18,
#touch-19,
#touch-20 {
	position: absolute;
	opacity: 0;
	height: 0px;
}    

#touch-1:checked + .slide,
#touch-2:checked + .slide,
#touch-3:checked + .slide,
#touch-4:checked + .slide,
#touch-5:checked + .slide,
#touch-6:checked + .slide,
#touch-7:checked + .slide,
#touch-8:checked + .slide,
#touch-9:checked + .slide,
#touch-10:checked + .slide,
#touch-11:checked + .slide,
#touch-12:checked + .slide,
#touch-13:checked + .slide,
#touch-14:checked + .slide,
#touch-15:checked + .slide,
#touch-16:checked + .slide,
#touch-17:checked + .slide,
#touch-18:checked + .slide,
#touch-19:checked + .slide,
#touch-20:checked + .slide {
	height: auto;
}

.black * {
	color : white!important;
    background-color : black !important;
}

.black li a:hover {
	text-decoration-style: solid;
	background-color: white!important;
	color: black!important;
}

/* CSS grid */

.grid-wrapper {
	display: grid;
	grid-template-rows: min-content auto min-content;
	grid-template-columns: 1fr 3fr;
}

header {
	grid-column: 1/3;
	grid-row: 1/2;
	background-color: yellow;
}

nav {
	grid-column: 1/2;
	grid-row: 2/3;
	padding-left: 10%;
}

article {
	grid-column: 2/3;
	grid-row: 2/3;
	margin: 10% 2% 0%;
}

footer{
	grid-column: 1/3;
	grid-row: 3/4;
    margin-top: 5em;
    text-align: center;
}


/* flex wrapper */

.row {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	/*flex-direction: row;
	justify-content: space-between;
	margin: 0% 5% 0% 5%;
	background-color: #add8e6;*/
	text-align: center;
}
.test {
    display: flex;
    flex-direction: row;
    align-items: center;
}
.photo, .carre {
  flex: 40%;
  max-width: 40%;
  padding: 3%;
}

.longue {
	flex: 33%;
	max-width: 100%;
	padding: 3% 0%;
}

.full-width {
	flex: 100%;
	max-width: 100%;
	padding: 3% 0% 3% 0%;
	margin-bottom: 0%;
}

.presta {
	flex: 100%;
	max-width: 100%;
	padding: 3% 3.5% 3% 3.5%;
	margin-bottom: 0%;
}

.full-width p {
	padding-top: 2px;
}

.photo img, .full-width img, .longue img, .carre img, .presta img, .index img {
	margin-top: 8px;
	vertical-align: middle;
	max-width:100%;
}

.photo img {
	max-height: 300px;
	max-width: 300px;

}

.longue img {
	max-height: 300px;
	max-width: 90%;
}

.carre img {
	max-height: 300px;
	max-width: 80%;
}

.full-width img {
	max-height: 80%;
	max-width: 80%;
}

.presta img {
	max-height: 600px;
}

.index img {
	padding-top: 35px;
	max-height: 400px;
}

/** LIGHTBOX MARKUP **/

.lightbox {
	/* Default to hidden */
	display: none;

	/* Overlay entire screen */
	position: fixed;
	z-index: 999;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	padding: 2em;

	/* Translucent background */
	background: rgba(60, 60, 60, 0.8);
}

/* Unhide the lightbox when it's the target */
.lightbox:target {
	display: block;
}

.lightbox span {
	/* Full width and height */
	display: block;
	width: 60%;
	height: 100%;
	margin-left: auto;
	margin-right: auto;

	/* Size and position background image */
	background-position: center;
	background-repeat: no-repeat;
	background-size: contain;
}

.lightbox p {
	color: white;
	font-size: 1em;
}

/* footer */

.mentions {
	padding: 2%;
	font-size: 0.5em;
}

.credits {
	font-size: 0.8em;
}


@media screen and (max-width:800px){
	.grid-wrapper {
		display:block;
	}
	

	article {
		margin: 2%;
	}
	
/* Responsive layout - makes the two columns stack on top of each other instead of next to each other */


	.photo, .carre, .longue, .presta, .full-width {
		flex: 100%;
		max-width: 85%;
	}
	
	.photo img, .carre img, .longue img, .presta img{
		max-height: 240px;
	}
	

	.full-width img{
		padding: 0% 0% 0% 0%;
		margin-left: 0%;
		margin-right: 0%;
		max-height: 240px;
		max-width: 100%;
	    
	}
	
	.lightbox span {
    	width: 95%;
	}
	
	.lightbox {
    	padding: 0;
	}
	
	p.bio {
	padding: 0 5% 0 5%;
	font-size: 0.8em;
	text-align: justify;
    }
	
	h1 {
	    font-size: 24px;
		padding-bottom: 0%;
	}
	
	h2 {
		font-size: 1em;
	}
	
	h3 {
		font-size: 1.5em;
		text-align: left;
		margin:0% 5% 0% 5%;
	}
	
	h5 {
	    font-size: 0.6em;
	    padding-top: 0%;
	    padding-bottom: 5%;
	}    
	
	
    h7 {
    	font-weight: 300;
    	font-size: 0.9em;
    	margin: 0%;
    	padding-top: 0%;
    }
	
	li, li.sub-menu, p, span {
		font-size: 0,8em;
	}
	
	li a {
	    font-size: 0,8em;
    }

}