.gallery p {margin: 0px 0px 1em 0px;}
.gallery a {outline: none;}

.gallery .container {
	width: 100%;
	margin: 0;
	padding: 0;
	position: relative;
}

.gallery .title {
	width: 100%;
	margin: 0px auto 40px;
}

.gallery .title h1 {
	text-align: center;
	font-size: 36px;
	text-transform: uppercase;
	padding: 10px 10px;
	border-radius: 5px;
	box-shadow: 0px 0px 5px 1px #FCFAE1;
}

.gallery {
	width: 100%;
}

.filter {background:url(../images/structure/dashed-border.png) repeat-x bottom; margin-bottom:30px !important; text-align:center; padding:8px 0;}
	.filter span {padding: 0;}
	.filter a {display:inline-block; line-height:18px; color:#7d7d7d; text-transform:uppercase; font-size:18px; font-family: 'DINOT-Bold';}
	.filter a:hover {color: #AFBB10; text-decoration:none;}
	.filter a.selected {color: #AFBB10;}		
	.filter a:after {padding-left:25px; padding-right:25px; content: "-";}
	.filter .last:after {padding-left:0 !important; padding-right:0 !important; content: "" !important;}
	

.thumbnail_wrap {
	position: relative;
	width:100%;
	text-align:center;
}

a.thumbnail {
	position: absolute;
}

a.thumbnail img {
	width: 185px;
	height: 185px;
}

	a.thumbnail img:hover {
		opacity:0.7;
	}

.clear_floats {
	clear: both;
	line-height: 1px;
}

/* Horizontal Media Queries */
@media screen and (min-height: 50px) and (max-height: 979px) {
	
	
}

@media screen and (min-height: 50px) and (max-height: 520px) {
	.title h1 {
		font-size: 18px;
	}
}

@media screen and (min-height: 521px) and (max-height: 700px) {
	.title h1 {
		font-size: 24px;
	}
}


/* Vertical Media Queries */
@media screen and (min-width: 50px) and (max-width: 500px) {
	.title h1 {
		font-size: 18px;
	}

	body {
		padding: 0px 5px;
	}

	.gallery {
		width: auto;
	}



	
}

@media screen and (min-width: 501px) and (max-width: 960px) {
	.title h1 {
		font-size: 24px;
	}

}

@media screen and (max-width: 1279px) {
	.filter a:after {padding-left:20px; padding-right:20px; content: "-";}	
	a.thumbnail img {width: 135px; height: 135px;}
}

@media screen and (max-width: 989px) {
	.filter a {line-height:18px; font-size:15px;}
	.filter a:after {padding-left:10px; padding-right:10px; content: "-";}	
	a.thumbnail img {width: 125px; height: 125px;}
}

@media screen and (max-width: 767px) {
	.filter a {display: block; padding:5px 20px; }
	.filter a:after {padding-left:0px; padding-right:0px; content: "";}	
	a.thumbnail img {width: 185px; height: 185px;}
}

@media screen and (max-width: 479px) {
		a.thumbnail img {width: 110px; height: 110px;}
}