.p-container-item{
	/*float: left;*/
	width: 332px;
	max-height: 332px;
	line-height: 0;
	position: relative;
	display: inline-block;
	overflow: hidden;

}

.p-container-item .thumbnail{
	height: 332px;
}

.p-container-item:nth-of-type(3n+1){
	clear: left;
}

.p-paginator-block{
	
	clear: both;
	padding:10px;
	
}

.item-date, .item-comments, .item-like{
	
	display: none;
	
}

.item-caption{
	
	position: absolute;
	top: 140px;
	width: 313px;
	background-color: #571623;
	color: white;
	padding: 10px;
	max-height: 67px;
	overflow: hidden;
	opacity: 0.8;
	line-height: 1.4em;
	
}

.p-paginator-button{
	background-color: #571623;
	color: white;
}

.p-container-thumbnail{
	width:100%;
	height:100%;
	
}

@media screen and (max-width: 1040px){
	.p-container-item{
		width: 32.33%;
	}

	.item-caption{
		width: 96%;
		padding: 2%;
		max-height: none;
	}
}

@media screen and (max-width: 700px){
	.p-container-item{
		width: 49%;
	}

	.p-container-item:nth-of-type(3n+1){
		clear: none;
	}

	.p-container-item:nth-of-type(2n+1){
		clear: left;
	}

	.item-caption{
		top: 50%;
	}
}

@media screen and (max-width: 580px){
	.p-container-item{
		margin-bottom: 5%;
	}

	.item-caption{
		top: 60%;
	}
}

@media screen and (max-width: 480px){
	.p-container-item{
		width: 100%;
		float: none;
	}
}