/*
@font-face {
	font-weight: normal;
	font-style: normal;
	font-family: 'codropsicons';
	src:url('../fonts/codropsicons/codropsicons.eot');
	src:url('../fonts/codropsicons/codropsicons.eot?#iefix') format('embedded-opentype'),
		url('../fonts/codropsicons/codropsicons.woff') format('woff'),
		url('../fonts/codropsicons/codropsicons.ttf') format('truetype'),
		url('../fonts/codropsicons/codropsicons.svg#codropsicons') format('svg');
}
*/

.grid {
	position: relative;
	clear: both;
	margin: 0;
	padding: 0;
	list-style: none;
	text-align: center;
}

.grid figure {
	position: relative;
	float: left;
	overflow: hidden;
	margin: 0;
	width: 25%;
	height: auto;
	text-align: center;
	cursor: pointer;
	outline: 5px solid #fff;
}

.grid figure img {
	position: relative;
	display: block;
	width: 100%;
	opacity: 0.5;
}

.grid figure:hover img {
	opacity: 0.8;
}

.grid figure figcaption {
	padding: 2em;
	color: #fff;
	text-transform: uppercase;
	font-size: 1.25em;
	-webkit-backface-visibility: hidden;
	backface-visibility: hidden;
}

.grid figure figcaption::before,
.grid figure figcaption::after {
	pointer-events: none;
}

.grid figure figcaption,
.grid figure figcaption > a {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
}

.grid figure figcaption > a {
	z-index: 1000;
	text-indent: 200%;
	white-space: nowrap;
	font-size: 0;
	opacity: 0;
}

.grid figure h2 {
	text-shadow: 1px 1px 1px #333;
}

.grid figure h2 span {
	float: left;
	width: 100%;
	font-size: 0.95rem;
	font-weight: 600;
	border-top: 1px solid rgba(255,255,255,0.5);
	word-spacing: normal;
	margin: 5px 0 0 0;
	padding: 5px 0 0 0;
	bottom: 0;
	letter-spacing: normal;
}

.grid figure h2,
.grid figure p {
	margin: 0;
}

.grid figure p {
	letter-spacing: 1px;
	font-size: 68.5%;
}

figure.effect-hera {
	background: #000;
}

figure.effect-hera h2 {
	font-size: 1.4rem!important;
	letter-spacing: 0.05rem;
	font-weight: 700;
	color: #fff;
}

figure.effect-hera h2,
figure.effect-hera p {
	width: 80%;
	position: absolute;
	top: 50%;
	left: 50%;
	-webkit-transition: opacity 0.2s, -webkit-transform 0.2s;
	transition: opacity 0.2s, transform 0.2s;
	-webkit-transform: translate3d(-50%,-50%,0);
	transform: translate3d(-50%,-50%,0);
	-webkit-transform-origin: 50%;
	transform-origin: 50%;
}

figure.effect-hera figcaption::before {
	position: absolute;
	top: 50%;
	left: 50%;
	width: 200px;
	height: 200px;
	border: 2px solid #fff;
	border-radius: 10px;
	content: '';
	opacity: 0;
	-webkit-transition: opacity 0.2s, -webkit-transform 0.2s;
	transition: opacity 0.2s, transform 0.2s;
	-webkit-transform: translate3d(-50%,-50%,0) rotate3d(0,0,1,-45deg) scale3d(0,0,1);
	transform: translate3d(-50%,-50%,0) rotate3d(0,0,1,-45deg) scale3d(0,0,1);
	-webkit-transform-origin: 50%;
	transform-origin: 50%;
}

figure.effect-hera p {
	width: 100%;
	text-transform: none;
	font-size: 1.2rem;
	letter-spacing: normal;
}

figure.effect-hera p a,
figure.effect-hera p span {
	float: left;
	width: 100%;
	margin: 5px 0;
	font-weight: 700;
	color: rgba(255,255,255,0.9)!important;
}

figure.effect-hera p a:hover {
	color: #fff;
	text-decoration: underline;
}

figure.effect-hera p a,
figure.effect-hera p span {
	opacity: 0;
}

figure.effect-hera p span {
	font-size: 1.1rem;
	color: #fff;
	font-weight: normal;
}

figure.effect-hera:hover figcaption::before {
	opacity: 1;
	-webkit-transform: translate3d(-50%,-50%,0) rotate3d(0,0,1,-45deg) scale3d(1,1,1);
	transform: translate3d(-50%,-50%,0) rotate3d(0,0,1,-45deg) scale3d(1,1,1);
}

figure.effect-hera:hover h2 {
	opacity: 0;
	-webkit-transform: translate3d(-50%,-50%,0) scale3d(0.8,0.8,1);
	transform: translate3d(-50%,-50%,0) scale3d(0.8,0.8,1);
}

figure.effect-hera:hover p a,
figure.effect-hera:hover p span {
	opacity: 1;
	-webkit-transition: opacity 0.2s, -webkit-transform 0.2s;
	transition: opacity 0.2s, transform 0.2s;
}

@media only screen and (min-width: 1600px) {
	.grid figure {
		width: 20%;
	}
}

@media only screen and (min-width: 650px) and (max-width: 1024px) {
	.grid figure {
		width: 33.33%;
	}
}

@media only screen and (min-width: 420px) and (max-width: 650px) {
	.grid figure {
		width: 50%;
	}
}

@media only screen and (max-width: 420px) {
	.grid figure {
		width: 100%;
	}
}