/* CLOUDFLARE VERSION of marcussivyer.com. NOT for Squarespace (the Squarespace code is marcussivyer-site.html). */

  html.mv-loading, html.mv-loading body { background: #fff !important; }
  html.mv-loading body > *:not(#mv) { visibility: hidden !important; }


  body.mv-on #header, body.mv-on header.header, body.mv-on #footer-sections,
  body.mv-on footer, body.mv-on main#page, body.mv-on main { display: none !important; }
  body.mv-on { background: #fff !important; overflow: hidden; }

  #mv, #mv * { box-sizing: border-box; margin: 0; padding: 0; }
  /* no blue selection highlight from fast clicking; INFO text stays copyable */
  #mv { -webkit-user-select: none; user-select: none; -webkit-tap-highlight-color: transparent; }
  /* no double-tap zoom when tapping quickly through photos (pinch zoom still works) */
  html, body, #mv, #mv * { touch-action: manipulation; }
  #mv .mv-infotext, #mv .mv-infotext * { -webkit-user-select: text; user-select: text; }
  #mv img { -webkit-user-drag: none; }
  #mv { position: fixed; inset: 0; background: var(--bg, #fff); color: #000; z-index: 99999;
        font-family: 'Montserrat', 'Helvetica Neue', Helvetica, Arial, sans-serif; -webkit-font-smoothing: antialiased; }

  /* header: name | photo / video | counter | index | info, evenly spaced */
  #mv .mv-head { position: absolute; top: 0; left: 0; right: 0; height: 46px; z-index: 4;
        display: flex; align-items: center; justify-content: space-between; padding: 0 28px; }
  #mv .mv-logo, #mv .mv-modes, #mv .mv-count, #mv .mv-link { text-transform: uppercase; white-space: nowrap; }
  #mv .mv-logo  { font-weight: 700; font-size: 15px; letter-spacing: .04em; cursor: pointer; }
  #mv .mv-modes, #mv .mv-count { font-size: 11px; letter-spacing: .12em; }
  /* the name (click it) and the PHOTO / VIDEO / DOCUMENTARY titles share 13 letter effects; colours --c1..--c4 (LOGO_COLOURS) */
  #mv .fxable { position: relative; }
  #mv .fxable .lw { white-space: nowrap; }
  #mv .fxable i { display: inline-block; font-style: normal; }
  #mv .fxable .mv-cur { position: absolute; top: 50%; width: 2px; height: 1.05em; margin: -.55em 0 0 1px; background: var(--c1); }
  #mv .fxable.fx-wave i  { animation: mvWave .6s cubic-bezier(.3,0,.3,1) calc(var(--k) * 45ms) both; }
  #mv .fxable.fx-scatter i { animation: mvScatter 1.1s cubic-bezier(.5,0,.2,1); }
  #mv .fxable.fx-focus i { animation: mvFocus 1.1s cubic-bezier(.2,.7,.2,1); }
  #mv .fxable.fx-sweep i { animation: mvSweep .55s ease calc(var(--k) * 40ms) both; }
  #mv .fxable.fx-flip i   { animation: mvFlip .6s ease-in-out calc(var(--k) * 45ms) both; }
  #mv .fxable.fx-domino i { transform-origin: 100% 100%; animation: mvDomino 1.1s cubic-bezier(.5,0,.3,1) calc(var(--k) * 55ms) both; }
  #mv .fxable.fx-mirror i { animation: mvMirror .5s ease calc(var(--k) * 40ms) both; }
  @keyframes mvWave { 40% { transform: translateY(-7px); color: var(--c4); } }
  @keyframes mvScatter { 35%, 55% { transform: translate(var(--dx), var(--dy)) rotate(var(--r)); color: var(--c2); } }
  @keyframes mvFocus { 30% { filter: blur(3px); opacity: .55; transform: translateX(calc((var(--k) - 5.5) * 3px)); } }
  @keyframes mvSweep { 30% { color: var(--c2); } 60% { color: var(--c1); transform: skewX(-12deg); } }
  @keyframes mvFlip { 50% { transform: perspective(200px) rotateX(-180deg); color: var(--c1); } 100% { transform: perspective(200px) rotateX(-360deg); } }
  @keyframes mvDomino { 30%, 55% { transform: rotate(80deg); color: var(--c3); } }
  @keyframes mvMirror { 50% { transform: scaleX(-1); color: var(--c4); } }
  #mv .mv-count { font-variant-numeric: tabular-nums; min-width: 6em; text-align: center; }   /* fixed width: the top bar never shifts, even when the number is hidden */
  #mv button { background: none; border: 0; color: inherit; font: inherit; letter-spacing: inherit;
        text-transform: inherit; cursor: pointer; }
  #mv .mv-link { font-size: 11px; letter-spacing: .12em; }
  #mv .mv-modes button { color: #8a8a8a; }
  #mv .mv-modes button.on { color: #000; }
  /* where you are: bold (PHOTO or VIDEO, and INDEX / INFO when open) */
  #mv .mv-modes button.on, #mv .mv-link.on { font-weight: 700; }
  /* reserve the bold width so nothing in the header shifts */
  #mv .mv-modes button, #mv .mv-link { display: inline-flex; flex-direction: column; align-items: center; }
  #mv .mv-modes button::after, #mv .mv-link::after { content: attr(data-label); font-weight: 700; height: 0;
        overflow: hidden; visibility: hidden; pointer-events: none; }
  #mv .mv-modes .sep { color: #8a8a8a; margin: 0 .35em; }
  @media (hover: hover) { #mv button:hover { opacity: .5; } }   /* no sticky grey after tapping on phones */

  /* stage */
  #mv .mv-stage { position: absolute; top: 76px; bottom: 40px; left: 0; right: 0;   /* photos sit lower: space under the header, closer to the copyright line */
        display: flex; align-items: center; justify-content: center; pointer-events: none; }
  #mv .mv-stage img { max-width: calc(100vw - 56px); max-height: calc(100vh - 116px); max-height: calc(100dvh - 116px);
        width: auto; height: auto; display: block; user-select: none; -webkit-user-drag: none; }
  #mv .mv-stage .mv-vid { pointer-events: auto; aspect-ratio: 16 / 9;
        width: min(calc(100vw - 200px), calc((100vh - 116px) * 16 / 9)); background: #000; }
  #mv .mv-stage iframe { width: 100%; height: 100%; border: 0; display: block; }
  /* own film player: no YouTube look. Your cover image, then plain type controls under the film in the site's style */
  #mv .mv-vwrap { display: flex; flex-direction: column; gap: 14px; pointer-events: auto; }
  #mv .mv-vwrap .mv-vid { position: relative; overflow: hidden; width: min(calc(100vw - 200px), calc((100vh - 147px) * 16 / 9)); }
  #mv .mv-vframe { position: absolute; inset: 0; }
  /* the YouTube frame is taller than the box, so its title bar (top) and logo (bottom) sit outside it, cut off */
  #mv .mv-vframe iframe { position: absolute; left: calc((1 - var(--z, 1)) * 50%); top: -110px; width: calc(var(--z, 1) * 100%); height: calc(100% + 220px); border: 0; }
  #mv .mv-vframe video { transform: scale(var(--z, 1)); }   /* --z = zoom from VIDEOS: trims black bars off the sides */
  #mv .mv-vframe video { width: 100%; height: 100%; display: block; object-fit: contain; background: #000; }
  /* cover: black with the film title (or your own cover image). It also covers the film whenever it's paused,
     and stays a moment after you press play, so nothing of YouTube shows */
  #mv .mv-vcover { position: absolute; inset: 0; background: #000; color: #fff; pointer-events: none;
        display: flex; align-items: center; justify-content: center; transition: opacity .45s ease; }
  #mv .mv-stage .mv-vcover img { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; max-height: none;
        margin: 0; object-fit: cover; }
  #mv .mv-vcover span { position: relative; font-weight: 700; font-size: 11px; letter-spacing: .12em; text-transform: uppercase; }
  #mv .mv-vid.showing .mv-vcover { opacity: 0; }
  #mv .mv-vhit { position: absolute; inset: 0; cursor: pointer; }
  #mv .mv-vid.yt:not(.started) .mv-vhit { display: none; }   /* first tap goes to the film itself (needed on iPhone) */
  @media (max-width: 700px) { #mv .mv-vcover span { font-size: 8px; letter-spacing: .08em; } }
  #mv .mv-vbar { display: flex; align-items: center; gap: 24px; font-size: 11px; letter-spacing: .12em; text-transform: uppercase; }
  #mv .mv-vbar button { white-space: nowrap; }
  #mv .mv-vbar .mv-vpp { min-width: 3.6em; text-align: left; font-weight: 700; }
  #mv .mv-vtm { font-variant-numeric: tabular-nums; color: #8a8a8a; white-space: nowrap; }
  #mv .mv-vprog { flex: 1; height: 17px; position: relative; cursor: pointer; }
  #mv .mv-vprog::before, #mv .mv-vprog i { content: ''; position: absolute; left: 0; top: 8px; height: 1px; }
  #mv .mv-vprog::before { right: 0; background: #d6d6d6; }
  #mv .mv-vprog i { width: 0; background: #000; }
  /* siren: the white page flashes red / blue at the moments set in flashes */
  #mv.video.siren { animation: mvSiren .36s steps(1, end) infinite; }
  @keyframes mvSiren { 0% { background: #d0182b; } 50% { background: #1b3fd1; } }
  /* VIDEO landing: films as projects, laid out like DOCUMENTARY (cover + title); click one and it plays */
  #mv .mv-vgrid { position: absolute; inset: 0; overflow-y: auto; pointer-events: auto; padding: 0 28px 40px; }
  #mv .mv-vgrid .mv-doc-card .ph { aspect-ratio: 16 / 9; }
  #mv.vgrid .mv-prev, #mv.vgrid .mv-next { display: none; }
  /* loading: the word LOADING playing the same letter effects as the name, only if something takes a moment */
  #mv .mv-loader { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; pointer-events: none;
        z-index: 2; opacity: 0; transition: opacity .3s ease; }
  #mv .mv-loader.on { opacity: 1; }
  #mv .mv-loader > span { font-weight: 700; font-size: 11px; letter-spacing: .12em; text-transform: uppercase; }
  #mv .mv-stage .mv-vid.buffering .mv-vcover { opacity: 1; }
  #mv .mv-vid.buffering .mv-vcover .vt { visibility: hidden; }
  /* NEXT VIDEO under the film, centred like NEXT PROJECT in DOCUMENTARY */
  #mv .mv-vfoot { text-align: center; font-size: 11px; letter-spacing: .12em; text-transform: uppercase; padding-top: 6px; }
  #mv .mv-vwrap.has-next .mv-vid { width: min(calc(100vw - 200px), calc((100vh - 190px) * 16 / 9)); }
  @media (max-width: 700px) { #mv .mv-vfoot { font-size: 8px; letter-spacing: .08em; } #mv .mv-vwrap.has-next .mv-vid { width: calc(100vw - 14px); } }
  #mv .mv-vid:fullscreen { width: 100vw; height: 100vh; aspect-ratio: auto; }
  #mv .mv-vid:-webkit-full-screen { width: 100vw; height: 100vh; aspect-ratio: auto; }
  #mv .mv-prev, #mv .mv-next { position: absolute; top: 46px; bottom: 60px; width: 50%; z-index: 2; }
  #mv .mv-prev { left: 0; cursor: w-resize; }
  #mv .mv-next { right: 0; cursor: e-resize; }
  #mv.video .mv-prev, #mv.video .mv-next { width: 90px; }   /* keep the video player clickable */

  /* footer */
  #mv .mv-foot { position: absolute; bottom: 10px; left: 0; right: 0; text-align: center;
        text-transform: uppercase; color: #8a8a8a; font-size: 9px; letter-spacing: .1em; line-height: 1.6; }

  /* INDEX: see-through white layer over the current photo, square thumbnails */
  #mv .mv-panel.mv-p-index { background: var(--bg-a, rgba(255,255,255,.88)); padding: 36px 28px 80px; }
  #mv .mv-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 24px;
        max-width: 1100px; margin: 0 auto; }
  #mv .mv-grid img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; display: block; cursor: pointer; }
  #mv .mv-grid img:hover { opacity: .7; }
  /* VIDEO index: film titles centred, no numbers, trickling in like the DOCUMENTARY index */
  #mv .mv-vlist { min-height: 100%; display: flex; flex-direction: column; justify-content: center; }
  #mv .mv-vlist .ti + .ti { margin-top: 1.4em; }
  #mv .mv-vlist button { display: inline; }
  /* INDEX lists: the project / film you're on is bold, like the top bar shows your section */
  #mv .mv-vlist .ti.cur, #mv .mv-doc-index .ti.cur { font-weight: 700; }

  #mv.panel-open .mv-foot { display: none; }

  /* DOCUMENTARY: its own top-bar item on desktop; on phones it joins PHOTO / VIDEO / DOC */
  #mv .mv-modes .mob { display: none; }
  #mv.doc-open .mv-modes button.on { color: #8a8a8a; font-weight: 400; }
  #mv.doc-open .mv-modes button.mv-m-doc { color: #fff; font-weight: 700; }
  /* in DOCUMENTARY the whole site inverts: black page, white type */
  #mv.doc-open { background: #000; color: #fff; }
  #mv.doc-open .mv-panel.mv-p-doc { background: #000; }
  #mv.doc-open .mv-doc-card .ph { background: #111; }
  /* entrance: big DOCUMENTARY centre frame, letters flicker, then it fades into the page */
  #mv .mv-docintro { position: absolute; top: 46px; bottom: 0; left: 0; right: 0; z-index: 4; background: #000; color: #fff;
        display: flex; align-items: center; justify-content: center; cursor: pointer; transition: opacity .5s ease; }
  /* the title is the same size and weight as the name top left, and plays one of the name's letter effects */
  #mv .mv-docintro > span { font-weight: 700; font-size: 15px; letter-spacing: .04em; text-transform: uppercase;
        white-space: nowrap; opacity: 0; transition: opacity .25s ease; }
  #mv .mv-docintro.in > span { opacity: 1; }
  #mv .mv-docintro.out { opacity: 0; pointer-events: none; }
  /* PHOTO and VIDEO get their own entrances in the same style: same type, size and centre frame, white page */
  #mv .mv-docintro.e-photo, #mv .mv-docintro.e-video { background: var(--bg, #fff); color: #000; }
  /* INDEX inside DOCUMENTARY: project titles, styled like the INFO page */
  #mv .mv-doc-index { min-height: 100%; display: flex; flex-direction: column; justify-content: center; padding: 60px 28px; }
  #mv .mv-doc-index .ti + .ti { margin-top: 1.4em; }
  #mv .mv-doc-index button { display: inline; }
  #mv .mv-doc-index .ti.mv-all { margin-top: 3.4em; color: #8a8a8a; }   /* ALL = the full photo grid */
  /* INDEX stories (used once STORIES has projects) */
  #mv .mv-grid.stories img { aspect-ratio: auto; }
  #mv .mv-story { cursor: pointer; }
  #mv .mv-story .ph { width: 100%; aspect-ratio: 4 / 5; background: #eee; overflow: hidden; }
  #mv .mv-story img { width: 100%; height: 100%; object-fit: cover; display: block; }
  #mv .mv-story .cap { margin-top: 10px; font-size: 10px; letter-spacing: .12em; text-transform: uppercase; }
  @media (hover: hover) { #mv .mv-story:hover img { opacity: .8; } }
  /* DOCUMENTARY page: project grid, then a project as one long scrolling page */
  #mv .mv-panel.mv-p-doc { padding: 0; background: var(--bg, #fff); }
  #mv .mv-doc-wrap { padding: 26px 28px 80px; }
  #mv .mv-doc-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 22px;
        font-size: 11px; letter-spacing: .12em; text-transform: uppercase; }
  #mv .mv-doc-head .h { font-weight: 700; }
  #mv .mv-doc-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px 20px; }
  #mv .mv-doc-card { cursor: pointer; }
  #mv .mv-doc-card .ph { width: 100%; aspect-ratio: 16 / 10; background: #eee; overflow: hidden; }
  #mv .mv-doc-card img { width: 100%; height: 100%; object-fit: cover; display: block; transition: opacity .3s; }
  #mv .mv-doc-cap { display: flex; justify-content: space-between; gap: 12px; margin-top: 14px; font-size: 10px;
        letter-spacing: .12em; text-transform: uppercase; }
  #mv .mv-doc-cap .pl, #mv .mv-doc-top .pl { font-family: 'Instrument Serif', Georgia, serif; font-style: italic;
        text-transform: none; letter-spacing: 0; font-size: 14px; line-height: 1; }
  #mv .mv-doc-empty { font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: #8a8a8a; }
  @media (hover: hover) { #mv .mv-doc-card:hover img { opacity: .8; } }
  /* a project reads like an article: title at the top, then whole photos with space around them, text between */
  #mv .mv-doc-proj .mv-doc-head { padding: 26px 28px 0; margin-bottom: 0; }
  #mv .mv-doc-top { max-width: 640px; margin: 0 auto; padding: 56px 28px 64px; text-align: center; }
  #mv .mv-doc-top .t { font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }   /* same size as the top bar and INFO */
  #mv .mv-doc-top .pl { display: block; margin-top: 14px; }
  #mv .mv-doc-top .p { font-size: 12px; line-height: 1.75; margin-top: 34px; }
  #mv .mv-doc-ph { display: flex; justify-content: center; padding: 0 10vw; margin-bottom: 80px; }
  #mv .mv-doc-ph img { display: block; width: auto; height: auto; max-width: 100%; max-height: calc(100vh - 46px - 150px); max-height: calc(100dvh - 46px - 150px); }
  #mv .mv-doc-para { max-width: 560px; margin: -8px auto 72px; padding: 0 28px; font-size: 12px; line-height: 1.75; }
  #mv .mv-doc-foot { padding: 60px 28px 80px; text-align: center; font-size: 11px; letter-spacing: .12em; text-transform: uppercase; }
  /* the DOCUMENTARY title drops in with the same letter flicker as the opening */
  #mv .fl i { position: relative; display: inline-block; font-style: normal; }
  #mv .fl i b { font-weight: inherit; }
  #mv .fl i em { position: absolute; left: 50%; bottom: 0; transform: translateX(-50%); font-family: 'Instrument Serif', Georgia, serif;
        font-weight: 400; font-size: 1.15em; line-height: 1; font-style: normal; visibility: hidden; }
  #mv .fl i.alt b, #mv .fl i.gap b { visibility: hidden; }
  #mv .fl i.alt em { visibility: visible; }
  #mv .fl i.ital em { font-style: italic; text-transform: none; }
  #mv .mv-empty { font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: #8a8a8a; align-self: center; }

  /* launch intro */
  #mv .mv-intro { position: absolute; inset: 0; z-index: 10; background: var(--bg, #fff);
        display: flex; align-items: center; justify-content: center; cursor: pointer;
        transition: opacity .7s ease; }
  #mv.dark .mv-intro { background: #000; }
  #mv .mv-intro span { font-weight: 700; font-size: clamp(26px, 5vw, 64px); letter-spacing: .04em; text-transform: uppercase;
        white-space: nowrap; opacity: 0; filter: blur(9px); letter-spacing: .32em;
        transition: opacity .3s ease, filter .75s cubic-bezier(.2,.7,.2,1), letter-spacing .75s cubic-bezier(.2,.7,.2,1); }
  #mv .mv-intro.in span { opacity: 1; filter: blur(0); letter-spacing: .04em; }
  /* letter flicker: each letter keeps its width, the alternate glyph sits on top */
  #mv .mv-intro span i { position: relative; display: inline-block; font-style: normal; }
  #mv .mv-intro span i b { font-weight: 700; }
  #mv .mv-intro span i em { position: absolute; left: 50%; bottom: 0; transform: translateX(-50%);
        font-family: 'Instrument Serif', Georgia, serif; font-weight: 400; font-size: 1.12em; line-height: 1;
        text-transform: uppercase; visibility: hidden; }
  #mv .mv-intro span i.alt b, #mv .mv-intro span i.gap b { visibility: hidden; }
  #mv .mv-intro span i.alt em { visibility: visible; }
  #mv .mv-intro span i.ital em { font-style: italic; text-transform: none; }
  #mv .mv-intro.out { opacity: 0; pointer-events: none; }
  #mv .mv-stage img { transition: opacity .25s ease, filter .6s ease; }
  /* photos load soft (a small version, blurred) and sharpen when the full one arrives; edges stay crisp */
  #mv .mv-stage img.soft, #mv .mv-doc-ph img.soft { filter: blur(14px); clip-path: inset(0); }
  #mv .mv-doc-ph img { transition: filter .6s ease; }
  /* a photo flying between INDEX and the viewer, or a Documentary cover opening into its project */
  #mv .mv-fly { position: absolute; z-index: 6; object-fit: cover; pointer-events: none; max-width: none; max-height: none; margin: 0; }
  /* page number: digits roll like a counter */
  #mv .mv-count .cd { display: inline-block; overflow: hidden; height: 1.3em; line-height: 1.3em; vertical-align: top; white-space: pre; }
  #mv .mv-count .cd .st { display: block; }
  #mv .mv-count .cd b { display: block; font-weight: inherit; }
  /* Documentary project: a hairline under the top bar fills as you scroll through the story */
  #mv .mv-progline { position: absolute; left: 0; right: 0; top: 46px; height: 1px; background: currentColor; transform-origin: 0 50%;
        transform: scaleX(0); z-index: 4; display: none; pointer-events: none; }
  #mv.proj-open .mv-progline { display: block; }
  @media (max-width: 700px) { #mv .mv-progline { top: 52px; } }
  @media (prefers-reduced-motion: reduce) { #mv .mv-intro { display: none; } }

  /* black background version (set DARK = true in the script) */
  body.mv-on.mv-dark { background: #000 !important; }
  #mv.dark { background: #000; color: #fff; }
  #mv.dark .mv-modes button, #mv.dark .mv-modes .sep { color: #8a8a8a; }
  #mv.dark .mv-modes button.on { color: #fff; }
  #mv.dark .mv-foot { color: #8a8a8a; }
  #mv.dark .mv-p-index { background: #000; }
  #mv.dark .mv-p-info { background: #000; }

  /* INFO panel: a black page revealed by a rotating window (no rotating solid layer, so no seams) */
  #mv .mv-panel.mv-p-info { display: block !important; visibility: hidden; padding: 0;
        background: #000 !important; color: #fff; }
  #mv .mv-panel.mv-p-info.open, #mv .mv-panel.mv-p-info.anim { visibility: visible; }
  #mv .mv-panel.mv-p-info.on-doc { background: #fff !important; color: #000; }   /* INFO over DOCUMENTARY: white */
  #mv .mv-info-rot { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
        padding: 74px 28px 28px; transform-origin: 100% 100%; }
  /* INFO covers the whole screen, header included; the header text inverts wherever the black passes */
  #mv .mv-panel.mv-p-info { top: 0 !important; }
  /* header items sit above the INFO page and invert as it passes; the page number sits under it, so the black covers it */
  #mv .mv-head { z-index: auto; }
  #mv .mv-head > * { position: relative; z-index: 5; }
  #mv .mv-head > .mv-count { z-index: 2; }
  #mv.mv-inv .mv-head { color: #fff; }
  #mv.mv-inv .mv-head > *:not(.mv-count) { mix-blend-mode: difference; }
  #mv.mv-inv .mv-head > .mv-count { color: #000; }
  #mv.mv-inv .mv-modes button, #mv.mv-inv .mv-modes .sep { color: #757575; }
  #mv.mv-inv .mv-modes button.on { color: #fff; }
  /* page number hides the moment INFO or INDEX is clicked, and returns when they close */
  #mv.no-count .mv-count { visibility: hidden; }

  /* INFO panel */
  #mv .mv-panel { position: absolute; top: 46px; bottom: 0; left: 0; right: 0; background: #fff;
        overflow-y: auto; display: none; z-index: 3; padding: 20px 28px 60px; background: var(--bg, #fff); }
  #mv .mv-panel.open { display: block; }
  #mv .mv-infotext { max-width: 640px; margin: 0 auto; font-size: 11px; letter-spacing: .14em;
        line-height: 2.1; text-transform: uppercase; text-align: center; }
  #mv .mv-infotext a { color: inherit; text-decoration: none; }
  #mv .mv-clients { max-width: 560px; margin: 0 auto; }
  #mv .mv-clients .nm { white-space: nowrap; display: inline-block; }
  /* more space between the groups */
  #mv .mv-infotext .grp + .grp { margin-top: 3.4em; }
  /* the first line of each group (the subheading) is bold, the same way the top bar shows where you are */
  #mv .mv-infotext .grp > .ti:first-child { font-weight: 700; }
  #mv .mv-infotext .grp > .ti:first-child i em { font-weight: 400; }
  /* trickle: lines drop in one after another, letters flicker like the opening */
  #mv .mv-infotext .ti { opacity: 0; transform: translateY(-.7em); transition: opacity .4s ease, transform .4s ease; }
  #mv .mv-infotext .ti.show { opacity: 1; transform: none; }
  #mv .mv-infotext .w { white-space: nowrap; }
  #mv .mv-infotext i { position: relative; display: inline-block; font-style: normal; }
  #mv .mv-infotext i em { position: absolute; left: 50%; bottom: 0; transform: translateX(-50%);
        font-family: 'Instrument Serif', Georgia, serif; font-size: 1.15em; line-height: 1; font-style: normal;
        visibility: hidden; -webkit-user-select: none; user-select: none; pointer-events: none; }
  #mv .mv-infotext i.alt b, #mv .mv-infotext i.gap b { visibility: hidden; }
  #mv .mv-infotext i b { font-weight: inherit; }
  #mv .mv-infotext i.alt em { visibility: visible; }
  #mv .mv-infotext i.ital em { font-style: italic; text-transform: none; }
  #mv .mv-clients .dot { opacity: .5; margin-left: .6em; }
  #mv .mv-infotext a:hover { opacity: .5; }

  @media (max-width: 700px) {
    /* one line; everything smaller than the name */
    #mv .mv-head { height: 52px; gap: 8px; padding: 0 14px; }
    #mv .mv-logo  { font-size: 12px; letter-spacing: .01em; }
    #mv .mv-modes, #mv .mv-count, #mv .mv-link { font-size: 8px; letter-spacing: .08em; }
    #mv .mv-modes .sep { margin: 0 .2em; }
    /* photo sits on the bottom edge (just above the browser bar),
       copyright text lies over it */
    #mv .mv-stage { top: 52px; bottom: 0; align-items: flex-end; }
    #mv .mv-stage img { max-width: 100vw; max-height: calc(100vh - 52px); max-height: calc(100dvh - 52px); }
    #mv .mv-stage .mv-vid { width: 100vw; }
    #mv.video .mv-stage { bottom: 56px; align-items: center; }
    #mv.land .mv-stage { align-items: center; }   /* landscape photos: centred */
    #mv.land .mv-foot, #mv.dark.land:not(.video) .mv-foot { color: #8a8a8a; }   /* landscape: copyright on the background, not the photo */
    #mv .mv-prev, #mv .mv-next { top: 52px; }
    #mv.video .mv-prev, #mv.video .mv-next { display: none; }   /* swipe instead */
    #mv .mv-foot { font-size: 7.5px; padding: 0 10px; z-index: 3; pointer-events: none;
          color: var(--fc, #fff); transition: color .3s; }
    #mv.video .mv-foot { color: #a9a9a9; }
    #mv.dark:not(.video) .mv-foot { color: var(--fc, #fff); }
    #mv .mv-panel { top: 52px; padding: 16px; }
    #mv .mv-p-index { padding: 24px 40px 60px; }
    #mv .mv-infotext { font-size: 8px; letter-spacing: .1em; line-height: 2; }
    #mv .mv-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
    #mv .mv-head .desk { display: none; }
    /* phone: page number bottom left, INDEX bottom right, on a thin white strip below the photo */
    #mv .mv-head > .mv-count, #mv .mv-head > .mv-index { position: fixed; bottom: calc(14px + env(safe-area-inset-bottom)); }
    #mv .mv-head > .mv-count { left: 14px; min-width: 0; text-align: left; }
    #mv .mv-head > .mv-index { right: 14px; }
    #mv .mv-stage { bottom: calc(40px + env(safe-area-inset-bottom)); }
    #mv .mv-stage img { max-height: calc(100vh - 92px); max-height: calc(100dvh - 92px - env(safe-area-inset-bottom)); }
    /* the same thin white border either side of every photo and film (7px, as on the tall photos) */
    #mv .mv-stage img { max-width: calc(100vw - 14px); }
    #mv .mv-stage .mv-vid, #mv .mv-vwrap .mv-vid { width: calc(100vw - 14px); }
    #mv .mv-vwrap { gap: 12px; }
    #mv .mv-vbar { font-size: 8px; letter-spacing: .08em; gap: 14px; padding: 0 7px; }
    /* every photo the same width (7px each side); a photo taller than the screen scrolls instead of shrinking */
    #mv .mv-stage { overflow-y: auto; -webkit-overflow-scrolling: touch; overscroll-behavior: contain; align-items: flex-start; pointer-events: auto; }
    #mv .mv-stage img { width: calc(100vw - 14px); max-width: none; max-height: none; margin-top: auto; }
    #mv.land .mv-stage img { margin: 0; }
    #mv:not(.video) .mv-prev, #mv:not(.video) .mv-next { display: none; }   /* phone: tap left / right half of the photo instead */
    #mv .mv-prev, #mv .mv-next { bottom: calc(40px + env(safe-area-inset-bottom)); }
    #mv .mv-panel.mv-p-index, #mv .mv-panel.mv-p-doc { bottom: calc(40px + env(safe-area-inset-bottom)); }
    /* copyright: centred in the white strip, level with the page number and INDEX */
    #mv .mv-foot, #mv.video .mv-foot, #mv.land .mv-foot, #mv.dark:not(.video) .mv-foot {
          position: fixed; bottom: calc(14px + env(safe-area-inset-bottom)) !important; color: #8a8a8a; font-size: 8px; line-height: normal; letter-spacing: .08em; }
    #mv .mv-docintro { top: 52px; }
    #mv .mv-docintro > span { font-size: 12px; letter-spacing: .01em; }
    #mv .mv-modes .mob { display: inline-flex; }
    #mv .mv-modes .sep.mob { display: inline; }
    #mv .mv-story .cap { font-size: 8px; }
    #mv .mv-doc-head, #mv .mv-doc-empty { font-size: 8px; }
    #mv .mv-doc-wrap { padding: 18px 14px 60px; }
    #mv .mv-doc-proj .mv-doc-head { padding: 18px 14px 0; }
    #mv .mv-doc-grid { grid-template-columns: 1fr; gap: 34px; }
    #mv .mv-doc-cap { font-size: 8px; margin-top: 10px; }
    #mv .mv-doc-cap .pl, #mv .mv-doc-top .pl { font-size: 12px; }
    #mv .mv-doc-top { padding: 40px 22px 40px; }
    #mv .mv-doc-top .t { font-size: 8px; letter-spacing: .08em; }
    #mv .mv-doc-top .p, #mv .mv-doc-para { font-size: 11px; }
    #mv .mv-doc-ph { padding: 0 7px; margin-bottom: 40px; }   /* same 7px white border as the photo section */
    #mv .mv-doc-ph img { max-height: calc(100vh - 52px - 40px - 40px); max-height: calc(100dvh - 52px - 40px - 40px - env(safe-area-inset-bottom)); }
    #mv .mv-doc-para { padding: 0 22px; margin: -4px auto 40px; }
    #mv .mv-vgrid { padding: 0 14px 40px; }
    }
  /* Instagram / Facebook in-app browser: its toolbar covers the bottom of the screen, so the site is sized to the
     visible area only (--ih, measured), the bottom strip sits inside it, and the photo sits at the top, higher up */
  #mv.inapp { bottom: auto; height: var(--ih, 100%); }
  @media (max-width: 700px) {
    #mv.inapp .mv-foot { position: absolute; bottom: 14px !important; }
    #mv.inapp .mv-head > .mv-count, #mv.inapp .mv-head > .mv-index { position: absolute; bottom: auto; top: calc(var(--ih, 100vh) - 14px - 1.3em); }
    #mv.inapp .mv-stage, #mv.inapp .mv-prev, #mv.inapp .mv-next,
    #mv.inapp .mv-panel.mv-p-index, #mv.inapp .mv-panel.mv-p-doc { bottom: 40px; }
    #mv.inapp .mv-stage img { margin-top: 0; }
    #mv.inapp .mv-doc-ph img { max-height: calc(var(--ih, 100vh) - 132px); }
  }
  /* film covers in the VIDEO grid fill their frame (not the photo-viewer sizing) */
  #mv .mv-stage .mv-doc-card img { width: 100%; height: 100%; max-width: none; max-height: none; margin: 0; object-fit: cover; }
