@charset "UTF-8";
/* CSS Document */

@font-face {
		font-family: "Pirulen";
		src: url("pirulen.ttf");
	}
 
figure.overlay{
	font-family: 'Pirulen', sans-serif;
	position: relative;
	float: left;
	width: 100%;
	overflow: hidden;
	text-align: center;
}

/* let's make it a smooth transition when we hover over the image */
figure.overlay * {
	-webkit-transition: all 0.35s ease-in-out;
	transition: all .35s ease-in-out; 
}

figure.overlay img{
	opacity: 0.5;
	max-width: 100%;
	position: relative;
}

figure.overlay figcaption{
	position: absolute;
	top: 50%;
	left: 30px;
	right: 30px;
	/* now let's write the code that rotates the text */
	-webkit-transform: rotate(0deg) translateY(-50%) scale(1);
	transform: rotate(0deg) translateY(-50%) scale(1);
	-webkit-transform-origin: center 0;
	transform-origin: center 0;
}

figure.overlay figcaption h2{
	top: 50%;
	letter-spacing: 1px;
	color: #ffffff;
	text-transform: uppercase;
	padding: 10px 0px;
	margin: 0;
	font-size: 24px;
}

figure.overlay figcaption h2 span{
	font-weight: 800;
}

/* for the lines above and below the figcaptions */
figure.overlay figcaption:before, figure.overlay figcaption:after{
	background-color: #FFF;
	width: 100%;
	height: 2px;
	position: absolute;
	content: "";
	display: block;
	-webkit-transition: all 0.35s ease-in-out;
	transition: all 0.35s ease-in-out;
}

figure.overlay figcaption:before{
	left: 0;
	top: 0;
}

figure.overlay figcaption:after{
	bottom: 0;
	right: 0;
}

figure.overlay.white{
	background: #FFF;
}


/* the following code is only necessary if you want to make the images links */
figure.overlay a{
	left: 0;
	right: 0;
	top: 0;
	bottom: 0;
	position: absolute;
}

/* when you hover, the overlay disappears */
figure.overlay:hover img, figure.overlay.hover img{
	opacity: 1;
}

figure.overlay:hover figcaption,
figure.overlay.hover figcaption{
	-webkit-transform: rotate(-30deg) translateY(-50%) scale(0.9);
	transform: rotate(-30deg) translateY(-50%) scale(0.9)
}

figure.overlay:hover figcaption:before,
figure.overlay.hover figcaption:before,
figure.overlay:hover figcaption:after,
figure.overlay.hover figcaption:after{
	width: 200%;
}

/* note that the selectors for the code above use both the :hover pseudo-selector and the class .hover */
