/* ==========================================================================
   tamblin.org — site styles
   Mobile-first. White canvas, heavy black type, no colour.
   ========================================================================== */

:root {
  --ink: #0a0a0a;
  --paper: #ffffff;
  --grey: #8a8a8a;
  --rule: #e6e6e6;
  --accent: #0a0a0a;   /* no colour: pure black and white */

  --font-display: "Archivo Black", "Arial Black", Impact, system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --gutter: 20px;
  --nav-h: 64px;             /* mobile bottom bar */
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  background: var(--paper);
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

body {
  margin: 0;
  min-height: 100svh;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.5;
  color: var(--ink);
  background: var(--paper);
  overflow-x: hidden;
  padding-bottom: var(--nav-h);        /* room for mobile bottom nav */
  -webkit-font-smoothing: antialiased;
}

img, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
a:focus-visible, button:focus-visible { outline: 3px solid var(--accent); outline-offset: 4px; }

.wrap {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding-inline: var(--gutter);
}

/* --------------------------------------------------------------------------
   Top-left wordmark (small, always visible)
   -------------------------------------------------------------------------- */
.brand {
  position: fixed;
  top: max(16px, env(safe-area-inset-top));
  left: var(--gutter);
  z-index: 50;
  font-family: var(--font-display);
  font-size: 12px;
  letter-spacing: .22em;
  text-transform: uppercase;
  line-height: 1;
  padding: 6px 8px;
  margin-left: -8px;
  background: rgba(255,255,255,.85);
}

/* --------------------------------------------------------------------------
   Hero — split layout. Portrait on top on phones, right-hand half on desktop.
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  grid-template-rows: auto 1fr;
  background: var(--paper);
}

.hero__media {
  margin: 0;
  order: -1;
  position: relative;
  overflow: hidden;
  background: #ececec;
  height: 46svh;
}
.hero__media img,
.hero__media video {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: 50% 30%;
  filter: grayscale(1);
}

.hero__text {
  padding: 28px var(--gutter) calc(32px + var(--nav-h));
  display: grid;
  align-content: center;
  container-type: inline-size;
}

.hero__kicker {
  margin: 0 0 14px;
  font-size: 11px;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--grey);
  font-weight: 500;
}

.hero__name {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 400;
  text-transform: uppercase;
  line-height: .86;
  letter-spacing: -.02em;
  font-size: clamp(52px, 16vw, 180px);
  font-size: min(180px, 16cqw);   /* fits the longest line (TAMBLIN) to the column */
  white-space: nowrap;
}
.hero__name .line { display: block; }

.hero__tag {
  margin: 22px 0 0;
  font-size: clamp(13px, 1.3vw, 16px);
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #444;
  font-weight: 500;
  line-height: 1.6;
}

.scroll-cue { display: none; }

@media (min-width: 900px) {
  .hero {
    grid-template-rows: none;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    min-height: 100svh;
  }
  .hero__media { order: 0; height: auto; }
  .hero__text {
    padding: 80px 48px calc(80px + var(--nav-h)) 64px;
  }

  .scroll-cue {
    position: absolute;
    left: 64px;
    bottom: calc(var(--nav-h) + 28px);
    display: inline-flex;
    color: var(--ink);
  }
  .scroll-cue svg { width: 24px; height: 24px; animation: bob 1.8s var(--ease) infinite; }
}
@keyframes bob {
  0%, 100% { transform: translateY(0); opacity: .9; }
  50%      { transform: translateY(8px); opacity: .4; }
}

/* --------------------------------------------------------------------------
   Sections
   -------------------------------------------------------------------------- */
.section {
  position: relative;
  min-height: 100svh;
  display: grid;
  align-items: center;
  border-top: 1px solid var(--rule);
  padding: 96px 0;
  isolation: isolate;
  overflow: hidden;
}

.section__grid {
  display: grid;
  gap: 28px;
}

.section__num {
  font-family: var(--font-display);
  font-size: 13px;
  letter-spacing: .2em;
  color: var(--accent);
}

.section__title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 400;
  text-transform: uppercase;
  line-height: .9;
  letter-spacing: -.02em;
  white-space: nowrap;
  font-size: clamp(36px, 10.5vw, 132px);
  font-size: min(132px, 13cqw);      /* EAST LABS (longest) fills ~95% of the column */
}
.section__main, .page-head { container-type: inline-size; }

.section__body {
  margin: 0;
  max-width: 44ch;
  font-size: clamp(16px, 1.4vw, 19px);
  color: #333;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  min-height: 56px;
  padding: 0 28px;
  border: 2px solid var(--ink);
  background: var(--ink);
  color: var(--paper);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: .14em;
  text-transform: uppercase;
  transition: transform .2s var(--ease), background .2s, color .2s;
  -webkit-tap-highlight-color: transparent;
}
.btn svg { width: 18px; height: 18px; transition: transform .2s var(--ease); }
.btn:hover, .btn:active { background: var(--paper); color: var(--ink); }
.btn:hover svg { transform: translateX(4px); }
.btn--ghost { background: transparent; color: var(--ink); }
.btn--ghost:hover { background: var(--ink); color: var(--paper); }

.section__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
  font-size: 12px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--grey);
}

/* Faint giant index number behind each section on large screens */
.section__ghost {
  position: absolute;
  right: -2vw;
  bottom: -4vw;
  z-index: -1;
  font-family: var(--font-display);
  font-size: 40vw;
  line-height: 1;
  color: #f4f4f4;
  user-select: none;
  pointer-events: none;
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.footer {
  border-top: 1px solid var(--rule);
  padding: 40px 0 48px;
  font-size: 12px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--grey);
}
.footer .wrap { display: flex; flex-wrap: wrap; gap: 12px 32px; justify-content: space-between; }
.footer a:hover { color: var(--ink); }

/* --------------------------------------------------------------------------
   Navigation — bottom bar at every width
   -------------------------------------------------------------------------- */
.nav {
  position: fixed;
  z-index: 60;
  left: 0; right: 0; bottom: 0;
  height: calc(var(--nav-h) + env(safe-area-inset-bottom));
  padding-bottom: env(safe-area-inset-bottom);
  background: rgba(255,255,255,.92);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  backdrop-filter: saturate(180%) blur(14px);
  border-top: 1px solid var(--rule);
}
.nav ul {
  list-style: none; margin: 0; padding: 0;
  height: var(--nav-h);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
.nav a {
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  font-size: 10px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--grey);
  transition: color .2s;
}
.nav a svg { width: 20px; height: 20px; }
.nav a.is-active, .nav a:hover { color: var(--ink); }
.nav a .marker { display: none; }

@media (min-width: 900px) {
  .nav ul { max-width: 720px; margin: 0 auto; }
  .nav a { font-size: 11px; letter-spacing: .16em; flex-direction: row; gap: 12px; }
  .nav a svg { width: 18px; height: 18px; }

  .wrap { padding-inline: 64px; }

  .section__grid {
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
    align-items: end;
    gap: 48px;
  }
  .section__aside { display: grid; gap: 28px; padding-bottom: 12px; }
  .section:nth-of-type(even) .section__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); }
  .section:nth-of-type(even) .section__main { order: 2; }
}

/* Active item: black text + underline bar */
.nav a { position: relative; }
.nav a::after {
  content: ""; position: absolute; top: 0; left: 50%; transform: translateX(-50%) scaleX(0);
  width: 32px; height: 2px; background: var(--ink); transition: transform .25s var(--ease);
}
.nav a.is-active::after { transform: translateX(-50%) scaleX(1); }

/* --------------------------------------------------------------------------
   Reveal-on-scroll (progressively enhanced; content visible without JS)
   -------------------------------------------------------------------------- */
.reveal { opacity: 1; transform: none; }
.js .reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
}
.js .reveal.is-in { opacity: 1; transform: none; }

/* Sub-pages (no bottom bar) */
body.subpage { padding-bottom: 0; }
body.subpage .wrap { padding-inline: var(--gutter); }
@media (min-width: 900px) { body.subpage .wrap { padding-inline: 64px; } }

/* --------------------------------------------------------------------------
   Photography page
   -------------------------------------------------------------------------- */
.page-head {
  padding: 120px 0 40px;
}
.page-head .section__title { font-size: min(160px, 10.5cqw); }
.page-head--gallery .section__title { font-size: min(120px, 9cqw); }
.page-head p { max-width: 52ch; color: #333; font-size: clamp(15px, 1.3vw, 18px); }

.back {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 12px; letter-spacing: .2em; text-transform: uppercase; color: var(--grey);
  margin-bottom: 40px;
}
.back svg { width: 16px; height: 16px; }
.back:hover { color: var(--ink); }

.gallery {
  columns: 1;
  column-gap: 14px;
  padding-bottom: 80px;
}
@media (min-width: 560px)  { .gallery { columns: 2; } }
@media (min-width: 900px)  { .gallery { columns: 3; column-gap: 20px; } }
@media (min-width: 1400px) { .gallery { columns: 4; } }

.gallery figure {
  margin: 0 0 14px;
  break-inside: avoid;
  position: relative;
  background: #f2f2f2;
  overflow: hidden;
}
@media (min-width: 900px) { .gallery figure { margin-bottom: 20px; } }
.gallery img {
  width: 100%; height: auto;
  transition: transform .6s var(--ease);
}
.gallery figure:hover img { transform: scale(1.03); }
.gallery figcaption {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 14px 16px;
  font-size: 11px; letter-spacing: .14em; text-transform: uppercase;
  color: #fff;
  background: linear-gradient(to top, rgba(0,0,0,.55), transparent);
  opacity: 0; transition: opacity .3s;
}
.gallery figure:hover figcaption { opacity: 1; }
.gallery button {
  all: unset; display: block; cursor: zoom-in; width: 100%;
}

/* Lightbox */
.lightbox {
  position: fixed; inset: 0; z-index: 100;
  width: 100vw; height: 100svh; max-width: none; max-height: none;
  margin: 0; border: 0;
  background: rgba(8,8,8,.96);
  color: #fff;
  display: none;
  place-items: center;
  padding: 64px 24px 72px;
  touch-action: pan-y;
}
.lightbox::backdrop { background: transparent; }
.lightbox[open] { display: grid; }
.lightbox__stage { display: grid; place-items: center; width: 100%; max-width: 1600px; }
.lightbox img {
  max-width: 100%; max-height: calc(100svh - 136px);
  width: auto; height: auto;
  object-fit: contain;
  box-shadow: 0 30px 80px rgba(0,0,0,.6);
}
.lb-video {
  width: min(100%, calc((100svh - 140px) * 16 / 9));
  aspect-ratio: 16 / 9;
  background: #000;
  box-shadow: 0 30px 80px rgba(0,0,0,.6);
}
.lb-video iframe { width: 100%; height: 100%; border: 0; display: block; }

/* Video tiles in the grid */
.gallery figure.is-video .play {
  position: absolute; inset: 0; display: grid; place-items: center; pointer-events: none;
}
.gallery figure.is-video .play svg {
  width: 64px; height: 64px; color: #fff; padding: 18px;
  background: rgba(0,0,0,.55); border-radius: 50%;
  transition: transform .3s var(--ease), background .3s;
}
.gallery figure.is-video:hover .play svg { transform: scale(1.08); background: rgba(0,0,0,.75); }
.gallery figure.is-video button { cursor: pointer; }

/* Gallery index cards */
.gindex {
  display: grid; gap: 28px;
  padding-bottom: 80px;
}
@media (min-width: 640px)  { .gindex { grid-template-columns: repeat(2, 1fr); gap: 32px; } }
@media (min-width: 1100px) { .gindex { grid-template-columns: repeat(3, 1fr); gap: 40px; } }
.gcard { display: block; }
.gcard__pic {
  aspect-ratio: 4 / 5; overflow: hidden; background: #f2f2f2;
}
.gcard__pic img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .7s var(--ease);
}
.gcard:hover .gcard__pic img { transform: scale(1.04); }
.gcard__meta { padding: 16px 0 0; display: flex; justify-content: space-between; align-items: baseline; gap: 16px; }
.gcard__title {
  margin: 0; font-family: var(--font-display); font-weight: 400;
  text-transform: uppercase; letter-spacing: .02em; font-size: 18px; line-height: 1.1;
}
.gcard__sub { margin: 0; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--grey); white-space: nowrap; }
.gallery-empty { color: var(--grey); font-size: 14px; letter-spacing: .1em; text-transform: uppercase; padding: 40px 0 120px; }
.page-head--gallery { padding-bottom: 32px; }
.page-head--gallery p { margin: 16px 0 0; }
.lightbox__cap {
  position: absolute; left: 24px; bottom: 24px; right: 24px;
  color: #bbb; font-size: 12px; letter-spacing: .14em; text-transform: uppercase;
  display: flex; justify-content: space-between; gap: 16px;
}
.lightbox__btn {
  all: unset; position: absolute; cursor: pointer;
  width: 56px; height: 56px;
  display: grid; place-items: center;
  color: #fff; opacity: .7;
}
.lightbox__btn:hover { opacity: 1; }
.lightbox__btn svg { width: 26px; height: 26px; }
.lightbox__close { top: 12px; right: 12px; }
.lightbox__prev { left: 4px; top: 50%; transform: translateY(-50%); }
.lightbox__next { right: 4px; top: 50%; transform: translateY(-50%); }
@media (max-width: 899px) { .lightbox__prev, .lightbox__next { display: none; } } /* swipe instead */

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* --------------------------------------------------------------------------
   Creative page: VIDEOS + GALLERIES sections
   -------------------------------------------------------------------------- */
.page-head--creative { padding-bottom: 8px; }

.cblock { padding: 32px 0 56px; }
.cblock + .cblock { border-top: 1px solid var(--rule); padding-top: 48px; }
.cblock__head {
  margin: 0 0 20px;
  font-family: var(--font-display);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: .22em;
  font-size: 12px;
  color: var(--grey);
}
.cblock .gindex { padding-bottom: 0; }

/* 16:9 tiles: one per row on phones, two from 720px, three from 1100px */
.vgrid { display: grid; gap: 28px; grid-template-columns: 1fr; }
@media (min-width: 720px)  { .vgrid { grid-template-columns: repeat(2, 1fr); gap: 32px; } }
@media (min-width: 1100px) { .vgrid { grid-template-columns: repeat(3, 1fr); gap: 40px; } }

.vtile { margin: 0; }
.vtile__frame {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #111;
  overflow: hidden;
}
.vtile__frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; display: block; }

.vtile__poster {
  all: unset;
  position: absolute; inset: 0;
  display: block; width: 100%; height: 100%;
  cursor: pointer;
}
.vtile__poster img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  opacity: 0; transition: opacity .4s, transform .6s var(--ease);
}
.has-poster .vtile__poster img { opacity: 1; }
.vtile__poster:hover img { transform: scale(1.03); }
.vtile__poster:focus-visible { outline: 3px solid var(--ink); outline-offset: -3px; }

/* Neutral tile when Vimeo gives us no poster: fine grey, play badge carries it */
.no-poster .vtile__poster { background: linear-gradient(135deg, #1a1a1a, #2c2c2c); }

.vtile__play {
  position: absolute; inset: 0;
  display: grid; place-items: center;
  pointer-events: none;
}
.vtile__play svg {
  width: 64px; height: 64px; padding: 18px;
  color: #fff; background: rgba(0,0,0,.55); border-radius: 50%;
  transition: transform .3s var(--ease), background .3s;
}
.vtile__poster:hover + .vtile__play svg, .vtile__poster:hover .vtile__play svg { transform: scale(1.08); background: rgba(0,0,0,.75); }

.vtile figcaption {
  display: flex; justify-content: space-between; align-items: baseline; gap: 16px;
  padding: 14px 0 0;
}
.vtile__cap {
  font-family: var(--font-display); font-weight: 400;
  text-transform: uppercase; letter-spacing: .02em; font-size: 15px; line-height: 1.2;
}
.vtile__gal {
  font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--grey); white-space: nowrap;
}
.vtile__gal:hover { color: var(--ink); }

/* Gallery card with no photos (films only) */
.gcard__pic--video { display: grid; place-items: center; background: #111; }
.gcard__pic--video .vtile__play { position: static; }

/* Per-gallery grid: neutral video tile when no poster */
.gallery figure.is-video.no-poster { background: linear-gradient(135deg, #1a1a1a, #2c2c2c); aspect-ratio: 16 / 9; }
.gallery figure.is-video.no-poster img { visibility: hidden; }

/* --------------------------------------------------------------------------
   Gallery page: top bar with tabs, tiled grid, full-screen viewer
   -------------------------------------------------------------------------- */
body.gpage { padding-bottom: 0; background: #fff; }

.gbar {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; gap: 28px;
  padding: max(14px, env(safe-area-inset-top)) 12px 14px;
  background: rgba(255,255,255,.94);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
}
.gbar__brand {
  font-family: var(--font-display); font-size: 12px; letter-spacing: .22em;
  text-transform: uppercase; white-space: nowrap; flex: none;
}
.gbar__tabs {
  display: flex; gap: 22px; flex: 1; min-width: 0;
  overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch;
}
.gbar__tabs::-webkit-scrollbar { display: none; }
.gbar__tabs a {
  font-size: 13px; color: var(--grey); white-space: nowrap; padding: 4px 0;
  border-bottom: 1.5px solid transparent; transition: color .2s;
}
.gbar__tabs a:hover { color: var(--ink); }
.gbar__tabs a.is-current { color: var(--ink); border-bottom-color: var(--ink); }
.gbar__back {
  flex: none; font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--grey);
}
.gbar__back:hover { color: var(--ink); }
@media (max-width: 699px) {
  .gbar { flex-wrap: wrap; gap: 10px 16px; }
  .gbar__back { margin-left: auto; }
  .gbar__tabs { order: 3; flex-basis: 100%; gap: 20px; }
}

.gintro { margin: 4px 12px 14px; font-size: 14px; color: #444; max-width: 60ch; }

/* Tiled grid: tight gutters, near edge to edge, like a client gallery */
.tiles {
  --gap: 4px;
  display: flex; gap: var(--gap); align-items: flex-start;
  padding: 0 var(--gap) 48px;
}
@media (min-width: 700px) { .tiles { --gap: 6px; padding: 0 12px 64px; } }
.tiles__col { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: var(--gap); }

.tile {
  all: unset; display: block; position: relative; width: 100%;
  background: #f1f1f1; overflow: hidden; cursor: zoom-in;
  -webkit-tap-highlight-color: transparent;
}
.tile img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .6s var(--ease), opacity .3s; }
.tile:hover img { transform: scale(1.02); }
.tile:focus-visible { outline: 3px solid var(--ink); outline-offset: -3px; }
.tile--video { cursor: pointer; background: #111; }
.tile.no-poster { background: linear-gradient(135deg, #1a1a1a, #2c2c2c); }
.tile.no-poster img { visibility: hidden; }

/* Viewer */
body.is-viewing { overflow: hidden; }
.viewer {
  position: fixed; inset: 0; z-index: 200;
  background: #000; color: #fff;
  --vw: 100vw; --vh: 100vh;
}
.viewer[hidden] { display: none; }
.viewer__stage {
  position: absolute; left: 50%; top: 50%;
  width: var(--vw); height: var(--vh);
  transform: translate(-50%, -50%);
  display: grid; place-items: center;
}
.viewer__stage img {
  width: 100%; height: 100%; object-fit: contain; display: block;
  -webkit-user-select: none; user-select: none;
}
.viewer__video { width: min(100%, calc(var(--vh) * 16 / 9)); aspect-ratio: 16 / 9; }
.viewer__video iframe { width: 100%; height: 100%; border: 0; display: block; }

/* Phone held upright, landscape picture, and the phone can't be forced sideways (iPhone):
   turn the picture 90° so it fills the screen. Turning the phone undoes it automatically. */
.viewer.is-rotated .viewer__stage {
  width: var(--vh); height: var(--vw);
  transform: translate(-50%, -50%) rotate(90deg);
}
.viewer.is-rotated .viewer__video { width: 100%; }

.viewer__ui { position: absolute; inset: 0; pointer-events: none; transition: opacity .25s; }
.viewer.ui-hidden .viewer__ui { opacity: 0; }
.viewer__btn {
  all: unset; pointer-events: auto; cursor: pointer; position: absolute;
  width: 52px; height: 52px; display: grid; place-items: center; color: #fff; opacity: .75;
  filter: drop-shadow(0 1px 6px rgba(0,0,0,.6));
}
.viewer__btn:hover { opacity: 1; }
.viewer__btn svg { width: 26px; height: 26px; }
.viewer__close { top: max(8px, env(safe-area-inset-top)); right: 8px; }
.viewer__prev { left: 4px; top: 50%; transform: translateY(-50%); }
.viewer__next { right: 4px; top: 50%; transform: translateY(-50%); }
.viewer__count, .viewer__cap {
  position: absolute; font-size: 11px; letter-spacing: .16em; text-transform: uppercase;
  color: rgba(255,255,255,.75); text-shadow: 0 1px 6px rgba(0,0,0,.7);
}
.viewer__count { top: max(24px, calc(env(safe-area-inset-top) + 16px)); left: 16px; }
.viewer__cap { bottom: max(18px, env(safe-area-inset-bottom)); left: 16px; right: 16px; }
@media (pointer: coarse) { .viewer__prev, .viewer__next { display: none; } }  /* swipe instead */

/* Watermarks (overlay; for a permanent mark use Lightroom's export watermark as well) */
.tile__mark {
  position: absolute; right: 8px; bottom: 7px; pointer-events: none;
  font-size: 9px; letter-spacing: .16em; text-transform: uppercase;
  color: rgba(255,255,255,.7); text-shadow: 0 1px 4px rgba(0,0,0,.55);
}
.tile img, .viewer__frame img { -webkit-touch-callout: none; }

.viewer__frame { position: relative; margin: 0; }
.viewer__frame img { width: 100%; height: 100%; object-fit: contain; }
.viewer__mark {
  position: absolute; right: 14px; bottom: 12px;
  display: flex; flex-direction: column; align-items: flex-end; gap: 3px;
  color: rgba(255,255,255,.8); text-shadow: 0 1px 6px rgba(0,0,0,.65);
  text-transform: uppercase; line-height: 1.2; text-align: right;
}
.viewer__mark-site { font-family: var(--font-display); font-size: 12px; letter-spacing: .2em; }
.viewer__mark-note { font-size: 10px; letter-spacing: .14em; opacity: .85; }
.viewer__mark:hover { color: #fff; }
.viewer.ui-hidden .viewer__mark { opacity: .45; }
@media (min-width: 1100px) {
  .viewer__mark { right: 20px; bottom: 18px; }
  .viewer__mark-site { font-size: 14px; }
  .viewer__mark-note { font-size: 11px; }
}

/* Tile captions: name + location from the file name ("Name - Location.jpg") */
.tilebox { margin: 0; }
.tile__cap {
  display: flex; flex-direction: column; gap: 2px;
  padding: 8px 2px 10px; line-height: 1.25;
}
.tile__name {
  font-family: var(--font-display); font-weight: 400; text-transform: uppercase;
  font-size: 12px; letter-spacing: .06em; color: var(--ink);
}
.tile__place { font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--grey); }
@media (min-width: 700px) {
  .tile__cap { padding: 10px 2px 14px; }
  .tile__name { font-size: 13px; }
}
