/* Styles the Film/Gallery reader with rounded photo cards and composited photo transitions. Video controls and the explicit below-film comparison keep their existing layout. */
.player-gallery-admin[hidden]{display:none!important}.player-gallery-admin{min-width:32px;flex:none;pointer-events:auto}.player-top:has(.player-gallery-admin:not([hidden])){gap:8px}
/* The admin clip tool's switch (work-player-clip.js): hidden for everyone but a signed-in admin. */
.player-clip-admin[hidden]{display:none!important}.player-clip-admin{min-width:32px;flex:none;pointer-events:auto}.player-top:has(.player-clip-admin:not([hidden])){gap:8px}
.player-top{justify-content:space-between;align-items:center;gap:20px}.player-top>.player-close{margin-left:auto}
.player-sections{display:flex;align-items:center;gap:22px;pointer-events:auto}
.player-section,.player-gallery-jump,.photo-back-film{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:44px;padding:10px 0 9px;background:transparent;border:0;border-bottom:1px solid transparent;color:#a9a69e;font:600 11px/1 Manrope,Arial,sans-serif;letter-spacing:.08em;cursor:pointer}
.player-section svg,.player-gallery-jump svg{width:15px;height:15px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linejoin:round;stroke-linecap:round}
.player-section[aria-pressed=true]{color:#ffcb5c;border-bottom-color:#ffcb5c}.player-gallery-total{font-size:10px;letter-spacing:0;color:#5c95ff}
.player-gallery-jump{color:#ffcb5c;pointer-events:auto;text-shadow:0 1px 5px #000}.player-gallery-jump>span:last-child{font-size:16px}
.player-section:focus-visible,.player-gallery-jump:focus-visible,.player-gallery button:focus-visible,.photo-lightbox button:focus-visible,.gallery-close:focus-visible{outline:2px solid #5c95ff;outline-offset:3px}
.player-sections[hidden],.player-gallery-jump[hidden],.gallery-close[hidden],.player-gallery[hidden],.player-gallery [hidden],.photo-lightbox[hidden]{display:none!important}
.work-player[data-gallery-layout=below][data-has-photos] .player-film:not(:fullscreen){height:min(85%,max(420px,56.25vw))}
.player-gallery{position:relative;display:flex;flex-direction:column;gap:22px;min-height:100%;width:min(1400px,calc(100% - var(--work-edge) * 2));margin-inline:auto;padding:42px 0 max(70px,env(safe-area-inset-bottom));color:#efede7;background:#080808}
.work-player[data-gallery-layout=below] .player-gallery>.photo-heading{padding-right:62px}
.gallery-close{position:absolute;z-index:3;top:max(22px,env(safe-area-inset-top));right:max(var(--work-edge),env(safe-area-inset-right));width:48px;height:48px;background:#080808d9;border-radius:50%;opacity:var(--player-exit-alpha);pointer-events:auto}
.gallery-close svg,.photo-overview svg{width:25px;height:25px;fill:none;stroke:currentColor;stroke-width:2.3;stroke-linecap:square}
.work-player.is-film-only .gallery-close{visibility:hidden}
.work-player[data-gallery-layout=tabs] .player-plane{overflow:hidden}
.work-player[data-gallery-layout=tabs] .player-gallery{position:absolute;z-index:1;inset:100px max(var(--work-edge),env(safe-area-inset-right)) max(22px,env(safe-area-inset-bottom)) max(var(--work-edge),env(safe-area-inset-left));width:auto;min-height:0;max-width:1400px;padding:0}
.work-player[data-gallery-layout=tabs] .photo-back-film{display:none}
.work-player[data-gallery-layout=tabs][data-player-panel=gallery] :is(.player-screen,.player-bottom){visibility:hidden;pointer-events:none}
.work-player[data-gallery-layout=tabs][data-player-panel=gallery] .player-shell::before,.work-player[data-gallery-layout=tabs][data-player-panel=gallery] .player-shell::after{display:none}
.photo-heading{display:flex;flex:none;align-items:flex-end;justify-content:space-between;gap:20px;padding:0 0 20px;border-bottom:1px solid #ffcb5c28}
.photo-heading>div:first-child{min-width:0}.photo-kicker{display:block;margin-bottom:7px;color:#aaa69d;font:600 9px/1 Manrope,Arial,sans-serif;letter-spacing:.16em;text-transform:uppercase}
.photo-title,.photo-view-title{margin:0;color:#ffcb5c;font:800 clamp(20px,2.1vw,34px)/1.05 Syne,Arial,sans-serif;letter-spacing:-.025em;text-transform:uppercase;overflow-wrap:anywhere}
.photo-title:focus{outline:none}.photo-heading-end{display:flex;align-items:center;gap:22px;flex:none}.photo-count,.photo-view-count{color:#ffcb5c;font:600 11px/1 Manrope,Arial,sans-serif;font-variant-numeric:tabular-nums;white-space:nowrap}
.photo-back-film{min-width:52px;color:#ffcb5c;font-size:10px;border-bottom-color:#ffcb5c40}
.photo-grid-scroll{min-height:0}.work-player[data-gallery-layout=tabs] .photo-grid-scroll{overflow:auto;overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:#555047 #080808;padding:0 4px 30px 0}
.photo-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}
.player-gallery .photo-tile{position:relative;display:block;width:100%;aspect-ratio:3/2;height:auto;overflow:visible;border:0;border-radius:18px;background:transparent;color:#ffcb5c;padding:0;cursor:pointer;z-index:1}
.player-gallery .photo-tile.is-card-popped{z-index:5}
.player-gallery .photo-tile-surface{display:block;position:relative;inset:auto;width:100%;height:100%;border:1px solid #ffffff20;border-radius:inherit;overflow:hidden;background:#111}
.photo-tile.is-photo-ready .photo-tile-surface{animation:photo-tile-arrive .5s cubic-bezier(.16,.75,.22,1) both}
@keyframes photo-tile-arrive{from{opacity:0;transform:translateY(18px) scale(.96)}to{opacity:1;transform:none}}
.photo-tile img{width:100%;height:100%;display:block;object-fit:cover;transition:opacity .18s ease;opacity:.92}
.photo-tile-label{position:absolute;inset:auto 0 0;display:flex;justify-content:space-between;padding:20px 13px 11px;background:linear-gradient(transparent,#0009);font:600 10px/1 Manrope,Arial,sans-serif;letter-spacing:.06em}.photo-tile-label>span{font-size:18px;line-height:.6}
.photo-more,.photo-retry{display:block;flex:none;min-height:44px;margin:25px auto 0;padding:10px 4px;background:none;border:0;border-bottom:1px solid #ffcb5c66;color:#ffcb5c;font:600 11px/1.4 Manrope,Arial,sans-serif;cursor:pointer}.photo-status{margin:0;color:#aaa69d;font:400 13px/1.5 Manrope,Arial,sans-serif}
.photo-lightbox{position:absolute;z-index:4;inset:0;display:flex;flex-direction:column;gap:20px;padding:max(22px,env(safe-area-inset-top)) max(var(--work-edge),calc((100% - 1400px)/2),env(safe-area-inset-right),env(safe-area-inset-left)) max(22px,env(safe-area-inset-bottom));background:#080808;color:#efede7;overscroll-behavior:contain;opacity:var(--player-exit-alpha)}
.photo-lightbox>.photo-heading{align-items:center}.photo-overview{display:grid;place-items:center;width:48px;height:48px;border:0;background:none;color:#ffcb5c;cursor:pointer}
.photo-viewer{display:flex;flex:1;flex-direction:column;gap:18px;min-height:0}.photo-stage{position:relative;display:flex;align-items:center;justify-content:center;flex:1;min-height:0;touch-action:pan-y}
.photo-image{position:relative;width:100%;height:100%;display:flex;align-items:center;justify-content:center;padding-inline:58px}.photo-image img{position:absolute;inset:0;display:block;width:100%;height:100%;padding-inline:58px;object-fit:contain;max-width:100%;max-height:100%;border-radius:18px}
.photo-lightbox.is-photo-closing{pointer-events:none}
.photo-image-status{position:absolute;left:60px;right:60px;top:50%;text-align:center;color:#ccc9c0;font:400 12px/1.5 Manrope,Arial,sans-serif;pointer-events:none;text-shadow:0 1px 5px #000}
.photo-step{position:absolute;top:50%;transform:translateY(-50%);width:44px;height:44px;border:1px solid #ffcb5c66;border-radius:50%;background:#080808d9;color:#ffcb5c;font:400 21px/1 Manrope,Arial,sans-serif;cursor:pointer}.photo-previous{left:0}.photo-next{right:0}
.photo-strip{display:flex;flex:none;justify-content:safe center;gap:8px;overflow:auto;max-width:100%;padding:3px 2px;scrollbar-width:thin;scrollbar-color:#555047 #080808}
.photo-strip-item{flex:0 0 76px;aspect-ratio:3/2;display:block;padding:0;border:1px solid transparent;border-radius:8px;overflow:hidden;background:#181818;cursor:pointer;opacity:.5}.photo-strip-surface{display:block;width:100%;height:100%}.photo-strip-item img{width:100%;height:100%;object-fit:cover;display:block}.photo-strip-item[aria-current=true]{border-color:#ffcb5c;opacity:1;box-shadow:0 0 0 1px #ffcb5c}
.player-film:fullscreen :is(.player-gallery-jump,.player-sections){display:none}.work-player.is-moving :is(.player-gallery,.photo-lightbox,.gallery-close){pointer-events:none}
@media(hover:hover){.player-section:hover,.player-gallery-jump:hover,.photo-back-film:hover,.photo-overview:hover{color:#ffe4a3}.photo-tile:hover{border-color:#ffcb5c70}.photo-tile:hover img,.photo-strip-item:hover{opacity:1}.photo-step:hover{background:#ffcb5c;color:#080808}}
@media(max-width:650px){
 .player-sections{gap:17px}.player-section,.player-gallery-jump{font-size:10px;gap:6px}.player-gallery{width:calc(100% - 28px);padding-top:30px;gap:15px}.gallery-close{top:max(10px,env(safe-area-inset-top));right:max(12px,env(safe-area-inset-right));width:44px;height:44px}
 .work-player[data-gallery-layout=tabs] .player-gallery{inset:85px 14px max(18px,env(safe-area-inset-bottom));width:auto}.work-player[data-gallery-layout=below] .player-gallery>.photo-heading{padding-right:42px}
 .photo-heading{gap:12px;padding-bottom:15px;align-items:center}.photo-title,.photo-view-title{font-size:22px}.photo-heading-end{gap:10px}.photo-kicker{font-size:8px}.photo-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}.photo-tile-label{padding:18px 9px 9px;font-size:9px}
 .photo-lightbox{padding:max(14px,env(safe-area-inset-top)) 14px max(18px,env(safe-area-inset-bottom));gap:15px}.photo-image{padding:0}.photo-step{top:auto;bottom:-56px;transform:none}.photo-viewer{gap:14px}.photo-strip{justify-content:flex-start;max-width:calc(100% - 110px);margin-inline:auto;gap:6px}.photo-strip-item{flex-basis:54px}.photo-image-status{left:12px;right:12px}
}
@media(max-height:600px) and (min-width:651px){.work-player[data-gallery-layout=tabs] .player-gallery{top:76px;bottom:12px}.player-gallery,.photo-lightbox{gap:12px}.photo-heading{padding-bottom:12px}.photo-title,.photo-view-title{font-size:22px}.photo-strip-item{flex-basis:54px}.photo-viewer{gap:10px}.photo-lightbox{padding-block:10px}.photo-lightbox .photo-kicker{display:none}}
@media(max-width:650px){.photo-image img{padding-inline:0}.player-gallery .photo-tile{border-radius:13px}}
@media(prefers-reduced-motion:reduce){.photo-tile img{transition:none}.photo-tile.is-photo-ready .photo-tile-surface{animation:none}}
