/* https://medium.com/@axel/mosaic-layouts-with-css-grid-d13f4e3ed2ae */

html{
	font-size: 20px;
	border-top: 32px solid #99ccbb;
	border-bottom: 32px solid #fff7d0;
	background-color: #ffffff;
	padding: 0px;
	margin: 0px;
}

body{
	border-top: 16px solid #fff7d0;
	
	font-family: 'Open Sans', helvetica-light, helvetica, arial, sans-serif;
	font-weight: 300;
	color: #667770;
    font-size: 0.9em;
	
	margin: 0px;
	padding: 0px 64px 0px 64px;
	min-height: calc( 100vh - 32px );
}


a {
	color: #33aa66;
	text-decoration: none;
}



header {
	display: flex;
	flex-direction: row;
	flex-wrap: wrap;
	justify-content: space-between;
	align-items: flex-end;

	max-width: 1200px;
	padding-top: 70px;
	padding-bottom: 16px;
	margin-left: auto;
	margin-right: auto;
	
	font-family: Florence-Regular; 
	
}

nav {
	font-size: 1.8em;
	letter-spacing: 0.06em;
	padding-top: 0px;
	margin-bottom: -8px;
}

nav a {
	display: inline-block;
	transition: all .2s ease-in-out; 
}

nav a:hover {
	transform: scale(1.06);
}


h1 {
	/*width: 440px;
	height: 101px;*/
	width: 420px;
	height: 96px;
	margin: 0px;
	padding: 0px 0px 4px 0px;
}

h1 a {
	display: block;
	width: 420px;
	height: 0px;
	padding-top: 96px;
	overflow: hidden;
	background: url('images/anthony-logo.png') center top no-repeat;
	background-size: 420px 96px;
	margin: 0px auto 0px auto;
}




.container {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    grid-gap: 0.6rem;
    max-width: 1200px;
    margin: 0 auto;
    
   grid-auto-rows: minmax(0, 0.25fr);
}


.tile img {
	background-color: #c9bfb7;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 4px;
	transition: all .2s ease-in-out; 
}


.tile img:hover { 
	transform: scale(1.01);
	box-shadow: 0px 2px 10px #b9c0c0;
}


.tile:nth-child(1),
.tile:nth-child(12),
.tile:nth-child(16),
.tile:nth-child(19) {
    grid-column: span 4;
    grid-row: span 2;
}

.tile:nth-child(2),
.tile:nth-child(3),
.tile:nth-child(4),
.tile:nth-child(5),
.tile:nth-child(6),
.tile:nth-child(7),
.tile:nth-child(9),
.tile:nth-child(10),
.tile:nth-child(11),
.tile:nth-child(13),
.tile:nth-child(14),
.tile:nth-child(15),
.tile:nth-child(17),
.tile:nth-child(18) {
    grid-column: span 2;
    grid-row: span 2;
}


.tile:nth-child(8) {
    grid-column: span 2;
    grid-row: span 4;
}



footer {
	font-family: Florence-Regular; 
	color: #afc0bf;
	text-align: center;
	padding: 100px 0px 20px 0px;
}

footer p {
	margin: 0px;
	font-size: 1.2em;
}

footer img {
	margin-left: auto;
	margin-right: auto;
}



/* ----- DETAIL PAGES ----- */

.detail {
	
	max-width: 940px;
    margin: 0 auto;
    
    
}

.detail.wide {
	max-width: 1200px;
}


/* default - image side by side */

.detail .artwork img {
	display: block;
	width: 100%;
	border-radius: 4px;
}

.detail .artwork {
    margin-top: 20px;
}



.detail .metatext {
	text-align: center;
	margin: 0px;
	padding: 0px;

}

.detail .metatext h2 {
	margin: 40px 0px 16px 0px;
	line-height: 0.9em;
	font-weight: 300;
	font-size: 2.0em;
}




.detail .nav-previous-home-next {
	
	display: flex;
	flex-direction: row;
	flex-wrap: nowrap;
	justify-content: space-between;
	align-items: center;

	width: 100%;
	max-width: 600px;
	margin-left: auto;
	margin-right: auto;
	margin-top: 0px;

}

.detail .nav-previous-home-next a {
	display: block;
	height: 0px;
	padding: 24px 0px 0px 0px;
	
	display: inline-block;
	transition: all .2s ease-in-out; 
}


.detail .nav-previous-home-next a.home {
	display: block;
	padding: 8px 24px 0px 24px;
	min-height: 24px;
	background: url('images/icon-all.png') left center no-repeat;
	background-size: 16px 16px;
	line-height: 0.9em;
}

.detail .nav-previous-home-next a.home:hover {
	transform: scale(1.06);
}


.detail .nav-previous-home-next a.previous {
	background: url('images/icon-previous.png') center center no-repeat;
	background-size: 10px 18px;
	margin-right: 20px;
	width: 12px;
	overflow: hidden;
}

.detail .nav-previous-home-next a.previous:hover {
	transform: scale(1.4);
}

.detail .nav-previous-home-next a.next {
	background: url('images/icon-next.png') center center no-repeat;
	background-size: 10px 18px;
	width: 12px;
	overflow: hidden;
}

.detail .nav-previous-home-next a.next:hover {
	transform: scale(1.4);
}









/* ----- ABOUT PAGE ----- */

.about {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    grid-gap: 2rem;
	grid-template-rows: minmax(0, min-content) 1fr minmax(0, min-content);
	
	max-width: 964px;
    margin: 40px auto 0px auto;
    
    font-size: 1.1em;
   
}

.about .text {
	grid-column: span 3;
}

.about .text p {
	margin-top: 0px;
	margin-bottom: 20px;
}

.about .photo {
	grid-column: span 3;
}

.about .photo img {
	max-width: 100%;
	height: auto;
	border-radius: 8px;
}



@media screen and (max-width: 740px){

	/* home page */

	body {
		padding: 0px 24px 64px 24px;
	}

	h1 {
		margin-left: auto;
		margin-right: auto;
		width: 100%;
		height: auto;
	}
	
	h1 a {
		width: 100%;
		max-width: 400px;
		background-size: 100% auto;
	}

	nav {
		margin-top: 0px;
		margin-left: auto;
		margin-right: auto;
		margin-bottom: 20px;
	}
	
    .container{
        display: block;
    }

    .tile{
        margin-bottom: 1rem;
    }
    
    
    /* detail pages */
    
    .detail {
    	display: block;
    }
    
    .detail .artwork {
    	margin-top: 0px;
	}
    
    .detail div {
    	margin-bottom: 1rem;
    }
    
    .detail .metatext, detail .nav-previous-home-next {
    	padding: 0px 12px 0px 12px;
    }
    
     
     
     /* about page */
    
    .about {
    	display: block;
    	margin-top: 0px;
    }
    
    .about div {
    	margin-bottom: 1rem;
    }
    
}




