

.sub-head.tabs{
    padding:0;
    }
.sub-head .hs-menu-wrapper {
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sub-head .hs-menu-wrapper li a {
    text-decoration: none;
   
    height: 100%;
    padding: 24px;
    border-right:1px solid #000000;
    border-left:1px solid #000000;
    color: #fff;
}
.sub-head .hs-menu-wrapper li:nth-child(n+2) a {
    border-left:1px solid #404040;
}

.sub-head .hs-menu-wrapper:after {
    content: "";
    height: 75px;
    display: inline-block;
    width: 1px;
    border-left: 1px solid #404040;
}

.sub-head .hs-menu-wrapper a:hover {
    background: #222;
    border-left: 1px solid #222!important;
}

.sub-head .hs-menu-wrapper li.active a {
     background: #000000;
     color:#ccff00;
     border-left:1px solid #000000;
}

.youtube-wrapper{
    border:1px solid #dedede;
    background-color: #fff;
}

a.watch-on-youtube {
    text-decoration: none;
    font-size: 11.67px;
    /* line-height: 1; */
    color: #231f20;
    display: inline-block;
    padding: 18px;
   
}

@media(min-width:768px){
    a.watch-on-youtube { /*margin-right:28px;*/}
}

html.flexbox a.watch-on-youtube{
    display: -webkit-inline-box;
        display: -webkit-inline-flex;
        display: -ms-inline-flexbox;
        display: inline-flex;
    -webkit-box-align: center;
    -webkit-align-items: center;
        -ms-flex-align: center;
            align-items: center;
    -webkit-box-pack: justify;
    -webkit-justify-content: space-between;
        -ms-flex-pack: justify;
            justify-content: center;
    -webkit-flex-flow:row;
        -ms-flex-flow:row;
            flex-flow:row;
}
html.flexbox a.watch-on-youtube .fa-youtube-play{padding-right:7px;}

@supports (display: inline-flex) {
    a.watch-on-youtube{
        display: -webkit-inline-box;
        display: -webkit-inline-flex;
        display: -ms-inline-flexbox;
        display: inline-flex;
    -webkit-box-align: center;
    -webkit-align-items: center;
        -ms-flex-align: center;
            align-items: center;
    -webkit-box-pack: justify;
    -webkit-justify-content: space-between;
        -ms-flex-pack: justify;
            justify-content: space-between;
    -webkit-flex-flow:row;
        -ms-flex-flow:row;
            flex-flow:row;
    }
    a.watch-on-youtube .fa-youtube-play{padding-right:7px;}
}

a.watch-on-youtube .fa-youtube-play {
    color: #f16261;
}



body.video-gallery-template .tabs {
    background-color: #ebebeb;
    display: block;
    text-align: center;
    min-height: 63px;
}

body.video-gallery-template .cos_one_column {
    padding-top: 0;
}

body.video-gallery-template .tabs ul {
    display: block;
    text-align: center;
    padding-left: 0;
    width: fit-content;
    margin: 0 auto;
}

body.video-gallery-template .tabs ul li {
    display: inline-block;
}

body.video-gallery-template .tabs ul li a {
    height: 100%;
    padding: 17px 25px;
    /* background-color: #b92027; */
    font-size: 16px;
    text-transform: uppercase;
    display: inline-block;
    margin-bottom: 0;
}

body.video-gallery-template .tabs ul li a:hover,body.video-gallery-template .body-container .tabs ul li.active a{
    background-color: #b92027;
    color: #fff;
   
}


.video-gallery{
  display: block;
  text-align: center;
}
.video-gallery > div {
  width: 100%;
  display: inline-block;
}




@media (min-width: 450px) {
  .video-gallery .video-module {
    width: 48%;
    width: calc(50% - (7.5px * 4));
    margin: 0 7.5px;
  }
}
@media (min-width: 768px) {
  .video-gallery  .video-module {
    width: 31%;
    width: calc(33.33333% - (7.5px * 6));
  }
}

@supports (display: flex){
     /*a.watch-on-youtube {  margin-right: 79px;}*/
       
    .video-gallery {
       display: -webkit-box;
       display: -webkit-flex;
       display: -ms-flexbox;
       display: flex;
    -webkit-box-align: stretch;
    -webkit-align-items: stretch;
        -ms-flex-align: stretch;
            align-items: stretch;
    -webkit-box-pack: justify;
    -webkit-justify-content: center;
        -ms-flex-pack: justify;
            justify-content: center;
    -webkit-flex-flow: row wrap;
        -ms-flex-flow: row wrap;
            flex-flow: row wrap;
    /*margin: 0 91px;*/
    }
    @media (min-width: 450px) {
        
        .video-gallery .video-module {

            -webkit-box-flex: 1;

            -webkit-flex: 1 calc(50% - (7.5px * 4));

                -ms-flex: 1 calc(50% - (7.5px * 4));

                    flex: 1 calc(50% - (7.5px * 4));
            
  }
    }
    
    @media (min-width: 768px) {
     .video-gallery .video-module {
    
            -webkit-box-flex: 1;
    
            -webkit-flex: 1 calc(33.33333% - (7.5px * 6));
    
                -ms-flex: 1 calc(33.33333% - (7.5px * 6));
    
                    flex: 1 calc(33.33333% - (7.5px * 6));
            
  }
    }
}


/*html.hs-edit-layout-mode .video-gallery > span > div{
    width:100%!important;
    display:block!important;
}
*/
a.video-module {
  width: 100%;
  min-height: 300px;
  display:block;
  cursor:pointer;
  text-decoration:none;
}
@supports (display: flex){
    .video-module {min-height:0; margin-bottom:15px;}
    
}
.video-module .thumb {
  background-size: cover;
  background-color: gray;
  min-height: 100px;
  background-size: cover;
    background-position: center;
    position:relative;
}
.video-module .thumb:before{
    background-image:url('//cdn2.hubspot.net/hubfs/98698/Play%20Icon.png');
    background-size:contain;
    width:53px;
    height:53px;
    content:"";
    pointer-events:none;
    position:absolute;
    top:50%;
    left:50%;
    transform:translate(-50%,-50%);    
}
@media (min-width: 768px) {
  .video-module .thumb {
    min-height: 175px;
  }
}
@media (min-width: 768px) {
  .video-module .thumb {
    min-height: 215px;
  }
}
.video-module .title {
  text-align: left;
  font-size: 20px;
  padding-top:15px;
  padding-bottom:10px;
  font-weight:bold;
  color:#333333;
  text-decoration:none;
  
}

/*
html.flexbox {
  .video-gallery {
    &>span {
      display: flex;
      algin-items: stretch;
      justify-content: center;
      flex-flow: row wrap;
      &>div {
        
          
          width: 100%;
         
        
         @media(min-width:320px){
          
          width: 50%;
          width: calc((100% / 2) - 30px);
          margin: 0 7.5px;
          
        }
        
        @media(min-width: 768px) {
          width: 33%;
          width: calc((100% / 3) - 30px);
          
        }
       
        display:inline-block;
        text-align:center;
        &>.video-module {
          display: inline-block;
          height: 215px;
        }
      }
    }
  }
}
*/
