/* An editorial photo journal: ink, warm paper and photographs that can breathe. */
.photography-page {
  --paper: #e9e2d6;
  --wash: #dfd7ca;
  --ink: #292720;
  --muted: #6e685e;
  --line: #b9b0a2;
  --ember: #99442f;
  --photo-rule: color-mix(in srgb, var(--ink) 42%, transparent);
  --photo-ease: cubic-bezier(.22,.75,.16,1);
  background: var(--paper);
}
:root[data-theme=dark] .photography-page {
  --paper: #24231f; --wash: #2d2b25; --ink: #e5ded1;
  --muted: #ada597; --line: #595449; --ember: #d89571;
}
.photography-page .atmosphere { background: radial-gradient(ellipse at 35% 0%, color-mix(in srgb, var(--paper) 82%, #fff), transparent 70%); opacity: .38; }
.photography-page .grain { opacity: .09; }
.photography-page .site-head { z-index: 7; }
.photography-page .head-inner { width: min(100% - 72px, 1440px); }
.photography-page .site-head::after { display: none; }
.photography-page .cursor { display: none; }
.photo-journal { width: min(100% - 72px, 1440px); margin-inline: auto; padding-top: 8px; }
.photo-edition { display: flex; justify-content: space-between; align-items: center; padding: 15px 0; border-block: 1px solid var(--photo-rule); font: 11px/1.4 ui-monospace, var(--serif-cn); letter-spacing: .08em; }
.photo-edition > :nth-child(2) { font: italic 16px/1.3 Newsreader, serif; letter-spacing: 0; }
.photo-masthead { border-bottom: 3px double var(--photo-rule); margin-bottom: 28px; }
.photo-masthead h1 { padding: .18em 0 .15em; text-align: center; font: 650 clamp(76px, 14.1vw, 206px)/1.04 Fraunces, var(--serif-cn); letter-spacing: -.065em; font-variation-settings: "opsz" 100, "SOFT" 0, "WONK" 1; white-space: nowrap; }
html[lang="zh-CN"] .photo-masthead h1 { font-family: var(--serif-cn); font-weight: 900; font-size: clamp(92px, 15.9vw, 232px); letter-spacing: .17em; padding-left: .17em; }
.photo-deck { display: grid; grid-template-columns: 1fr 1.4fr auto; gap: 24px; align-items: center; border-top: 1px solid var(--photo-rule); padding: 15px 0; }
.photo-deck > span { font: 10px/1.6 ui-monospace, var(--serif-cn); letter-spacing: .08em; }
.photo-deck > p { font-size: 15px; text-align: center; }
.photo-deck > a { font-size: 13px; white-space: nowrap; }
.photo-deck > a > span { display: inline-block; margin-left: 10px; transition: transform .4s; }
.photo-deck > a:hover > span { transform: translateY(4px); }
.photo-cover { display: grid; grid-template-columns: minmax(0, 1.95fr) minmax(0, 1fr); gap: 30px; }
.photo-card { margin: 0; min-width: 0; }
.photo-card[hidden] { display: none; }
.photo-image-link { display: block; position: relative; overflow: hidden; isolation: isolate; background: var(--wash); border: 1px solid var(--photo-rule); padding: 6px; }
.photo-image-link::after { content: ""; position: absolute; inset: 6px; box-shadow: inset 0 0 0 1px #00000012; pointer-events: none; }
.photo-image-link img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: var(--photo-position, 50% 50%); filter: saturate(.78); transition: transform 1.5s var(--photo-ease), filter 1.4s ease; transform: scale(1.001); background: var(--wash); }
.photo-card--lead .photo-image-link { aspect-ratio: 1.48; }
.photo-card--side .photo-image-link { aspect-ratio: 1.36; }
.photo-open { position: absolute; bottom: 19px; right: 19px; width: 34px; height: 34px; display: grid; place-items: center; border: 1px solid #f0ead5aa; border-radius: 50%; background: #25231f55; color: #f6f0e3; font: 22px/1 Newsreader, serif; transition: background .4s, transform .5s var(--photo-ease); }
.photo-card figcaption { padding-top: 14px; }
.photo-caption-line { display: flex; justify-content: space-between; align-items: baseline; font: 10px/1.4 ui-monospace, var(--serif-cn); letter-spacing: .12em; text-transform: uppercase; }
.photo-number { color: var(--ember); }
.photo-category { color: var(--muted); }
.photo-card h2 { margin: 11px 0 8px; font: 550 clamp(25px, 3vw, 44px)/1.3 Fraunces, var(--serif-cn); letter-spacing: -.035em; }
.photo-card--side h2 { font-size: clamp(24px, 2.7vw, 36px); }
.photo-card figcaption > p { font-size: 15px; line-height: 1.9; color: var(--muted); }
.photo-side { border-left: 1px solid var(--photo-rule); padding-left: 30px; }
.photo-editorial { display: flex; align-items: center; justify-content: center; gap: 28px; margin-top: 26px; padding-top: 25px; border-top: 1px solid var(--photo-rule); }
.photo-editorial > p { font: italic 26px/1.35 Newsreader, var(--serif-cn); }
html[lang="zh-CN"] .photo-editorial > p { font-size: 20px; line-height: 1.7; }
.photo-seal { flex-shrink: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; border: 1px solid var(--ember); outline: 1px solid var(--ember); outline-offset: -6px; width: 92px; height: 92px; color: var(--ember); border-radius: 50%; transform: rotate(-12deg); }
.photo-seal > span { font: italic 29px/1.2 Fraunces, serif; }
.photo-seal > small { font: 7px/2 ui-monospace, monospace; letter-spacing: .09em; }
.photo-archive { margin-top: 74px; padding-top: 36px; border-top: 3px double var(--photo-rule); scroll-margin-top: 30px; }
.photo-archive-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 30px; }
.photo-eyebrow { font: 10px/1.4 ui-monospace, monospace; letter-spacing: .18em; color: var(--ember); margin-bottom: 16px; }
.photo-archive-heading h2 { font: 550 clamp(38px, 5vw, 68px)/1.2 Fraunces, var(--serif-cn); letter-spacing: -.05em; }
.photo-archive-heading > p { font-size: 14px; line-height: 1.5; color: var(--muted); text-align: right; }
.photo-count { display: block; margin-top: 8px; font: 11px/1.5 ui-monospace, var(--serif-cn); letter-spacing: .08em; }
.photo-archive-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 13px 0; border-block: 1px solid var(--photo-rule); }
.photo-filters { display: flex; flex-wrap: wrap; gap: 7px; }
.photo-filters button { border: 1px solid transparent; border-radius: 30px; padding: 5px 16px; background: transparent; font: 14px/1.6 Newsreader, var(--serif-cn); transition: background .3s, color .3s, border-color .3s; }
.photo-filters button[aria-pressed=true] { border-color: var(--ink); background: var(--ink); color: var(--paper); }
.photo-filters button:hover { border-color: var(--photo-rule); }
.photo-arrows { display: flex; gap: 8px; }
.photo-arrows button, .photo-viewer-nav button { width: 38px; height: 38px; border: 1px solid var(--photo-rule); border-radius: 50%; background: transparent; font: 21px/1 Newsreader, serif; transition: background .3s, color .3s; }
.photo-arrows button:hover, .photo-viewer-nav button:hover { color: var(--paper); background: var(--ink); }
.photo-arrows button:disabled { opacity: .25; cursor: default; background: transparent; color: var(--ink); }
.photo-strip { display: flex; gap: 28px; overflow-x: auto; overscroll-behavior-x: contain; scrollbar-width: thin; scrollbar-color: var(--line) transparent; padding: 30px 2px 25px; scroll-snap-type: x proximity; touch-action: pan-x pan-y; }
.photo-strip:focus-visible { outline: 1px solid var(--ember); outline-offset: 6px; }
.photo-card--strip { flex: 0 0 31%; scroll-snap-align: start; }
.photo-card--strip .photo-image-link { aspect-ratio: 1.18; }
.photo-card--strip:nth-child(even) .photo-image-link { aspect-ratio: 1.18; }
.photo-card--strip h3 { font: 500 clamp(21px, 2.1vw, 29px)/1.4 Fraunces, var(--serif-cn); letter-spacing: -.03em; margin-top: 9px; }
.photo-strip.is-dragging { cursor: grabbing; user-select: none; scroll-snap-type: none; }
.photo-strip.is-dragging * { cursor: grabbing !important; }
.photo-strip-footer { border-top: 1px solid var(--photo-rule); padding-top: 16px; display: flex; align-items: center; gap: 25px; font: 10px/1.3 ui-monospace, var(--serif-cn); letter-spacing: .12em; color: var(--muted); }
.photo-strip-progress { height: 1px; background: var(--line); flex: 1; overflow: hidden; }
.photo-strip-progress i { display: block; width: 24%; height: 100%; background: var(--ink); }
.photo-colophon { padding-top: 68px; padding-bottom: 20px; }
.photo-endmark { display: flex; align-items: baseline; gap: 24px; padding-bottom: 24px; border-bottom: 3px double var(--photo-rule); }
.photo-endmark > span { font: italic 65px/1 Fraunces, serif; letter-spacing: -.08em; }
.photo-endmark p { font: italic 25px/1.5 Newsreader, var(--serif-cn); }
.photo-endmark > a { margin-left: auto; font-size: 13px; }
.photo-credits { font: 11px/1.8 Newsreader, var(--serif-cn); color: var(--muted); margin-top: 18px; }
.photo-credits summary { cursor: pointer; width: fit-content; }
.photo-credits p { margin-top: 6px; }
.photo-credits a { text-decoration: underline; text-underline-offset: 3px; }
.photography-page .daily-panel { position: relative; inset: auto; width: min(100% - 72px, 1440px); padding: 10px 0 24px; margin-inline: auto; display: flex; justify-content: space-between; align-items: center; gap: 24px; }
.photography-page .daily-panel::before { display: none; }
.photography-page .daily-panel .footer-meta { flex-direction: row; text-align: left; gap: 8px 20px; justify-content: flex-start; font-size: 11px; }
.photography-page .daily-panel .daily-verse { margin-top: 0; }
.photography-page .daily-panel .daily-verse blockquote { font-size: 12px; }
.photography-page .daily-panel .daily-verse figcaption { font-size: 10px; }

/* The viewer sits in the browser's top layer and returns focus on close. */
.photo-viewer { --photo-rule: #a99c803d; padding: 24px 34px; margin: 0; width: 100%; height: 100%; max-width: none; max-height: none; border: 0; background: #20201df5; color: #eee6d8; overflow: hidden; }
.photo-viewer[open] { display: grid; grid-template-rows: auto minmax(0,1fr) auto; gap: 20px; }
.photo-viewer::backdrop { background: #20201d; }
.photo-viewer-top { display: flex; justify-content: space-between; align-items: center; font: 11px/1.5 ui-monospace, var(--serif-cn); letter-spacing: .12em; z-index: 2; }
.photo-viewer-close { display: flex; align-items: center; gap: 16px; border: 0; background: transparent; font: 12px/1.4 Newsreader, var(--serif-cn); padding: 5px; }
.photo-viewer-close > span:last-child { font-size: 29px; }
.photo-viewer-stage { min-height: 0; min-width: 0; display: flex; align-items: center; justify-content: center; position: relative; }
.photo-viewer-image { display: block; width: auto; height: auto; max-width: 100%; max-height: 100%; object-fit: contain; box-shadow: 0 12px 45px #0004; }
.photo-viewer-image.is-animating { visibility: hidden; }
.photo-viewer-image[hidden] { display: none; }
.photo-viewer-bottom { display: flex; justify-content: space-between; gap: 20px; align-items: center; padding-top: 18px; border-top: 1px solid var(--photo-rule); }
.photo-viewer-bottom h2 { font: 500 clamp(22px, 2.6vw, 34px)/1.3 Fraunces, var(--serif-cn); letter-spacing: -.02em; }
.photo-viewer-bottom p { font-size: 14px; line-height: 1.8; color: #c1b8a9; margin-top: 5px; }
.photo-viewer-bottom a { font-size: 10px; line-height: 1.5; letter-spacing: .06em; color: #b3a692; }
.photo-viewer-nav { display: flex; gap: 12px; flex-shrink: 0; }
.photo-viewer-nav button { border-color: #8e8579; color: #eee6d8; width: 46px; height: 46px; }
.photo-viewer-nav button:hover { background: #e4dacc; color: #20201d; }
.photo-flight { position: fixed; z-index: 5; overflow: hidden; pointer-events: none; transform-origin: 0 0; box-shadow: 0 15px 60px #0003; }
.photo-flight img { display: block; width: 100%; height: 100%; object-fit: cover; }
.photo-image-error { color: #d3c9b7; font-size: 16px; }
.photo-pointer { position: fixed; z-index: 10; left: 0; top: 0; width: 66px; height: 66px; display: grid; place-items: center; border-radius: 50%; border: 1px solid #f8f2e6b3; background: #24221dc7; color: #f1e7d7; pointer-events: none; font: 13px/1 Newsreader, var(--serif-cn); opacity: 0; scale: .5; transition: opacity .2s, scale .4s var(--photo-ease); }
.photo-pointer.is-visible { opacity: 1; scale: 1; }
@media (hover: hover) and (pointer: fine) {
  .photo-image-link:hover img, .photo-image-link:focus-visible img { transform: scale(1.045); filter: saturate(1); }
  .photo-image-link:hover .photo-open { transform: rotate(45deg); background: #25231faa; }
  .photo-strip { cursor: grab; }
  .photo-ready .photo-image-link { cursor: none; }
}
@media (prefers-reduced-motion: no-preference) {
  .photo-masthead h1 { animation: photo-headline 1.3s var(--photo-ease) both; }
  .photo-deck { animation: arrive 1s .15s var(--photo-ease) both; }
  .photo-ready [data-photo-reveal] { transition: clip-path 1.4s var(--photo-ease), opacity 1s ease, translate 1.4s var(--photo-ease); }
  .photo-ready [data-photo-reveal].photo-waiting { clip-path: inset(0 0 100% 0); opacity: .35; translate: 0 22px; }
  .photo-ready [data-photo-reveal].is-visible { clip-path: inset(-6px -6px -6px -6px); opacity: 1; translate: 0 0; }
  .photo-viewer.is-opening::backdrop { animation: photo-backdrop .6s ease both; }
}
@keyframes photo-headline { from { clip-path: inset(100% 0 0 0); transform: translateY(20px); } to { clip-path: inset(0); transform: none; } }
@keyframes photo-backdrop { from { opacity: 0; } to { opacity: 1; } }
@media (max-width: 1000px) {
  .photo-journal, .photography-page .head-inner, .photography-page .daily-panel { width: calc(100% - 48px); }
  .photo-cover { gap: 22px; }
  .photo-side { padding-left: 22px; }
  .photo-editorial { gap: 15px; }
  .photo-editorial > p { font-size: 21px; }
  .photo-seal { width: 75px; height: 75px; }
  .photo-card--strip { flex-basis: 39%; }
  .photo-deck { grid-template-columns: 1fr auto; }
  .photo-deck > span { display: none; }
  .photo-deck > p { text-align: left; }
}
@media (max-width: 640px) {
  .photo-journal, .photography-page .head-inner, .photography-page .daily-panel { width: calc(100% - 36px); }
  .photo-edition { font-size: 9px; letter-spacing: 0; }
  .photo-edition > :nth-child(2) { font-size: 13px; }
  .photo-masthead h1 { font-size: 12.7vw; }
  html[lang="zh-CN"] .photo-masthead h1 { font-size: 18vw; letter-spacing: .09em; padding-left: .09em; }
  .photo-deck { gap: 12px; padding-block: 12px; }
  .photo-deck p { font-size: 12px; max-width: 21em; }
  .photo-deck > a { font-size: 11px; }
  .photo-cover { grid-template-columns: 1fr; gap: 30px; }
  .photo-card--lead .photo-image-link { aspect-ratio: 1.35; }
  .photo-side { border-left: 0; padding-left: 0; display: grid; grid-template-columns: 1.2fr 1fr; gap: 20px; align-items: center; }
  .photo-card--side h2 { font-size: 20px; }
  .photo-card--side figcaption > p { font-size: 12px; }
  .photo-editorial { border: 0; margin: 0; padding: 0; flex-direction: column; text-align: center; }
  .photo-editorial > p, html[lang="zh-CN"] .photo-editorial > p { font-size: 17px; }
  .photo-archive { margin-top: 42px; padding-top: 28px; }
  .photo-archive-heading h2 { font-size: 36px; }
  .photo-archive-heading { align-items: flex-start; }
  .photo-archive-heading > p { font-size: 10px; max-width: 12em; }
  .photo-filters { gap: 1px; }
  .photo-filters button { padding: 5px 9px; font-size: 12px; }
  .photo-arrows button { width: 29px; height: 29px; }
  .photo-arrows { gap: 5px; }
  .photo-card--strip { flex-basis: 77%; }
  .photo-strip { gap: 20px; padding-top: 22px; }
  .photo-endmark { gap: 16px; }
  .photo-endmark p { font-size: 20px; }
  .photo-endmark > a { font-size: 11px; }
  .photography-page .daily-panel { align-items: flex-start; flex-direction: column; gap: 18px; }
  .photography-page .daily-panel .daily-verse { text-align: left; }
  .photo-viewer { padding: 16px; gap: 16px; }
  .photo-viewer-bottom { align-items: flex-end; }
  .photo-viewer-bottom p { font-size: 12px; }
  .photo-viewer-nav { gap: 8px; }
  .photo-viewer-nav button { width: 36px; height: 36px; }
}
@media (prefers-reduced-motion: reduce) {
  .photo-pointer { display: none; }
  .photo-ready .photo-image-link { cursor: zoom-in; }
  .photo-image-link img { transform: none !important; }
}
