/**
 * Hero component.
 *
 * 1. @media queries match WP image sizes.
 */
:root {
  --hero-font-size: 1.1rem;
  --hero-line-height: 1.4;
  --hero-title-font-size: 1.5em;
  --hero-title-line-height: 1.117;
}
@media (min-width: 801px) {
  :root {
    --hero-font-size: 1.3rem;
    --hero-title-font-size: 1.857em;
  }
}
@media (min-width: 1401px) {
  :root {
    --hero-font-size: 1.555556rem;
    --hero-title-font-size: 1.857em;
  }
}

.c-hero {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  max-width: var(--hero-max-width);
  height: 200px;
  max-height: 100vh;
  margin: 0 auto;
  color: #fff;
}
@media (min-width: 401px) {
  .c-hero {
    height: 221px;
  }
}
@media (min-width: 600px) {
  .c-hero {
    height: 386px;
  }
}
@media (min-width: 600px) {
  .c-hero--with-content {
    height: 70vh;
    max-height: 690px;
  }
}
.c-hero--with-content:before {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 10;
  content: "";
  background-color: rgba(0, 0, 0, 0.4);
}
.c-hero .c-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  max-width: initial;
  height: 100%;
  font-family: "object-fit: cover;";
  object-fit: cover;
}
.c-hero .c-video {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100%;
  padding-bottom: 0;
}
.c-hero .c-video iframe {
  top: 50%;
  left: 50%;
  z-index: -1;
  width: 177.7777777778vh;
  min-width: 100%;
  min-height: 56.25vw;
  transform: translate(-50%, -50%);
}
.c-hero__content {
  position: relative;
  z-index: 20;
  max-width: 890px;
  padding: 25px;
  font-size: var(--hero-font-size);
  line-height: var(--hero-line-height);
}
.c-hero__title {
  margin-bottom: 0.4em;
  font-size: var(--hero-title-font-size);
  line-height: var(--hero-title-line-height);
  font-weight: 700;
  color: inherit;
}