*{
	margin:0;
	padding:0;
}

body{
	font-family:'Arial', sans-serif;
	background:#f5f3ef;
	line-height:1.5em;
	color:#666;
}

a{
	color:#1f2c36;
	text-decoration:none;
}

ul, li{
	list-style:none;
}

header{
	height:140px;
	background:#1f2c36;
	color:#fff;
	margin-bottom:20px;
}

.container{
	width:80%;
	max-width:960px;
	margin:auto;
	overflow:hidden;
}

.row{
	width:80%;
	max-width:960px;
	display:inline;
}

.logo{
	padding-top:20px;
	margin-bottom:40px;
}

.bam{
	width:12.5%;
	margin:10px 5px 20px 5px;
}

p {
    white-space: nowrap;
}

section{
	float:right;
	width:80%;
	padding:20px;
	overflow:auto;
	box-sizing:border-box;
}

aside{
	float:left;
	width:20%;
	padding:20px;
	overflow:auto;
	box-sizing:border-box;
}

nav .filter{
	white-space:nowrap;
}

.gallery img{
	width:23%;
	opacity:1;
	transition: all 1s;
}

.gallery img:hover{
	background:#fff;
	opacity:0.5;
	transition: all .5s;
}

nav a{
	line-height:2.5em;
	padding: 7px 14px;
}

nav a.active{
	background:#1f2c36;
	color:#fff;
}

nav a:hover{
	background:#ccc;
}

footer{
	height:40px;
	background:#1f2c36;
	color:#fff;
	text-align:center;
	padding-top:20px;
}

@media only screen and (max-width:960px){
	.container{
		width:95%;
	}
	
	section, aside{
		float:none;
		width:100%;
	}
	
	.gallery img{
		width:49%;
	}
}	

@media only screen and (max-width:720px){
	header{
	height:100px;
	background:#1f2c36;
	color:#fff;
	margin-bottom:20px;
	overflow:hidden;
	}
	
	.logo{
		width:270px;
		padding-top:14px;
	}
	
	.bam{
	width:12.5%;
	margin:5px 5px 40px 5px;
}
	
	.gallery img{
		width:100%;
	}
}
