#hexGrid {
    overflow: hidden;
}

#hexGrid:after {
    content: "";
    display: block;
    clear: both;
}

.hex {
    position: relative;
    list-style-type: none;
    float: left;
    overflow: hidden;
    visibility: hidden;
    outline: 1px solid transparent;
    -webkit-transform: rotate(-60deg) skewY(30deg) translatez(-1px);
    -ms-transform: rotate(-60deg) skewY(30deg) translatez(-1px);
    transform: rotate(-60deg) skewY(30deg) translatez(-1px);
}

.hex * {
    position: absolute;
    visibility: visible;
    outline: 1px solid transparent;
}

.hexIn {
    display: block;
    width: 100%;
    height: 100%;
    text-align: center;
    color: #fff;
    overflow: hidden;
    -webkit-transform: skewY(-30deg) rotate(60deg);
    -ms-transform: skewY(-30deg) rotate(60deg);
    transform: skewY(-30deg) rotate(60deg);
}

.hex img {
    left: -100%;
    right: -100%;
    width: auto;
    height: 100%;
    margin: 0 auto;
}
.hex p {
    position: absolute;
    width: 100%;
    top: 50%;
    left: 50%;
    padding: 0 14px;
    transform: translate(-50%, -50%);
    font-size: 16px;
    font-weight: bold;
    color: #FFFFFF;
    line-height: 26px;
}


/* @media (min-width:1201px) { */

    .hex {
        width: 25%;
        padding-bottom: 28%;
    }

    .hex:nth-child(7n+5),
    .hex:nth-child(7n+6),
    .hex:nth-child(7n+7)
    {
        margin-top: -6.5%;
        /* margin-top: -4.676%; */
        /* margin-bottom: -4.676%; */
        -webkit-transform: translateX(50%) rotate(-60deg) skewY(30deg);
        -ms-transform: translateX(50%) rotate(-60deg) skewY(30deg);
        transform: translateX(50%) rotate(-60deg) skewY(30deg);
    }

/* } */

/* @media (max-width: 1200px) and (min-width:901px) {

    .hex {
        width: 24.25%;
        padding-bottom: 28.001%;
    }

    .hex:nth-child(7n+5),
    .hex:nth-child(7n+6),
    .hex:nth-child(7n+7) {
        margin-top: -6.134%;
        margin-bottom: -6.134%;
        -webkit-transform: translateX(50%) rotate(-60deg) skewY(30deg);
        -ms-transform: translateX(50%) rotate(-60deg) skewY(30deg);
        transform: translateX(50%) rotate(-60deg) skewY(30deg);
    }

    .hex:nth-child(7n+5):last-child,
    .hex:nth-child(7n+6):last-child,
    .hex:nth-child(7n+7):last-child {
        margin-bottom: 0;
    }

    .hex:nth-child(7n+2),
    .hex:nth-child(7n+6) {
        margin-left: 1%;
        margin-right: 1%;
    }

    .hex:nth-child(7n+3) {
        margin-right: 1%;
    }

    .hex:nth-child(7n+8) {
        clear: left;
    }

    .hex:nth-child(7n+5) {
        clear: left;
        margin-left: 0.5%;
    }
} */

/* @media (max-width: 900px) and (min-width:601px) {

   
    .hex {
        width: 32.666%;
        padding-bottom: 37.720%;
    }

    .hex:nth-child(5n+4),
    .hex:nth-child(5n+5) {
        margin-top: -8.564%;
        margin-bottom: -8.564%;
        -webkit-transform: translateX(50%) rotate(-60deg) skewY(30deg);
        -ms-transform: translateX(50%) rotate(-60deg) skewY(30deg);
        transform: translateX(50%) rotate(-60deg) skewY(30deg);
    }

    .hex:nth-child(5n+4):last-child,
    .hex:nth-child(5n+5):last-child {
        margin-bottom: 0;
    }

    .hex:nth-child(5n+4) {
        margin-right: 1%;
        margin-left: 0.5%;
    }

    .hex:nth-child(5n+2) {
        margin-left: 1%;
        margin-right: 1%;
    }

    .hex:nth-child(5n+6) {
        clear: left;
    }
} */

/* @media (max-width: 600px) {

    .hex {
        width: 49.5%;
        padding-bottom: 57.158%;
    }

    .hex:nth-child(3n+3) {
        margin-top: -13.423%;
        margin-bottom: -13.423%;
        -webkit-transform: translateX(50%) rotate(-60deg) skewY(30deg);
        -ms-transform: translateX(50%) rotate(-60deg) skewY(30deg);
        transform: translateX(50%) rotate(-60deg) skewY(30deg);
    }

    .hex:nth-child(3n+3):last-child {
        margin-bottom: 0;
    }

    .hex:nth-child(3n+3) {
        margin-left: 0.5%;
    }

    .hex:nth-child(3n+2) {
        margin-left: 1%;
    }

    .hex:nth-child(3n+4) {
        clear: left;
    }
} */

/* @media (max-width: 400px) {
    #hexGrid {
        font-size: 13px;
    }
} */