/* // the basis for this code is from http://tympanus.net/codrops/2014/06/19/ideas-for-subtle-hover-effects/  */
 .grid {
    overflow: hidden;
    margin: 0;
    padding: 0 0 0 0;
    width: 100%;
    list-style: none;
    text-align: center;
}
/* Common style */
 .grid figure {
    position: relative;
    z-index: 1;
    display: inline-block;
    overflow: hidden;
    margin: -0.135em;
    width: 33.333%;
    height: 400px;
    background: #696969;
    text-align: center;
    cursor: pointer;
}
.grid figure img {
    position: relative;
    display: block;
    min-height: 115%;
    min-width: 115%;
    opacity: 0.8;
    overflow: hidden;
}
.grid figure figcaption {
    padding: 2em;
    color: #fff !important;
    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 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 a {
    z-index: 1000;
    text-indent: 200%;
    white-space: nowrap;
    font-size: 0;
    opacity: 0;
}
.grid figure h2 {
    word-spacing: -0.15em;
    margin-top: 4em;
    font-weight: 300;
    color: white;
}
.grid figure h2 span {
    font-weight: 800;
    font-size: 1.8em;
    color: white;
}
.grid figure h3 {
    position: absolute;
    color: white;
    bottom: 20px;
    right: 10px;
}
.grid figure h2, .grid figure p {
    margin-top: 4em;
    color: white;
}
.grid figure p {
    letter-spacing: 1px;
    margin-top: 1em;
    font-size: 75%;
    color: white;
}
@media screen and(max-height: 400px) {
    img {
        height: auto;
        width: 100%;
        overflow: hidden;
    }
}

/* media break points */

@media screen and (max-width: 71.5em) {
    .grid figure {
        width: 50%;
    }
    
    .grid figure figcaption {
        font-size: 90%;
    }
}
@media screen and (max-width: 41.5em) {
    .grid figure {
        width: 100%;
    }
}