/* Resources page only. Hero photo: right-aligned on wide screens, focused on the two people and the laptop. */
.ba-resource-hero__media {
  display: block;
  position: absolute;
  z-index: 0;
  top: 0;
  right: 0;
  bottom: 0;
  width: 58%;
  margin: 0;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 42%);
  mask-image: linear-gradient(90deg, transparent 0%, #000 42%);
}
.ba-resource-hero__media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 88% 40%;
  filter: grayscale(1) contrast(1.17) brightness(.92);
}
.ba-resource-hero__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(4, 8, 34, .55) 0%, rgba(0, 66, 172, .22) 60%, rgba(4, 8, 34, .12) 100%);
}
.ba-resource-hero .ba-shell {
  position: relative;
  z-index: 1;
}
.ba-resource-hero::after {
  display: none;
}

@media (min-width: 64rem) {
  .ba-resource-hero p {
    max-width: 34rem;
  }
}

/* Below 64rem the photo stacks under the copy, full width. */
@media (max-width: 63.99rem) {
  .ba-resource-hero {
    padding-bottom: 0;
  }
  .ba-resource-hero__media {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    margin-top: 2.5rem;
    -webkit-mask-image: none;
    mask-image: none;
  }
  .ba-resource-hero__media img {
    object-position: 90% 40%;
  }
  .ba-resource-hero__media::after {
    background: linear-gradient(180deg, rgba(4, 8, 34, .35) 0%, rgba(0, 66, 172, .12) 100%);
  }
}

@media (max-width: 47.99rem) {
  .ba-resource-hero__media {
    aspect-ratio: 4 / 3;
  }
}
