.hex-grid {
    display: flex;
    flex-wrap: wrap;
    width: 100%;
    margin: 0 auto;
    overflow: hidden;
    font-family: 'Raleway', sans-serif;
    font-size: 1vw;
    list-style-type: none;
    padding: 0;
}

.hex-grid-container .container-fluid {
    background: #8C080C;
}

.hex {
    position: relative;
    visibility: hidden;
    outline: 1px solid transparent;
    /* fix for jagged edges in FF on hover transition */
    background: white;
}

.hex::after {
    content: '';
    display: block;
    padding-bottom: 86.602%;
    /* =  100 / tan(60) * 1.5 */
}

.hex-in {
    position: absolute;
    width: 96%;
    padding-bottom: 110.851%;
    /* =  width / sin(60) */
    margin: 0 2%;
    overflow: hidden;
    visibility: hidden;
    outline: 1px solid transparent;
    /* fix for jagged edges in FF on hover transition */
    -webkit-transform: rotate3d(0, 0, 1, -60deg) skewY(30deg);
    -ms-transform: rotate3d(0, 0, 1, -60deg) skewY(30deg);
    transform: rotate3d(0, 0, 1, -60deg) skewY(30deg);
}

.hex-in * {
    position: absolute;
    visibility: visible;
    outline: 1px solid transparent;
    /* fix for jagged edges in FF on hover transition */
}

.hex-link {
    background: white;
    display: block;
    width: 100%;
    height: 100%;
    text-align: center;
    color: #fff;
    overflow: hidden;
    -webkit-transform: skewY(-30deg) rotate3d(0, 0, 1, 60deg);
    -ms-transform: skewY(-30deg) rotate3d(0, 0, 1, 60deg);
    transform: skewY(-30deg) rotate3d(0, 0, 1, 60deg);
}

.hex:nth-child(5n+4) .hex-link {
    background: black;
}

/*** HEX CONTENT **********************************************************************/
.hex img {
    left: -100%;
    right: -100%;
    width: auto;
    height: 100%;
    margin: 0 auto;
    -webkit-transform: rotate3d(0, 0, 0, 0deg);
    -ms-transform: rotate3d(0, 0, 0, 0deg);
    transform: rotate3d(0, 0, 0, 0deg);
}

.hex h1,
.hex p {
    width: 100%;
    padding: 5px;
    box-sizing: border-box;
    background-color: rgba(29, 124, 91, 0.8);
    font-weight: 300;
    -webkit-transition: -webkit-transform .2s ease-out, opacity .3s ease-out;
    transition: transform .2s ease-out, opacity .3s ease-out;
    font-size: 0.75vw;
}

.hex h1 {
    bottom: 50%;
    padding-top: 50%;
    font-weight: bold;
    z-index: 1;
    -webkit-transform: translate3d(0, -100%, 0);
    -ms-transform: translate3d(0, -100%, 0);
    transform: translate3d(0, -100%, 0);
}

.hex h1::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 45%;
    width: 10%;
    text-align: center;
    border-bottom: 1px solid #fff;
}

.hex p {
    top: 50%;
    padding-bottom: 50%;
    -webkit-transform: translate3d(0, 100%, 0);
    -ms-transform: translate3d(0, 100%, 0);
    transform: translate3d(0, 100%, 0);
}

.hex p u, .hex p span {
    position: relative;
}


/*** HOVER EFFECT  **********************************************************************/
.hex-link:hover h1, .hex-link:focus h1,
.hex-link:hover p, .hex-link:focus p {
    -webkit-transform: translate3d(0, 0, 0);
    -ms-transform: translate3d(0, 0, 0);
    transform: translate3d(0, 0, 0);
    margin-bottom: 0;
}

.hex-link:hover .title {
    display: none;
}

.hex-link .title {
    width: 100%;
    box-sizing: border-box;
    font-weight: bold;
    padding: 5%;
    font-size: 1vw;

    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;

    -webkit-transform: translate3d(0, 0, 0);
    -ms-transform: translate3d(0, 0, 0);
    transform: translate3d(0, 0, 0);
}

.hex {
    width: 33.3%;
    /* = 100 / 3 */
}

.hex:nth-child(5n+1) {
    /* first hexagon of even rows */
    margin-left: 16.66%;
    /* = width of .hex / 2  to indent even rows */
}

/* hiding stuff */
.parent-hex {
    overflow: hidden;
}

.hex-clipper {
    margin: -40% -25% -28%;
}

@media (max-width: 768px) {
    .hex h1,
    .hex p {
        font-size: 3.5vw;
    }

    .hex-link .title {
        font-size: 4vw;
    }

    .hex-clipper {
        margin: -40% -25% -4%;
    }
}