.hxg-wrapper * {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
.hxg-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  overflow-x: hidden;
  width: 100%;
}

.hxg-content-wrap {
  display: flex;
  flex-direction: column;
  width: 100%;
  justify-content: center;
  align-items: center;
  text-align: center;
  color: #0d84a6;
  margin: clamp(4rem, 4vw, 6rem) auto;
}

.hxg-content-wrap h1 {
  font-size:70px;
  line-height: 80px;
 padding: 0.1em 0;
  text-transform: uppercase;
  background: linear-gradient(
    320deg,
    #bb1767,
    #5231a6,
    #1154bf,
    #0d85a6,
    #1ba373,
    #9ed40a,
    #1ba373,
    #0d85a6,
    #1154bf,
    #5231a6,
    #bb1767
  );
  background-size: 400% 400%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: hxg-colorCycle 10s ease infinite;
}


@keyframes hxg-colorCycle {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

#hxg-hexGrid {
  overflow: hidden;
  width: 90%;
  margin: 0 auto;
  padding: 0.866% 0;
  font-family: "Raleway", sans-serif;
  font-size: 15px;
}
#hxg-hexGrid:after {
  content: "";
  display: block;
  clear: both;
}

.hxg-hex {
  position: relative;
  list-style-type: none;
  float: left;
  overflow: hidden;
  visibility: hidden;
  outline: 1px solid transparent;
  transform: rotate(-60deg) skewY(30deg) translatez(-1px);
border-radius: 10px;
}
.hxg-hex * {
  position: absolute;
  visibility: visible;
  outline: 1px solid transparent;
}
.hxg-hexIn {
  display: block;
  width: 100%;
  height: 100%;
  text-align: center;
  color: #fff;
  overflow: hidden;
  transform: skewY(-30deg) rotate(60deg); border-radius: 10px;
	
}		
	
		
.hxg-hex img {
  left: -100%;
  right: -100%;
  width: 100%;
  height: 100%;
  margin: 0 auto;
  background-size: cover;
  transition: transform 0.6s ease-out;
}
.hxg-hexIn:hover img {
  transform: scale(1.2);
}
.hxg-hex h1,
.hxg-hex p {
  width: 102%;
  left: -1%;
  padding: 5%;
  box-sizing: border-box;
  background-color: rgba(0, 128, 128, 0.8);
  font-weight: 300;
  transition: transform 0.2s ease-out, opacity 0.3s ease-out;
}
.hxg-hex h1 {
  bottom: 50%;
  padding-top: 50%;
  font-size: 1.5em;
  z-index: 1;
  transform: translateY(-100%) translatez(-1px);
}
.hxg-hex h1:after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 45%;
  width: 10%;
  border-bottom: 1px solid #fff;
}
.hxg-hex p {
  top: 50%;
  padding-bottom: 50%;
  transform: translateY(100%) translatez(-1px);
}
.hxg-hexIn:hover h1,
.hxg-hexIn:focus h1,
.hxg-hexIn:hover p,
.hxg-hexIn:focus p {
  transform: translateY(0%) translatez(-1px);
}

/* Responsive layout media queries */
@media (min-width: 1201px) {
  .hxg-hex { width: 19.2%; padding-bottom: 22.17%; }
  .hxg-hex:nth-child(9n+6), .hxg-hex:nth-child(9n+7), .hxg-hex:nth-child(9n+8), .hxg-hex:nth-child(9n+9) {
    margin-top: -4.676%;
    margin-bottom: -4.676%;
    transform: translateX(50%) rotate(-60deg) skewY(30deg); border-radius: 10px;
  }
  .hxg-hex:nth-child(9n+6):last-child,
  .hxg-hex:nth-child(9n+7):last-child,
  .hxg-hex:nth-child(9n+8):last-child,
  .hxg-hex:nth-child(9n+9):last-child { margin-bottom: 0; }
  .hxg-hex:nth-child(9n+6) { margin-left: 0.5%; clear: left; }
  .hxg-hex:nth-child(9n+10) { clear: left; }
  .hxg-hex:nth-child(9n+2), .hxg-hex:nth-child(9n+7) { margin-left: 1%; margin-right: 1%; }
  .hxg-hex:nth-child(9n+3), .hxg-hex:nth-child(9n+4), .hxg-hex:nth-child(9n+8) { margin-right: 1%; }
}
@media (max-width: 1200px) and (min-width: 901px) {
  .hxg-hex { width: 24.25%; padding-bottom: 28.001%; }
  .hxg-hex:nth-child(7n+5), .hxg-hex:nth-child(7n+6), .hxg-hex:nth-child(7n+7) {
    margin-top: -6.134%;
    margin-bottom: -6.134%;
    transform: translateX(50%) rotate(-60deg) skewY(30deg);
  }
  .hxg-hex:nth-child(7n+5):last-child,
  .hxg-hex:nth-child(7n+6):last-child,
  .hxg-hex:nth-child(7n+7):last-child { margin-bottom: 0; }
  .hxg-hex:nth-child(7n+2), .hxg-hex:nth-child(7n+6) { margin-left: 1%; margin-right: 1%; }
  .hxg-hex:nth-child(7n+3) { margin-right: 1%; }
  .hxg-hex:nth-child(7n+8) { clear: left; }
  .hxg-hex:nth-child(7n+5) { clear: left; margin-left: 0.5%; }
}
@media (max-width: 900px) and (min-width: 601px) {
  .hxg-hex { width: 32.666%; padding-bottom: 37.72%; }
  .hxg-hex:nth-child(5n+4), .hxg-hex:nth-child(5n+5) {
    margin-top: -8.564%;
    margin-bottom: -8.564%;
    transform: translateX(50%) rotate(-60deg) skewY(30deg);
  }
  .hxg-hex:nth-child(5n+4):last-child,
  .hxg-hex:nth-child(5n+5):last-child { margin-bottom: 0; }
  .hxg-hex:nth-child(5n+4) { margin-right: 1%; margin-left: 0.5%; }
  .hxg-hex:nth-child(5n+2) { margin-left: 1%; margin-right: 1%; }
  .hxg-hex:nth-child(5n+6) { clear: left; }
}
@media (max-width: 600px) {
  .hxg-hex { width: 49.5%; padding-bottom: 57.158%; }
  .hxg-hex:nth-child(3n+3) {
    margin-top: -13.423%;
    margin-bottom: -13.423%;
    transform: translateX(50%) rotate(-60deg) skewY(30deg);
  }
  .hxg-hex:nth-child(3n+3):last-child { margin-bottom: 0; }
  .hxg-hex:nth-child(3n+3) { margin-left: 0.5%; }
  .hxg-hex:nth-child(3n+2) { margin-left: 1%; }
  .hxg-hex:nth-child(3n+4) { clear: left; }
}
@media (max-width: 400px) {
  #hxg-hexGrid { font-size: 13px; }
}