.project-header {
  justify-content: space-between;
}

.project-header nav {
  margin-left: auto;
}

.back-link {
  padding: 5px 9px;
  border: 1px solid rgb(255 255 255 / 60%);
  border-radius: 6px;
  color: white;
  font-size: 0.85rem;
  text-decoration: none;
  white-space: nowrap;
}

.back-link:hover {
  background: rgb(255 255 255 / 12%);
  color: white;
}

.project-page {
  width: min(900px, 100%);
  margin: 140px auto 70px;
  color: var(--light-text);
}

.project-page h1 {
  margin: 12px 0 24px;
  font-size: clamp(2.2rem, 5vw, 4rem);
}

.project-page h2 {
  color: var(--accent-color);
}

.project-page p {
  max-width: 70ch;
}

.project-section {
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid rgb(255 255 255 / 25%);
}

@media (max-width: 600px) {
  .project-header {
    flex-wrap: wrap;
    gap: 16px;
  }

  .back-link {
    margin-left: auto;
  }
}

.project-header nav {
  margin-left: auto;
  gap: clamp(16px, 4vw, 48px);
}

.story-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(30px, 5vw, 60px);
  padding: 60px 0;
  border-top: 1px solid rgb(255 255 255 / 25%);
}

.story-row figure {
  width: 100%;
  margin: 0;
}

.story-row img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 360px;
  object-fit: contain;
  border-radius: 8px;
}

.story-row figcaption {
  margin-top: 10px;
  color: var(--light-text);
  font-size: 0.85rem;
  opacity: 0.75;
  text-align: center;
}

.story-copy {
  min-width: 0;
  padding: 40px;
  border: 1px solid rgb(255 255 255 / 45%);
  border-radius: 24px;
  background: transparent;
  box-shadow: 0 24px 70px rgb(0 0 0 / 20%);
  backdrop-filter: blur(36px);
  color: lightgray;
}

.story-copy h2 {
  margin: 0 0 24px;
}

.story-copy p {
  margin-bottom: 0;
  line-height: 1.8;
}

.project-image-placeholder {
  display: grid;
  min-height: 260px;
  place-items: center;
  padding: 30px;
  border: 1px dashed rgb(255 255 255 / 45%);
  border-radius: 8px;
  color: var(--light-text);
  background: rgb(0 0 0 / 20%);
  text-align: center;
}

@media (max-width: 700px) {
  .story-row {
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 40px 0;
  }

  .story-copy {
    padding: 24px;
  }
}

.pink-highlight {
  background: rgba(243, 128, 197, 0.9);
  padding: 0 0.15em;
  border-radius: 3px;
}
