.comp--subpage-hero {
  position: relative;
  overflow: hidden;
  background: var(--main-light);
}
.comp--subpage-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: rgba(4, 85, 115, 0.84);
  pointer-events: none;
}
.comp--subpage-hero::after {
  content: "";
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  height: 0.25rem;
  z-index: 3;
  background: var(--accent);
  pointer-events: none;
}

.comp--subpage-hero__media {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.comp--subpage-hero__media picture {
  display: block;
  width: 100%;
  height: 100%;
}
.comp--subpage-hero__media img {
  display: block;
  width: 100%;
  height: 100%;
  -o-object-fit: cover;
     object-fit: cover;
}

.comp--subpage-hero__stage {
  position: relative;
  z-index: 2;
  display: grid;
  gap: 2rem;
  align-items: start;
  padding-block: 3rem 3rem;
}
@media (min-width: 70rem) {
  .comp--subpage-hero__stage {
    grid-template-columns: minmax(18rem, 0.6fr) minmax(0, 1fr);
    gap: 2.5rem;
    padding-block: 2.5rem 3rem;
  }
}

.comp--subpage-hero__intro,
.comp--subpage-hero__lead {
  max-width: 32rem;
  color: var(--bg);
}
.comp--subpage-hero__intro h1,
.comp--subpage-hero__lead h1 {
  margin: 0 0 1rem;
  font-size: 2.5rem;
  line-height: 1;
  letter-spacing: 0;
  color: var(--bg);
}
@media (min-width: 45rem) {
  .comp--subpage-hero__intro h1,
  .comp--subpage-hero__lead h1 {
    font-size: 3.5rem;
  }
}

.comp--subpage-hero--intro-only .comp--subpage-hero__lead {
  min-width: 0;
}
.comp--subpage-hero--intro-only .comp--subpage-hero__stage {
  padding-block-start: 6rem;
}
@media (min-width: 70rem) {
  .comp--subpage-hero--intro-only .comp--subpage-hero__stage {
    grid-template-columns: minmax(18rem, 0.6fr);
    padding-block-start: 5.5rem;
  }
  .comp--subpage-hero--intro-only .comp--subpage-hero__lead {
    grid-column: 1;
  }
}

.comp--subpage-hero__eyebrow {
  margin: 0 0 0.75rem;
  color: var(--accent);
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.comp--subpage-hero__intro > .comp--subpage-hero__eyebrow,
.comp--subpage-hero__lead > .comp--subpage-hero__eyebrow {
  color: var(--accent);
}

.comp--subpage-hero__intro-copy p,
.comp--subpage-hero__intro-copy li,
.comp--subpage-hero__intro-copy blockquote,
.comp--subpage-hero__intro-copy a,
.comp--subpage-hero__intro-copy h2,
.comp--subpage-hero__intro-copy h3,
.comp--subpage-hero__intro-copy h4,
.comp--subpage-hero__intro-copy h5,
.comp--subpage-hero__intro-copy h6 {
  color: var(--bg);
}
.comp--subpage-hero__intro-copy > h1 {
  margin-bottom: 0.75rem;
}
.comp--subpage-hero__intro-copy > div {
  font-size: 1.0625rem;
  line-height: 1.5;
}

.comp--subpage-hero__intro-copy > :last-child,
.comp--subpage-hero__intro-copy > :last-child > :last-child {
  margin-bottom: 0;
}

.comp--subpage-hero__sidebar {
  min-width: 0;
}

.comp--subpage-hero__side-head {
  display: contents;
}

.comp--subpage-hero__side-body,
.comp--subpage-hero__cards {
  display: grid;
  gap: 0.75rem;
}

@media (min-width: 45rem) {
  .comp--subpage-hero__cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.comp--subpage-hero__card {
  min-width: 0;
  min-height: 100%;
  background: var(--bg);
  border: 1px solid var(--border);
  color: inherit;
  box-shadow: 0 1rem 2rem rgba(4, 85, 115, 0.1);
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}
.comp--subpage-hero__card:hover, .comp--subpage-hero__card:focus-within {
  transform: translateY(-0.125rem);
  border-color: var(--border);
  box-shadow: 0 1.25rem 2.5rem rgba(4, 85, 115, 0.14);
}

.comp--subpage-hero__card-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-height: 100%;
  padding: 0.75rem;
  color: inherit;
  text-decoration: none;
}
@media (min-width: 70rem) {
  .comp--subpage-hero__card-link {
    gap: 0.75rem;
    padding: 0.75rem;
  }
}
.comp--subpage-hero__card-link:focus-visible {
  outline: 0.125rem solid var(--main-light);
  outline-offset: -0.125rem;
}
.comp--subpage-hero__card-link:hover .comp--subpage-hero__card-picture img, .comp--subpage-hero__card-link:focus-visible .comp--subpage-hero__card-picture img {
  transform: scale(1.03);
}

.comp--subpage-hero__card-media {
  position: relative;
  flex: 0 0 clamp(5rem, 22vw, 7rem);
  overflow: hidden;
  aspect-ratio: 1/1;
  background: var(--surface);
}
@media (min-width: 70rem) {
  .comp--subpage-hero__card-media {
    flex-basis: clamp(4.5rem, 6vw, 5.5rem);
  }
}

.comp--subpage-hero__card-picture {
  display: block;
  width: 100%;
  height: 100%;
}
.comp--subpage-hero__card-picture picture,
.comp--subpage-hero__card-picture img {
  display: block;
  width: 100%;
  height: 100%;
}
.comp--subpage-hero__card-picture img {
  -o-object-fit: cover;
     object-fit: cover;
  transition: transform 220ms ease;
}

.comp--subpage-hero__card-media--fallback {
  display: grid;
  place-items: center;
}

.comp--subpage-hero__card-fallback-icon {
  display: inline-flex;
  width: 2.5rem;
  height: 2.5rem;
  color: var(--main);
}
.comp--subpage-hero__card-fallback-icon svg {
  display: block;
  width: 100%;
  height: 100%;
}

.comp--subpage-hero__card-body {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
}

.comp--subpage-hero__card-tag {
  display: inline-flex;
  align-items: center;
  width: -moz-fit-content;
  width: fit-content;
  margin-bottom: 0.5rem;
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  background: var(--accent);
  color: var(--main);
  font-size: 0.625rem;
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.comp--subpage-hero__card h3 {
  display: -webkit-box;
  overflow: hidden;
  margin: 0;
  color: var(--main);
  font-size: clamp(1rem, 0.9rem + 0.25vw, 1.125rem);
  line-height: 1.1;
  letter-spacing: 0;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.comp--subpage-hero__card-meta {
  margin: 0.25rem 0 0;
  color: var(--muted);
  font-size: 0.75rem;
  line-height: 1.25;
}

.comp--subpage-hero__placeholder {
  display: grid;
  gap: 1rem;
  padding: 1.2rem;
  background: rgba(255, 255, 255, 0.94);
  border: 1px dashed rgba(255, 255, 255, 0.6);
  color: var(--main);
}
.comp--subpage-hero__placeholder h3,
.comp--subpage-hero__placeholder p {
  margin: 0;
}
.comp--subpage-hero__placeholder p {
  color: var(--muted);
}

@media (max-width: calc(45rem - 1px)) {
  .comp--subpage-hero__stage {
    padding-block: 2.5rem 3rem;
  }
  .comp--subpage-hero__card-media {
    flex-basis: clamp(4.5rem, 22vw, 5.5rem);
  }
}
#main {
  padding-top: 0;
  padding-bottom: 5rem;
  color: var(--main);
}
@media (min-width: 45rem) {
  #main {
    padding-bottom: 6rem;
  }
}

.portrait__content {
  margin-top: 3rem;
}

.portrait__grid {
  display: grid;
  gap: 1.5rem;
}
@media (min-width: 45rem) {
  .portrait__grid {
    grid-template-columns: minmax(16rem, 0.9fr) minmax(0, 1.2fr);
    align-items: start;
  }
}

.portrait__gallery-column {
  min-width: 0;
}
@media (min-width: 45rem) {
  .portrait__gallery-column {
    position: relative;
    align-self: stretch;
  }
}

@media (min-width: 45rem) {
  .portrait__gallery-sticky {
    width: 100%;
  }
}

@media (min-width: 45rem) {
  .portrait__gallery-sticky.is-fixed {
    position: fixed;
    top: 3rem;
    z-index: 10;
  }
}

@media (min-width: 45rem) {
  .portrait__gallery-sticky.is-bottom {
    position: absolute;
    inset-inline: 0;
    bottom: 0;
  }
}

.portrait__gallery {
  display: grid;
  gap: 0.75rem;
}

.portrait__gallery-main {
  position: relative;
  margin: 0;
  aspect-ratio: 16/11;
  overflow: hidden;
  border: 1px solid rgba(19, 65, 88, 0.12);
  background: var(--bg-lighter);
  box-shadow: 0 1rem 2rem rgba(4, 85, 115, 0.08);
}

.portrait__gallery-main-image {
  display: block;
  width: 100%;
  height: 100%;
  -o-object-fit: cover;
     object-fit: cover;
}

.portrait__gallery-nav {
  position: absolute;
  top: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  border: 0;
  border-radius: 999rem;
  background: rgba(4, 85, 115, 0.78);
  color: var(--bg);
  line-height: 1;
  box-shadow: 0 0.5rem 1rem rgba(4, 85, 115, 0.16);
  transform: translateY(-50%);
  cursor: pointer;
  transition: transform 160ms ease, background-color 160ms ease, box-shadow 160ms ease, opacity 160ms ease;
}
.portrait__gallery-nav span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}
.portrait__gallery-nav:hover, .portrait__gallery-nav:focus-visible {
  background: var(--main-lighter);
  box-shadow: 0 0.75rem 1.25rem rgba(4, 85, 115, 0.2);
}
.portrait__gallery-nav:focus-visible {
  outline: 0.125rem solid var(--accent);
  outline-offset: 0.125rem;
}

.portrait__gallery-nav--prev {
  left: 0.75rem;
}

.portrait__gallery-nav--next {
  right: 0.75rem;
}

.portrait__gallery-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 0.8rem;
  height: 0.8rem;
}
.portrait__gallery-arrow::before {
  content: "";
  width: 0.65rem;
  height: 0.65rem;
  border-right: 0.14rem solid currentColor;
  border-bottom: 0.14rem solid currentColor;
}

.portrait__gallery-arrow--prev::before {
  transform: rotate(135deg);
}

.portrait__gallery-arrow--next::before {
  transform: rotate(-45deg);
}

.portrait__gallery-strip {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.55rem;
}

.portrait__gallery-thumb {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16/11;
  padding: 0;
  border: 1px solid transparent;
  background: var(--bg);
  box-shadow: 0 0 0 1px rgba(19, 65, 88, 0.08);
  cursor: pointer;
  transition: border-color 160ms ease, box-shadow 160ms ease, opacity 160ms ease;
}
.portrait__gallery-thumb:focus-visible {
  border-color: var(--main-light);
  box-shadow: 0 0 0 3px rgba(4, 85, 115, 0.18);
  outline: none;
}
.portrait__gallery-thumb img {
  display: block;
  width: 100%;
  height: 100%;
  -o-object-fit: cover;
     object-fit: cover;
  opacity: 0.62;
  transition: opacity 160ms ease, transform 220ms ease;
}
.portrait__gallery-thumb:hover img {
  opacity: 0.85;
  transform: scale(1.03);
}
.portrait__gallery-thumb.is-active {
  border-color: var(--main-light);
  box-shadow: 0 0 0 2px var(--main-light);
}
.portrait__gallery-thumb.is-active img {
  opacity: 1;
}

.portrait__article {
  padding: 1.5rem 1.5rem 2rem;
  width: 100%;
  max-width: none;
  background: var(--bg);
  border-top: 0.25rem solid var(--accent);
  box-shadow: 0 1rem 2rem rgba(4, 85, 115, 0.08);
}
.portrait__article h2 {
  margin: 0 0 1rem;
  color: var(--main);
  font-size: clamp(1.5rem, 1.25rem + 0.5vw, 1.75rem);
}
.portrait__article h3 {
  margin: 1rem 0 0.75rem;
  color: var(--main-light);
  font-size: 1.1rem;
}
.portrait__article p {
  margin: 0 0 1rem;
  color: var(--muted);
  line-height: 1.5;
}
.portrait__article p:last-child {
  margin-bottom: 0;
}
@media (min-width: 45rem) {
  .portrait__article {
    padding: 2.5rem 2.5rem 2.5rem;
  }
}
