/* CSS Reset */

html, body, div, h1, h2, p,
a, img, nav, section {
	margin: 0;
	padding: 0;
	border: 0;
	font-size: 100%;
	font: inherit;
	vertical-align: baseline;
}

nav, section {
	display: block;
}

body {
	line-height: 1;
}

/* Custom styles */

html, body {
	width: 100%;
	height: 100%;
	font-family: 'Open Sans', sans-serif;
}

a, a:link, a:active {
	font-style: italic;
	color: #685a6d;
	text-decoration: none;
}

a:hover {
	color: #cac0ce;
}

nav {
	position: fixed;
	box-sizing: border-box;
	min-height: 100%;
	background-color: #cac0ce;
}

nav a {
	display: block;
	text-align: center;
}

nav a:hover {
	background-color: #d0c8d4;
}

nav img {
	width: 40px;
	padding: 15px;
}

main {
	width: 60%;
	margin-left: 125px;
	position: relative;
}

section {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	padding-top: 50px;
	z-index: -1;
	opacity: 0;
	-webkit-transition: all 0.5s;
	transition: all 0.5s;
}

section.show {
	z-index: 0;
	opacity: 1;
}

h1 {
	color: #685a6d;
	font-size: 200%;
	margin-bottom: 25px;
	font-family: 'Rock Salt', cursive;
}

p {
	line-height: 1.5em;
	margin-bottom: 50px;
}

.social {
	position: fixed;
	bottom: 0;
}

/* Photo section */

#photos {
   line-height: 0;
   width: 80vw;
   
   -webkit-column-count: 5;
   -webkit-column-gap:   0px;
   -moz-column-count:    5;
   -moz-column-gap:      0px;
   column-count:         5;
   column-gap:           0px;
}

#photos img {
  	width: 100% !important;
  	height: auto !important;
  	border-left: 5px solid #fff;
  	border-bottom: 5px solid #fff;
  	opacity: 0.6;
  	-webkit-transition: opacity 0.8s;
  	transition: opacity 0.8s;
}

#photos img:hover {
	opacity: 1;
}

@media (max-width: 1200px) {
  	#photos {
        -moz-column-count:    4;
        -webkit-column-count: 4;
  		column-count:         4;
  	}
}
@media (max-width: 1000px) {
  	#photos {
	    -moz-column-count:    3;
	    -webkit-column-count: 3;
	  	column-count:         3;
  	}
}
@media (max-width: 800px) {
  	#photos {
	    -moz-column-count:    2;
	    -webkit-column-count: 2;
	  	column-count:         2;
	}
}
@media (max-width: 400px) {
	#photos {
	    -moz-column-count:    1;
	    -webkit-column-count: 1;
	  	column-count:         1;
	}
}