#mashexagonProGrid {
  display: flex;
  flex-wrap: wrap;
  margin: 0 auto;
  overflow: hidden;
  font-family: sans-serif;
  list-style-type: none;}
.mashexagonPro {
  position: relative;
  visibility:hidden;
  outline:1px solid transparent; /* fix for jagged edges in FF on hover transition */
  transition: all 0.5s;
  backface-visibility: hidden;
  will-change: transform;
  transition: all 0.5s;
  padding: 0 !important;
}
.mashexagonPro::after{
  content:'';
  display:block;
  padding-bottom: 86.602%;  /* =  100 / tan(60) * 1.5 */
}
.mashexagonProIn{
  position: absolute;
  width:96%;
  padding-bottom: 110.851%; /* =  width / sin(60) */
  margin: 2%;
  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);
    transition: all 0.5s;
}
.mashexagonProIn * {
  position: absolute;
  visibility: visible;
  outline:1px solid transparent; /* fix for jagged edges in FF on hover transition */
}
.mashexagonProLink {
    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);
}


/*** mashexagonPro Content **********************************************************************/
.mashexagonPro img {
  left: -100%;
  right: -100%;
  width: auto;
  height: 100%;
  margin: 0 auto;
}

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

.mashexagonProTitle {
  color: #ffffff;
  text-align: center;
  bottom: 50%;
  padding-top:50%;
  font-size: 1.4em;
  z-index: 1;
  margin: 0;
}
.mashexagonProContent {
  color: #ffffff;
  font-size: 0.9em;
  top: 50%;
  text-align: center;  
}

.mashexagonProImage {
  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%);
}

.mashexagonProImage:before, .mashexagonProImage:after {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  content: '';
  opacity: 0;
  transition: opacity 0.5s;
}
.mashexagonProImage:before {
  background: rgba(22, 103, 137, 0.3)
}

/*** mashexagonPro Hover Effect  **********************************************************************/
.mashexagonProLink:hover h1, .mashexagonProLink:focus h1,
.mashexagonProLink:hover p, .mashexagonProLink:focus p{
opacity:1;
transition: 0.8s;
}


.mashexagonProIn:hover .mashexagonProImage:before,
.mashexagonProIn:hover .mashexagonProImage:after,
.mashexagonProIn:hover .mashexagonProLink {
  opacity: 1;
}


/*** mashexagonPro Media Queries *****************************************************************/
@media (min-width:1201px) { /* <- 5-4  mashexagonProagons per row */
  #mashexagonProGrid{
    padding-bottom: 65px;
  }
  .mashexagonPro {
    width: 20%; /* = 100 / 5 */
  }
  .mashexagonPro:nth-child(9n+6){ /* first mashexagonProagon of even rows */
    margin-left:10%;  /* = width of .mashexagonPro / 2  to indent even rows */
  }
}

@media (max-width: 1200px) and (min-width:901px) { /* <- 4-3  mashexagonProagons per row */
  #mashexagonProGrid{
    padding-bottom: 5.5%;
    font-size: 13px;
  }
  .mashexagonPro {
    width: 25%; /* = 100 / 4 */
  }
  .mashexagonPro:nth-child(7n+5){ /* first mashexagonProagon of even rows */
    margin-left:12.5%;  /* = width of .mashexagonPro / 2  to indent even rows */
  }
}

@media (max-width: 900px) and (min-width:601px) { /* <- 3-2  mashexagonProagons per row */
  #mashexagonProGrid{
    padding-bottom: 7.4%;
    font-size: 14px;
  }
  .mashexagonPro {
    width: 33.333%; /* = 100 / 3 */
  }
  .mashexagonPro:nth-child(5n+4){ /* first mashexagonProagon of even rows */
    margin-left:16.666%;  /* = width of .mashexagonPro / 2  to indent even rows */
  }
}

@media (max-width: 600px) { /* <- 2-1  mashexagonProagons per row */
  #mashexagonProGrid{
    padding-bottom: 11.2%;
    font-size: 12px;
  }
  .mashexagonPro {
    width: 50%; /* = 100 / 3 */
  }
  .mashexagonPro:nth-child(3n+3){ /* first mashexagonProagon of even rows */
    margin-left:25%;  /* = width of .mashexagonPro / 2  to indent even rows */
  }
}

@media (max-width: 400px) {
    #mashexagonProGrid {
        font-size: 8px;
    } 
}
