.project-explanation, .project-gallery { margin: 30px 0 44px; }
.project-explanation { max-width: 72ch; }
.project-explanation h2, .project-gallery h2 { font-size: clamp(1.4rem, 3.2vw, 2rem); line-height: 1.2; }
.project-explanation p, .project-gallery .photo-date { margin: 10px 0 0; line-height: 1.6; }
.project-gallery { min-width: 0; }
.project-photos { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 18px; margin-top: 20px; align-items: start; }
.project-photos .project-photo { min-width: 0; margin: 0; border: 1px solid var(--line, #8886); border-radius: 14px; overflow: hidden; }
.project-photo:only-child { grid-column: 1 / -1; width: min(100%, 860px); }
.project-photo .photo-open { display: grid; min-width: 0; place-items: center; background: #131318; cursor: zoom-in; }
.project-photo .photo-open img { display: block; width: auto; max-width: 100%; height: auto; max-height: 750px; object-fit: contain; }
.project-photo figcaption { margin: 0; padding: 16px 18px 18px; font-size: 1rem; color: inherit; }
.project-photo figcaption h3 { margin: 0 0 8px; line-height: 1.25; font-size: 1.12rem; }
.project-photo figcaption p { margin: 0 0 10px; line-height: 1.5; }
.project-photo .photo-link { display: inline-block; padding-block: 5px; font-weight: 650; text-decoration: underline; text-underline-offset: 4px; }
.project-photo a:focus-visible { outline: 2px solid currentColor; outline-offset: -3px; }
@media (max-width: 690px) {
  .project-photos { grid-template-columns: minmax(0,1fr); }
  .project-explanation, .project-gallery { margin-block: 26px; }
}

