/* This margin is too short by default on mobile */
.cc--hero-angle {
  position: relative;
  /** Correct for a weird mobile header height issue. */
  padding-top: 1.5rem;
  --hero-angle-decoration-color: #CC0033;
  --hero-angle-overlay-left-padding: 40px;
  --hero-angle-overlay-top-padding: 40px;
}
.cc--hero-angle.decoration-color-blue {
  --hero-angle-decoration-color: #007FAC;
}
.cc--hero-angle.decoration-color-teal {
  --hero-angle-decoration-color: #00626D;
}
.cc--hero-angle.decoration-color-yellow {
  --hero-angle-decoration-color: #EBB600;
}
.cc--hero-angle.decoration-color-gray {
  --hero-angle-decoration-color: #5F6172;
}

.c--hero-angle {
  position: relative;
  overflow: hidden;
}

.c--hero-angle img, video {
  height: 600px;
  max-height: 700px;
  object-fit: cover;
  object-position: center;
  width: 100%;
}

.hero-angle-decoration {
  z-index: 2;
  position: absolute;
  left: 0; right:0; bottom: 0; top: 0;
  background-color: var(--hero-angle-decoration-color);
  clip-path: polygon(0 97%, 100% 85%, 100% 100%, 0% 100%);
}
.hero-angle-decoration::after {
  content: '';
  position: absolute;
  left: 0; right:0; bottom: 0; top: 0;
  background-color: white;
  clip-path: polygon(0 98%, 100% 90%, 100% 100%, 0% 100%);
}

.hero-angle-card {
  position: relative;
  overflow: hidden;
}

.hero-angle-card .media {
  position: relative;
}
.hero-angle-card .media::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.55), rgba(0, 0, 0, 0.55));
}

.cc--hero-angle .overlay {
  z-index: 9;
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  color: white;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.cc--hero-angle .overlay-content {
  padding: var(--hero-angle-overlay-top-padding) var(--hero-angle-overlay-left-padding);
}
.cc--hero-angle h1 {
  color: white;
  font-size: 36px;
  line-height: 44px;
}

.cc--hero-angle .overlay-content .f--description {
  margin-top: 10px;
  font-size: 18px;
  line-height: 32px;
}
.cc--hero-angle .overlay-content .f--link {
  margin-top: 20px;
}
.cc--hero-angle .overlay-content .f--link a {
  background-color: transparent;
  border-color: white;
  color: white;
  width: auto;
}
.cc--hero-angle .overlay-content .f--link a:hover {
  background-color: white;
  color: black;
}

.cc--hero-angle .hidden {
  display: none;
}

@media screen and (min-width: 768px) {
  .c--hero-angle img,
  .c--hero-angle video {
    height: auto;
  }
}

@media screen and (min-width: 1024px) {
  .cc--hero-angle {
    padding-top: 0;
    --hero-angle-overlay-left-padding: 95px;
    --hero-angle-overlay-top-padding: 125px;
  }
  .cc--hero-angle .overlay-content {
    max-width: 66%;
  }
  .cc--hero-angle h1 {
    font-size: 64px;
    line-height: 72px;
  }
  .cc--hero-angle .overlay-content .f--description {
    margin-top: 20px;
    font-size: 22px;
    line-height: 36px;
  }
  .cc--hero-angle .overlay-content .f--link {
    margin-top: 35px;
  }
}

@media screen and (min-width: 1280px) {
  .cc--hero-angle .overlay-content {
    max-width: 50%;
  }
}