/* .page-header { border: 0 !important; }    */
 
#hexGrid { display: flex; flex-wrap: wrap;  width: 100%; margin: 0 auto; overflow: hidden; list-style-type: none; }
.hex { position: relative; visibility:hidden; outline:1px solid transparent; transition: all 0.5s; backface-visibility: hidden; will-change: transform; transition: all 0.5s; margin:0px; }
.hex::after{  content:''; display:block; padding-bottom: 86.602%; }

.clearpixel { width:100%;height:100%; }

.hexIn{  position: absolute; overflow: hidden; visibility: hidden; outline:1px solid transparent; -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); transition: all 0.5s;
  width:96%;
  padding-bottom: 110.851%; 
  margin: 2%;
}
.hexIn * { position: absolute; visibility: visible; outline:1px solid transparent; }
.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);
}

.entry-content li { margin-left: unset; margin-bottom: unset; }
.page-header h1 { color: #fff; font-size:1.3em;}
.hex img {
  left: -100%;
  right: -100%;
  width: auto;
  height: 100%;
  margin: 0 auto;
}

.hex h1, .hex p {
  width: 100%;
  padding: 5%;
  box-sizing:border-box;
  font-weight: 300;
  opacity: 0;
}

#demo1 {
  color: #fff;
  background: #906f4e;
  text-transform: capitalize;
  text-align: center;
  bottom: 50%;
  padding-top:50%;
  font-size: 1.5em;
  z-index: 1;
}
.hex h1:before, .hex h1:after {
  display: inline-block;
  margin: 0 0.5em;
  width: 0.25em;
  height: 0.03em;
  background: #ffffff;
  content: '';
  vertical-align: middle;
  transition: all 0.3s;
  text-align:center;
}
#demo2 {
top: 50%;
text-align: center;
text-transform: uppercase;
background: #fff;
color: #333;
}
#hexGrid .img {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background-position: center center;
  background-size: cover;
  overflow: hidden;
-webkit-clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
}
#hexGrid .img:before, #hexGrid .img:after {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  content: '';
  opacity: 0;
  transition: opacity 0.5s;
}
#hexGrid .img:before {
  background: rgba(22, 103, 137, 0.3)
}
#hexGrid .img:after {
  background: linear-gradient(to top, transparent, rgba(0, 0, 0, 0.5), transparent);
}

.hexLink:hover h1, .hexLink:focus h1,
.hexLink:hover p, .hexLink:focus p{
opacity:1;
transition: 0.8s;
}
.hexIn:hover .img:before,
.hexIn:hover .img:after,
.hexIn:hover .hexLink {
  opacity: 1;
}

@media (min-width:1201px) { /* <- 5-4  hexagons per row */
  #hexGrid{ 
	padding-bottom: 4.4%  }
  .hex {  width: 12.5%; /* = 100 / 8 */  }
  .hex:nth-child(9n+9){ /* first hexagon of even rows */
    margin-left: 6.3%;  /* = width of .hex / 2  to indent even rows */
  }
}
@media (max-width: 1200px) and (min-width:901px) { /* <- 4-3  hexagons per row */
  #hexGrid{
    padding-bottom: 5.5%;
    font-size: 13px;
  }
  .hex {
    width: 25%; /* = 100 / 4 */
  }
  .hex:nth-child(7n+5){ /* first hexagon of even rows */
    margin-left:12.5%;  /* = width of .hex / 2  to indent even rows */
  }
}
@media (max-width: 900px) { /* <- 3-2  hexagons per row */
  #hexGrid{
    padding-bottom: 7.4%;
    font-size: 14px;
  }
  .hex {
    width: 33.333%; /* = 100 / 3 */
  }
  .hex:nth-child(5n+4){ /* first hexagon of even rows */
    margin-left:16.666%;  /* = width of .hex / 2  to indent even rows */
  }
}
