
#hexGrid {
  display: grid;
  grid-gap:10px;
  grid-template-columns: repeat(6,1fr);
  width: 50%;
  margin: 0 auto;
  font-size: 15px;
  list-style-type: none;
  overflow:hidden;
  padding-bottom: 6%;
  padding-left:0;
}

.hex {
  grid-column-end: span 2;
  position: relative;
  visibility:hidden;
  outline:1px solid transparent; /* fix for jagged edges in FF on hover transition */
}
.hex::after{
  content:'';
  display:block;
  padding-bottom: 86.602%;  /* =  100 / tan(60) * 1.5 */
}
.hexIn{
  position: absolute;
  width:100%;
  padding-bottom: 115.470%; /* =  width / sin(60) */
  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);
}
.hexIn * {
  position: absolute;
  visibility: visible;
  outline:1px solid transparent; /* fix for jagged edges in FF on hover transition */
}
.hexLink {
  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);
  display: flex;
  align-items: center;
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
}

.hexLink:not(.blank)::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,.2);
  transition: .3s;
}
.hexLink:not(.blank):hover::before {
  background: rgba(0,0,0,.1);
}

.hexLink.bg::before {
  background: none;
}

.hexLink.bg {
  color: #06778d;
}

.hexLink.transparent, .hexLink.transparent::before {
  background: none;
}


/*** HEX CONTENT **********************************************************************/

.hex h2 {
  width: 100%;
  text-align: center;
  font-size: 18px;
  line-height: 22px;
  text-shadow: 1px 1px 3px #000;
  font-family: 'Aclonica', sans-serif;
  color:#fff;
}

/*** HEXAGON SIZING AND EVEN ROW INDENTATION *****************************************************************/

.hex:nth-child(1){ /* first hexagon of even rows */
  grid-column-start: 2;
}
.hex:nth-child(3){ /* first hexagon of even rows */
  grid-column-start: 1;
}
.hex:nth-child(6){ /* first hexagon of even rows */
  grid-column-start: 2;
}

@media only screen and (max-width: 1200px) {
	#hexGrid {
	  width: 70%;
    padding-bottom: 8%;
	}
}

@media only screen and (max-width: 900px) {
	#hexGrid {
	  width: 80%;
    padding-bottom: 10%;
	}
}

@media only screen and (max-width: 768px) {
	#hexGrid {
	  width: 100%;
    padding-bottom: 12%;
	}
}


