/*widgets/imagebox.css*/
.imagebox {
	position: relative;
	overflow: hidden;
	max-width: 540px;
	margin: 15px auto;
}
@media screen and (max-width: 1024px){
	.imagebox {
		margin: 25px auto;
	}
}
.imagebox > a {
	display: block;
}

.imagebox img {
	width: 100%;
}

.imagebox .cover {
	position: absolute;
	top: 0px;
	left: 0px;
	width: 100%;
	height: 100%;
	background-color: rgba(187,220,0,.8);
	transition: all ease .5s;
}
.imagebox.orange .cover { background-color: rgba(255, 166, 97,.8); }
.imagebox.green .cover  { background-color: rgba(187, 220, 0, .8); }
.imagebox.red .cover {background-color:rgba(255, 139, 124,.8);}
.imagebox .cover:hover  { background-color: rgba(187, 220, 0, 0); }

.imagebox .cover::after {
	content: "";
	position: absolute;
	top: 0px;
	left: 0px;
	width: 100%;
	height: 100%;
	border-top: 2px solid #fff;
	border-bottom: 2px solid #fff;
	opacity: 1;
	-webkit-transform: rotate3d(0,0,1,45deg) scale3d(1,1,1);
	transform: rotate3d(0,0,1,45deg) scale3d(1,1,1);
	-webkit-transform-origin: 50% 50%;
	transform-origin: 50% 50%;
	transition: all ease .5s;
}
.imagebox:hover .cover::after {
	opacity: 0;
	-webkit-transform: rotate3d(0,0,1,45deg) scale3d(1,0,1);
	transform: rotate3d(0,0,1,45deg) scale3d(1,0,1);
}

.imagebox .message {
	position: absolute;
	top: 50%;
	left: 0px;
	width: 100%;
	text-align: center;
	transform: translateY(-50%);
	-ms-transform: translateY(-50%);
	-webkit-transform: translateY(-50%);
}
.imagebox:hover .message {
	display: none;
}

.imagebox .message h5 {
	font-family: "libre_baskervilleitalic";
	font-size: 14px;
	line-height: 25px;
	color: #fff;
	letter-spacing: 2px;
}

.imagebox .message h2 {
	text-transform: uppercase;
	font-family: "arvil_sansregular";
	font-size: 40px;
	line-height: 40px;
	color: #fff;
	letter-spacing: 2px;
	margin-top: -10px;
}

@media only screen and (min-width: 40.063em) {
	.imagebox .message h2 {
		font-size: 80px;
		line-height: 70px;
		margin-top: 0;
	}

	.imagebox .message h5 {
		font-size: 24px;
	}
}

@media only screen and (min-width: 64.063em) {
	.imagebox {
		margin: 30px auto;
	}
	.imagebox .message h5 {
		font-size: 24px;
	}
}
