.project-feature:first-of-type {
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
}

.project-feature__heading {
  display: block;
  margin-bottom: clamp(16px, 2vw, 28px);
}

.project-feature__heading .eyebrow {
  max-width: none;
}

.project-feature__details {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: clamp(20px, 4vw, 64px);
  margin-top: clamp(20px, 3vw, 36px);
}

.project-feature__details .case-facts {
  max-width: 56ch;
  margin: 0;
}

.project-feature__copy {
  max-width: 66ch;
  color: var(--muted);
}

.project-feature__copy p + p {
  margin-top: .75em;
}

.project-feature__copy .text-link {
  margin-top: 14px;
}

.project-feature__details + .process {
  margin-top: clamp(22px, 3vw, 40px);
}

.photo-gallery {
  position: relative;
  min-width: 0;
  --gallery-inset: clamp(8px, 1.5vw, 24px);
}

.photo-gallery--four-three { --gallery-ratio: 4 / 3; }
.photo-gallery--wide { --gallery-ratio: 16 / 9; }
.photo-gallery--portrait { --gallery-ratio: 2 / 3; }

.photo-gallery__frame {
  position: relative;
  width: 100%;
  aspect-ratio: var(--gallery-ratio, 3 / 2);
  max-height: 82vh;
  max-height: 82svh;
  margin: 0;
  background: var(--ink);
}

.photo-gallery__frame img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.photo-gallery__controls {
  position: absolute;
  inset: 0;
  color: #fff;
  pointer-events: none;
}

.photo-gallery__controls button,
.photo-gallery__count {
  position: absolute;
  display: grid;
  place-items: center;
  border: 1px solid rgb(255 255 255 / 36%);
  border-radius: 999px;
  background: rgb(10 18 23 / 68%);
  color: inherit;
}

.photo-gallery__controls button {
  width: 44px;
  height: 44px;
  padding: 0;
  font: inherit;
  cursor: pointer;
  pointer-events: auto;
}

.photo-gallery__controls button:hover {
  background: rgb(10 18 23 / 90%);
}

.photo-gallery__controls button:focus-visible {
  outline-color: #fff;
  outline-offset: 3px;
}

.photo-gallery__controls .icon {
  font-size: 1.25rem;
}

.photo-gallery__previous,
.photo-gallery__next {
  top: 50%;
  transform: translateY(-50%);
}

.photo-gallery__previous,
.photo-gallery__playback {
  inset-inline-start: var(--gallery-inset);
}

.photo-gallery__next,
.photo-gallery__count {
  inset-inline-end: var(--gallery-inset);
}

.photo-gallery__playback,
.photo-gallery__count {
  bottom: var(--gallery-inset);
}

.photo-gallery__previous .icon {
  transform: rotate(180deg);
}

.photo-gallery__playback[data-playing="true"] .photo-gallery__play,
.photo-gallery__playback:not([data-playing="true"]) .photo-gallery__pause {
  display: none;
}

.photo-gallery__count {
  min-height: 34px;
  padding-inline: 12px;
  font-size: .82rem;
  font-variant-numeric: tabular-nums;
}

@media (max-width: 710px) {
  .project-feature__details {
    grid-template-columns: minmax(0, 1fr);
  }
}
