/* GLOBAL STYLES */
@font-face {
  font-family: 'Lexia';
  src: url('/content/dam/intelligentcontent/brands/azpro/nl/risicobijdiabetes/fonts/lexia.woff2') format('woff2'),
       url('/content/dam/intelligentcontent/brands/azpro/nl/risicobijdiabetes/fonts/lexia.woff') format('woff');
  font-weight: 400;
  font-style: normal;
}

#homepage h1.hero-text {
  margin-bottom: 16px;
}

#hero  button#open-video {
  border: 0;
  background: transparent;
  cursor: pointer;
}
/* Modal Content */
#homepage #banner-cont #hero > .video {
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  margin: auto;
  padding: 0;
  z-index: 9;
  align-items: center;
  transition: opacity 0.5s linear;
  opacity: 0;
  pointer-events: none;
}

#homepage #banner-cont #hero > .video::before {
  background-color: rgba(0,0,0,0.6);
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: -1;
  content: '';
}

#homepage #banner-cont #hero > .video.open {
  display: flex;
  opacity: 1;
  pointer-events: auto;
}

#homepage #banner-cont #hero > .video .cmp-video {
  background-color: #fefefe;
  width: 80%;
  max-width: 1000px;
  margin: auto;
  padding: 24px;
  box-shadow: 0 4px 8px 0 rgba(0,0,0,0.2),0 6px 20px 0 rgba(0,0,0,0.19);
  transform: translate(0 ,-100vh);
  transition: all 1s linear;
}

#homepage #banner-cont #hero > .video .cmp-video .btn-video-close {
  border: 0;
  background: transparent;
  cursor: pointer;
  position: absolute;
  top: 6px;
  right: 6px;
  font-family: Lexia, sans-serif;
  padding: 8px;
  font-size: 20px;
}

#homepage #banner-cont #hero > .video.open .cmp-video {
  transform: translate(0, 0);
}

#homepage #banner-cont #hero > .video .cmp-video .cmp-video__player {
  height: 50vh !important;
}

#homepage #banner-cont #hero > .video .cmp-video .cmp-video__content {
  display: none;
}

@media(min-width:1025px) {
  #homepage .cmp-container__backgroundImage--enabled {
    aspect-ratio: 250 / 117;
  }
}

@media(min-width:1200px) {
  #homepage .cmp-container__backgroundImage--enabled {
    aspect-ratio: 300 / 117;
  }
}

@media(min-width:1400px) {
  #homepage .cmp-container__backgroundImage--enabled {
    aspect-ratio: 400 / 117;
  }
}

@media(min-width:1700px) {
  #homepage .cmp-container__backgroundImage--enabled {
    aspect-ratio: 550 / 117;
  }
}