/* Layout: white gallery. Full-width showreel hero first (instant impression),
   then a mosaic of project tiles A–F in mixed sizes, then Bio and Contact.
   One light look on purpose, to match the old site. */
:root {
  --bg: #ffffff;
  --ink: #141414;
  --muted: #7a7a7a;
  --line: #e6e6e6;
  --tile: #f1f1ef;
  --night: #0d0e10;
  --overlay: rgba(10, 10, 10, .6);
  --logo: "Michroma", "Arial Black", Arial, sans-serif;
  --body: "Figtree", "Helvetica Neue", Arial, sans-serif;
  --gap: 2.5px;
  color-scheme: light;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--body); font-size: 16px; line-height: 1.6; }
.wrap {
  max-width: 1600px; margin: 0 auto;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
}
@media (min-width: 900px) { .wrap { padding-left: max(40px, env(safe-area-inset-left, 0px)); padding-right: max(40px, env(safe-area-inset-right, 0px)); } }

/* Header */
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 10; background: var(--bg); }
header { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 5; background: color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter: blur(8px); }
.bar { position: relative; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding-block: 24px; }
.logo { font-family: var(--logo); font-size: clamp(.95rem, 2.2vw, 1.3rem); letter-spacing: .14em; color: var(--ink); text-decoration: none; white-space: nowrap; }
nav { display: flex; gap: clamp(14px, 2.4vw, 32px); }
nav a { color: var(--ink); text-decoration: none; font-size: .78rem; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; padding-block: 4px; border-bottom: 1px solid transparent; transition: border-color .2s; }
nav a:hover, nav a:focus-visible { border-color: var(--ink); outline: none; }
.menu-btn { display: none; background: none; border: 0; font: inherit; font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: var(--ink); cursor: pointer; padding: 6px 0; }

/* Intro above the movie tiles */
.intro { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 22rem); align-items: end; gap: 24px 48px; padding-block: 40px 28px; scroll-margin-top: 90px; }
.intro .kicker { margin-bottom: 14px; }
.intro h1 { margin: 0; font-family: var(--logo); font-weight: 400; font-size: clamp(1.6rem, 4.2vw, 3.4rem); line-height: 1.15; letter-spacing: .03em; text-wrap: balance; max-width: 18ch; }
.intro-side { margin: 0; color: var(--muted); max-width: 40ch; }
@media (max-width: 760px) { .intro { grid-template-columns: 1fr; padding-block: 24px 20px; } }

/* Movie loop inside each tile: fades in once it is actually playing */
.tile video.loop { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .6s ease, transform .9s cubic-bezier(.2,.7,.2,1); }
.tile video.loop.on { opacity: 1; }
.tile:hover video.loop, .tile:focus-visible video.loop { transform: scale(1.05); }
/* placeholders drift slowly so the preview feels like moving footage */
.tile .ph { background-size: 140% 140%; animation: pan 9s ease-in-out infinite alternate; }
.t-b .ph { animation-duration: 11s; } .t-c .ph { animation-duration: 7s; } .t-d .ph { animation-duration: 10s; } .t-e .ph { animation-duration: 8s; } .t-f .ph { animation-duration: 12s; }
@keyframes pan { from { background-position: 0% 0%; } to { background-position: 100% 100%; } }

/* Hero showreel (not used now) */
.hero {
  position: relative; overflow: hidden; background: var(--night); color: #fff;
  aspect-ratio: 16 / 7; max-width: 100%; min-height: 340px; max-height: 76vh; width: 100%;
}
.hero .ph {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 45% 70% at 22% 30%, rgba(255, 196, 120, .38), transparent 65%),
    radial-gradient(ellipse 40% 60% at 85% 80%, rgba(110, 160, 230, .30), transparent 65%),
    linear-gradient(160deg, #1b1d22, var(--night));
  animation: drift 14s ease-in-out infinite alternate;
}
@keyframes drift { to { background-position: 6% 4%, -5% -3%, 0 0; transform: scale(1.04); } }
.hero video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(0,0,0,.6), transparent 60%); pointer-events: none; }
.hero-text { position: absolute; z-index: 1; left: clamp(20px, 5vw, 72px); bottom: clamp(24px, 6vw, 72px); right: 20px; display: grid; gap: 14px; justify-items: start; }
.hero-text .eyebrow { font-size: .74rem; font-weight: 600; letter-spacing: .22em; text-transform: uppercase; color: rgba(255,255,255,.75); }
.hero-text h1 { margin: 0; font-family: var(--logo); font-weight: 400; font-size: clamp(1.6rem, 4.6vw, 3.8rem); line-height: 1.15; letter-spacing: .03em; max-width: 16ch; text-wrap: balance; }
.play {
  display: inline-flex; align-items: center; gap: 12px; margin-top: 6px;
  background: #fff; color: var(--ink); border: 0; cursor: pointer;
  font: inherit; font-size: .78rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase;
  padding: 14px 22px 14px 18px; transition: transform .2s;
}
.play::before { content: ""; width: 0; height: 0; border-left: 10px solid currentColor; border-top: 6px solid transparent; border-bottom: 6px solid transparent; }
.play:hover { transform: translateY(-2px); }
.play:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }

/* Mosaic of projects */
.section-row { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding-block: 56px 18px; }
.kicker { font-size: .74rem; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); margin: 0; }
.count { font-size: .8rem; color: var(--muted); font-variant-numeric: tabular-nums; }

.work-wrap { container-type: inline-size; }
.work {
  display: grid; gap: var(--gap);
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-template-areas:
    "a a"
    "b f"
    "e e"
    "d g"
    "h c";
}
/* each tile sets its own shape, so images are cropped as little as possible */
.t-a { aspect-ratio: 16 / 9; }
.t-b, .t-f { aspect-ratio: 1 / 1; }
.t-e { aspect-ratio: 21 / 8; }
.t-d, .t-g { aspect-ratio: 1 / 1; }
.t-c, .t-h { aspect-ratio: 5 / 4; }
.t-a { grid-area: a; } .t-b { grid-area: b; } .t-c { grid-area: c; }
.t-d { grid-area: d; } .t-e { grid-area: e; } .t-f { grid-area: f; } .t-g { grid-area: g; } .t-h { grid-area: h; }

.tile {
  position: relative; display: block; overflow: hidden; max-width: 100%;
  background: var(--tile); color: #fff; border: 0; padding: 0; font: inherit; text-align: left; cursor: pointer;
  animation: rise .7s cubic-bezier(.2,.7,.2,1) both;
}
.t-b { animation-delay: .08s; } .t-c { animation-delay: .16s; } .t-d { animation-delay: .22s; } .t-e { animation-delay: .28s; } .t-f { animation-delay: .34s; } .t-g { animation-delay: .4s; } .t-h { animation-delay: .46s; }
@keyframes rise { from { transform: translateY(18px); opacity: .001; } }

/* Placeholder: each one lit differently, like a lighting test */
.tile .ph { position: absolute; inset: 0; display: grid; place-items: center; font-family: var(--logo); font-size: clamp(2rem, 7cqw, 6rem); color: rgba(255,255,255,.85); }
.t-a .ph { background: radial-gradient(circle at 30% 25%, #e9b98a, #6b4a33 55%, #1d1612); }
.t-b .ph { background: linear-gradient(120deg, #22303f, #4f6f8f 55%, #b9cde0); }
.t-c .ph { background: radial-gradient(circle at 70% 30%, #f3efe6, #b8b2a5 60%, #6f6a60); color: rgba(20,20,20,.55); }
.t-d .ph { background: radial-gradient(circle at 50% 110%, #d2604a, #5a1f1b 60%, #1a0c0b); }
.t-e .ph { background: linear-gradient(200deg, #c8d3c4, #6c7f6a 60%, #2a3329); }
.t-f .ph { background: radial-gradient(ellipse at 20% 50%, #3b3f46, #15171a 70%); }
.t-h .ph { background: radial-gradient(circle at 50% 40%, #f6d3cf, #c97268 55%, #5a2a26); }
.t-g .ph { background: radial-gradient(circle at 40% 30%, #e8e8ea, #3a3b3f 60%, #0b0b0c); }

.tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .9s cubic-bezier(.2,.7,.2,1); }
.tile .cap {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 18px 20px;
  display: flex; justify-content: space-between; align-items: flex-end; gap: 12px;
  background: linear-gradient(transparent, var(--overlay));
  transform: translateY(100%); transition: transform .45s cubic-bezier(.2,.7,.2,1);
}
.tile .cap b { display: block; font-family: var(--logo); font-weight: 400; font-size: clamp(.85rem, 1.6vw, 1.15rem); letter-spacing: .12em; }
.tile .cap span { font-size: .8rem; letter-spacing: .06em; opacity: .85; }
.tile .cap i { font-style: normal; font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; opacity: .8; white-space: nowrap; }
.tile:hover img, .tile:focus-visible img { transform: scale(1.05); }
.tile:hover .cap, .tile:focus-visible .cap { transform: none; }
.tile:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
@media (hover: none) { .tile .cap { transform: none; } }

/* Sections */
section.block { padding-block: 88px 24px; border-top: 1px solid var(--line); margin-top: 88px; scroll-margin-top: 90px; }
section.block .kicker { margin-bottom: 20px; }
h2 { font-family: var(--logo); font-weight: 400; font-size: clamp(1.5rem, 3.6vw, 2.5rem); letter-spacing: .04em; line-height: 1.25; margin: 0 0 28px; text-wrap: balance; max-width: 22ch; }
.bio-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 56px; }
.lede { font-size: 1.12rem; max-width: 46ch; margin: 0 0 18px; }
.lede + .facts, .lede:last-of-type { margin-bottom: 32px; }
.facts { display: grid; gap: 22px; }
.facts h3, .jobs h3 { font-size: .74rem; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); margin: 0 0 6px; }
.facts p { margin: 0; max-width: 46ch; }
.job { display: grid; grid-template-columns: 9.5rem minmax(0, 1fr); gap: 20px; padding-block: 22px; border-bottom: 1px solid var(--line); }
.job:first-of-type { border-top: 1px solid var(--line); }
.job .when { font-size: .85rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.job .role { font-weight: 600; }
.job .where { color: var(--muted); font-size: .92rem; }
.job p { margin: 6px 0 0; max-width: 60ch; }
.contact { display: grid; gap: 18px; }
.mail { font-family: var(--logo); font-size: clamp(1rem, 3vw, 1.8rem); letter-spacing: .04em; color: var(--ink); word-break: break-all; }
.copy { justify-self: start; font: inherit; font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; background: var(--ink); color: var(--bg); border: 0; padding: 12px 20px; cursor: pointer; }
.copy:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
footer { padding-block: 80px 40px; text-align: center; font-size: .8rem; letter-spacing: .1em; color: var(--muted); }

/* Video lightbox */
.lightbox {
  position: fixed; inset: 0; z-index: 20; display: grid; place-items: center; background: rgba(8, 8, 8, .95);
  padding: max(16px, env(safe-area-inset-top, 0px)) max(16px, env(safe-area-inset-right, 0px)) max(16px, env(safe-area-inset-bottom, 0px)) max(16px, env(safe-area-inset-left, 0px));
}
.lightbox .frame { width: min(1280px, 100%); display: grid; gap: 14px; }
.lightbox video { width: 100%; max-height: 80vh; background: #000; aspect-ratio: 16 / 9; }
.lightbox .row { display: flex; justify-content: space-between; align-items: center; gap: 16px; color: #eee; }
.lightbox .row b { font-family: var(--logo); font-weight: 400; letter-spacing: .14em; }
.lightbox .row span { color: #999; font-size: .85rem; }
.close { background: none; border: 1px solid #555; color: #eee; font: inherit; font-size: .75rem; letter-spacing: .14em; text-transform: uppercase; padding: 8px 14px; cursor: pointer; }
.close:focus-visible { outline: 2px solid #fff; }
.missing { color: #aaa; font-size: .9rem; }

@media (max-width: 860px) { .bio-grid { grid-template-columns: 1fr; gap: 40px; } }
@media (max-width: 640px) {
  :root { --gap: 2px; }
  .hero { aspect-ratio: 4 / 5; max-height: 80vh; }
  .work { grid-template-columns: 1fr; grid-template-areas: "a" "b" "f" "e" "d" "g" "h" "c"; }
  .t-a { aspect-ratio: 4 / 3; }
  .t-e { aspect-ratio: 16 / 9; }
  .menu-btn { display: block; }
  nav { display: none; position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; gap: 0; background: var(--bg); border-bottom: 1px solid var(--line); padding: 8px max(16px, env(safe-area-inset-right, 0px)) 16px max(16px, env(safe-area-inset-left, 0px)); }
  nav.open { display: flex; }
  nav a { padding-block: 12px; }
  .job { grid-template-columns: 1fr; gap: 4px; }
  section.block { padding-block: 64px 16px; margin-top: 56px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .tile, .hero .ph, .tile .ph { animation: none; }
  .tile img, .tile .cap { transition: none; }
}

/* ===== Project breakdown pages ===== */
a.tile { color: #fff; }
.crumb { display: inline-flex; gap: 8px; align-items: center; color: var(--muted); text-decoration: none; font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; padding-block: 12px 0; }
.crumb:hover, .crumb:focus-visible { color: var(--ink); }

.p-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 24rem); gap: 24px 48px; align-items: end; padding-block: 28px 32px; }
.p-head h1 { margin: 0; font-family: var(--logo); font-weight: 400; font-size: clamp(1.8rem, 5vw, 3.8rem); line-height: 1.1; letter-spacing: .04em; text-wrap: balance; }
.p-head .kicker { margin-bottom: 14px; }
.p-head .sub { margin: 0; color: var(--muted); max-width: 40ch; }

.meta { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin: 0 0 32px; }
.meta div { padding: 16px 16px 16px 0; }
.meta dt { font-size: .7rem; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); margin-bottom: 4px; }
.meta dd { margin: 0; }

.screen { position: relative; background: var(--night); aspect-ratio: 16 / 9; max-width: 100%; overflow: hidden; }
.screen .ph { position: absolute; inset: 0; display: grid; place-items: center; color: rgba(255,255,255,.6); font-size: .85rem; letter-spacing: .14em; text-transform: uppercase;
  background: radial-gradient(ellipse 45% 70% at 25% 30%, rgba(255,196,120,.35), transparent 65%), radial-gradient(ellipse 40% 60% at 85% 80%, rgba(110,160,230,.28), transparent 65%), linear-gradient(160deg, #1b1d22, var(--night)); }
.screen video { position: absolute; inset: 0; width: 100%; height: 100%; background: transparent; }

.p-sec { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 24px 56px; padding-block: 72px 0; }
.p-sec h2 { font-size: clamp(1.1rem, 2.2vw, 1.5rem); margin: 0 0 12px; }
.p-sec .note { margin: 0; color: var(--muted); max-width: 38ch; }
.p-text p { margin: 0 0 16px; max-width: 62ch; font-size: 1.05rem; }

/* before / after slider */
.compare { position: relative; aspect-ratio: 16 / 9; max-width: 100%; overflow: hidden; background: #ddd; user-select: none; touch-action: pan-y; }
.compare .layer { position: absolute; inset: 0; }
.compare .layer img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.compare .before .ph { position: absolute; inset: 0; background: linear-gradient(160deg, #cfcfcc, #9d9d99); }
.compare .after .ph { position: absolute; inset: 0; background: radial-gradient(ellipse 50% 70% at 30% 30%, #f3c995, #8a5a3a 55%, #1d1612); }
.compare .after { clip-path: inset(0 0 0 var(--pos, 50%)); }
.compare .tag { position: absolute; top: 14px; z-index: 2; font-size: .7rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; background: rgba(0,0,0,.55); color: #fff; padding: 6px 10px; }
.compare .tag.l { left: 14px; } .compare .tag.r { right: 14px; }
.compare .handle { position: absolute; top: 0; bottom: 0; left: var(--pos, 50%); width: 2px; margin-left: -1px; background: #fff; z-index: 2; pointer-events: none; }
.compare .handle::after { content: "◂ ▸"; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); background: #fff; color: var(--ink); font-size: .7rem; padding: 8px 10px; border-radius: 999px; white-space: nowrap; }
.compare input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: ew-resize; z-index: 3; margin: 0; }
.compare input:focus-visible + .handle::after { outline: 2px solid var(--ink); outline-offset: 2px; }

/* render passes */
.passes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gap); }
.pass { margin: 0; }
.pass .img { position: relative; aspect-ratio: 16 / 9; max-width: 100%; overflow: hidden; background: var(--tile); }
.pass .img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.pass .img .ph { position: absolute; inset: 0; }
.pass figcaption { display: flex; gap: 10px; align-items: baseline; padding-top: 8px; font-size: .85rem; }
.pass figcaption b { font-size: .7rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); font-variant-numeric: tabular-nums; }
.pass:nth-child(1) .ph { background: radial-gradient(circle at 30% 30%, #f1c48f, #7a5034 60%, #1d1612); }
.pass:nth-child(2) .ph { background: radial-gradient(circle at 25% 25%, #fff2dc, #4b3b2c 55%, #0d0b09); }
.pass:nth-child(3) .ph { background: radial-gradient(circle at 80% 40%, #b9cde0, #2b3a4a 60%, #0b0e12); }
.pass:nth-child(4) .ph { background: linear-gradient(90deg, #0b0b0b 60%, #e7e2d6 92%, #0b0b0b); }
.pass:nth-child(5) .ph { background: linear-gradient(200deg, #e6e9ee, #50555c 50%, #131416); }
.pass:nth-child(6) .ph { background: radial-gradient(circle at 50% 50%, #fafafa, #bdbdbd 60%, #6b6b6b); }

.rig { position: relative; aspect-ratio: 16 / 9; max-width: 100%; overflow: hidden; background: #e9e9e6; }
.rig img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.rig .ph { position: absolute; inset: 0; display: grid; place-items: center; color: var(--muted); font-size: .8rem; letter-spacing: .14em; text-transform: uppercase;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px); background-size: 32px 32px; }

.pager { display: grid; grid-template-columns: 1fr 1fr; gap: var(--gap); margin-top: 96px; border-top: 1px solid var(--line); }
.pager a { display: grid; gap: 6px; padding-block: 28px; color: var(--ink); text-decoration: none; }
.pager a + a { text-align: right; }
.pager span { font-size: .7rem; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); }
.pager b { font-family: var(--logo); font-weight: 400; font-size: clamp(1rem, 2.4vw, 1.6rem); letter-spacing: .08em; }
.pager a:hover b, .pager a:focus-visible b { text-decoration: underline; text-underline-offset: 6px; }

@media (max-width: 860px) {
  .p-head, .p-sec { grid-template-columns: 1fr; }
  .meta { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .passes { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .p-sec { padding-block: 56px 0; }
}

/* Per-image framing on the home tiles.
   "fit" tiles show the whole image on a matching background color instead of cropping it. */
.tile img.fit { object-fit: contain; }
.t-a { background: #1e1e1e; } .t-a img { object-position: 50% 45%; }
.t-h img { object-position: 55% 45%; }
.t-c { background: #2a2a2a; } .t-c img { object-position: 50% 50%; }
.t-d img { padding: 6%; background: #f5f5f5; }
.t-e { background: #000; } .t-e img { object-position: 50% 54%; }
.t-f { background: #000; } .t-f img { object-position: 50% 30%; }
.t-g img { padding: 6%; background: #000; }
.screen img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; background: var(--night); }

/* Awards + Education under Experience */
.facts.after-jobs { margin-top: 40px; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 32px; }
@media (max-width: 640px) { .facts.after-jobs { grid-template-columns: 1fr; } }
.p-media { display: grid; gap: 18px; min-width: 0; }
.p-side .p-caption { margin: 20px 0 0; max-width: 40ch; font-size: 1rem; line-height: 1.65; }
.screen.square { aspect-ratio: 1 / 1; max-width: min(100%, 640px); }
/* still images shown in pairs on project pages */
.gallery { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--gap); }
.gallery .still { margin: 0; aspect-ratio: 1 / 1; max-width: 100%; overflow: hidden; background: #000; }
.gallery .still img { width: 100%; height: 100%; object-fit: cover; display: block; }
@media (max-width: 640px) { .gallery { grid-template-columns: 1fr; } }
.still a.zoom { display: block; width: 100%; height: 100%; cursor: zoom-in; }
.still a.zoom:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
.zoombox { position: fixed; inset: 0; z-index: 30; background: rgba(8, 8, 8, .96); overflow: auto; overscroll-behavior: contain; }
.zoom-stage { min-width: 100%; min-height: 100%; display: flex; align-items: center; justify-content: center;
  padding: max(56px, env(safe-area-inset-top, 0px)) max(16px, env(safe-area-inset-right, 0px)) max(16px, env(safe-area-inset-bottom, 0px)) max(16px, env(safe-area-inset-left, 0px));
  width: max-content; margin: 0 auto; }
.zoom-stage img { display: block; max-width: none; width: auto; height: auto; }
.zoom-close { position: fixed; z-index: 31; top: calc(14px + env(safe-area-inset-top, 0px)); right: calc(16px + env(safe-area-inset-right, 0px));
  background: rgba(0,0,0,.6); border: 1px solid #666; color: #eee; font: inherit; font-size: .75rem; letter-spacing: .14em; text-transform: uppercase; padding: 8px 14px; cursor: pointer; }
.zoom-close:focus-visible { outline: 2px solid #fff; }
