@font-face {
    font-family: 'ELIZAZN_O';
    src: url('../fonts/ELIZAZN_O.otf');

}*: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: 600px;
list-style: none;
text-align: center;
}

/* Common style */
.grid figure {
position: relative;
float: left;
overflow: hidden;
max-width: 600px;
max-height: 400px;
height: auto;
background: #3085a3;
text-align: center;
cursor: pointer;
}

.grid figure img {
position: relative;
display: block;
opacity: 0.8;
}

.grid figure figcaption {
position: relative;
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;
    font-size: 1em;
position: absolute;
bottom: 10%;
right: 1%;
left: 1%;
}

.grid figure p {
position: absolute;
top: 30%;
right: 1%;
left: 1%;
}

.grid figure p.tax-ming {
position: absolute;
top: 10%;
right: 1%;
left: 1%;
}

.grid figure h2 span {
font-weight: 800;
position: absolute;
bottom: 10%;
right: 1%;
left: 1%;
}

.grid figure p.tax-ming a,
.grid figure p.tax-ming,
.grid figure h2,
.grid figure p {
margin: 0;
}

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

.grid figure p.tax-ming a,
.grid figure p.tax-ming {
font-family: Arial;
text-transform: uppercase;
/* position: relative; */
}


/* Individual style */

figure.effect-ming {
background: #030c17;
}

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

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.8s, -webkit-transform 0.8s;
transition: opacity 0.8s, transform 0.8s;
-webkit-transform: scale3d(1.4,1.4,1);
transform: scale3d(1.4,1.4,1);
}

figure.effect-ming h2 {
margin: 20% 0 10px 0;
-webkit-transition: -webkit-transform 0.8s;
transition: transform 0.8s;
}

figure.effect-ming h2 span {
margin: 20% 0 10px 0;
-webkit-transition: -webkit-transform 0.8s;
transition: transform 0.8s;
text-shadow: 1px 0 black, 1px 1px black, 0 1px black, -1px 1px black, -1px 0 black, -1px -1px black, 0 -1px black, 1px -1px black;
padding: 2px;
opacity: 0.8;
font-size: 1em;
}

figure.effect-ming p.tax-ming,
figure.effect-ming p.tax-ming a,
figure.effect-ming p {
    text-transform: none;
font-size: 0.8em;
padding: 1em 2em;
opacity: 0;
-webkit-transition: opacity 0.8s, -webkit-transform 0.8s;
transition: opacity 0.8s, transform 0.8s;
-webkit-transform: scale(1.5);
transform: scale(1.5);
}


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

figure.effect-ming:hover h2 span{
-webkit-transform: scale(0.9);
transform: scale(0.9);
background: none;
text-shadow: none;
opacity: 1;
}

figure.effect-ming:hover p.tax-ming a,
figure.effect-ming:hover p.tax-ming,
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 p.tax-ming a,
figure.effect-ming:hover p.tax-ming {
z-index: 2000;
font-family: Arial;
color: white; 
text-transform: uppercase;
font-size: 0.986em;
}

figure.effect-ming:hover p.tax-ming a:link {
color: white; text-transform: uppercase; font-size: 0.686em; font-family: Arial;
}
figure.effect-ming:hover p.tax-ming a:visited {
color: white; font-size: 0.686em; font-family: Arial;
}
figure.effect-ming:hover p.tax-ming a:active {
color: white; font-size: 0.686em; font-family: Arial;
}
figure.effect-ming:hover p.tax-ming a:hover {
color: white; text-decoration: underline; font-size: 0.686em; font-family: Arial;
}

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

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