/* Photographic table: keep the whole scene and its scale references in view. */
#tafel { --len: 540svh; background: #10120d; }
#tafel .seq-stage { background: #10120d; }
#tafel .seq-poster { object-fit: contain; }
#tafel .seq-vignette { background: linear-gradient(180deg,rgba(10,12,7,.65),transparent 27%,transparent 74%,rgba(10,12,7,.8)); }
.tafel-overlay { padding: 30px var(--gutter); }
.tafel-top { max-width: 650px; }
.tafel-heading { font-family: var(--serif); font-size: clamp(2rem,3.6vw,3.6rem); font-weight: 500; line-height: 1.1; margin: 8px 0 10px; text-wrap: balance; }
.tafel-intro { color: var(--cream-2); font-size: .95rem; }
.tafel-bottom { margin-top: 26px; }
.tafel-dish { display: block; font-family: var(--serif); font-size: clamp(1.3rem,2vw,1.9rem); }
.tafel-count { font-size: .75rem; text-transform: uppercase; letter-spacing: .16em; color: var(--cream-2); }
.tafel-count b { color: var(--gold-2); font-size: 1.5rem; font-variant-numeric: tabular-nums; }
.tafel-chapters { display: flex; gap: 24px; color: var(--cream-2); font-size: .68rem; letter-spacing: .15em; text-transform: uppercase; }
.tafel-chapters .is-current { color: var(--gold-2); }
.tafel-progress { height: 2px; background: #ffffff24; margin-top: 12px; }
.tafel-progress i { display: block; height: 100%; background: var(--gold); transform: scaleX(0); transform-origin: left; }
.tafel-skip { display: inline-block; color: var(--gold-2); text-decoration: underline; text-underline-offset: 5px; font-size: .8rem; padding: 12px 0; }
.tafel-skip:focus-visible { outline: 2px solid var(--gold); outline-offset: 4px; }
.tafel-disclaimer { color: var(--muted); font-size: .72rem; text-align: center; margin-top: 20px; }
.motion #tafel .tafel-overlay { position: absolute; inset: 0; z-index: 3; pointer-events: none; padding: calc(var(--header-h) + 20px) var(--edge) 25px; display: flex; flex-direction: column; justify-content: space-between; }
.motion #tafel .tafel-top { text-shadow: 0 2px 18px #000; }
.motion #tafel .tafel-heading { max-width: 620px; }
.motion #tafel .tafel-intro { transition: opacity .35s; }
.motion #tafel .tafel-intro.is-past { opacity: 0; }
.motion #tafel .tafel-bottom { text-shadow: 0 2px 10px #000; }
.motion #tafel .tafel-bottom-line { display:flex; justify-content:space-between; align-items:end; gap:20px; }
.motion #tafel .tafel-chapters { margin-top: 15px; }
.motion #tafel .tafel-skip { pointer-events:auto; }
.motion #tafel .tafel-disclaimer { position:absolute; left:0; right:0; bottom:0; margin:0; font-size:.6rem; }
#tafel.tafel-static { height:auto; }
#tafel.tafel-static .seq-stage { position:relative; height:auto; }
#tafel.tafel-static canvas, #tafel.tafel-static .seq-vignette { display:none; }
#tafel.tafel-static .seq-poster { position:relative; height:auto; opacity:1; }
#tafel.tafel-static .tafel-overlay { position:relative; padding:30px var(--gutter); }
#tafel.tafel-static .tafel-chapters, #tafel.tafel-static .tafel-progress, #tafel.tafel-static .tafel-count,
html:not(.motion) .tafel-chapters, html:not(.motion) .tafel-progress, html:not(.motion) .tafel-count { display:none; }
.gallery { grid-template-columns:repeat(4,minmax(0,1fr)); grid-auto-rows:auto; }
.gallery .g1 { grid-column:1/-1; grid-row:auto; }
.gallery .g2,.gallery .g3,.gallery .g4,.gallery .g5 { grid-column:span 1; grid-row:auto; }
.gallery img { height:auto; aspect-ratio:3/2; object-fit:cover; transition:scale 1.2s var(--ease); }
.gallery .g1 img { aspect-ratio:1672/941; }
.gallery figure:hover img { transform:none; scale:1.025; }
.gallery figure { border-radius:10px; }
.gallery figcaption { inset:auto 0 0; padding:35px 14px 12px; background:linear-gradient(transparent,#000b); }
.gallery-note { margin-top:18px; color:var(--muted); font-size:.78rem; }
@media(max-width:900px) {
 .motion #tafel .tafel-overlay { padding:calc(var(--header-h) + 16px) 20px 24px; }
 .tafel-heading { font-size:clamp(1.7rem,6.4vw,2.6rem); }
 .tafel-chapters { gap:14px; font-size:.58rem; letter-spacing:.06em; }
 .tafel-intro { font-size:.8rem; max-width:30ch; }
 .tafel-dish { font-size:1.4rem; }
 .tafel-count { font-size:.62rem; }
 .tafel-count b { font-size:1.25rem; }
 .gallery { grid-template-columns:repeat(2,minmax(0,1fr)); grid-auto-rows:auto; }
 .gallery .g1 { grid-column:1/-1; }
 .gallery .g2,.gallery .g3,.gallery .g4,.gallery .g5 { grid-column:span 1; grid-row:auto; }
}
@media(max-height:500px) and (min-aspect-ratio:4/5) {
 .motion #tafel .tafel-overlay { padding:72px 24px 16px; }
 .tafel-heading { font-size:1.7rem; max-width:440px; }
 .tafel-intro,.tafel-chapters,.tafel-disclaimer { display:none; }
 .tafel-dish { font-size:1.1rem; }
}
