/* An open-ended wall; every poster uses the same frame as the original artwork. */
.poster-project { padding: 12px var(--gutter) 8vh; }
.poster-heading { margin-bottom: 24px; }
.poster-heading > a { font-size: 14px; }
.poster-heading h1 { max-width: 20ch; margin: 16px 0 16px; font-size: clamp(32px, 5vw, 80px); font-weight: 400; line-height: 1.15; letter-spacing: -.035em; }
.poster-heading p { margin: 0; }
.poster-heading p, .poster-empty { font-size: 16px; line-height: 1.6; }
.poster-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 36px 20px; }
.poster-card { min-width: 0; margin: 0; }
.poster-art { display: block; width: 100%; height: auto; aspect-ratio: 3508 / 4961; object-fit: contain; }
.poster-placeholder { aspect-ratio: 3508 / 4961; border: 1px solid rgb(0 0 0 / .15); }
#poster-sentinel { height: 1px; }
@media (min-width: 1800px) { .poster-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); } }
@media (max-width: 1100px) { .poster-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 600px) { .poster-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 14px; } }

/* Native dialog keeps keyboard focus inside the expanded poster. */
.poster-expand { display: block; width: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; }
.poster-expand:focus-visible { outline: 3px solid var(--ink); outline-offset: 5px; }
.poster-viewer-open, .poster-viewer-open body { overflow: hidden; }
.poster-viewer { position: fixed; inset: 0; width: 100%; max-width: none; height: 100vh; height: 100dvh; max-height: none; margin: 0; padding: 20px; border: 0; background: rgb(0 0 0 / .94); color: #fff; }
.poster-viewer[open] { display: grid; grid-template-rows: auto minmax(0, 1fr); gap: 16px; }
.poster-viewer::backdrop { background: #000; }
.poster-viewer-bar { display: flex; align-items: center; justify-content: space-between; gap: 20px; font-size: 14px; line-height: 1.4; }
.poster-viewer-close { min-height: 44px; padding: 10px 16px; border: 1px solid currentColor; background: none; color: inherit; font: inherit; cursor: pointer; }
.poster-viewer-close:focus-visible { outline: 2px solid #fff; outline-offset: 4px; }
.poster-viewer-stage { min-height: 0; display: flex; align-items: center; justify-content: center; }
.poster-viewer-stage img { display: block; width: auto; height: auto; max-width: 100%; max-height: 100%; object-fit: contain; }
@media (max-width: 600px) { .poster-viewer { padding: 12px; gap: 12px; } }
