/**
 * Grid container
 */
#tiles {
	list-style-type: none;
	position: relative;
}

/**
 * Grid items
 */
#tiles li {
	width: 300px;
	background-color: #FFF;
	-moz-border-radius: 0px;
	-webkit-border-radius: 0px;
	border-radius: 0px;
	display: none; /** Hide items initially to avoid a flicker effect **/
	cursor: pointer;
	-webkit-transition: all 0.3s ease-out;
	-moz-transition: all 0.3s ease-out;
	-o-transition: all 0.3s ease-out;
	transition: all 0.3s ease-out;
	box-shadow: none;
	padding-top: 20px;
	padding-right: 0px;
	padding-bottom: 7px;
	padding-left: 0px;
	border: 0px solid #FFF;
}

#tiles li.inactive {
	opacity: 0;
	display: none !important;
}

#tiles li img {
	display: block;
}

#filters {
	list-style-type: none;
	text-align: center;
	height: 50px;
	margin: 0 5% 0 5%;
	min-width: 600px;
	display: table;
	margin-left: auto;
	margin-right: auto;
}

#filters li {
	font-size: 12px;
	float: left;
	padding: 6px 0 4px 0;
	cursor: default;
	-webkit-transition: all 0.15s ease-out;
	-moz-transition: all 0.15s ease-out;
	-o-transition: all 0.15s ease-out;
	transition: all 0.15s ease-out;
	-moz-border-radius: 3px;
	-webkit-border-radius: 3px;
	border-radius: 0px;
	margin: 0 1% 0 1%;
	width: 11%;
	margin-left: auto;
	margin-right: auto;
	display: table;
	color: #666;
}

#filters li:hover {
	background: #CCC;
}

#filters li.active {
	background: #666;
	color: #ffffff;
}

/**
 * Grid item text
 */
#tiles li p {
	color: #999;
	font-size: 12px;
	margin: 7px 0 0 7px;
}

/**
 * Some extra styles to randomize heights of grid items.
 */
#tiles ali:nth-child(3n) {
height: 175px;
}

#tiles ali:nth-child(4n-3) {
padding-bottom: 30px;
}

#tiles ali:nth-child(5n) {
height: 250px;
}

/** General page styling **/

html {
	background-color: #cccccc;
}

#main {
	padding: 30px 0 30px 0;
	margin-top: 65px;
}

header h1 {
text-align: center;
font-size: 24px;
font-weight: normal;
margin: 30px 0 3px 0;
}

header p {
	text-align: center;
	font-size: 14px;
	color: #666;
	margin: 0;
}
