/* Owns the native modal plane and reversible chrome fades. Loading feedback and Close stay available during a slow film start without changing the Film/Gallery player design. */
.work-player {
  --player-accent: var(--work-gold, #ffcb5c);
  --player-room: #080808;
  --player-enter-y: 100vh;
  --player-exit-alpha: 1;
  position: fixed; inset: 0; width: 100%; height: 100%; max-width: none; max-height: none;
  margin: 0; padding: 0; border: 0; background: transparent; color: #f4f1ec; overflow: hidden;
}
.work-player::backdrop { background: transparent; }
html:has(#work-player[open][data-basic-transition]) { scrollbar-gutter: stable; overflow: hidden; }
.work-player:fullscreen { width: 100%; height: 100%; background: var(--player-room); }
.player-plane {
  position: absolute; inset: 0; z-index: 1; overflow-x: hidden; overflow-y: auto;
  overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: #555047 #080808;
  background: var(--player-room); transform: translateY(var(--player-enter-y));
}
.player-film { position: relative; height: 100%; min-height: 0; }
.player-film:fullscreen { width: 100%; height: 100%; inset: 0; background:var(--player-room); }
.player-film:fullscreen :is(.player-screen,.player-shell) { max-width: none; }
.player-film:fullscreen .player-gallery-jump { display:none; }
.work-player.is-moving .player-plane { overflow-y:hidden; }
.work-player.is-moving :is(.player-loading,.player-start,#player-error) { visibility: hidden; }
.work-player[data-player-chrome="waiting"] :is(.player-shell,.player-view-toggle,.player-start,.player-loading,#player-error,.player-gallery,.photo-lightbox,.gallery-close) { visibility: hidden; }
.work-player[data-basic-transition][data-player-chrome="waiting"] #player-loading,
.work-player[data-basic-transition][data-player-chrome="waiting"] .player-close { visibility:visible; }
.player-basic-shade { position:absolute;inset:0;z-index:0;background:#080808;opacity:0;pointer-events:none; }
.player-screen {
  position: absolute; inset: 0; max-width: var(--site-max-width); margin-inline: auto;
  overflow: hidden; background: var(--player-room);
}
#work-video { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: contain; }
.player-poster { position: absolute; inset: 0; background: var(--player-room); pointer-events: none; }
.player-poster img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.player-poster[hidden],.player-poster img[hidden] { display: none; }
.work-player:is([data-player-state="poster"],[data-player-state="starting"],[data-player-state="direct"]) :is(.player-view-toggle,.player-transport) { display: none; }
.player-view-toggle {
  position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%; padding: 0;
  border: 0; outline: 0; background: transparent; cursor: pointer; touch-action: manipulation; -webkit-tap-highlight-color: transparent;
}
.player-shell {
  position: absolute; inset: 0; z-index: 2; isolation: isolate;
  max-width: var(--site-max-width); margin-inline: auto; pointer-events: none;
  opacity: var(--player-exit-alpha);
}
.work-player :is(.player-shell,.player-start,.player-loading,#player-error,.gallery-close) { transition:opacity 240ms cubic-bezier(.2,.65,.3,1),visibility 0s; }
.work-player.is-film-only :is(.player-shell,.player-start,.player-loading,#player-error,.gallery-close) { visibility:hidden; opacity:0; pointer-events:none; transition:opacity 280ms ease-in-out,visibility 0s 280ms; }
.work-player :is(.player-credit-rail,.player-transport,.player-top) {transition:translate 260ms cubic-bezier(.2,.7,.3,1);}
.is-film-only :is(.player-credit-rail,.player-transport) {translate:0 5px;}
.is-film-only .player-top {translate:0 -4px;}
.work-player.is-film-only,.work-player.is-film-only .player-view-toggle { cursor:none; }
.work-player.is-film-only[data-player-state="poster"] .player-view-toggle {display:block;}
.work-player.is-moving .player-start { visibility: hidden; }
.work-player[data-player-state="starting"] .player-start { opacity: 0; pointer-events: none; }
.player-loading,.player-start,#player-error { position: absolute; z-index: 3; }
.player-loading,.player-start { left: 50%; top: 50%; transform: translate(-50%,-50%); }
.player-loading { padding: 12px 16px; border-radius: 24px; background: #111e; color: #bbb; font-size: 11px; pointer-events: none; }
.work-player .player-start { position:absolute;touch-action:manipulation; }
#player-error { inset: auto 16px 12%; padding: 14px; text-align: center; background: #181818; font-size: 13px; }
.player-start[hidden],.player-loading[hidden],#player-error[hidden],.player-optical-canvas[hidden],
.player-view-toggle[hidden],.player-transport[hidden] { display: none; }
.player-optical-canvas { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 0; }
.work-player.has-player-mesh .player-plane { background: transparent; transform: none; }
.work-player.has-player-mesh .player-screen,.work-surface.is-transition-hidden { visibility: hidden; }
.work-player.is-moving :is(.player-view-toggle,.player-transport,.player-shell button,.player-shell input) { pointer-events: none; }
.work-player[data-basic-transition].is-moving .player-close { pointer-events:auto; }
.dialog-open { overflow: hidden; }
.dialog-open .work-edit-tools { visibility: hidden; }
.dialog-open .work-editor { visibility: hidden; }
.work-surface.is-frozen { position: fixed; inset: 0; height: 100%; overflow: hidden; z-index: 25; background: #101010; }
.work-surface.is-frozen > .work-surface-frame { position: absolute; inset: 0 var(--player-scroll-gutter,0px) 0 0; overflow: hidden; background: #101010; }
.work-surface.is-frozen .work-main { position: absolute; top: 0; left: 0; width: 100%; }
@media (prefers-reduced-motion: reduce) { .work-player:is(.is-film-only,:not(.is-film-only)) :is(.player-shell,.player-start,.player-loading,#player-error,.gallery-close,.player-credit-rail,.player-transport,.player-top){transition:none;translate:none} }
