  * {
    margin: 0;
    padding: 0;
}
body {
    background: rgb(123, 158, 158);
}
.hexGrid {
  display: flex;
  flex-wrap: wrap;
  width: 100%;
  margin: 0 auto;
  overflow: hidden;
  font-family: 'Raleway', sans-serif;
  font-size: 16px;
  list-style-type: none;
  padding-left: 0px !important;
}
.hexLink br {
    /* display: none; */
    clear: both;
}


.hex {
  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:99%;
  padding-bottom: 85.851%; /* =  width / sin(60) */
  margin:0 2%;
  overflow: hidden;
  visibility: hidden;
  outline:1px solid transparent; /* fix for jagged edges in FF on hover transition */
}
.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;
}

/*** HEX CONTENT /
.hex img {
  left: 0%;
  right: 0%;
  width: 100%;
  height: 100%!important;
  margin: 0 auto;
  max-width: 100%!important;
  filter: brightness(75%);
}

.hex h1, .hex p {
  width: 100%;
  padding: 5%;
  text-transform: none !important;
  box-sizing:border-box;
  background-color: rgba(117, 33, 35, 0.8);
  font-weight: 600;
  -webkit-transition:  -webkit-transform .3s ease-out, opacity .4s ease-out;
          transition:          transform .3s ease-out, opacity .4s ease-out;
}
.hex h1 {
  bottom: 10%;
  padding-top:50%;
  font-size: 1.5em!important;
  border-bottom: none !important;
  color: #fff!important;
  font-weight: bold !important;
  z-index: 1;

	-webkit-transform:translate3d(0, 0%, 0);
      -ms-transform:translate3d(0, 0%, 0);
          transform:translate3d(0, 0%, 0);
    text-shadow: 1px 1px 10px #000000, 0 0 10px #000000, 0 0 10px #000000;
}
.hex h1::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 45%;
  width: 10%;
  text-align: center;
  border-bottom: 1px solid #fff;
}
.hex p {
  top: 20%;
  padding-bottom:80%;
  color: #fff!important;
  -webkit-transform:translate3d(0, 100%, 0);
    -ms-transform:translate3d(0, 100%, 0);
        transform:translate3d(0, 100%, 0);
	z-index:2;
}

.hex:nth-child(n) p {
    background-color: rgba(117, 33, 35, 0.8)!important;
}
.hex:nth-child(n) h1{
	background-color: rgba(244, 164, 96, 0)!important;
}





/*** HOVER EFFECT  /
.hexLink:hover h1, .hexLink:focus h1,
.hexLink:hover p, .hexLink:focus p{
  -webkit-transform:translate3d(0,-15%,0);
      -ms-transform:translate3d(0,-15%,0);
          transform:translate3d(0,-15%,0);
}


.hexLink:hover p, .hexLink:focus p{
	background-color: rgba(117, 33, 35, 1) !important;
}


/*** HEXAGON SIZING AND EVEN ROW INDENTATION /
@media (min-width:1201px) { /* <- 5-4  hexagons per row */
  .hexGrid{
    padding-bottom: 4.4%;
  }
  
  .hex {
    width: 25%; /* = 100 / 5  20%*/
  }
  .hex:nth-child(8n+5){ /* first hexagon of even rows */
    margin-left:0px;  /* = width of .hex / 2  to indent even rows */
  }
	.hex:nth-child(8n+25) {
		padding-bottom: 95px;
	}
	
	
}

@media (max-width: 1200px) and (min-width:901px) { /* <- 4-3  hexagons per row */
  .hexGrid{
    padding-bottom: 5.5%;	
	font-size: 14px;
  }
  .hex h1, .hex p{
	  padding-left: 2%!important;
	  padding-right: 2%!important;
  }
 
  .hex {
    width: 25%; /* = 100 / 4 */
  }
  .hex:nth-child(8n+5){ /* first hexagon of even rows */
    margin-left:0px;  /* = width of .hex / 2  to indent even rows */
  }
  	.hex:nth-child(8n+25) {
		padding-bottom: 95px;
	}
	
	.hex h1{
		font-size: 1.4em!important;
		bottom: 0%!important;
		padding-top: 55%!important;
	}
	.hex p{
		font-size:0.85!important;
	}
}

@media (max-width: 900px) and (min-width:601px) { /* <- 3-2  hexagons per row */
  .hexGrid{
    padding-bottom: 7.4%
  }
  .hex {
    width: 33.333%; /* = 100 / 3 */
  }
  .hex:nth-child(2n+3){ /* first hexagon of even rows */
    margin-left:0px%;  /* = width of .hex / 2  to indent even rows */
	
  }
  .hex:nth-child(25){
	  padding-bottom: 95px;
  }
  	.hex h1{
		font-size: 1.25em!important;
		bottom: 0%!important;
		padding-top: 55%!important;
	}
  
}

@media (max-width: 600px) { /* <- 2-1  hexagons per row */
  .hexGrid{
    padding-bottom: 11.2%
  }
  .hex {
    width: 50%; /* = 100 / 3 */
  }
  .hex:nth-child(2n+2){ /* first hexagon of even rows */
    margin-left:0px;  /* = width of .hex / 2  to indent even rows */
	
  }
  .hex:nth-child(25), .hex:nth-child(26){
	  padding-bottom: 95px;
  }
  .hex h1{
		font-size: 1.1em !important;
	bottom: 0% !important;
	padding-top: 55%!important;
	}

}

@media (max-width: 400px) {
    .hexGrid {
        font-size: 13px;
    }
}
