
@font-face {
/*    font-family: 'Raleway Regular';
    src: url('fonts/Raleway-Regular.ttf');
    src: url('fonts/Raleway-Regular.ttf') format('truetype'); */
	
	font-family: "RotisSemiSansStd55Regular";
    src: url('fonts/rotissemisansstd.ttf');
    src: url('fonts/rotissemisansstd.ttf') format('truetype'); 
}


*, *:after, *:before { -webkit-box-sizing: border-box; box-sizing: border-box; }
.clearfix:before, .clearfix:after { display: table; content: ''; }
.clearfix:after { clear: both; }

.grid {
	position: relative;
	clear: both;
	margin: 0 auto;
	padding: 1em 0 4em;
	max-width: 1000px;
	list-style: none;
	text-align: center;
}

/* Common style */
.grid figure {
	position: relative;
	float: left;
	overflow: hidden;
	margin: 10px 1%;
	min-width: 333px;
	max-width: 440px;
	max-height: 370px;
	/*width: 48%;*/
	height: auto;
	background: #3085a3;
	text-align: center;
	cursor: pointer;
}

.grid figure img {
	position: relative;
	display: block;
	min-height: 100%;
	max-width: 100%;
	opacity: 0.8;
}

.grid figure figcaption {
/*	font-family: "Raleway Regular";*/
	font-family: "RotisSemiSansStd55Regular";
	/*padding: 2em;*/
	color: #fff;
	/*color: #00AFAA;*/
	/*color: #233135;*/
	/*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;
    z-index: 0;
	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 {
	width: 250px;
	margin-left: auto;
	margin-right: auto;
	font-size: 0.7em;
	letter-spacing: 0.05em;
}

/* Individual effects */
/*-----------------*/
/***** Goliath *****/
/*-----------------*/


figure.effect-goliath img {
	opacity: 1;

	-webkit-transition: -webkit-transform 0.35s;
	transition: transform 0.35s;
}

figure.effect-goliath h2 {
	margin-top: 25%;
	font-size: 2em;

}

figure.dcb-img p {
background-color: rgba(147,183,30,0.7);
}

figure.iacuc-img p {
background-color: rgba(239,75,62,0.7);
}

figure.ibec-img p {
background-color: rgba(252,142,37,0.7);
}

figure.irsc-img p {
background-color: rgba(0,175,170,0.7);
}

figure.effect-goliath p {
	position: absolute;
	left: 0;
	color: #fff;
	padding: 35px 20px 30px 30px;
	width: 100%;
	height: 35%;
	text-align: left;
	text-transform: none;
	font-size: 1.3em;
	top: 65%;
	font-weight: normal;
	opacity: 0;
	-webkit-transition: opacity 0.35s, -webkit-transform 0.35s;
	transition: opacity 0.35s, transform 0.35s;
	-webkit-transform: translate3d(0px,50px,0);
	transform: translate3d(0px,50px,0);
}

figure.effect-goliath:hover img {

	-webkit-transform: scale(1.12);
	transform: scale(1.12);
	-webkit-transition: opacity 0.35s, -webkit-transform 0.35s;
	transition: opacity 0.35s, transform 0.35s;
}

figure.effect-goliath:hover h2 {
	-webkit-transform: translate3d(0,0,0);
	transform: translate3d(0,0,0);
}

figure.effect-goliath:hover p {
	opacity: 1;
	-webkit-transform: translate3d(0,0,0);
	transform: translate3d(0,0,0);
	transition: opacity 0.35s, transform 0.35s;
}



@media screen and (max-width: 1000px) {
	figure.dcb-img p, figure.iacuc-img p, figure.ibec-img p, figure.irsc-img p {
        opacity: 1;
        top: 225px;
    }
}

@media screen and (max-width: 500px) {
    figure.dcb-img p, figure.iacuc-img p, figure.ibec-img p, figure.irsc-img p {
        font-size:1em;
        top: 220px;
    }
}

@media screen and (max-width: 450px) {
    figure.dcb-img p, figure.iacuc-img p, figure.ibec-img p, figure.irsc-img p {
        font-size:1em;
        top: 200px;
    }
}


/* 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%;
	}
}