/* PHOTOGRAPHY: a slide projector. One photograph at a time, as big as the screen allows, on black.
   Built 2026-12-03 from the rough at ~/mug5-co-review/preview/photography/projector.html. Cuts only, never a fade.
   The band along the top is kept clear for the logo and the menu, the strip along the bottom for the controls: nothing ever sits on a picture. */
body:has(.m5ph){overflow:hidden!important;background:#000}
html:has(.m5ph){overflow:hidden!important;overscroll-behavior:none}
body:has(.m5ph) .site-footer,body:has(.m5ph) .page-header,body:has(.m5ph) .entry-header{display:none!important}
body:has(.m5ph) .site-header{position:fixed!important;top:0!important;opacity:1!important;visibility:visible!important;transform:none!important}
.m5ph{display:none}
body.mug5p-on .m5ph{--top:112px;--bot:54px;display:block;position:fixed;inset:0;z-index:5;overflow:hidden;background:#000;color:#eceae4;font:600 11px/1 "IBM Plex Mono",ui-monospace,SFMono-Regular,Menlo,monospace;letter-spacing:.14em;text-transform:uppercase;-webkit-user-select:none;user-select:none;-webkit-tap-highlight-color:transparent;-webkit-font-smoothing:antialiased}
.m5ph *{box-sizing:border-box}
.m5ph :where(h1,p,button,i,em,span){margin:0;padding:0;border:0;background:none;font:inherit;letter-spacing:inherit;text-transform:inherit;color:inherit;max-width:none;text-shadow:none;font-style:normal;box-shadow:none}
.m5ph img{max-width:none;border-radius:0}
.m5ph-plain{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
.m5ph:not(.is-on) .m5ph-plain{position:static;width:auto;height:auto;clip-path:none;padding:140px 40px}.m5ph:not(.is-on) .m5ph-plain img{max-width:100%!important;height:auto}
.m5ph-gate{position:absolute;left:0;right:0;top:var(--top);bottom:var(--bot);display:grid;place-items:center;cursor:pointer}
/* the frame holds still; in Projector the picture eases in very slowly inside it */
.m5ph .m5ph-fr{display:block;overflow:hidden;border-radius:.9vmin;line-height:0}
.m5ph .m5ph-im{display:block;max-width:100vw;max-height:calc(100vh - var(--top) - var(--bot));max-height:calc(100dvh - var(--top) - var(--bot));width:auto;height:auto;visibility:hidden}
.m5ph .m5ph-im.on{visibility:visible}
.m5ph:not(.plain) .m5ph-im.on{animation:m5phpush 9s linear both}
@keyframes m5phpush{from{transform:scale(1)}to{transform:scale(1.06)}}
.m5ph.plain .m5ph-fr{border-radius:0}
/* the lamp with no slide in the gate: what shows for a moment before the first one */
.m5ph-lamp{position:absolute;left:50%;top:calc(var(--top) + (100vh - var(--top) - var(--bot))/2);height:min(calc(100vh - var(--top) - var(--bot)),56.25vw);aspect-ratio:16/9;transform:translate(-50%,-50%);background:#f4efe2;border-radius:.9vmin;display:none}
.m5ph-lamp.on{display:block}
/* the light falls off a little toward the corners, the way a lens throws it */
.m5ph-fall{position:absolute;left:0;right:0;top:var(--top);bottom:var(--bot);pointer-events:none;background:radial-gradient(ellipse at center,rgba(0,0,0,0) 62%,rgba(0,0,0,.28) 100%)}
.m5ph.plain .m5ph-fall,.m5ph.plain .m5ph-snd{display:none}
.m5ph-read{position:absolute;left:0;right:0;bottom:0;height:var(--bot);display:flex;align-items:center;justify-content:center;gap:20px;pointer-events:none;white-space:nowrap}
.m5ph .m5ph-read em{opacity:.55}
/* the photograph's title: it never runs under the buttons; a long one is cut with dots on a wide screen and wraps to two lines on a phone */
.m5ph-no{overflow:hidden;text-overflow:ellipsis;max-width:calc(100vw - 600px)}
.m5ph-btns{position:absolute;right:16px;bottom:0;height:var(--bot);display:flex;align-items:center;gap:6px;z-index:2}
.m5ph .m5ph-btns button{font-size:10px;letter-spacing:.06em;color:#f2f2ee;background:rgba(10,10,10,.82);border:1px solid rgba(242,242,238,.35);border-radius:2px;padding:9px 10px;cursor:pointer;white-space:nowrap;line-height:1}
.m5ph .m5ph-btns button:hover{border-color:#f2f2ee}
.m5ph .m5ph-btns button.on{background:#f2f2ee;color:#0a0a0a}
.m5ph-seg{display:flex}.m5ph .m5ph-seg button{border-radius:0}.m5ph .m5ph-seg button:first-child{border-radius:2px 0 0 2px}.m5ph .m5ph-seg button:last-child{border-radius:0 2px 2px 0;border-left:0}
.m5ph .m5ph-btns i{opacity:.6}
@media (prefers-reduced-motion:reduce){.m5ph:not(.plain) .m5ph-im.on{animation:none!important}}
/* a phone, or any narrow window: the readout sits above the buttons */
@media (max-width:760px){
 body.mug5p-on .m5ph{--top:86px;--bot:98px}
 .m5ph-read{bottom:50px;height:44px;padding:0 14px;white-space:normal;text-align:center;line-height:1.35}.m5ph-no{max-width:none;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical}.m5ph-ct{display:none}.m5ph-btns{left:12px;right:12px;height:50px;justify-content:center}.m5ph .m5ph-btns i{display:none}
}
/* an upright phone and a wide photograph. Projector: the frame takes the full width and most of the height, and the picture travels slowly sideways through it,
   so it is big and all of it is seen in time. Plain: the whole photograph, still. (Upright photographs simply fit.) */
@media (max-width:760px) and (orientation:portrait){
 .m5ph:not(.plain).is-wide .m5ph-fr{width:100vw;height:min(calc(100dvh - var(--top) - var(--bot)),132vw);border-radius:0}
 .m5ph:not(.plain).is-wide .m5ph-im{width:100%;height:100%;max-width:none;max-height:none;object-fit:cover;object-position:22% 50%}
 .m5ph:not(.plain).is-wide .m5ph-im.on{animation:m5phpan 9s linear both}
 .m5ph:not(.plain).is-wide .m5ph-fall{display:none}
}
@keyframes m5phpan{from{object-position:22% 50%}to{object-position:78% 50%}}
/* the music bar becomes a small chip in the top corner, the same way it does on the Video page, so the bottom strip stays free */
body:has(.m5ph):not(.m5n-open) .m5p{left:auto!important;right:clamp(118px,9.5vw,172px);top:34px;bottom:auto!important;width:auto!important;max-width:min(300px,calc(100vw - 290px));transform:none!important;transition:opacity .35s,translate .35s!important}
body:has(.m5ph):not(.m5n-open) .m5p:not(.is-shown){opacity:0;pointer-events:none}
body:has(.m5ph):not(.m5n-open) .m5p .m5p-np{grid-template-columns:auto auto minmax(0,1fr);gap:9px;padding:5px 16px 5px 5px;border-radius:999px;box-shadow:0 0 0 1px rgba(255,255,255,.16),0 10px 30px rgba(0,0,0,.4)}
body:has(.m5ph):not(.m5n-open) .m5p .m5p-skip,body:has(.m5ph):not(.m5n-open) .m5p .m5p-time,body:has(.m5ph):not(.m5n-open) .m5p .m5p-vol,body:has(.m5ph):not(.m5n-open) .m5p .m5p-q,body:has(.m5ph):not(.m5n-open) .m5p .m5p-bar,body:has(.m5ph):not(.m5n-open) .m5p .m5p-up{display:none!important}
body:has(.m5ph):not(.m5n-open) .m5p .m5p-pp{width:38px;height:38px}
body:has(.m5ph):not(.m5n-open) .m5p .m5p-pp svg{width:15px;height:15px}
body:has(.m5ph):not(.m5n-open) .m5p .m5p-cover{width:38px;height:38px;border-radius:50%}
body:has(.m5ph):not(.m5n-open) .m5p .m5p-title span{font-size:13.5px;letter-spacing:-.02em}
body:has(.m5ph):not(.m5n-open) .m5p .m5p-title em{font-size:11px;margin-top:1px}
/* the hand-off: a film takes the sound, the chip slips up and out; it drops back in when the music returns */
body:has(.m5ph):not(.m5n-open) .m5p.is-guest{opacity:0;translate:0 -14px;pointer-events:none}
@media (max-width:900px){body:has(.m5ph):not(.m5n-open) .m5p{right:70px;top:26px;max-width:none}body:has(.m5ph):not(.m5n-open) .m5p .m5p-meta{display:none}body:has(.m5ph):not(.m5n-open) .m5p .m5p-np{grid-template-columns:auto auto;padding:4px}}
