/* Inner page hero: photo, navy gradient, breadcrumb at the bottom */

.page-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  min-height: 54vh;
  max-height: 100vh;
  overflow: hidden;
  background: var(--color-primary);
}

.page-hero__img,
.page-hero__overlay {
  grid-area: 1 / 1;
  width: 100%;
  height: 100%;
}

/* Height 0 + min-height 100% keeps the photo from setting the hero height,
   so wide screens no longer push the hero past the viewport */
.page-hero__img {
  height: 0;
  min-height: 100%;
  object-fit: cover;
}

.page-hero__overlay {
  background: linear-gradient(rgba(11, 45, 75, 0.3) 0%, rgba(11, 45, 75, 0.55) 42%, rgba(11, 45, 75, 0.84) 100%);
}

.page-hero > .inner {
  position: relative;
  z-index: 2;
  grid-area: 1 / 1;
  align-self: end;
  padding-top: 130px;
  padding-bottom: 56px;
}

@media (min-width: 1024px) {
  .page-hero {
    min-height: 62vh;
  }

  .page-hero > .inner {
    padding-top: 150px;
    padding-bottom: 70px;
  }
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.8rem;
  margin: 0 0 1.25rem;
  list-style: none;
}

.breadcrumb__item {
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.8);
  letter-spacing: 0.14em;
  text-transform: uppercase;

  & + &::before {
    content: "/";
    margin-right: 0.8rem;
    color: rgba(255, 255, 255, 0.45);
  }
}

.breadcrumb__link {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  color: inherit;
  text-decoration: none;
}

@media (hover: hover) {
  .breadcrumb__link:hover {
    color: var(--color-white);
  }
}

.breadcrumb__current {
  color: var(--color-gold);
}

/* Overview band that follows the hero on inner pages */
.page-overview {
  background: linear-gradient(rgba(11, 45, 75, 0.03), rgba(11, 45, 75, 0));
}
