/* Original portfolio artwork: readable, uncropped, and stable at every size. */
.cs-cover-container { max-width: 1028px; }
.cs-project-cover { margin: 0 0 clamp(32px, 6vw, 72px); }
.cs-project-cover .tp-open { padding: 0; }
.cs-project-cover .tp-plane img { aspect-ratio: auto; }
.cs-article > .cs-content { max-width: 1120px; }
.cs-article > .cs-content > :not(:has(.tp-gallery)) { max-width: 760px; margin-inline: auto; }
.tp-gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; gap: 32px; padding: 24px 0 12px; }
.tp-artwork:first-child { grid-row: auto; }
.tp-artwork:nth-child(3) { grid-column: 1 / -1; }
.tp-open { padding: 0; perspective: none; }
.tp-gallery .tp-artwork .tp-plane, .tp-gallery .tp-open:is(:hover, :focus-visible) .tp-plane,
.cs-project-cover .tp-plane, .cs-project-cover .tp-open:is(:hover, :focus-visible) .tp-plane { animation: none; transform: none; filter: none; }
.tp-plane { border-radius: 12px; box-shadow: none; transition: border-color .2s; }
.tp-plane::after { display: none; }
.tp-open:is(:hover, :focus-visible) .tp-plane { border-color: var(--ink); box-shadow: none; }
.tp-plane img { aspect-ratio: auto; }
.tp-artwork figcaption { padding: 14px 0 0; line-height: 1.6; font-size: .875rem; }
.cs-gallery-caption { max-width: 760px; line-height: 1.7; letter-spacing: 0; }
.tp-original { min-height: 44px; display: inline-flex; align-items: center; margin-left: auto; text-underline-offset: 5px; color: inherit; }
.tp-lightbox { overscroll-behavior: contain; }
.tp-full-image { height: auto; max-height: 70dvh; }
.tp-lightbox-head { position: sticky; top: 0; background: var(--bg); z-index: 1; padding-block: 4px; }
@media (max-width: 700px) {
  .tp-gallery { display: grid; grid-template-columns: minmax(0, 1fr); gap: 28px; overflow: visible; }
  .tp-artwork:nth-child(3) { grid-column: auto; }
  .tp-artwork { width: 100%; }
  .tp-lightbox-head { gap: 12px; }
  .tp-image-label { font-size: .8rem; }
  .tp-close { flex-shrink: 0; }
  .tp-lightbox-controls { flex-wrap: wrap; gap: 12px; }
  .tp-original { margin-left: 0; padding-inline: 8px; }
}
@media (prefers-reduced-motion: reduce) { .tp-plane { transition: none; } }
