/* ==========================================================================
   Project detail page only (works/<slug>)
   ========================================================================== */

.hero__media img { object-position: 50% 50%; }

.project { padding-top: 150px; padding-bottom: 120px; }
.project__grid { display: grid; gap: 80px; }
.project__info { display: flex; flex-direction: column; gap: 46px; }
.project__text { display: flex; flex-direction: column; gap: 26px; }
.project__text p { font-size: 18px; line-height: 1.4; letter-spacing: -0.04em; font-weight: 500; }
.project__text:empty { display: none; }

.project__facts { border-top: 1px solid var(--color-line); }
.project__facts div {
  display: flex; justify-content: space-between; gap: 20px;
  padding: 20px 0; border-bottom: 1px solid var(--color-line);
  font-family: var(--font-mono); font-size: var(--text-mono); line-height: 1.6; letter-spacing: -0.01em;
}
.project__facts dd { text-align: right; }

.project__gallery { display: flex; flex-direction: column; gap: 40px; }
.project__gallery figure { border-radius: var(--radius); overflow: hidden; background: #1a1a1a; }
.project__gallery img { width: 100%; }

.project__more { display: flex; justify-content: flex-end; margin-top: 70px; }

.project__missing { display: flex; flex-direction: column; gap: 24px; align-items: flex-start; }

@media (min-width: 810px) {
  .project { padding-top: 160px; padding-bottom: 160px; }
  .project__grid { grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
  /* The text stays in view while the photos scroll past. */
  .project__info { position: sticky; top: calc(var(--header-h-small) + 40px); }
  .project__text p { font-size: var(--text-h4); }
}
