.galleryParent,
.gallery {
	height: auto;
	overflow: hidden;
	margin: 0 -5px;
	font-size: 0;
	text-align: center;
}

.galleryItem,
.gallery-item {
	position: relative;
	display: inline-block;
	text-align: center;
	vertical-align: top;
	width: 312px;
	width: 33.3333%;
	width: calc(100% / 3);
	box-sizing: border-box;
	padding: 0 5px;
	margin-bottom: 10px;
}

.galleryItem img,
.gallery-item img {
	display: block;
	width: 100%;
	height: auto;
	background: #000;
	box-shadow: 0 0 0 #000;
	transition: opacity ease 250ms;
}

.galleryItem a,
.gallery-item a {
	display: block;
	background: #000;
}
.galleryItem a:hover img,
.gallery-item a:hover img {
	opacity: 0.8;
}

.galleryItem span.title {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	text-align: center;
}
.galleryItem span.title span {
	display: inline-block;
	max-width: 85%;
	background: #FFF;
	color: #F00;
	font-family: 'function-pro-bold-condensed';
	font-size: 20px;
	line-height: 27px;
	padding: 0 9px;
	-moz-box-shadow: 2px 2px 2px rgba(0,0,0,0.75);
	-webkit-box-shadow: 2px 2px 2px rgba(0,0,0,0.75);
	box-shadow: 2px 2px 2px rgba(0,0,0,0.75);
}

@media (max-width: 599px) {
	.galleryItem span.title {
		position: relative;
	}
	.galleryItem span.title span {
		max-width: none;
		display: block;
		-moz-box-shadow: none;
		-webkit-box-shadow: none;
		box-shadow: none;
	}

}

@media (max-width: 767px) {
	.galleryItem,
	.gallery-item {
		width: 50%;
		height: auto;
	}
}

@media (max-width: 480px) {
	.galleryParent,
	.gallery {
		margin: 0;
	}

	.galleryItem,
	.gallery-item {
		width: 100%;
		height: auto;
		padding: 0;
	}
}
