section.photography-page {
  --photo-paper: #fff;
  --photo-ink: #171717;
  --photo-muted: #7d7d7a;
  --photo-line: #e8e8e4;
  position: relative;
  min-height: 100svh;
  overflow: hidden;
  color: var(--photo-ink);
  background: var(--photo-paper);
  font-family: var(--sans);
  scroll-margin-top: 0;
}

.photography-page > .section-nav { position: relative; z-index: 20; }
.photography-page__canvas {
  position: relative;
  min-height: max(880px, calc(100svh - 64px));
  overflow: hidden;
  background: var(--photo-paper);
  isolation: isolate;
}

.photography-page__heading {
  position: absolute;
  z-index: 12;
  top: 30px;
  left: clamp(24px, 4.7vw, 76px);
  width: min(360px, 31vw);
}
.photography-page__heading p { margin: 0; }
.photography-page__heading .photography-page__index {
  margin-bottom: 9px;
  color: #686864;
  font: 500 9px/1.3 var(--sans);
  letter-spacing: .16em;
}
.photography-page__index span:first-child { margin: 0 5px; color: #c3c3be; }
.photography-page__heading h2 {
  margin: 0 0 7px;
  color: var(--photo-ink);
  font-size: clamp(21px, 2.1vw, 31px);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -.045em;
}
.photography-page__heading > p:last-child {
  max-width: 330px;
  color: #686864;
  font-size: 10px;
  font-weight: 400;
  line-height: 1.55;
  letter-spacing: .01em;
}

.photography-city-tabs {
  position: absolute;
  z-index: 14;
  top: 33px;
  right: clamp(24px, 4.7vw, 76px);
  display: flex;
  align-items: center;
  gap: 4px;
}
.photography-city-tabs button {
  position: relative;
  display: inline-flex;
  min-height: 32px;
  padding: 0 11px;
  align-items: center;
  gap: 7px;
  color: #686864;
  background: transparent;
  border: 0;
  border-radius: 999px;
  font: 600 8px/1 var(--sans);
  letter-spacing: .08em;
  cursor: pointer;
  transition: color 220ms ease, background-color 220ms ease, transform 400ms cubic-bezier(.16,1,.3,1);
}
.photography-city-tabs button span { color: #777772; font-size: 7px; }
.photography-city-tabs button:hover,
.photography-city-tabs button:focus-visible { color: var(--photo-ink); background: #f5f5f2; outline: 0; transform: translateY(-2px); }
.photography-city-tabs button[aria-selected="true"] { color: #fff; background: var(--photo-ink); }
.photography-city-tabs button[aria-selected="true"] span { color: rgba(255,255,255,.6); }

.photography-arc-stage {
  position: relative;
  min-height: inherit;
  overflow: hidden;
  outline: none;
  cursor: grab;
  touch-action: pan-y;
  user-select: none;
  -webkit-user-select: none;
}
.photography-arc-stage:active { cursor: grabbing; }
.photography-page.is-city-dragging .photography-arc-stage { cursor: ew-resize; }
.photography-arc-stage:focus-visible::after {
  position: absolute;
  z-index: 90;
  inset: 8px;
  content: "";
  border: 1px solid #b4b4ae;
  border-radius: 4px;
  pointer-events: none;
}
.photography-city-track {
  position: absolute;
  z-index: 2;
  inset: 0;
  transform: translate3d(0,0,0);
  transform-origin: 50% var(--photo-orbit-center-y, 52%);
  will-change: transform, opacity;
}
.photography-arc {
  position: absolute;
  z-index: 1;
  inset: 0;
  pointer-events: none;
  transform-origin: 50% var(--photo-orbit-center-y, 52%);
}
.photography-arc-card {
  position: absolute;
  top: var(--photo-orbit-center-y, 52%);
  left: 50%;
  display: block;
  width: 64px;
  height: 96px;
  padding: 0;
  overflow: visible;
  background: transparent;
  border: 0;
  border-radius: 0;
  cursor: zoom-in;
  pointer-events: auto;
  transform: translate3d(-50%, -50%, 0);
  transform-origin: 50% 50%;
  contain: layout style;
  will-change: transform;
}
.photography-arc-card::before {
  position: absolute;
  z-index: -1;
  inset: 2px;
  content: "";
  border-radius: 0;
  box-shadow: 0 24px 42px rgba(18,18,17,.24), 0 6px 16px rgba(18,18,17,.12);
  opacity: 0;
  transform: translateY(6px) scale(.94);
  transition: opacity 260ms ease;
}
.photography-arc-card.is-hovered::before,
.photography-arc-card:focus-visible::before { opacity: 1; }
.photography-arc-card__surface {
  position: absolute;
  inset: 0;
  overflow: hidden;
  background: #efefec;
  border: 0;
  border-radius: 0;
  box-shadow: 0 10px 24px rgba(25,25,23,.1), 0 2px 7px rgba(25,25,23,.08);
  transform: translateY(0) scale(1);
  transform-origin: 50% 50%;
  will-change: transform, opacity;
}
.photography-arc-card img {
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  pointer-events: none;
  transform: scale(1);
  transform-origin: 50% 50%;
  will-change: transform;
  -webkit-user-drag: none;
}
.photography-arc-card:hover,
.photography-arc-card:focus-visible { z-index: 80 !important; outline: 0; }
.photography-arc-card.is-expanding { opacity: 0 !important; }

.photography-city-copy {
  position: absolute;
  z-index: 45;
  top: var(--photo-orbit-center-y, 52%);
  left: 50%;
  width: min(420px, 38vw);
  color: var(--photo-ink);
  text-align: center;
  pointer-events: none;
  transform: translate(-50%, -50%);
}
.photography-city-copy.is-changing > * { animation: photography-copy-change 420ms cubic-bezier(.16,1,.3,1) both; }
.photography-city-copy.is-changing h3 { animation-delay: 35ms; }
.photography-city-copy.is-changing blockquote { animation-delay: 70ms; }
.photography-city-copy h3 {
  margin: 0 0 14px;
  font-size: clamp(28px, 2.6vw, 40px);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -.045em;
}
.photography-city-copy blockquote { margin: 0; }
.photography-city-copy blockquote p {
  margin: 0 auto;
  color: #3f3f3c;
  font-family: var(--sans);
  font-size: clamp(12px, 1.05vw, 15px);
  font-style: italic;
  font-weight: 400;
  line-height: 1.45;
}

.photography-city-navigation {
  position: absolute;
  z-index: 110;
  inset: 0;
  pointer-events: none;
}
.photography-city-navigation__button {
  position: absolute;
  top: var(--photo-orbit-center-y, 52%);
  display: grid;
  width: 48px;
  height: 72px;
  padding: 0;
  place-items: center;
  color: #8a8a85;
  background: transparent;
  border: 0;
  cursor: pointer;
  opacity: .62;
  pointer-events: auto;
  transform: translateY(-50%);
  transition: color 180ms ease, opacity 180ms ease, transform 440ms cubic-bezier(.16,1,.3,1);
}
.photography-city-navigation__button--previous { left: clamp(18px, 3.2vw, 52px); }
.photography-city-navigation__button--next { right: clamp(18px, 3.2vw, 52px); }
.photography-city-navigation__button span {
  display: block;
  width: 13px;
  height: 13px;
  border-top: 1.5px solid currentColor;
  border-right: 1.5px solid currentColor;
  transition: transform 440ms cubic-bezier(.16,1,.3,1);
}
.photography-city-navigation__button--previous span { transform: translateX(2px) rotate(-135deg); }
.photography-city-navigation__button--next span { transform: translateX(-2px) rotate(45deg); }
.photography-city-navigation__button:hover,
.photography-city-navigation__button:focus-visible,
.photography-city-navigation__button.is-swipe-target {
  color: var(--photo-ink);
  opacity: 1;
  outline: 0;
}
.photography-page.is-dragging:not(.is-city-dragging) .photography-city-navigation__button {
  opacity: .18;
  pointer-events: none;
}
.photography-city-navigation__button--previous:hover,
.photography-city-navigation__button--previous:focus-visible,
.photography-city-navigation__button--previous.is-swipe-target { transform: translate(-5px,-50%); }
.photography-city-navigation__button--next:hover,
.photography-city-navigation__button--next:focus-visible,
.photography-city-navigation__button--next.is-swipe-target { transform: translate(5px,-50%); }
.photography-city-navigation__button:focus-visible::after {
  position: absolute;
  inset: 10px 5px;
  content: "";
  border: 1px solid #aaa9a3;
  border-radius: 999px;
}

.photography-arc-controls {
  position: absolute;
  z-index: 70;
  right: clamp(24px, 4.7vw, 76px);
  bottom: 26px;
  display: grid;
  grid-template-columns: 38px auto 38px;
  align-items: center;
  gap: 8px;
}
.photography-arc-controls button,
.photography-viewer__controls button {
  display: grid;
  width: 38px;
  height: 38px;
  padding: 0;
  place-items: center;
  color: var(--photo-ink);
  background: rgba(255,255,255,.86);
  border: 1px solid var(--photo-line);
  border-radius: 50%;
  cursor: pointer;
  transition: color 180ms ease, background-color 180ms ease, border-color 180ms ease, transform 360ms cubic-bezier(.16,1,.3,1);
}
.photography-arc-controls button:hover,
.photography-arc-controls button:focus-visible { color: #fff; background: var(--photo-ink); border-color: var(--photo-ink); outline: 0; transform: scale(1.08); }
.photography-arc-controls p {
  display: flex;
  min-width: 70px;
  margin: 0;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: #8d8d88;
  font: 500 8px/1 var(--sans);
  letter-spacing: .08em;
}
.photography-arc-controls p i { width: 16px; height: 1px; background: #c8c8c3; }
.photography-status {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: 0;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}
.photography-status[hidden] { display: none; }
.photography-status.is-error {
  z-index: 80;
  top: 50%;
  left: 50%;
  width: min(420px, 80vw);
  height: auto;
  padding: 12px;
  overflow: visible;
  clip: auto;
  cursor: pointer;
  clip-path: none;
  color: #888883;
  font: 400 9px/1.4 var(--sans);
  letter-spacing: .09em;
  text-align: center;
  white-space: normal;
  transform: translate(-50%, -50%);
}

.photography-transition-clone {
  position: fixed;
  z-index: 1200;
  display: block;
  margin: 0;
  object-fit: cover;
  border: 0;
  border-radius: 0;
  box-shadow: 0 28px 70px rgba(0,0,0,.28);
  pointer-events: none;
  transform-origin: 50% 50%;
  will-change: left, top, width, height, transform, opacity;
}

body.photo-viewer-open { overflow: hidden; }
.photography-viewer {
  position: fixed;
  z-index: 1000;
  inset: 0;
  width: 100vw;
  max-width: none;
  height: 100dvh;
  max-height: none;
  margin: 0;
  padding: 0;
  overflow: hidden;
  color: #fff;
  background: transparent;
  border: 0;
  opacity: 0;
  transition: opacity 420ms ease;
}
.photography-viewer[open] { display: block; opacity: 1; }
.photography-viewer::backdrop { background: transparent; }
.photography-viewer__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10,10,10,.965);
  opacity: 1;
  transition: opacity 420ms ease;
}
.photography-viewer__panel { position: relative; width: 100%; height: 100%; }
.photography-viewer__header {
  position: absolute;
  z-index: 8;
  top: 0;
  right: 0;
  left: 0;
  display: flex;
  height: 64px;
  padding: 0 clamp(18px, 3.6vw, 58px);
  align-items: center;
  justify-content: space-between;
  opacity: 1;
  transition: opacity 420ms ease 100ms;
}
.photography-viewer__header p {
  display: flex;
  margin: 0;
  align-items: center;
  gap: 11px;
  color: rgba(255,255,255,.72);
  font: 500 8px/1 var(--sans);
  letter-spacing: .12em;
}
.photography-viewer__header p i { width: 22px; height: 1px; background: rgba(255,255,255,.3); }
.photography-viewer__header button {
  min-width: 86px;
  min-height: 36px;
  padding: 0 13px;
  color: rgba(255,255,255,.78);
  background: transparent;
  border: 1px solid rgba(255,255,255,.22);
  border-radius: 999px;
  font: 600 8px/1 var(--sans);
  letter-spacing: .1em;
  cursor: pointer;
  transition: color 180ms ease, background-color 180ms ease, transform 360ms cubic-bezier(.16,1,.3,1);
}
.photography-viewer__header button:hover,
.photography-viewer__header button:focus-visible { color: #111; background: #fff; outline: 0; transform: scale(1.04); }
.photography-viewer__figure {
  position: absolute;
  z-index: 3;
  inset: 68px clamp(24px, 8vw, 128px) 74px;
  display: grid;
  margin: 0;
  grid-template-rows: minmax(0, 1fr) 28px;
  gap: 10px;
}
.photography-viewer__image-wrap {
  position: relative;
  display: grid;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  place-items: center;
  transform-origin: center;
}
.photography-viewer__image-wrap img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  object-fit: contain;
  opacity: 1;
  transition: opacity 220ms ease;
  -webkit-user-drag: none;
}
.photography-viewer__image-wrap img.is-loading { opacity: .74; }
.photography-viewer__figure figcaption {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: rgba(255,255,255,.65);
  font: 500 8px/1 var(--sans);
  letter-spacing: .12em;
  opacity: 1;
  transition: opacity 420ms ease 120ms;
}
.photography-viewer__controls {
  position: absolute;
  z-index: 8;
  bottom: 17px;
  left: 50%;
  display: flex;
  align-items: center;
  gap: 13px;
  transform: translateX(-50%);
  opacity: 1;
  transition: opacity 420ms ease 120ms;
}
.photography-viewer__controls button { color: #fff; background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.2); }
.photography-viewer__controls button:hover,
.photography-viewer__controls button:focus-visible { color: #111; background: #fff; outline: 0; transform: scale(1.08); }
.photography-viewer__controls p { min-width: 150px; margin: 0; color: rgba(255,255,255,.45); font: 500 7px/1 var(--sans); letter-spacing: .12em; text-align: center; }
.photography-viewer__notice {
  position: absolute;
  z-index: 5;
  right: clamp(18px, 3.6vw, 58px);
  bottom: 27px;
  margin: 0;
  color: rgba(255,255,255,.28);
  font: 400 6px/1 var(--sans);
  letter-spacing: .11em;
  pointer-events: none;
  opacity: 1;
  transition: opacity 420ms ease 120ms;
}
.photography-viewer.is-preparing .photography-viewer__backdrop,
.photography-viewer.is-preparing .photography-viewer__header,
.photography-viewer.is-preparing .photography-viewer__figure figcaption,
.photography-viewer.is-preparing .photography-viewer__controls,
.photography-viewer.is-preparing .photography-viewer__notice { opacity: 0; }
.photography-viewer.is-closing { opacity: 0; }
.photography-viewer.is-closing .photography-viewer__backdrop { opacity: 0; }

@keyframes photography-copy-change {
  0% { opacity: 0; transform: translateY(9px); }
  100% { opacity: 1; transform: translateY(0); }
}

@media (max-width: 1040px) {
  .photography-page__heading { width: 280px; }
  .photography-city-tabs button { padding: 0 8px; }
}

@media (max-width: 820px) {
  .photography-page__canvas { min-height: max(780px, calc(100svh - 64px)); }
  .photography-page__heading { top: 24px; left: 24px; width: calc(100% - 48px); text-align: center; }
  .photography-page__heading > p:last-child { margin-right: auto; margin-left: auto; }
  .photography-city-tabs {
    top: 112px;
    right: 16px;
    left: 16px;
    justify-content: flex-start;
    overflow-x: auto;
    padding: 3px 2px 8px;
    scrollbar-width: none;
  }
  .photography-city-tabs::-webkit-scrollbar { display: none; }
  .photography-city-tabs button { flex: 0 0 auto; }
  .photography-city-copy { width: min(330px, 46vw); }
}

@media (max-width: 720px) {
  .photography-page > .section-nav { display: none; }
  .photography-page__canvas { min-height: max(720px, 100svh); }
  .photography-page__heading { top: 25px; right: 18px; left: 18px; width: auto; }
  .photography-page__heading .photography-page__index { margin-bottom: 7px; font-size: 8px; }
  .photography-page__heading h2 { margin-bottom: 6px; font-size: 25px; }
  .photography-page__heading > p:last-child { max-width: 310px; font-size: 9px; line-height: 1.45; }
  .photography-city-tabs { top: 112px; right: 12px; left: 12px; }
  .photography-city-tabs button { min-height: 34px; padding: 0 10px; font-size: 7.5px; }
  .photography-arc-stage { min-height: inherit; }
  .photography-city-copy { width: min(214px, calc(100vw - 170px)); }
  .photography-city-copy h3 { margin-bottom: 9px; font-size: 22px; }
  .photography-city-copy blockquote p { max-width: 210px; font-size: 10.5px; line-height: 1.38; }
  .photography-city-navigation__button { width: 44px; height: 64px; }
  .photography-city-navigation__button--previous { left: 0; padding-left: 7px; justify-items: start; }
  .photography-city-navigation__button--next { right: 0; padding-right: 7px; justify-items: end; }
  .photography-city-navigation__button span { width: 11px; height: 11px; }
  .photography-arc-controls { right: 50%; bottom: 112px; transform: translateX(50%); }
  .photography-arc-controls button { width: 42px; height: 42px; }
  .photography-status { width: 80vw; text-align: center; }

  .photography-viewer__header { height: 58px; padding: 0 14px; }
  .photography-viewer__header p { font-size: 7px; }
  .photography-viewer__header button { min-width: 76px; min-height: 34px; padding: 0 10px; font-size: 7px; }
  .photography-viewer__figure { inset: 64px 12px 112px; grid-template-rows: minmax(0,1fr) 24px; }
  .photography-viewer__controls { bottom: calc(51px + env(safe-area-inset-bottom)); }
  .photography-viewer__controls button { width: 42px; height: 42px; }
  .photography-viewer__controls p { min-width: 116px; font-size: 6px; }
  .photography-viewer__notice { right: 14px; bottom: calc(17px + env(safe-area-inset-bottom)); font-size: 5.5px; }
}

@media (max-width: 390px) {
  .photography-city-tabs { top: 116px; }
  .photography-city-copy { width: 204px; }
}

@media (prefers-reduced-motion: reduce) {
  .photography-arc-card,
  .photography-arc-card__surface,
  .photography-arc-card img,
  .photography-city-track,
  .photography-city-navigation__button,
  .photography-city-copy > *,
  .photography-viewer,
  .photography-viewer__backdrop { animation: none !important; transition-duration: .01ms !important; }
  .photography-arc-card:hover .photography-arc-card__surface,
  .photography-arc-card:focus-visible .photography-arc-card__surface { transform: none !important; }
}
