/* The museum: its own black room (scoped, so it can sit next to the engraved rooms) */
[data-scene="musee"] { --ease: cubic-bezier(.16, 1, .3, 1); }
.musee-scroll { position: relative; height: 2000vh; }   /* long: the walk from one work to the next is slow */
[data-scene="musee"] .stage { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; background: #050505; }
[data-scene="musee"] .scene3d { position: absolute; inset: 0; width: 100%; height: 100%; display: block; mix-blend-mode: normal; }
[data-scene="musee"] .stage.hover .scene3d { cursor: pointer; }
[data-scene="musee"] .grain { position: absolute; inset: 0; z-index: 3; pointer-events: none; background: url(../assets/grain.png); opacity: .22; }

/* Phone: the gallery (js/musee-mobile.js) takes the place of the 3D wall: the works one under the other, the room's black kept */
.musee-galerie { display: none; }
@media (max-width: 760px), (max-width: 1024px) and (orientation: portrait) {
  #musee.musee-scroll { height: auto; background: #050505; color: #f2f2f0; }
  [data-scene="musee"] .stage { display: none; }
  .musee-galerie { display: block; max-width: 620px; margin-inline: auto; padding: 0 24px 140px; font-family: var(--f-text, "Barlow Condensed", "Arial Narrow", sans-serif); }
  .mw-intro, .mw { position: relative; padding-top: 110px; }
  .mw { margin-top: 70px; }
  /* a ceiling light above each work: a soft cone and its lamp */
  .mw-intro::before, .mw::before { content: ""; position: absolute; left: 50%; top: 0; width: 120%; height: 420px; translate: -50% 0; pointer-events: none;
    background: radial-gradient(ellipse 45% 100% at 50% 0, rgba(255,255,255,.15), transparent 70%); }
  .mw-intro::after, .mw::after { content: ""; position: absolute; left: 50%; top: 0; width: 62px; height: 26px; translate: -50% -50%; border-radius: 50%;
    background: #f4f4f2; box-shadow: 0 0 28px rgba(255,255,255,.7); }
  .mw-label, .mw-o, .mw-state { font-size: 11px; letter-spacing: .3em; text-transform: uppercase; color: #9a9a96; margin: 0; }
  .mw-intro h2 { margin: 10px 0 0; font-weight: 600; font-size: 40px; line-height: .95; text-transform: uppercase; overflow-wrap: break-word; }
  .mw-lead { margin: 14px 0 0; font-size: 17px; line-height: 1.4; max-width: 30ch; }
  .mw-hint { margin: 10px 0 0; font-size: 15px; color: #9a9a96; }
  .mw-t { margin: 0 0 16px; font-weight: 600; font-size: 26px; line-height: 1; text-transform: uppercase; }
  .mw-art { all: unset; display: block; position: relative; width: 100%; cursor: pointer; -webkit-tap-highlight-color: transparent; }
  .mw-art:focus-visible { outline: 1px solid #f2f2f0; outline-offset: 6px; }
  .mw-art img { display: block; width: 100%; height: auto; box-shadow: 0 0 0 3px #f2f2f0, 0 0 40px rgba(255,255,255,.22); }
  .mw-art .mw-src { position: absolute; inset: 0; height: 100%; object-fit: cover; opacity: 0; transition: opacity .5s; }
  .mw.is-src .mw-src { opacity: 1; }
  .mw-o { margin-top: 14px; letter-spacing: .12em; font-size: 13px; }
  .mw-d { margin: 6px 0 0; font-size: 17px; line-height: 1.35; }
  .mw-state { display: flex; gap: 14px; margin-top: 12px; }
  .mw-state b { font-weight: 400; }
  .mw:not(.is-src) .mw-state b:first-child, .mw.is-src .mw-state b:last-child { color: #f2f2f0; text-decoration: underline; text-underline-offset: .4em; }
  @media (prefers-reduced-motion: reduce) { .mw-art .mw-src { transition: none; } }
}
