/*
  Page URI:     heartmath.org/resources/videos
  Description:  Custom styling for HMI Video Gallery section
*/

/* CSS DIRECTORY
   01. GLOBAL
   02. TYPOGRAPHY
   03. MENU
   04. GALLERY
   05. CONDITIONAL
   06. @MEDIA QUERIES
*/



/* GLOBAL
================================= */
#hm-vg-preloader {
  display: none;
  margin: 0 auto;
  text-align: center;
  padding: 30px 0 20px;
}

#hm-video-gallery a.label-hm span.label span.fa {
  position: relative;
  font-size: 16px;
  vertical-align: middle;
  top: -1px;
}

#hm-video-gallery a.label-hm.label-hm-comments span span.fa {
  top: -2px;
}



/* TYPOGRAPHY
================================= */
#hm-video-gallery.hm-vg-page .entry-content {
  padding-top: 20px;
}

#hm-video-gallery.hm-vg-page .entry-content strong, 
#hm-video-gallery.hm-vg-page .entry-content strong *, 
#hm-video-gallery.hm-vg-page .entry-content .font-weight-bold, 
#hm-video-gallery.hm-vg-page .entry-content .font-weight-bold * {
  font-family: "Roboto Condensed", Arial, sans-serif;
  font-weight: bold;
}

#hm-video-gallery.hm-vg-page .entry-content strong:not(h1):not(h2):not(h3):not(h4):not(h5):not(h6):not(.h1):not(.h2):not(.h3):not(.h4):not(.h5):not(.h6), 
#hm-video-gallery.hm-vg-page .entry-content strong:not(h1):not(h2):not(h3):not(h4):not(h5):not(h6):not(.h1):not(.h2):not(.h3):not(.h4):not(.h5):not(.h6) *, 
#hm-video-gallery.hm-vg-page .entry-content .font-weight-bold:not(h1):not(h2):not(h3):not(h4):not(h5):not(h6):not(.h1):not(.h2):not(.h3):not(.h4):not(.h5):not(.h6), 
#hm-video-gallery.hm-vg-page .entry-content .font-weight-bold:not(h1):not(h2):not(h3):not(h4):not(h5):not(h6):not(.h1):not(.h2):not(.h3):not(.h4):not(.h5):not(.h6) * {
  font-size: 105%;
}

#hm-video-gallery .hm-tier.hm-tier-vg-header h1, 
#hm-video-gallery .hm-tier.hm-tier-vg-header h2, 
#hm-video-gallery .hm-tier.hm-tier-vg-header h3, 
#hm-video-gallery .hm-tier.hm-tier-vg-header h4, 
#hm-video-gallery .hm-tier.hm-tier-vg-header h5, 
#hm-video-gallery .hm-tier.hm-tier-vg-header h6 {
  font-family: "Roboto Condensed", Arial, sans-serif;
}

#hm-video-gallery.hm-vg-page .hm-tier.hm-tier-vg-header h1 {
  font-size: 40px;
  line-height: 46px;
  margin-bottom: 8px;
}

#hm-video-gallery.hm-vg-page .hm-tier.hm-tier-vg-header h2 {
  font-size: 34px;
  line-height: 38px;
  margin-bottom: 0;
}

#hm-video-gallery .hm-tier.hm-tier-vg-header h4, #hm-video-gallery .hm-tier.hm-tier-vg-header .h4, 
#hm-video-gallery .hm-tier.hm-tier-vg-header h5, #hm-video-gallery .hm-tier.hm-tier-vg-header .h5, 
#hm-video-gallery .hm-tier.hm-tier-vg-header h6, #hm-video-gallery .hm-tier.hm-tier-vg-header .h6 {
  font-weight: bold;
}

#hm-video-gallery.hm-vg-page .entry-content .heading-lead {
  margin: -16px 0 0;
  padding-bottom: 12px;
}



/* MENU
================================= */
#hm-video-gallery a span.label {
  font-family: "Roboto Condensed", Arial, sans-serif;
  font-size: 14px;
  position: relative;
  line-height: 16px;
  vertical-align: middle;
  height: 16px;
  padding: 4px 8px;
}

#hm-video-gallery a span.label-featured, 
#hm-video-gallery li.label-featured.active, 
#hm-video-gallery ul.pager.hm-vg-pager.label-featured li a.page_link.active {
  background: #55d3fc;
}

#hm-video-gallery a span.label-comments, 
#hm-video-gallery li.label-comments.active, 
#hm-video-gallery ul.pager.hm-vg-pager.label-comments li a.page_link.active {
  background: #e59e3b;
}

#hm-video-gallery a span.label-date, 
#hm-video-gallery li.label-date.active, 
#hm-video-gallery a span.label-title, 
#hm-video-gallery li.label-title.active, 
#hm-video-gallery ul.pager.hm-vg-pager.label-date li a.page_link.active, 
#hm-video-gallery ul.pager.hm-vg-pager.label-title li a.page_link.active {
  background: #a5a5a5;
}



/* VIDEO GALLERY (Index/Landing)
================================= */
#hm-video-gallery {
  position: relative; 
}

#hm-video-gallery.hm-vg-index #hmi-videos-index {
  margin: 16px auto 0;
  text-align: center;
}

#hm-video-gallery.hm-vg-index #hmi-videos {
  text-align: center;
  margin-top: 30px;
}

#hm-video-gallery.hm-vg-index .hm-video .info {
  border-radius: 0 0 4px 4px;
  background: #fff;
}

#hm-video-gallery .hm-video {
  position: relative;
  display: inline-block; 
  background: #f8f8f8;
  width: 270px; 
  height: 270px; 
  text-align:center;
  vertical-align: top;
  margin: 12px;
}

#hm-video-gallery .hm-video:hover {
  opacity: .75;
  transition: opacity .15s ease-in-out;
}

#hm-video-gallery .hm-video .hm-vg-link {
  position: absolute; 
  top: 0;
  left: 0;
  width: 100%; 
  height: 100%;
  z-index: 3;
  border-radius: 0 0 4px 4px;
  box-shadow: 0 1px 1px rgba(0,0,0,.5);
}

#hm-video-gallery .hm-video .hm-vg-link a {
  display: block;
  width: 100%;
  height: 100%;
  text-decoration: none;
}

#hm-video-gallery .hm-video .preview {
  position: relative;
  display: block;
  width: 100%; 
  height: 130px;
  overflow: hidden;
  background: #fff;
}

#hm-video-gallery.hm-vg-index .hm-video .preview {
  max-height: 130px;
}

#hm-video-gallery.hm-vg-page .hm-video .preview {
  max-height: 86px;
}

#hm-video-gallery .hm-video .preview .ico {
  display: none;
}

#hm-video-gallery .hm-video:hover .preview .ico, 
#hm-video-gallery .hm-video.active .preview .ico {
  display: block;
  position: absolute;
  width: 50px;
  height: 50px;
  left: 50%;
  top: 50%;
  margin-left: -25px;
  margin-top: -25px;
  font-size: 50px;
  color: #fff;
  text-shadow: 0 1px 1px rgba(0,0,0,.5);
  z-index: 1;
}

#hm-video-gallery .hm-video .preview img {
  display: block; 
  width: 100%;
}

#hm-video-gallery #hm-vg-nav-sort, 
#hm-video-gallery #hm-vg-nav-sort *,
#hm-video-gallery .hm-video .info, 
#hm-video-gallery .hm-video .info * {
  font-family: "Roboto Condensed", Arial, sans-serif;
}

#hm-video-gallery .hm-video .info {
  width: 100%; 
  height: 140px;
  padding: 12px 20px;
  vertical-align: middle;
  display: table-cell;
  overflow: hidden;
}

#hm-video-gallery .hm-video .info p.title {
  font-size: 15px;
  font-weight: 500;
  margin-bottom: 6px;
  line-height: 18px;
  padding: 0 10px;
}

#hm-video-gallery .hm-video .info p.title a {
  text-decoration: none;
  color: inherit;
  text-decoration: none;
  font-weight: 700;
  font-size: 14px;
  color: #666;
  line-height: 16px;
}

#hm-video-gallery.hm-vg-index .hm-video .info p.title a {
  font-size: 16px;
  line-height: 16px;
}

#hm-video-gallery .hm-video .info p.desc {
  font-size: 13px;
  line-height: 18px;
  margin-bottom: 0;
}

#hm-video-gallery .hm-video .hm-vg-status-ico {
  position: absolute;
  width: 41px;
  height: 86px;
  border-radius: 6px 6px 0 0;
  z-index: 4;
  top: -2px;
}

#hm-video-gallery .hm-video .hm-vg-status-ico a {
  display: block;
  width: 100%;
  height: 100%;
  color: #fff;
  text-decoration: none;
  padding: 4px 0 0 2px;
}

#hm-video-gallery .hm-video .hm-vg-status-ico.hm-vg-featured {
  width: 41px;
  height: 54px;
  background: url(../../../../../uploads/2015/11/ribbon-01-blue.png) no-repeat center -145px;
  right: 3px;
  padding: 1px 0 0;
}

#hm-video-gallery.hm-vg-index .hm-video .hm-vg-status-ico.hm-vg-featured {
  width: 41px;
  height: 68px;
  background: url(../../../../../uploads/2015/11/ribbon-01-blue.png) no-repeat center -131px;
  padding: 4px 0 0;
}

#hm-video-gallery.hm-vg-index .hm-video .hm-vg-status-ico.hm-vg-featured {
  left: 40px;
}

#hm-video-gallery .hm-video .hm-vg-status-ico.hm-vg-featured a:before {
  font-family: "Glyphicons Halflings";
  font-size: 20px;
  content: "\e006"; /* numerical unicode for star; */
}

#hm-video-gallery.hm-vg-index .hm-video .hm-vg-status-ico.hm-vg-featured a:before {
  font-size: 26px;
}

#hm-video-gallery .hm-video .hm-vg-status-ico.hm-vg-comments {
  width: 41px;
  height: 54px;
  background: url(../../../../../uploads/2015/11/ribbon-01-yellow.png) no-repeat center -145px;
  right: 3px;
  padding: 1px 3px 0 0;
}

#hm-video-gallery .hm-video .hm-vg-status-ico.hm-vg-comments.status-02 {
  width: 41px;
  height: 86px;
  background: url(../../../../../uploads/2015/11/ribbon-01-yellow.png) no-repeat center -110px;
  right: 3px;
  z-index: 3;
  padding: 42px 3px 0 0;
}

#hm-video-gallery.hm-vg-index .hm-video .hm-vg-status-ico.hm-vg-featured.status-01, 
#hm-video-gallery.hm-vg-index .hm-video .hm-vg-status-ico.hm-vg-comments.status-01 {
  left: 3px;
}

#hm-video-gallery.hm-vg-index .hm-video .hm-vg-status-ico.hm-vg-featured.status-02, 
#hm-video-gallery.hm-vg-index .hm-video .hm-vg-status-ico.hm-vg-comments.status-02 {
  left: 40px;
}

#hm-video-gallery.hm-vg-index .hm-video .hm-vg-status-ico.hm-vg-comments.status-02 {
  background: url(../../../../../uploads/2015/11/ribbon-01-yellow.png) no-repeat center -145px;
  padding: 1px 3px 0 2px;
}

#hm-video-gallery.hm-vg-index .hm-video .hm-vg-status-ico.hm-vg-featured.status-03, 
#hm-video-gallery.hm-vg-index .hm-video .hm-vg-status-ico.hm-vg-comments.status-03 {
  left: 78px;
}

#hm-video-gallery .hm-video .hm-vg-status-ico.hm-vg-comments a:before, 
#hm-video-gallery .hm-video .hm-vg-status-ico.hm-vg-comments.status-02 a:before {
  font-family: "Glyphicons Halflings";
  font-size: 21px;
  content: "\e111"; /* numerical unicode for comment bubble; */
}

#hm-video-gallery .hm-video .hm-vg-status-ico.hm-vg-comments a span, 
#hm-video-gallery .hm-video .hm-vg-status-ico.hm-vg-comments.status-02 a span, 
#hm-video-gallery.hm-vg-index .hm-video .hm-vg-status-ico.hm-vg-comments.status-02 a span {
  position: absolute;
  display: block;
  width: 41px;
  text-align: center;
  top: 11px;
  left: 0;
  z-index: 3;
  color: #000;
  font-size: 10px;
  font-weight: bold;
}

#hm-video-gallery .hm-video .hm-vg-status-ico.hm-vg-comments.status-02 a span {
  top: 52px;
  left: 0;
}

#hm-video-gallery.hm-vg-index .hm-video .hm-vg-status-ico.hm-vg-comments.status-02 a span {
  left: 1px;
}

#hm-video-gallery .hm-video .hm-vg-status-ico.hm-vg-new {
  width: 41px;
  height: 86px;
  background: url(../../../../../uploads/2015/11/ribbon-01-red.png) no-repeat center -120px;
  left: 3px;
}

#hm-video-gallery .hm-video .hm-vg-status-ico.hm-vg-new a {
  background: url(../../../../../uploads/2015/11/ribbon-01-text-new.png) no-repeat center 10px;
}

#hm-video-gallery.hm-vg-page .hm-video .info {
  border-bottom: 4px solid #fff;
}

#hm-video-gallery .hm-video.active .hm-vg-link {
  border-bottom: 4px solid #2aa8e2;
}

#hm-video-gallery .hm-video.active:hover {
  opacity: 1;
  transition: none;
}

#hm-video-gallery .hm-video.active .preview {
  background: #2aa8e2;
}

#hm-video-gallery .hm-video.active .preview > img {
  opacity: 0.7;
}

#hm-video-gallery.hm-vg-page {
  text-align: left;
}

#hm-video-gallery.hm-vg-page .hm-tier.hm-tier-vg-header h2 {
  width: 92%;
}

#hm-video-gallery.hm-vg-index .hm-tier.hm-tier-vg-nav > .row {
  padding-bottom: 30px;
}

#hm-video-gallery.hm-vg-page .hm-tier.hm-tier-vg-header {
  padding-bottom: 40px;
}

#hm-video-gallery.hm-vg-index .hm-tier.hm-tier-vg-header .row.wrapper {
  padding-top: 10px;
  padding-bottom: 40px;
}

#hm-video-gallery.hm-vg-index .hm-tier.hm-tier-vg-nav .row.wrapper {
  padding-top: 20px;
  padding-bottom: 20px;
}

#hm-video-gallery.hm-vg-page .hm-tier.hm-tier-vg-nav .row.wrapper {
  padding: 20px 0;
}

#hm-video-gallery.hm-vg-page #hm-vg-nav {
  text-align: center;
}

#hm-video-gallery.hm-vg-page #hmi-videos {
  text-align: center;
  margin: 0 auto 16px;
}

#hm-video-gallery #hmi-videos, 
#hm-video-gallery #hmi-videos a {
  text-decoration: none;
}

#hm-video-gallery #hmi-videos > span {
  display: block;
  font-size: 16px;
  font-weight: 500;
  margin-bottom: 4px;
}

#hm-video-gallery #hmi-videos span.hm-label-sort {
  font-weight: bold;
}

#hm-video-gallery.hm-vg-index #hmi-videos-index {
  display: none;
}



/* VIDEO GALLERY - PAGE (Landing)
================================= */
#hm-video-gallery.hm-vg-page .hm-video {
  width: 180px; 
  height: 150px; 
  border-radius: 0 0 4px 4px;
}

#hm-video-gallery.hm-vg-page .hm-video .preview {
  width: 100%; 
  height: auto;
}

#hm-video-gallery.hm-vg-page .hm-video:hover .preview .ico, 
#hm-video-gallery.hm-vg-page .hm-video.active .preview .ico {
  width: 40px;
  height: 40px;
  font-size: 40px;
  margin-left: -20px;
  margin-top: -20px;
}

#hm-video-gallery.hm-vg-page .hm-video .info, 
#hm-video-gallery.hm-vg-page .hm-video .info * {
  color: #333 !important;
  font-size: 14px !important;
  line-height: 15px !important;
}

#hm-video-gallery.hm-vg-page .hm-video .info {
  width: 180px; 
  height: 64px;
  padding: 6px;
  background: #fff;
}

#hm-video-gallery.hm-vg-page .hm-video.active .info * {
}

#hm-video-gallery.hm-vg-page .hm-video .info p.title {
  position: relative;
  max-height: 64px;
  word-wrap: word-break: break-all; 
  white-space: normal;
  text-align: center;
  font-size: 13px;
  font-weight: 500;
  line-height: 16px;
  margin-bottom: 0;
}



/* CAROUSEL
================================= */
#hm-video-gallery #hm-vg-nav-carousel {
  margin: 0 auto;
  height: 100%;
}

#hm-video-gallery .hm-vg-carousel-control.carousel-control {
  top: 0;
  width: 30px;
  height: 100%;
  color: #777;
  background: #f4f4f4 !important;
  opacity: 1;
}

#hm-video-gallery .hm-vg-carousel-control.carousel-control:hover {
  color: #333;
}

.carousel-indicators-numeric li {
  text-indent: 0;
  margin: 0 2px;
  width: 30px;
  height: 30px;
  border: none;
  border-radius: 100%;
  line-height: 30px;
  color: #fff;
  background-color: #777;
  transition: all 0.25s ease;
  font-size: 15px;
}

.carousel-indicators-numeric li.active {
  margin: 0 2px;
  width: 30px;
  height: 30px;
  background-color: #1875b1;        
}

.carousel-indicators-numeric {
  position: relative; 
  bottom: -6px;        
}



/* CAROUSEL - PAGER
================================= */
#hm-video-gallery.hm-vg-index .pagination,
#hm-video-gallery.hm-vg-index ul.pager.hm-vg-pager {
  margin: 0 auto;
}

#hm-video-gallery.hm-vg-index ul.pager.hm-vg-pager {
  margin-top: 12px;
}

#hm-video-gallery.hm-vg-index ul.pager.hm-vg-pager li, 
#hm-video-gallery.hm-vg-index ul.pager.hm-vg-pager li a.page_link {
  height: 30px;
  width: 30px;
  line-height: 30px;
  position: relative;
  vertical-align: middle;
}

#hm-video-gallery.hm-vg-index ul.pager.hm-vg-pager li a.page_link {
  text-indent: 1px;
  margin: 0 2px;
  width: 30px;
  height: 30px;
  border: none;
  border-radius: 100%;
  line-height: 30px;
  color: #fff;
  background-color: #777;
  transition: all 0.25s ease;
  font-size: 15px;
  padding: 0;
  text-align: center;
}

#hm-video-gallery.hm-vg-index .page_link.active {
  background-color: #1875b1;        
}



/* VIDEO
================================= */
#hm-video-gallery .btn-multi + .hm-user-download {
  margin: 30px auto 0;
}

#hm-video-gallery .hm-user-download {
  margin: 35px auto 0;
}

#hm-video-gallery .hm-user-download .embed-responsive {
  margin-bottom: 0 !important;
}



/* VIDEO GALLERY - PAGE (Conditional)
================================= */

/* Page Layout - Landing Page */
#hm-video-gallery.hm-vg-page.hm-landing-page .hm-tier.hm-tier-vg-header {
  padding-bottom: 20px;
}

#hm-video-gallery.hm-vg-page.hm-landing-page .hm-tier.hm-tier-vg-comments .row.wrapper {
  padding: 0;
  padding-bottom: 30px;
}

/* Page Layout - Comments Off */
#hm-video-gallery.hm-vg-page.hm-landing-page.hm-comments-off {
  padding-bottom: 20px;
}

#hm-video-gallery.hm-vg-page.hm-landing-page.hm-comments-off .hm-tier.hm-tier-vg-header {
  padding-bottom: 40px;
}


/* @MEDIA
================================= */
@media only screen and (min-width : 1200px) {

  #hm-video-gallery #hm-vg-nav-sort .container {
    width: 100%;
    max-width: 1380px !important;
  }

  #hm-video-gallery .hm-vg-carousel-control.carousel-control {
    padding: 0 30px;
  }

}


@media only screen and (min-width : 1200px) and (max-width : 1359px) {

  #hm-video-gallery #hm-vg-nav-sort .container {
    max-width: 800px !important;
  }

}


@media only screen and (max-width : 1199px) {

  #hm-video-gallery, 
  #hm-video-gallery * {
    text-align: center;
  }

  #hm-video-gallery .hm-tier ul, 
  #hm-video-gallery .hm-tier ol {
    list-style-position: inside;
    padding: 0;
  }


  #hm-video-gallery.hm-vg-page .hm-tier.hm-tier-vg-header h2 {
    width: 100%;
  }

  #hm-video-gallery.hm-vg-page .hm-tier.hm-tier-vg-header h1 {
    font-size: 34px;
    line-height: 34px;
    font-weight: 600;
  }
  
  #hm-video-gallery.hm-vg-page .hm-tier.hm-tier-vg-header h2 {
    font-size: 26px;
    line-height: 32px;
  }

}


@media only screen and (min-width : 768px) {

  #hm-video-gallery #hm-vg-nav {
    margin-left: -15px;
  }

}


@media only screen and (max-width : 767px) {

  #hm-video-gallery #hm-vg-nav {
    margin-left: -15px;
  }

  #hm-video-gallery .hm-vg-carousel-control.carousel-control {
    font-size: 30px;
    padding: 0 30px;
  }

  #hm-video-gallery #hm-vg-nav-sort .container {
    width: 100%;
    max-width: 380px !important;
  }

}


@media only screen and (max-width : 481px) {

  #hm-video-gallery .hm-video {
    margin: 12px auto;
  }

  #hm-video-gallery #hmi-videos, 
  #hm-video-gallery #hmi-videos a {
    text-decoration: none;
    display: block;
    margin-bottom: 10px;
  }

  #hm-video-gallery #hmi-videos a:last-child {
    margin-bottom: 20px;
  }

  #hm-video-gallery #hm-vg-nav-sort .container {
    width: 100%;
    max-width: 380px !important;
  }

  #hm-video-gallery .hm-vg-carousel-control.carousel-control {
    font-size: 25px;
    padding: 0;
  }

}