.project-records {
  margin: 0;
  padding: 0;
  list-style: none;
}

.project {
  display: grid;
  align-items: start;
  gap: 20px clamp(26px, 4vw, 54px);
  padding-block: clamp(23px, 3.2vw, 40px);
  border-bottom: 1px solid var(--line);
}

.project:first-child { padding-top: 5px; }
.project:last-child { padding-bottom: 0; border-bottom: 0; }

.project-copy h2 {
  margin-top: 8px;
  font-size: clamp(1.5rem, 2.55vw, 2.28rem);
  font-weight: 650;
  line-height: 1.12;
  letter-spacing: -.037em;
  text-wrap: pretty;
}

.project-copy { min-width: 0; }
.project-copy .metadata { color: var(--accent); font-weight: 650; }
.project-copy .summary { margin-top: 12px; color: var(--secondary); }
.project-date { margin-top: 8px; color: var(--muted); font-size: .88rem; }
.project-figure { min-width: 0; margin: 0; }

.project-figure figcaption {
  margin-top: 8px;
  color: var(--muted);
  font-size: .86rem;
  line-height: 1.42;
}

.project-visual {
  display: grid;
  gap: 10px;
  place-items: center;
  overflow: hidden;
  padding: clamp(8px, 1.2vw, 15px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f1f0ec;
  cursor: zoom-in;
}

.project-visual:hover {
  border-color: var(--accent);
}

.project-visual-action {
  justify-self: end;
  margin-inline: 3px;
  font-size: .8rem;
}

.project-visual img {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 420px;
  border-radius: 4px;
  object-fit: contain;
  background: white;
}

.project-visual[data-preview] img {
  width: 100%;
  aspect-ratio: 2;
  object-fit: cover;
}

.project-visual[data-preview="top"] img { object-position: center top; }

@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .project-visual img { transition: transform 220ms cubic-bezier(.22, 1, .36, 1); }
  .project-visual:hover img { transform: scale(1.018); }
}

@media (min-width: 850px) {
  .project {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  }
}
