
.gallery-filters{
    margin: 20px 0 0 0;
    padding: 0;
	font-size: 12px;
}

.gallery-filters li, .gallery-filters li a {
    display: inline-block;
}

.gallery-filters li a {
    margin: 0 1px 5px 0;
    padding: 2px 5px;
    background: #f6ebd2;
    border-radius: 4px;
    color: #515151;
}

.gallery-filters .sel, .gallery-filters li a:hover {
    background: #fec42b;
    color: #fff;
}

.cp-gallery    {
    margin: 40px 0 0 0;
}

.cp-gallery .item   {
    border: 5px solid #fff7b1;
	margin: 0 7px 7px 0;
	float: left;
    position: relative;
}

.cp-gallery .item:nth-child(4n+4),
.album-cover:nth-child(4n+4) {
    margin-right: 0;
}

.ie8 .cp-gallery .item,
.ie8 .album-cover   {
    margin-right: 15px;
}

.album-cover    {
    float: left;
    margin: 0 7px 7px 0;
    padding: 5px;
    background: #fec42b;
    position: relative;
    font-weight: bold;
	border-radius: 4px;
}

.wp-caption-text a	{
	color: #fff;
	margin-top: 5px;
	display: block;
}

.album-cover  .wp-caption-text	{
	background: transparent !important;
}

@media (max-width: 1230px)  {
	.cp-gallery .item,
	.cp-gallery .item:nth-child(4n+4),
	.album-cover:nth-child(4n+4)		{ margin: 0 7px 7px 0; }
	.cp-gallery .item:nth-child(3n+3),
	.album-cover:nth-child(3n+3)		{ margin-right: 0; }
}

@media (max-width: 900px)  {
	.cp-gallery .item,
	.cp-gallery .item:nth-child(3n+3),
	.album-cover:nth-child(3n+3)		{ margin: 0 7px 7px 0 !important; }
	.cp-gallery .item:nth-child(4n+4),
	.album-cover:nth-child(4n+4)		{ margin-right: 0; }
}

@media screen and (max-width: 690px) {
	.cp-gallery .item,
	.cp-gallery .item:nth-child(4n+4),
	.album-cover:nth-child(4n+4)		{ margin: 0 7px 7px 0; }
	.cp-gallery .item:nth-child(3n+3),
	.album-cover:nth-child(3n+3)		{ margin-right: 0; }
}

@media screen and (max-width: 545px) {
	.cp-gallery .item,
	.cp-gallery .item:nth-child(3n+3),
	.album-cover:nth-child(3n+3)		{ margin: 0 7px 7px 0; }
	.cp-gallery .item:nth-child(2n+2),
	.album-cover:nth-child(2n+2)		{ margin-right: 0; }
}

@media screen and (max-width: 380px) {
	.cp-gallery .item:nth-child(1n+1),
	.album-cover:nth-child(1n+1)		{ margin-right: 0; }
}