#categories{
	overflow:hidden;
	display:none;
}

#categories .category{
	float:left;
	width:calc(12.5% - 17.5px);
	background-color:#022000;
	height:220px;
	margin-right:20px;
	margin-bottom:20px;
	cursor:pointer;
	
	-webkit-border-radius: 5px;
	-moz-border-radius: 5px;
	border-radius: 5px;
}

#categories .category:nth-child(8n){
	margin-right:0px;
}

#categories .category .photo img{
	width:100%;
	height:180px;
	
	-webkit-border-top-left-radius: 5px;
	-webkit-border-top-right-radius: 5px;
	-moz-border-radius-topleft: 5px;
	-moz-border-radius-topright: 5px;
	border-top-left-radius: 5px;
	border-top-right-radius: 5px;
}

#categories .category .title{
	width:100%;
	height:40px;
	line-height:40px;
	text-align:center;
}

@media only screen and (max-width:2000px){
	#categories .category{
		width:calc(25% - 15px);
		margin-right:20px;
	}
	
	#categories .category:nth-child(4n){
		margin-right:0px;
	}
}

@media only screen and (max-width:950px){
	#categories .category{
		width:calc(50% - 10px);
		margin-right:20px;
	}
	
	#categories .category:nth-child(2n){
		margin-right:0px;
	}
}

@media only screen and (max-width:1200px){
	#categories{
		margin-top:20px;
		display:block;
	}
}