/* TODO: remove */
#onetrust-consent-sdk {
  display: none !important; 
}

.komodo-dragon-container {
  padding: 74px 40px;
  display: flex;
  flex-direction: column;
  background-image: url('https://www.komodohealth.com/hubfs/What%20to%20Expect%20Background%201440-1.png') !important;
  background-color: #000;
  background-size: cover !important;
  background-position: center top !important;
  background-repeat: no-repeat !important;
}

.komodo-dragon-hdr {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  text-align: left;
}
.komodo-dragon-hdr h2 {
  color: #fff;
  font-size: 48px;
}

/* Video popup */
.dragon_video_popup {
  display: flex;
  align-items: center;
  justify-content: center;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  padding: 40px;
  background: rgba(0,0,0,.75);
  opacity: 0;
  z-index: -1;
  transition: 250ms opacity ease-in-out, 250ms z-index ease-in-out;
}

.dragon_video_popup.active {
  z-index: 1000;
  opacity: 1;
}

.dragon_video_popup__content {
  position: relative;
}

.dragon_video_popup__close {
  position: absolute;
  right: 10px;
  top: 10px;
  cursor: pointer;
  z-index: 2;
}

.dragon_video_popup__content .hs-video-widget {
  width: 787px;
  height: auto;
}

@media screen and (max-width:767px) {
  .komodo-dragon-hdr h2 {
    font-size: 36px;
  }
  .komodo-dragon-container {
    padding: 40px 20px 20px 20px;
  }
  .honeycomb {
    margin-bottom: 0 !important;
  }
  .dragon_video_popup__content .hs-video-widget {
    width: 90vw;
  }
  
  .honeycomb .item .hexagon .name p {
    font-size: 16px !important;
  }

  .honeycomb .item .hexagon .name img {
    width: 40px;
    height: 40px;
  }
}


/* honeycomb */
.honeycomb {
  display: grid;
  grid-template-columns: repeat(10, 100px);
  grid-column-gap: 0px;
  margin-top: 100px;
  margin-bottom: 100px;
  margin-left: 50px;
  width: 1000px;
  position: relative;
  margin-left: auto;
  margin-right: auto;
}

.honeycomb .item{
  grid-column: span 2;
  width: 200px;
  overflow: hidden;
  visibility: hidden;
  margin-top: -58px;
  position:relative;
}

.honeycomb .item:nth-child(9n+1){ grid-column-start: 1;}
.honeycomb .item:nth-child(9n+2){ grid-column-start: 3;}
.honeycomb .item:nth-child(9n+3){ grid-column-start: 5;}
.honeycomb .item:nth-child(9n+4){ grid-column-start: 7;}
.honeycomb .item:nth-child(9n+5){ grid-column-start: 9;}
.honeycomb .item:nth-child(9n+6){ grid-column-start: 2;}
.honeycomb .item:nth-child(9n+7){ grid-column-start: 4;}
.honeycomb .item:nth-child(9n+8){ grid-column-start: 6;}
.honeycomb .item:nth-child(9n){ grid-column-start: 8;}

.honeycomb .item .hexagon{
    width: 200px;
    height: 231px;
    background-size:cover;
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
}
.honeycomb .item *{
    visibility: visible
}
.honeycomb  .item .hexagon .picture {
  position:absolute;
  background-size:cover;
  top:0;left:0;bottom:0;right:0;
}
.honeycomb  .item .hexagon .name{
  position:absolute;
  display: flex;
  top:0;left:0;bottom:0;right:0;
  justify-content: center;
  align-items: center;
  color:White;
  text-align:center;
  z-index:100;
  
}

.honeycomb .item .hexagon .name p {
  font-size:22px;
  line-height: 1.3;
  font-weight:100;
  max-width:180px;
  opacity:0;
  margin-bottom:0;
}

.honeycomb .item .hexagon .name img {
  opacity:0;
  margin-bottom:0;
}


/**** hover wizardry ****/

.honeycomb  .item.link:hover .hexagon{
  background-color:white;
}

.honeycomb  .item.link:hover .hexagon .name a, .honeycomb  .item.link .hexagon .name a{
  text-decoration:none;
  color:white;
}
.honeycomb .item.link .hexagon .picture,
.honeycomb  .item.link .hexagon .name p {
   transition: all 0.3s ease-in-out 0s; 
}
.honeycomb  .item.link:hover .hexagon .picture{
 clip-path: polygon(50% 2%, 98% 26%, 98% 74%, 50% 98%, 2% 74%, 2% 26%);
  filter: brightness(0.8) blur(6px);
  transition-duration: 0.1s; 
}

.honeycomb .item.link:hover .hexagon .name p,
.honeycomb .item.link:hover .hexagon .name img {
  opacity: 1;
}

/**** Responsive wizardry ****/

@media(max-width: 1100px){
  .honeycomb {
    grid-template-columns: repeat(8, 100px);
    width: 830px
  }
.honeycomb .item:nth-child(7n+1){ grid-column-start: 1;}
.honeycomb .item:nth-child(7n+2){ grid-column-start: 3;}
.honeycomb .item:nth-child(7n+3){ grid-column-start: 5;}
.honeycomb .item:nth-child(7n+4){ grid-column-start: 7;}
.honeycomb .item:nth-child(7n+5){ grid-column-start: 2;}
.honeycomb .item:nth-child(7n+6){ grid-column-start: 4;}
.honeycomb .item:nth-child(7n){ grid-column-start: 6;}
}

@media(min-width: 851px){
  /*the original idea was to show the hidden items
  when the grid got too small, but there are not
  going to be enough in the DB to do this, so instead
  we are keeping the hidden ones hidden all the time, 
  and populating them with dummy DIVs*/
  .honeycomb .hidden {display:none;}
}
/*remove this if you want to restore the original rule*/
.honeycomb .hidden {display:none;}

@media(max-width: 850px){
  .honeycomb {
    grid-template-columns: repeat(6, 100px);
    width: 620px
  }
.honeycomb .item:nth-child(5n+1){ grid-column-start: 1;}
.honeycomb .item:nth-child(5n+2){ grid-column-start: 3;}
.honeycomb .item:nth-child(5n+3){ grid-column-start: 5;}
.honeycomb .item:nth-child(5n+4){ grid-column-start: 2;}
.honeycomb .item:nth-child(5n){ grid-column-start: 4;}
}

@media(max-width: 720px){
  .honeycomb {
  grid-template-columns: repeat(4, 100px);
    width: 410px;
  }
  .honeycomb .item:nth-child(3n+1){ grid-column-start: 1;}
  .honeycomb .item:nth-child(3n+2){ grid-column-start: 3;}
  .honeycomb .item:nth-child(3n){ grid-column-start: 2;}

  /*only show 4 visible tiles at small sizes to keep it from scrolling too long*/
  .honeycomb .item{
    display:none;
  }
  .honeycomb .item:nth-child(-n+5){ display:block;}
  
}
@media(max-width:470px) {
  .komodo-dragon-container {
    padding: 40px 20px 0px 20px;
  }
  
  .honeycomb {
/*     margin-top: 50px; */
    -webkit-transform-origin: top left;  
/*     transform: scale(0.85, 0.85); */
    grid-template-columns: repeat(3, 130px);
    width: 390px;
    margin: 50px auto 30px !important;
  }
  
  .honeycomb .item {
    grid-column-start: auto !important;
    width: 130px;
  }
  
  .honeycomb .item .hexagon {
    width: 130px;
    height: 150px;
  }
  
  .honeycomb .item:nth-child(3) {
    margin-left: 1px;
  }
  
  .honeycomb .item:nth-child(4),
  .honeycomb .item:nth-child(5) {
    margin-left: 65px;
    margin-top: -36px;
  }
}

@media(max-width:430px) {
  .komodo-dragon-container {
    padding: 40px 10px 0px 10px;
  }
  .honeycomb {
    grid-template-columns: repeat(3, 116px);
    width: 350px;
    margin: 50px auto 30px !important;
  }
  
  .honeycomb .item {
    grid-column-start: auto !important;
    width: 116px;
  }
  
  .honeycomb .item .hexagon {
    width: 116px;
    height: 138px;
  }
  
  .honeycomb .item:nth-child(3) {
    margin-left: 1px;
  }
  
  .honeycomb .item:nth-child(4),
  .honeycomb .item:nth-child(5) {
    margin-left: 58px;
    margin-top: -33px;
  }
}

{#
@media(max-width:400px){
  .honeycomb {
  -webkit-transform-origin: top left;  
  transform: scale(0.7, 0.7);
  }
}#}

@media(max-width:350px){
  .honeycomb {
  -webkit-transform-origin: top left;  
  transform: scale(0.6, 0.6);
  }
}

