/* ==========================================================================
   Portfolio: Kapitel des Tages, Bilder in ruhigen Spalten, Großansicht
   ========================================================================== */

.pf-chapter {
  width: min(100% - 2 * var(--gutter), var(--wide));
  margin: 0 auto;
  padding: var(--space-m) 0;
  border-top: 1px solid var(--hairline);
}
.pf-chapter__head { display: grid; gap: .8rem var(--gutter); margin-bottom: var(--space-s); }
.pf-chapter__head h2 { font-size: var(--step-3); line-height: 1.02; }
.pf-chapter__head p { max-width: 34rem; color: var(--ink-soft); }
@media (min-width: 56em) { .pf-chapter__head { grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); align-items: end; } }

.pf-grid { columns: 3 16rem; column-gap: clamp(.6rem, 1.6vw, 1.2rem); }
.pf-grid figure { margin: 0 0 clamp(.6rem, 1.6vw, 1.2rem); break-inside: avoid; }
.pf-open { display: block; width: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; }
.pf-open img { display: block; width: 100%; height: auto; transition: opacity .3s var(--ease); }
.pf-open:hover img, .pf-open:focus-visible img { opacity: .86; }
.pf-open:focus-visible { outline: 1px solid var(--gold); outline-offset: 3px; }

/* Großansicht */
.pf-view {
  width: 100vw; height: 100vh; max-width: none; max-height: none;
  margin: 0; padding: 0; border: 0;
  background: rgba(4, 4, 8, .96); color: var(--ink);
}
.pf-view::backdrop { background: rgba(4, 4, 8, .96); }
.pf-view__stage { position: absolute; inset: 3.8rem 1rem 4rem; display: flex; align-items: center; justify-content: center; }
.pf-view__stage img { display: block; max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; }
.pf-view__bar { position: absolute; left: 0; right: 0; bottom: 0; display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: .9rem 1rem; }
.pf-view__count { font-size: var(--step--1); color: var(--ink-quiet); font-variant-numeric: tabular-nums; }
.pf-view button {
  font: var(--caps); letter-spacing: var(--caps-track); text-transform: uppercase;
  color: var(--ink); background: none; border: 1px solid var(--hairline); padding: .7rem .9rem; cursor: pointer;
}
.pf-view button:hover, .pf-view button:focus-visible { border-color: var(--gold-soft); outline: none; }
.pf-view__close { position: absolute; top: .8rem; right: 1rem; }
