* {
    margin: 0;
    padding: 0;
}
#hexGrid {
    overflow: hidden;
    width: 90%;
    margin: 0 auto;
    padding:0.866% 0;
    font-family: 'Raleway', sans-serif;
    font-size: 15px;
}
#hexGrid:after {
    content: "";
    display: block;
    clear: both;
}
.hex {
    position: relative;
    list-style-type: none;
    float: left;
    overflow: hidden;
    visibility: hidden;
    outline:1px solid transparent; /* fix for jagged edges in FF on hover transition */
    -ms-transform: rotate(-60deg) skewY(30deg);
    -webkit-transform: rotate(-60deg) skewY(30deg) translatez(-1px);
    transform: rotate(-60deg) skewY(30deg) translatez(-1px);
}
.hex * {
    position: absolute;
    visibility: visible;
    outline:1px solid transparent; /* fix for jagged edges in FF on hover transition */
}
.hexIn {
    display:block;
    width: 100%;
    height: 100%;
    text-align: center;
    color: #fff;
    overflow: hidden;
    -ms-transform: skewY(-30deg) rotate(60deg);
    -webkit-transform: skewY(-30deg) rotate(60deg);
    transform: skewY(-30deg) rotate(60deg);
}

/*** HEX CONTENT **********************************************************************/
.hex img {
    left: -100%;
    right: -100%;
    width: auto;
    height: 100%;
    margin: 0 auto;
}
.index-partner-picture {
    width: 100%;
    position: absolute;
    height: inherit;
    overflow: hidden;
}
.index-partner-picture img {
    position: absolute;
    height: auto;
    overflow: hidden;
    top: 29%;
    left: 5%;
    right: 5%;
    max-width: 100px;
    transition: all 0.6s;
}
.index-partner-picture img:hover{
    transform: scale(1.2);
}
/*** SPACING AND SIZING *****************************************************************/
@media (min-width:1201px) {
    .hex {
        width: 12.2%;
        padding-bottom: 13.170%;
    }
    .hex:nth-child(1),
    .hex:nth-child(2),
    .hex:nth-child(3),
    .hex:nth-child(4),
    .hex:nth-child(5),
    .hex:nth-child(6),
    .hex:nth-child(7){
        margin-top: 0;
        margin-bottom: -2.676%;
        -ms-transform: translateX(50%) rotate(-60deg) skewY(30deg);
        -webkit-transform: translateX(50%) rotate(-60deg) skewY(30deg);
        transform: translateX(50%) rotate(-60deg) skewY(30deg);
    }
    .hex:nth-child(1):last-child,
    .hex:nth-child(2):last-child,
    .hex:nth-child(3):last-child,
    .hex:nth-child(4):last-child,
    .hex:nth-child(5):last-child,
    .hex:nth-child(6):last-child,
    .hex:nth-child(7):last-child {
        margin-bottom: 0;
    }
    .hex:nth-child(16),
    .hex:nth-child(17),
    .hex:nth-child(18),
    .hex:nth-child(19),
    .hex:nth-child(20),
    .hex:nth-child(21),
    .hex:nth-child(22){
        margin-top: -2.676%;
        margin-bottom: -2.676%;
        -ms-transform: translateX(50%) rotate(-60deg) skewY(30deg);
        -webkit-transform: translateX(50%) rotate(-60deg) skewY(30deg);
        transform: translateX(50%) rotate(-60deg) skewY(30deg);
    }
    .hex:nth-child(16):last-child,
    .hex:nth-child(17):last-child,
    .hex:nth-child(18):last-child,
    .hex:nth-child(19):last-child,
    .hex:nth-child(20):last-child,
    .hex:nth-child(21):last-child,
    .hex:nth-child(22):last-child {
        margin-bottom: 0;
    }
    /*.index-partner-picture img {*/
    /*left: 10px;*/
    /*}*/
    .hex:nth-child(8) {
        clear: left;
    }
}
@media (max-width: 1200px) and (min-width:901px) {/* <- 4-3  hexagons per row */
    .hex {
        width: 16.25%; /* = (100-3) / 4 */
        padding-bottom: 18.001%; /* =  width / sin(60deg) */
    }
    .hex:nth-child(1),
    .hex:nth-child(2),
    .hex:nth-child(3),
    .hex:nth-child(4),
    .hex:nth-child(5){
        margin-top: 0;
        margin-bottom: -2.676%;
        -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(6),
    .hex:nth-child(7),
    .hex:nth-child(8),
    .hex:nth-child(9),
    .hex:nth-child(10),
    .hex:nth-child(11) {
        margin-top: -1.134%;
        margin-bottom: -4.134%;
        -webkit-transform: translateX(0) rotate(-60deg) skewY(30deg);
        -ms-transform: translateX(0) rotate(-60deg) skewY(30deg);
        transform: translateX(0) rotate(-60deg) skewY(30deg);
    }
    .hex:nth-child(12),
    .hex:nth-child(13),
    .hex:nth-child(14),
    .hex:nth-child(15),
    .hex:nth-child(16){
        margin-top: 0;
        margin-bottom: -3.676%;
        -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(6), .hex:nth-child(17) {
        clear: left;
    }
}
@media (max-width: 900px) and (min-width:601px) { /* <- 3-2  hexagons per row */
    .hex {
        width: 23.666%; /* = (100-2) / 3 */
        padding-bottom: 26.720%; /* =  width / sin(60) */
    }
    .hex:nth-child(5),
    .hex:nth-child(6),
    .hex:nth-child(7),
    .hex:nth-child(12),
    .hex:nth-child(13),
    .hex:nth-child(14){
        margin-top: -6.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(16),
    .hex:nth-child(17),
    .hex:nth-child(18){
        margin-top: 2.463%;
        margin-bottom: -8.564%;
        -webkit-transform: translateX(0) rotate(-60deg) skewY(30deg);
        -ms-transform: translateX(0) rotate(-60deg) skewY(30deg);
        transform: translateX(0) rotate(-60deg) skewY(30deg);
    }
    .hex:nth-child(19),
    .hex:nth-child(20),
    .hex:nth-child(21){
        margin-top: 2.463%;
        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(22){
        margin-top: 2.463%;
        -webkit-transform: translateX(0) rotate(-60deg) skewY(30deg);
        -ms-transform: translateX(0) rotate(-60deg) skewY(30deg);
        transform: translateX(0) rotate(-60deg) skewY(30deg);
    }
    .hex:nth-child(5):last-child,
    .hex:nth-child(6):last-child,
    .hex:nth-child(7):last-child,
    .hex:nth-child(12):last-child,
    .hex:nth-child(13):last-child,
    .hex:nth-child(14):last-child{
        margin-bottom: 0;
    }
    .hex:nth-child(8),
    .hex:nth-child(9),
    .hex:nth-child(10),
    .hex:nth-child(11),
    .hex:nth-child(15){
        margin-top: 2.564%;
        margin-bottom: 0.564%;
        -webkit-transform: translateX(0) rotate(-60deg) skewY(30deg);
        -ms-transform: translateX(0) rotate(-60deg) skewY(30deg);
        transform: translateX(0) rotate(-60deg) skewY(30deg);
    }
    .hex:nth-child(8):last-child,
    .hex:nth-child(9):last-child,
    .hex:nth-child(10):last-child,
    .hex:nth-child(11):last-child,
    .hex:nth-child(15):last-child{
        margin-bottom: 0;
    }
    .hex:nth-child(5), .hex:nth-child(8), .hex:nth-child(12), .hex:nth-child(15) {
        clear: left;
    }
}
@media (max-width: 600px) { /* <- 2-1  hexagons per row */
    .hex {
        width: 33.33333%;
        padding-bottom: 34.158%;
    }
    .hex:nth-child(3n){
        margin-top: 0;
        margin-bottom: -7.676%;
        -webkit-transform: translateX(0) rotate(-60deg) skewY(30deg);
        -ms-transform: translateX(0) rotate(-60deg) skewY(30deg);
        transform: translateX(0) rotate(-60deg) skewY(30deg);
    }
    .hex:nth-child(3n+1){
        clear: left;
    }
    .index-partner-picture img {
        left: 10%;
        right: 10%;
    }
}
@media (max-width: 468px) { /* <- 2-1  hexagons per row */
    .hex {
        width: 50%;
        padding-bottom: 50.158%;
    }
    .hex:nth-child(2n){
        margin-top: 0;
        margin-bottom: -7.676%;
        -webkit-transform: translateX(0) rotate(-60deg) skewY(30deg);
        -ms-transform: translateX(0) rotate(-60deg) skewY(30deg);
        transform: translateX(0) rotate(-60deg) skewY(30deg);
    }
    .hex:nth-child(2n+1){
        clear: left;
    }
    .hex:nth-child(3n+1) {
        clear: none;
    }
    .hex:nth-child(3n){
        margin-top: 0;
        margin-bottom: 0;
        -webkit-transform: translateX(0) rotate(-60deg) skewY(30deg);
        -ms-transform: translateX(0) rotate(-60deg) skewY(30deg);
        transform: translateX(0) rotate(-60deg) skewY(30deg);
    }
    .index-partner-picture img {
        left: 10%;
        right: 10%;
    }
}
@media (max-width: 400px) {
    #hexGrid {
        font-size: 13px;
    }
}
