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

.grid {
	clear: both;
	margin: 0 auto;
	padding: 0 0 0;
	position: relative;
	text-align: center;
	/*max-width: 1200px;*/
	list-style: none;
	overflow: hidden;
}

/* Common style */
.grid figure {
	position: relative;
	float: left;
	overflow: hidden;
	/* margin: 10px 0; */
	/* max-width: 530px; */
	/* max-height: 360px; */
	width: 100%; 
	/* height: auto; */
	background: #fff;
	text-align: center;
	cursor: pointer;
}

.grid figure img {
	position: relative;
	display: block;
	/*min-height: 100%;
	max-width: 100%;*/
	opacity: 1;
	-webkit-transition: opacity 0.35s;
	transition: opacity 0.35s;
}

.grid figure figcaption {
	padding: 2em;
	color: #fff;
	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: 10;
	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-family:monteserrat, sans-serif;
	text-shadow: 1px 1px 1px #000;
	font-size: 68.5%;*/
}

/*---------------*/
/***** Ming *****/
/*---------------*/

figure.effect-ming {
	background: #4d4d4d;
}

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

figure.effect-ming figcaption::before {
	position: absolute;
	top: 30px;
	right: 30px;
	bottom: 30px;
	left: 30px;
	border: 2px solid #fff;
	box-shadow: 0 0 0 30px rgba(255,255,255,0.2);
	content: '';
	opacity: 0;
	-webkit-transition: opacity 0.35s, -webkit-transform 0.35s;
	transition: opacity 0.35s, transform 0.35s;
	-webkit-transform: scale3d(1.4,1.4,1);
	transform: scale3d(1.4,1.4,1);
}

figure.effect-ming h2 { 
	padding-top:0px;
	color: #fff;
	opacity: 0.0;
	font-size: 30px; 
	transform: scale(1.5); 
	margin: 10% auto 10px auto;
	-webkit-transition: opacity 0.35s, -webkit-transform 0.35s;
	transition: opacity 0.35s, transform 0.35s;
	-webkit-transform: scale(1.5);
	-webkit-transition: -webkit-transform 0.3s;
}

figure.effect-ming p {
	opacity: 0;
	padding: 20px;
	font-size:21px;
	font-weight: 100;
	/*letter-spacing: 5px;*/
	-webkit-transition: opacity 0.35s, -webkit-transform 0.35s;
	transition: opacity 0.35s, transform 0.35s;
	-webkit-transform: scale(1.5);
	transform: scale(1.5);
}

figure.effect-ming .botao {
	opacity: 0;
	margin-top: 20px;
	height: 105px;
	padding: 20px; 
	/*letter-spacing: 5px;*/
	-webkit-transition: opacity 0.35s, -webkit-transform 0.35s;
	transition: opacity 0.35s, transform 0.35s;
	-webkit-transform: scale(1.5);
	transform: scale(1.5);
}

figure.effect-ming:hover figcaption::before,
figure.effect-ming:hover button {
	-webkit-transform: scale3d(1,1,1);
	transform: scale3d(1,1,1);
	opacity: 1!important;
}

figure.effect-ming:hover .botao {
	opacity: 1;
	-webkit-transform: scale(1);
	transform: scale(1);
}

figure.effect-ming:hover h2 {
	-webkit-transform: scale(0.9);
	transform: scale(0.9);
	opacity:1
}

figure.effect-ming h3 {
	color: #fff;
	opacity: 1.0;
	font-size: 40px;
	text-align:center;
	margin: 15% auto -15% auto;
	transform: scale(1.5);
	transition: transform 0.3s;
	-webkit-transform: scale(1);
	-webkit-transition: -webkit-transform 0.3s;
	/*text-shadow: 2px 2px 0 #000, -1px -1px 0 #000, 1px -1px 0 #000, -1px 1px 0 #000, 1px 1px 0 #000;*/
}

figure.effect-ming:hover h3, 
figure.effect-ming:focus h3 , 
figure.effect-ming:active h3 ,
figure.effect-ming:active:focus h3,
figure.effect-ming.active:focus h3{
	-webkit-transform: translate3d(0,-20px,0);
	transform: translate3d(0,-20px,0);
	/*-webkit-transform: scale(0.9);
	transform: scale(0.9);*/
	opacity:1
}
figure.effect-ming:hover figcaption::before,
figure.effect-ming:hover p {
	opacity: 1;
	-webkit-transform: scale3d(1,1,1);
	transform: scale3d(1,1,1);
}
 

figure.effect-ming:hover figcaption, 
figure.effect-ming:focus figcaption , 
figure.effect-ming:active figcaption ,
figure.effect-ming:active:focus figcaption,
figure.effect-ming.active:focus figcaption {
	background-color: rgba(58,52,42,0);
}

figure.effect-ming:hover img {
	opacity: 0.4;
}

/* 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%; 
		max-width:450px;
	}
}


@media (max-width: 1555px) {
	figure.effect-ming p {
		letter-spacing: 0px;
		font-size:18px;
		padding: 20px 20px;
	}
	.grid figure figcaption {
    padding: 1.8em;
	}

}

@media (max-width: 1320px) { 
	figure.effect-ming .botao {
		margin-top: -20px;
	}
	
	figure.effect-ming p {
		padding: 10px 20px;
	}
}

@media (max-width: 1250px) {

	figure.effect-ming .botao {
		margin-top: -20px;
		height: 80px;
	}
	
	figure.effect-ming p {
		padding: 10px 20px;
		line-height: 1;
	}
	figure.effect-ming h2 {
    padding-top: 0px;
    color: #fff;
    opacity: 0.0;
    font-size: 30px;
    transform: scale(1.5);
    margin: 10% auto 0px auto;
    -webkit-transition: opacity 0.35s, -webkit-transform 0.35s;
    transition: opacity 0.35s, transform 0.35s;
    -webkit-transform: scale(1.5);
    -webkit-transition: -webkit-transform 0.3s;
	}
}

@media (max-width: 1020px) {
	figure.effect-ming p {
		font-size:18px;
		letter-spacing: 0px;
	}
	
	figure.effect-ming h2 {
		margin: 7% auto 0px auto;
	}
}

/* SM */
@media (max-width: 991px) {	
	figure.effect-ming h3 {
		margin: 15% auto 10px auto;
		font-size:30px;
	}
}
 
@media (max-width: 767px) {	
	figure.effect-ming p {
    font-size: 19px;
    line-height: 1.5;
	}
	figure.effect-ming .botao {
		margin-top: 10px;
		height: 100px;
	}
}

/* XS */
@media (max-width: 800px) {	
	/*figure.effect-ming p {
		font-size:25px;
		letter-spacing: 5px;
	}*/
}

@media (max-width: 576px) {	
	 
	figure.effect-ming .botao {
		opacity: 1;
		-webkit-transform: scale(1);
		transform: scale(1);
	}

	figure.effect-ming h2 {
		-webkit-transform: scale(0.9);
		transform: scale(0.9);
		opacity:1
	}
  
	figure.effect-ming h3, 
	figure.effect-ming:focus h3 , 
	figure.effect-ming:active h3 ,
	figure.effect-ming:active:focus h3,
	figure.effect-ming.active:focus h3{
		-webkit-transform: translate3d(0,-20px,0);
		transform: translate3d(0,-20px,0);
		/*-webkit-transform: scale(0.9);
		transform: scale(0.9);*/
		opacity:1
	}
	figure.effect-ming figcaption::before,
	figure.effect-ming p {
		opacity: 1;
		-webkit-transform: scale3d(1,1,1);
		transform: scale3d(1,1,1);
	}
	figure.effect-ming img {
		opacity: 0.4;
	}
}


@media (max-width: 480px) {	
	figure.effect-ming p {
		font-size:18px;
		letter-spacing: 0px;
	}
	
	figure.effect-ming h2 {
		margin: 7% auto 0px auto;
	}
}

/*---------------*/
/***** Sadie *****/
/*---------------*/

figure.effect-sadie figcaption::before {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: -webkit-linear-gradient(top, rgba(248,183,0,0) 30%, rgba(248,183,0,0.9) 100%);
	background: linear-gradient(to bottom, rgba(248,183,0,0) 30%, rgba(248,183,0,0.9) 100%);
	content: '';
	opacity: 0;
	-webkit-transform: translate3d(0,50%,0);
	transform: translate3d(0,50%,0);
}

figure.effect-sadie h2 {
    top: 51%;
    width: 78px;
    color: #fff;
    padding: 16px 16px 20px 16px;
    opacity: 0;
    font-size: 25px;
    margin-left: auto;
    margin-right: auto;
    position: relative;
    border: 3px solid #transparent;
    -webkit-transition: -webkit-transform 0.9s;
    transition: transform 0.9s;
    -webkit-transform: translate3d(0,-50%,0);
    transform: translate3d(0,-50%,0);
}

figure.effect-sadie:hover h2 {
	color: #fff;
	border: 3px solid #fff;
	opacity:1;
	-webkit-transform: translate3d(0,-50%,0) translate3d(0,-10px,0);
	transform: translate3d(0,-50%,0) translate3d(0,-10px,0);
}

figure.effect-sadie figcaption::before,
figure.effect-sadie p {
	-webkit-transition: opacity 0.35s, -webkit-transform 0.35s;
	transition: opacity 0.35s, transform 0.35s;
	color:#fff;
}

figure.effect-sadie p {
	position: absolute;
	bottom: 0;
	left: 0;
	padding: 16px 20px;
	width: 100%;
	opacity: 0;
	font-size: 17px;
	text-align: left;
	line-height: 1.1;
	-webkit-transform: translate3d(0,10px,0);
	transform: translate3d(0,10px,0);
}

figure.effect-sadie b {
	font-size: 21px;
}


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