
@font-face {
    font-family: "cabanaregular";
    src: url("cabanaregular.otf") format("truetype");
}
@font-face {
    font-family: "cabanaregular";
    src: url("cabanaregular.eot") format("truetype");
}


.grid {
	position: relative;
	clear: both;
	margin: 0 auto;
	padding: 1em 0 0px;
	max-width: 1260px;
	list-style: none;
	text-align: center;
	display: table;
}

.grid h3{
	 color:#fff;
	 margin-top: 40px;
	 text-shadow: 1px 1px 3px #555, -1px -1px 3px #555, 1px -1px 3px #555, -1px 1px 3px #555, 1px 1px 3px #555;
}

.grid .col-sm-4{
	margin-bottom: 15px;
}

/* Common style */
.grid figure {
	position: relative;
	overflow: hidden;
	/*margin: 10px 1%;
	min-width: 320px;
	float: left;
	max-width: 480px;
	max-height: 360px;
	width: 48%;*/
	height: auto;
	background: #3085a3;
	text-align: center;
/*	cursor: pointer;*/
-webkit-box-shadow: 0px 2px 14px 0px rgba(51,51,51,0.84);
-moz-box-shadow: 0px 2px 14px 0px rgba(51,51,51,0.84);
box-shadow: 0px 2px 14px 0px rgba(51,51,51,0.84);
}

.grid figure img {
	position: relative;
	display: block;
	height: 290px;
	width: 100%;
	opacity: 0.9;
	-webkit-transition: opacity 0.35s;
	transition: opacity 0.35s;
}

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

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

.grid figure figcaption2 {
	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 figcaption2::before,
.grid figure figcaption2::after {
	pointer-events: none;
}

.grid figure figcaption,
.grid figure figcaption > a {
	position: absolute;
	text-align:center;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	cursor: pointer !important;
}

.grid figure figcaption2,
.grid figure figcaption2 > a {
	position: absolute;
	top: 163px;
	text-align:center;
	left: 0;
	width: 100%;
	height: 100%;
	cursor: pointer !important;
}

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

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

.grid figure h2 {
	word-spacing: -0.15em;
	font-weight: 300;
	font-size:28px;
	color:#333;
}

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

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

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

/* Individual effects */

figure.effect-kira {
	background: #333;
	text-align: left;
}

figure.effect-kira img {
	-webkit-transition: opacity 0.35s;
	transition: opacity 0.35s;
}

figure.effect-kira p {
	/*padding: 2.25em 0.5em;*/
	padding-top: 25px;
	font-weight: 600;	
	font-size: 100%;
	line-height: 1.5;
	opacity: 0;
	-webkit-transition: opacity 0.35s, -webkit-transform 0.35s;
	transition: opacity 0.35s, transform 0.35s;
	-webkit-transform: translate3d(0,-10px,0);
	transform: translate3d(0,-10px,0);
}

figure.effect-kira p a {
	margin: 0 0.5em;
	color: #fff;	
	font-family: cabanaregular;
	font-size:60px;
}

figure.effect-kira p a:hover,
figure.effect-kira p a:focus {
	opacity: 0.6;
}

figure.effect-kira figcaption {
	z-index: 1;
}

figure.effect-kira figcaption2 {
	z-index: 1;
}

figure.effect-kira figcaption::before {
	position: absolute;
	top: 0;
	right: 2em;
	left: 2em;
	z-index: -1;
	height: 6.5em;
	background: #333;
	border-radius:7px;
	content: '';
	-webkit-transition: opacity 0.35s, -webkit-transform 0.35s;
	transition: opacity 0.35s, transform 0.35s;
	-webkit-transform: translate3d(0,4em,0) scale3d(1,0.023,1) ;
	transform: translate3d(0,4em,0) scale3d(1,0.023,1);
	-webkit-transform-origin: 50% 0;
	transform-origin: 50% 0;
	opacity:0;
}

figure.effect-kira figcaption2::before {
	position: absolute;
	top: 0px;
	right: 2em;
	left: 2em;
	z-index: -1;
	height: 6.5em;
	background: #333;
	border-radius:7px;
	content: '';
	-webkit-transition: opacity 0.35s, -webkit-transform 0.35s;
	transition: opacity 0.35s, transform 0.35s;
	-webkit-transform: translate3d(0,4em,0) scale3d(1,0.023,1) ;
	transform: translate3d(0,4em,0) scale3d(1,0.023,1);
	-webkit-transform-origin: 50% 0;
	transform-origin: 50% 0;
	opacity:0;
}

figure.effect-kira:hover figcaption::before {
	opacity: 0.7;
	-webkit-transform: translate3d(0,5em,0) scale3d(1,1,1) ;
	transform: translate3d(0,5em,0) scale3d(1,1,1);
}

figure.effect-kira:hover figcaption2::before {
	opacity: 0.7;
	-webkit-transform: translate3d(0,5em,0) scale3d(1,1,1) ;
	transform: translate3d(0,5em,0) scale3d(1,1,1);
}

figure.effect-kira:hover img {
	opacity: 0.5;
}

figure.effect-kira:hover p {
	opacity: 1;
	-webkit-transform: translate3d(0,0,0);
	transform: translate3d(0,0,0);
}

/* Media queries */
@media screen and (max-width: 50em) {
	.content {
		padding: 0 10px;
		text-align: center;
	}
	.grid figure {
		display: inline-block;
		float: none;
		margin: 10px auto;
		width: 100%;
	}
}



@media (max-width: 1175px) {	
	figure.effect-kira p a {
		font-size:45px;
	}
	
	figure.effect-kira figcaption::before {
		top: 0px;
		height: 4.5em;
	}
	
	figure.effect-kira figcaption2::before {
		top: 0px;
		height: 4.5em;
	}
}













/*-----------------*/
/******  Hera  *****/
/*-----------------*/

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

figure.effect-hera h2 {
	font-size: 158.75%;
	color:#fff;
}

figure.effect-hera h2,
figure.effect-hera p {
	position: absolute;
	top: 50%;
	left: 50%;
	-webkit-transition: opacity 0.35s, -webkit-transform 0.35s;
	transition: opacity 0.35s, transform 0.35s;
	-webkit-transform: translate3d(-50%,-50%,0);
	transform: translate3d(-50%,-50%,0);
	-webkit-transform-origin: 50%;
	transform-origin: 50%;
	    line-height: 1;
	/*text-shadow: 1px 1px 3px #555, -1px -1px 3px #555, 1px -1px 3px #555, -1px 1px 3px #555, 1px 1px 3px #555;*/
}

figure.effect-hera h2{
	text-shadow: 1px 1px 3px #555, -1px -1px 3px #555, 1px -1px 3px #555, -1px 1px 3px #555, 1px 1px 3px #555;
}

figure.effect-hera figcaption::before {
	position: absolute;
	top: 50%;
	left: 50%;
	width: 200px;
	height: 200px;
	border: 2px solid #fff;
	content: '';
	opacity: 0;
	-webkit-transition: opacity 0.35s, -webkit-transform 0.35s;
	transition: opacity 0.35s, transform 0.35s;
	-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: 250px;
	text-transform: none;
	line-height: 1.8;
	font-size:20px;
}

figure.effect-hera p a {
	color: #fff;
}

figure.effect-hera p a:hover,
figure.effect-hera p a:focus {
	opacity: 0.8;
}

figure.effect-hera p a b {
	-webkit-transition: opacity 0.35s, -webkit-transform 0.35s;
	transition: opacity 0.35s, transform 0.35s;
	background-color: rgba(0,0,0,0.4);
	/*border: 1px solid #555;*/
	opacity: 0;
	font-size:18px;
	padding: 5px 13px;
	border-radius:5px;
	margin-bottom:10px;
	font-family: arial;
	letter-spacing: -1px;
	display: inline-table;
}

figure.effect-hera:hover p a b {
	opacity: 1;
}

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);
}

























/* XS */
@media (max-width: 767px) {
	figure.effect-kira figcaption::before {
		top: -27px;
	}
	
	figure.effect-kira figcaption2::before {
		top: -27px;
	}
	
		
	figure.effect-hera p a{
		opacity: 1;
	}

	figure.effect-hera p a b {
		opacity: 1;
	}

	figure.effect-hera figcaption{
		opacity: 1;
	}
	figure.effect-hera img{
		opacity: 1;
	}

	figure.effect-hera h2 {
		opacity: 0;
	}
}









@media (max-width: 450px) {
	figure.effect-kira figcaption::before {
		top: -27px;
		height: 3.5em;
	}
	
	figure.effect-kira figcaption2::before {
		top: -27px;
		height: 3.5em;
	}

	figure.effect-kira p a {
		font-size:40px;
	}

	.grid figure figcaption2,
	.grid figure figcaption2 > a {
		position: absolute;
		top: 110px;
		text-align:center;
		left: 0;
		width: 100%;
		height: 100%;
	}
	
	figure.effect-hera h2 {
		font-size: 120%;
		color:#fff;
	}
}

@media (max-width: 330px) {
	
	figure.effect-hera h2 {
		font-size: 100%;
		color:#fff;
	}
}

