/* Public site. Black on white, Helvetica, one accent: link blue.
   Mobile layout = portrait screens (aspect-ratio < 1/1), see PLAN.md §2.6.
   The build appends one placement rule per image (.p-<id>) and the hand start positions. */

html, body {
  margin: 0;
  height: 100%;
  overflow: hidden;
  overscroll-behavior: none;
  background: #fff;
  color: #000;
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  -webkit-text-size-adjust: 100%;
}

a { color: #000; }
a:active { color: #2a2ad6; }
@media (hover: hover) {
  a:hover { color: #2a2ad6; }
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

/* Stage: the screen the image is placed on. */
.stage {
  position: fixed;
  left: 0;
  top: 0;
  width: 100%;
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
  touch-action: pan-y pinch-zoom;
}
.work { margin: 0; }
.work-img {
  position: absolute;
  display: block;
  max-width: none;
  transform: translate(var(--pan-x, 0px), var(--pan-y, 0px)) translate(var(--anchor-x, 0px), var(--anchor-y, 0px));
  user-select: none;
  -webkit-user-select: none;
  -webkit-user-drag: none;
  -webkit-touch-callout: none;
}
.work-img.pannable { cursor: grab; touch-action: none; }
html.pick .stage { visibility: hidden; }

/* Visible text (optional per image): fixed to the screen, styled and placed by the build. */
.shown-caption {
  position: absolute;
  z-index: 1;
  margin: 0;
  width: max-content;
  box-sizing: border-box;
  overflow-wrap: break-word;
  transform: translate(var(--anchor-x, 0px), var(--anchor-y, 0px));
  pointer-events: none;
}
.shown-caption a { color: inherit; pointer-events: auto; }
.shown-caption a:active { color: #2a2ad6; }
@media (hover: hover) {
  .shown-caption a:hover { color: #2a2ad6; }
}

/* Hands: previous / next, draggable as a pair. */
.hands {
  position: fixed;
  z-index: 2;
  left: var(--hands-x);
  top: var(--hands-y);
  width: max-content;
  display: flex;
  align-items: center;
  gap: var(--hands-gap);
  cursor: grab;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
}
.hand { display: block; cursor: pointer; padding: 4px 2px 6px 8px; outline-offset: 2px; }
.hand-next { padding: 4px 8px 6px 2px; }
.hand img { display: block; width: var(--hands-size); height: auto; pointer-events: none; }
.hand .on { display: none; }
.hand:focus-visible .off, .hand:active .off { display: none; }
.hand:focus-visible .on, .hand:active .on { display: block; }
@media (hover: hover) {
  .hand:hover .off { display: none; }
  .hand:hover .on { display: block; }
}
.dragging, .dragging * { cursor: grabbing !important; }

/* Info button: white i on a blue circle. */
.info-button {
  position: fixed;
  z-index: 3;
  right: 137px;
  bottom: 16px;
  display: block;
  padding: 4px;
  line-height: 0;
}
.info-button svg { display: block; width: 21px; height: 21px; }

/* Info view (also used for "Page not found"). */
.info { display: none; }
.view-info .info, .view-404 .info { display: block; }
.view-info .stage, .view-info .hands,
.view-404 .stage, .view-404 .hands { display: none; }
.back {
  position: absolute;
  left: 214px;
  top: 140px;
  padding: 6px;
  font-size: 17px;
  line-height: 1.2;
  text-decoration: none;
}
.info-text {
  position: absolute;
  left: 220px;
  top: 220px;
  width: 560px;
  font-size: 16px;
  line-height: 1.5;
}
.info-text p { margin: 0 0 26px; }
.info-links a { display: block; width: fit-content; }

@media (aspect-ratio < 1/1) {
  .hand { height: 50px; display: flex; align-items: center; padding: 0 2px 0 10px; }
  .hand-next { padding: 0 10px 0 2px; }

  .info-button {
    right: 38px;
    bottom: calc(8px + env(safe-area-inset-bottom, 0px));
    width: 44px;
    height: 44px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  .info-button svg { width: 23px; height: 23px; }

  .back { left: 18px; top: 104px; min-height: 44px; box-sizing: border-box; padding: 10px; }
  .info-text { left: 28px; right: 28px; top: 176px; width: auto; font-size: 15px; }
  .info-text p { margin-bottom: 22px; }
  .info-links a { padding: 8px 0; }
}

/* Generated by scripts/build.js from site.json */
:root{--hands-x:220px;--hands-y:140px;--hands-size:35px;--hands-gap:12px}
.p-707354{left:0;top:0;right:auto;bottom:auto;width:100%;height:100%;object-fit:cover;object-position:49.8% 49.8%;--anchor-x:0px;--anchor-y:0px}
@media (aspect-ratio < 1/1){
:root{--hands-x:80px;--hands-y:100px;--hands-size:30px}
.p-707354{left:0%;right:auto;top:calc(50% + 0%);bottom:auto;--anchor-x:0px;--anchor-y:-50%;width:100%;height:auto;object-fit:fill;object-position:50% 50%}
}
