 @import url('https://fonts.googleapis.com/css?family=Lato:300,700');

 *, *:after, *:before { -webkit-box-sizing: border-box; box-sizing: border-box; }
.clearfix:before, .clearfix:after { display: table; content: ''; }
.clearfix:after { clear: both; }

body {
	color: #FFF;
	font-weight: 300;
	font-size: 1em;
	font-family: 'Lato', Arial, sans-serif;
}
a {
	outline: none;
	color: #3498db;
	text-decoration: none;
}
a:hover, a:focus {color: #528cb3;}
section {padding: 1em;text-align: center;}
.fd-rayas {background: url("fd-rayas.jpg") repeat;}

.mfx-header {
  margin: 0 auto;
  padding: 2em 0.8em 0;
  text-align: center;
}
.mfx-header h1 {
  color: #990033;
  font-size: 4em;
  font-weight: 300;
  line-height: 0.9;
  margin: 0;
}
.mfx-header h1 span {
  color: #007abc;
  display: block;
  font-size: 45%;
  font-weight: 300;
  padding: 0.6em;
}
.mfx-top {
	width: 100%;
	text-transform: uppercase;
	font-weight: 800;
	font-size: 0.69em;
	line-height: 2.2;
}

.mfx-top a {
	display: inline-block;
	padding: 1em 2em;
	text-decoration: none;
	letter-spacing: 1px;
}

.mfx-top span.right {
	float: right;
}

.mfx-top span.right a {
	display: block;
	float: left;
}

.content {
	margin: 0 auto;
	max-width: 1220px;
	border-top: 1px solid #cddff7;
}
.content > h2 {
  clear: both;
  color: #c8cbd4;
  font-size: 1em;
  font-weight: 300;
  margin: 0;
  padding: 0.7em 1% 0;
  text-transform: uppercase;
}

.grid {
	position: relative;
	margin: 0 auto;
	padding: 1em 0 4em;
	max-width: 1220px;
	list-style: none;
	text-align: center;
}

.grid figure {
  cursor: pointer;
  float: left;
  margin: 10px 2%;
  max-height: 480px;
  max-width: 380px;
  min-width: 320px;
  overflow: hidden;
  position: relative;
  text-align: center;
  width: 29%;
}

.grid figure img {
	position: relative;
	display: block;
	min-height: 100%;
	max-width: 100%;
	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%;
}

/* Anchor will cover the whole item by default */
/* For some effects it will show as a button */
.grid figure figcaption > 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;
}
.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%;}


/***** Dexter *****/
/*figure.effect-dexter {
	background: -webkit-linear-gradient(top, rgba(37,141,200,1) 0%, rgba(104,60,19,1) 100%);
	background: linear-gradient(to bottom, rgba(37,141,200,1) 0%,rgba(104,60,19,1) 100%); 
}*/
figure.effect-dexter img {
	-webkit-transition: opacity 0.35s;
	transition: opacity 0.35s;
}
figure.effect-dexter:hover img {opacity: 0.4;}

figure.effect-dexter figcaption::after {
  border: 1px solid #fff;
  bottom: 250px;
  content: "";
  height: calc(30% - 50px);
  left: 45px;
  position: absolute;
  right: 105px;
}
figure.effect-dexter figcaption::after {
	-webkit-transition: -webkit-transform 0.35s;
	transition: transform 0.35s;
	-webkit-transform: translate3d(0,-100%,0);
	transform: translate3d(0,-100%,0);
}
figure.effect-dexter:hover figcaption::after {
	-webkit-transform: translate3d(0,49px,0);
	transform: translate3d(0,49px,0);
}
figure.effect-dexter figcaption {
  padding: 1.9em 5.5em 5em 2.5em;
  text-align: left;
}
figure.effect-dexter p {
	position: absolute;
	right: 120px;
	bottom: 50px;
	left: 60px;
	opacity: 0;
	color:#000;
}
figure.effect-dexter p {
	-webkit-transition: opacity 0.35s, -webkit-transform 0.35s;
	transition: opacity 0.35s, transform 0.35s;
	-webkit-transform: translate3d(0,-100px,0);
	transform: translate3d(0,-100px,0);
}
figure.effect-dexter:hover p {
	opacity: 1;
	-webkit-transform: translate3d(0,-160px,0);
	transform: translate3d(0,-160px,0);
}
.footer {
	clear: both;
	padding: 6em 1em;
	font-size: 120%;
}
.footer > a {
  border: 1px solid #cddff7;
  display: inline-block;
  height: 350px;
  margin: 20px 10px;
  max-width: 300px;
  padding: 25px;
  text-align: center;
}
.footer a:hover {border-color: #990033;}
.footer a img {max-width: 100%;opacity: 0.8;}
.footer a:hover img, .footer a:active img {opacity: 1;}
.footer a h3 {
  margin: 0 0 0 -10px;
  padding: 0.5em;
  position: absolute;
  text-align: center;
  text-transform: uppercase;
  width: 270px;
}
.contact {font-weight: 300;font-size: 0.9em;}

@media screen and (max-width: 1190px) {
	.mfx-header {font-size: 75%;}
	.content {max-width: 696px;}
	figure.effect-dexter figcaption::after {
		bottom: 115px;right: 85px;
		height: calc(40% - 30px);
	}
	figure.effect-dexter:hover figcaption::after {
		-webkit-transform: translate3d(0,40px,0);
		transform: translate3d(0,40px,0);
	}
	figure.effect-dexter p {
	  bottom: -50px;
	  font-size: 90%;
	  left: 50px;
	  right: 90px;
	}
}

@media screen and (max-width: 695px) and (min-width:320px) {
	.content {max-width: 305px;}
	.mfx-header h1 {font-size: 3.2em;}
	.grid {max-width: 240px}
	.grid figure {
	  margin: 40px auto;
	  max-height: 340px;
	  max-width: 300px;
	  min-width: 250px;
	}
	.grid figure figcaption {font-size: 0.95em;}
	figure.effect-dexter figcaption::after {left: 25px;right: 63px;}
	figure.effect-dexter figcaption {padding: 1.9em 4.5em 5em 2em;}
	figure.effect-dexter p {bottom: -78px;left: 30px;right: 68px;}
}