/* Emilia Sipola, nature photographer (site/valokuvaaja.mjs): a photographer's portfolio in the classic order, made
   with care. Cool near-black ground so her low-key photos run to the edge, warm grey-white type, one reed gold for
   the booking. Hanken Grotesk. The full-width 12-column grid; photos are never boxed or rounded. */
@font-face {
  font-family: "Hanken Grotesk";
  src: url("fonts/hanken-grotesk-latin.woff2") format("woff2");
  font-weight: 200 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #0b0c0d;
  --bg-2: #141618;
  --ink: #ebe8e3;
  --ink-2: #a19e99;
  --ink-3: #8b8884;
  --line: rgba(235, 232, 227, .13);
  --line-2: rgba(235, 232, 227, .3);
  --gold: #c9a467;
  --gold-hi: #dab87e;
  --on-gold: #17130b;
  --gut: clamp(16px, 2.8vw, 64px);
  --gap: clamp(12px, 1.6vw, 40px);
  --ease: cubic-bezier(.16, 1, .3, 1);
  --top-h: 4.5rem;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { font-size: clamp(15px, .35vw + 11px, 22px); scroll-behavior: smooth; scroll-padding-top: var(--top-h); scrollbar-color: #2b2e31 var(--bg); }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 400 1rem/1.6 "Hanken Grotesk", system-ui, sans-serif; font-feature-settings: "tnum" 0;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
::selection { background: rgba(201, 164, 103, .35); color: var(--ink); }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: .25em; }
h1, h2, p, dl, dd, figure { margin: 0; }
h1, h2 { font-weight: 300; letter-spacing: -.02em; line-height: 1.05; text-wrap: balance; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 2px; }
button { font: inherit; color: inherit; }

.ph-skip { position: absolute; left: var(--gut); top: -4rem; z-index: 30; background: var(--ink); color: var(--bg); padding: .6rem 1rem; border-radius: 4px; text-decoration: none; }
.ph-skip:focus { top: 1rem; }

/* ---- header: over the photo on the front page, solid once past it (the script sets .is-solid) ---- */
.ph-top {
  position: fixed; inset: 0 0 auto; z-index: 20; height: var(--top-h);
  display: flex; align-items: center; justify-content: space-between; gap: 2rem; padding-inline: var(--gut);
  background: rgba(11, 12, 13, .94); box-shadow: 0 1px 0 var(--line);
  transition: background-color .5s var(--ease), box-shadow .5s var(--ease);
}
.ph-top-over:not(.is-solid) { background: transparent; box-shadow: none; }
.ph-name { font-size: .82rem; font-weight: 400; letter-spacing: .32em; text-transform: uppercase; text-decoration: none; white-space: nowrap; }
.ph-nav { display: flex; align-items: center; gap: clamp(1.2rem, 2.4vw, 3rem); font-size: .88rem; }
.ph-nav > a { color: var(--ink-2); text-decoration: none; transition: color .25s; }
.ph-nav > a:hover { color: var(--ink); }
.ph-top-over:not(.is-solid) .ph-nav > a { color: rgba(235, 232, 227, .82); }
.ph-top-over:not(.is-solid) .ph-nav > a:hover { color: var(--ink); }
.ph-lang { display: inline-flex; gap: .7rem; padding-left: clamp(.4rem, 1vw, 1.2rem); }
.ph-lang a { color: var(--ink-3); text-decoration: none; font-size: .8rem; letter-spacing: .08em; }
.ph-lang a:hover, .ph-lang a[aria-current] { color: var(--ink); }
.ph-menu { display: none; }

/* ---- the first screen: one photo, the name in the header, who and where at the bottom ---- */
.ph-hero { position: relative; height: 100svh; min-height: 32rem; overflow: hidden; background: #1a1714; }
.ph-hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 37% 42%; animation: ph-settle 2.8s var(--ease) both; }
.ph-hero::before, .ph-hero::after { content: ""; position: absolute; inset-inline: 0; z-index: 1; pointer-events: none; }
.ph-hero::before { top: 0; height: 9rem; background: linear-gradient(rgba(6, 7, 8, .5), rgba(6, 7, 8, 0)); }
.ph-hero::after { bottom: 0; height: 14rem; background: linear-gradient(rgba(6, 7, 8, 0), rgba(6, 7, 8, .55)); }
.ph-hero-foot { position: absolute; inset: auto var(--gut) clamp(1.5rem, 4vh, 3rem); z-index: 2; display: flex; align-items: flex-end; justify-content: space-between; gap: 2rem; }
.ph-hero h1 { font-size: clamp(1.7rem, 2.8vw, 3.6rem); }
.ph-hero-foot p a { display: flex; flex-direction: column; align-items: flex-end; text-decoration: none; font-size: .95rem; }
.ph-hero-foot p span { color: rgba(235, 232, 227, .7); font-size: .8rem; }
.ph-hero-foot p a:hover { text-decoration: underline; }
@keyframes ph-settle { from { transform: scale(1.04); } to { transform: none; } }

/* ---- section heads: the heading left, its line to the right ---- */
.ph-head, .ph-covers, .ph-walk, .ph-about, .ph-contact, .ph-set-head, .ph-next {
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); padding-inline: var(--gut);
}
.ph-series { padding-block: clamp(6rem, 14vh, 12rem) clamp(4rem, 10vh, 9rem); }
.ph-head { align-items: end; margin-bottom: clamp(2.5rem, 6vh, 5rem); }
.ph-head h2, .ph-walk h2, .ph-about h2, .ph-contact h2 { font-size: clamp(1.7rem, 2.3vw, 2.8rem); }
.ph-head h2 { grid-column: 1 / 6; }
.ph-head p { grid-column: 7 / 12; color: var(--ink-2); font-size: 1.05rem; max-width: 36rem; }

/* ---- the series: three rows of two, each cover framed in (nearly) its own photo's shape so no subject is cut:
   two 5:4 covers, then a 3:2 beside an upright 4:5 (the row's height set by the upright's four columns), then two 3:2 ---- */
.ph-covers { list-style: none; margin: 0; row-gap: clamp(2.5rem, 6vh, 4.5rem); }
.ph-cover-1 { grid-column: 1 / 7; }
.ph-cover-2 { grid-column: 7 / 13; }
.ph-cover-3 { grid-column: 1 / 9; }
.ph-cover-4 { grid-column: 9 / 13; }
.ph-cover-5 { grid-column: 1 / 7; }
.ph-cover-6 { grid-column: 7 / 13; }
.ph-cover a { display: grid; grid-template-columns: 1fr auto; row-gap: .9rem; text-decoration: none; }
.ph-cover-frame { grid-column: 1 / -1; display: block; overflow: hidden; background: var(--bg-2); aspect-ratio: 3 / 2; }
.ph-cover-1 .ph-cover-frame, .ph-cover-2 .ph-cover-frame { aspect-ratio: 5 / 4; }
.ph-cover-3 .ph-cover-frame, .ph-cover-4 .ph-cover-frame { aspect-ratio: auto; height: calc(((100vw - 2 * var(--gut) - 11 * var(--gap)) / 12 * 4 + 3 * var(--gap)) * 1.25); }
.ph-cover-frame img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.4s var(--ease); }
.ph-cover-name { font-size: 1.3rem; font-weight: 400; letter-spacing: -.01em; }
.ph-cover-meta { align-self: center; color: var(--ink-3); font-size: .82rem; font-variant-numeric: tabular-nums; }
.ph-cover a:hover .ph-cover-frame img { transform: scale(1.025); }
.ph-cover a:hover .ph-cover-name { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .3em; }

/* ---- a photo that opens full screen ---- */
.ph-open { display: block; padding: 0; border: 0; background: none; cursor: zoom-in; }

/* ---- the photo walk: the barn on the left, the walk and its booking on the right ---- */
.ph-walk { padding-block: clamp(5rem, 12vh, 10rem); border-top: 1px solid var(--line); align-items: start; }
.ph-walk-photo { grid-column: 1 / 6; position: sticky; top: calc(var(--top-h) + 2rem); }
.ph-walk-photo .ph-open { width: fit-content; max-width: 100%; }
.ph-walk-photo img { width: auto; max-width: 100%; max-height: calc(100svh - var(--top-h) - 4rem); }
.ph-walk-text { grid-column: 7 / 13; max-width: 40rem; }
.ph-walk-text > p { margin-top: 1.6rem; color: var(--ink-2); font-size: 1.08rem; }
.ph-facts { margin-top: 2.6rem; border-top: 1px solid var(--line); }
.ph-facts div { display: grid; grid-template-columns: 7.5rem 1fr; gap: 1.5rem; padding-block: .85rem; border-bottom: 1px solid var(--line); }
.ph-facts dt { color: var(--ink-3); font-size: .88rem; }
.ph-facts dd { font-size: .98rem; }
.ph-form { margin-top: 3rem; display: grid; gap: 1.8rem; }
.ph-dates { border: 0; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .6rem; }
.ph-dates legend { padding: 0; margin-bottom: .8rem; color: var(--ink-3); font-size: .88rem; }
.ph-date { position: relative; }
.ph-date input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.ph-date span { display: block; padding: .65rem 1rem; border: 1px solid var(--line-2); border-radius: 4px; font-size: .95rem; font-variant-numeric: tabular-nums; transition: border-color .2s, background-color .2s, color .2s; }
.ph-date:hover span { border-color: var(--ink-2); }
.ph-date input:checked + span { border-color: var(--gold); background: rgba(201, 164, 103, .12); color: var(--ink); }
.ph-date input:focus-visible + span { outline: 2px solid var(--gold); outline-offset: 3px; }
.ph-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem var(--gap); }
.ph-field { display: grid; gap: .3rem; }
.ph-field span { color: var(--ink-3); font-size: .85rem; }
.ph-field input, .ph-field textarea {
  width: 100%; padding: .55rem 0; border: 0; border-bottom: 1px solid var(--line-2); border-radius: 0; background: transparent;
  color: var(--ink); font: inherit; caret-color: var(--gold); transition: border-color .2s;
}
.ph-field input:focus, .ph-field textarea:focus { outline: none; border-bottom-color: var(--gold); }
.ph-field textarea { resize: vertical; min-height: 6rem; line-height: 1.5; }
.ph-field input[aria-invalid="true"] { border-bottom-color: #e0896b; }
.ph-form-err { color: #eba48a; font-size: .9rem; }
.ph-btn {
  justify-self: start; padding: .95rem 1.4rem; border: 0; border-radius: 4px; background: var(--gold); color: var(--on-gold);
  font-weight: 600; font-size: .98rem; cursor: pointer; transition: background-color .2s;
}
.ph-btn:hover { background: var(--gold-hi); }
.ph-btn:active { transform: translateY(1px); }
.ph-form-done { padding-top: 1.2rem; border-top: 1px solid var(--line); font-size: 1.05rem; }
.ph-form.is-done .ph-dates, .ph-form.is-done .ph-fields, .ph-form.is-done > .ph-field, .ph-form.is-done .ph-btn { display: none; }

/* ---- about: the words on the left, a photo on the right ---- */
.ph-about { padding-block: clamp(5rem, 12vh, 10rem); border-top: 1px solid var(--line); align-items: center; }
.ph-about-text { grid-column: 1 / 6; max-width: 34rem; }
.ph-about-text p { margin-top: 1.4rem; color: var(--ink-2); font-size: 1.08rem; }
.ph-about-text p:first-of-type { color: var(--ink); }
.ph-about-photo { grid-column: 7 / 13; }

/* ---- contact: the heading left; the form, the email and Instagram on the right ---- */
.ph-contact { padding-block: clamp(5rem, 12vh, 10rem) clamp(6rem, 16vh, 12rem); border-top: 1px solid var(--line); align-items: start; }
.ph-contact h2 { grid-column: 1 / 6; }
.ph-contact-body { grid-column: 7 / 13; max-width: 40rem; }
.ph-contact-ways { display: flex; flex-wrap: wrap; gap: .5rem 2rem; margin-top: 2.5rem; padding-top: 1.4rem; border-top: 1px solid var(--line); }
.ph-contact-ways a { color: var(--ink-2); }
.ph-contact-ways a:hover { color: var(--ink); }

/* ---- footer ---- */
.ph-foot { padding: 2.5rem var(--gut) 3rem; border-top: 1px solid var(--line); display: grid; gap: 1.6rem; color: var(--ink-3); font-size: .85rem; }
.ph-foot-demo { max-width: 60ch; }
.ph-foot-demo strong { color: var(--ink-2); font-weight: 600; }
.ph-foot-end { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem 2rem; }
.ph-foot-end > a { color: var(--ink-2); }
.ph-foot-end > a:hover { color: var(--ink); }
.ph-foot .ph-lang { padding: 0; margin-left: auto; }

/* ---- a series page: the name and its line, then each photo large ---- */
.ph-set { padding-top: calc(var(--top-h) + clamp(4rem, 12vh, 9rem)); }
.ph-set-head { align-items: end; margin-bottom: clamp(3rem, 8vh, 6rem); }
.ph-set-head h1 { grid-column: 1 / 7; font-size: clamp(2.1rem, 3.4vw, 3.8rem); }
.ph-set-head p { grid-column: 7 / 11; color: var(--ink-2); font-size: 1.05rem; }
.ph-set-head .ph-set-n { grid-column: 11 / 13; justify-self: end; color: var(--ink-3); font-size: .85rem; font-variant-numeric: tabular-nums; }
/* each photo on the columns its shape fits, the caption beside its lower edge; the panorama runs edge to edge */
.ph-shot { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); align-items: end; padding-inline: var(--gut); margin-bottom: clamp(4rem, 12vh, 9rem); }
.ph-shot .ph-open, .ph-shot img { width: 100%; }
.ph-shot figcaption { color: var(--ink-2); font-size: .9rem; }
.ph-shot-land .ph-open { grid-column: 1 / 11; }
.ph-shot-land figcaption { grid-column: 11 / 13; }
.ph-shot-square .ph-open { grid-column: 1 / 9; }
.ph-shot-square figcaption { grid-column: 9 / 13; }
.ph-shot-tall .ph-open { grid-column: 1 / 6; }
.ph-shot-tall figcaption { grid-column: 6 / 13; }
.ph-shot-r .ph-open { grid-column: 8 / 13; grid-row: 1; }
.ph-shot-r figcaption { grid-column: 1 / 8; grid-row: 1; justify-self: end; text-align: right; }
.ph-shot-wide { padding-inline: 0; row-gap: 1rem; }
.ph-shot-wide .ph-open { grid-column: 1 / -1; }
.ph-shot-wide figcaption { grid-column: 1 / -1; padding-inline: var(--gut); }
.ph-next { padding-block: clamp(3rem, 8vh, 6rem) clamp(5rem, 12vh, 9rem); border-top: 1px solid var(--line); text-decoration: none; grid-template-rows: 1fr auto; row-gap: .6rem; }
.ph-next-label { grid-column: 1 / 7; grid-row: 2; color: var(--ink-3); font-size: .88rem; }
.ph-next-name { grid-column: 1 / 7; grid-row: 1; align-self: end; font-size: clamp(1.7rem, 2.3vw, 2.8rem); font-weight: 300; letter-spacing: -.02em; line-height: 1.05; }
.ph-next-frame { grid-column: 8 / 13; grid-row: 1 / 3; display: block; height: clamp(12rem, 22vw, 40rem); overflow: hidden; background: var(--bg-2); }
.ph-next-frame img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.4s var(--ease); }
.ph-next:hover .ph-next-frame img { transform: scale(1.025); }
.ph-next:hover .ph-next-name { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .15em; }

/* ---- her one line, after the first photo: quiet, on its own ---- */
.ph-say { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); padding: clamp(6rem, 18vh, 14rem) var(--gut) clamp(2rem, 6vh, 5rem); }
.ph-say p { grid-column: 1 / 9; font-size: clamp(1.7rem, 2.6vw, 3.2rem); font-weight: 300; letter-spacing: -.02em; line-height: 1.15; text-wrap: balance; }
.ph-say + .ph-series { padding-top: clamp(3rem, 8vh, 6rem); }

/* ---- teaching and prints on the front page: a price list, one row each ---- */
.ph-offer { padding-block: clamp(5rem, 12vh, 10rem); border-top: 1px solid var(--line); }
.ph-rows { list-style: none; margin: 0; padding: 0 var(--gut); border-top: 1px solid var(--line); }
.ph-rows a { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); align-items: baseline; padding-block: 1.3rem; border-bottom: 1px solid var(--line); text-decoration: none; }
.ph-rows b { grid-column: 1 / 6; font-weight: 400; font-size: 1.2rem; }
.ph-rows span { grid-column: 7 / 11; color: var(--ink-2); }
.ph-rows .ph-rows-price { grid-column: 11 / 13; justify-self: end; color: var(--ink); font-variant-numeric: tabular-nums; }
.ph-rows a:hover b { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .3em; }

/* ---- the teaching and prints pages' openings ---- */
.ph-page-head { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); align-items: end; padding: calc(var(--top-h) + clamp(4rem, 12vh, 9rem)) var(--gut) clamp(3rem, 8vh, 6rem); }
.ph-page-head h1 { grid-column: 1 / 7; font-size: clamp(2.1rem, 3.4vw, 3.8rem); }
.ph-page-head > p { grid-column: 7 / 12; color: var(--ink-2); font-size: 1.05rem; max-width: 36rem; }
.ph-page-head .ph-facts { grid-column: 7 / 12; }
.ph-page-head + .ph-walk { border-top: 0; padding-top: 0; }

/* ---- prints: the photos in three columns, each whole, with its sizes under it ---- */
.ph-prints { padding: 0 var(--gut) clamp(4rem, 10vh, 8rem); }
.ph-print-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(3rem, 7vh, 5rem) var(--gap); align-items: end; }
.ph-print-photo .ph-open { width: 100%; }
.ph-print-photo img { width: 100%; }
.ph-print-name { margin-top: .9rem; }
.ph-print-pick { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .7rem; }
.ph-size { padding: .55rem .85rem; border: 1px solid var(--line-2); border-radius: 4px; background: none; font-size: .88rem; font-variant-numeric: tabular-nums; cursor: pointer; transition: border-color .2s, background-color .2s; }
.ph-size:hover { border-color: var(--gold); }
.ph-size.is-added { border-color: var(--gold); background: rgba(201, 164, 103, .14); }

/* ---- the print order ---- */
.ph-cart { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); padding: clamp(4rem, 10vh, 8rem) var(--gut); border-top: 1px solid var(--line); align-items: start; }
.ph-cart h2 { grid-column: 1 / 6; font-size: clamp(1.7rem, 2.3vw, 2.8rem); }
.ph-cart-body { grid-column: 7 / 13; max-width: 40rem; }
.ph-cart-empty { color: var(--ink-2); }
.ph-cart-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.ph-cart-list:empty { display: none; }
.ph-cart-list li { display: grid; grid-template-columns: 1fr auto auto auto; gap: 1.2rem; align-items: baseline; padding-block: .8rem; border-bottom: 1px solid var(--line); }
.ph-cart-size { color: var(--ink-2); font-size: .9rem; }
.ph-cart-price { font-variant-numeric: tabular-nums; }
.ph-cart-x { padding: 0; border: 0; background: none; color: var(--ink-3); font-size: .85rem; text-decoration: underline; text-underline-offset: .25em; cursor: pointer; }
.ph-cart-x:hover { color: var(--ink); }
.ph-cart-total { margin-top: 1rem; font-size: 1.1rem; font-variant-numeric: tabular-nums; }
.ph-cart-form { margin-top: 2.5rem; }

/* ---- the full-screen viewer ---- */
.ph-lb {
  width: 100vw; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0;
  background: rgba(7, 8, 9, .98); color: var(--ink); overflow: hidden;
}
.ph-lb::backdrop { background: rgba(7, 8, 9, .9); }
.ph-lb[open] { animation: ph-fade .35s var(--ease); }
.ph-lb-fig { position: absolute; inset: clamp(3.5rem, 7vh, 5rem) clamp(3.5rem, 6vw, 7rem) clamp(1.2rem, 3vh, 2rem); display: grid; grid-template-rows: 1fr auto; gap: 1rem; }
.ph-lb-fig img { width: 100%; height: 100%; min-height: 0; object-fit: contain; transition: opacity .3s var(--ease); }
.ph-lb-fig img.is-loading { opacity: 0; }
.ph-lb-cap { display: flex; justify-content: space-between; gap: 1rem; color: var(--ink-2); font-size: .9rem; }
.ph-lb-n { color: var(--ink-3); font-variant-numeric: tabular-nums; }
.ph-lb-btn { position: absolute; width: 3rem; height: 3rem; display: grid; place-items: center; padding: 0; border: 0; border-radius: 4px; background: none; color: var(--ink-2); cursor: pointer; transition: color .2s, background-color .2s; }
.ph-lb-btn:hover { color: var(--ink); background: rgba(235, 232, 227, .06); }
.ph-lb-btn svg { width: 1.5rem; height: 1.5rem; fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
.ph-lb-prev { left: clamp(.4rem, 1.5vw, 2rem); top: 50%; translate: 0 -50%; }
.ph-lb-next { right: clamp(.4rem, 1.5vw, 2rem); top: 50%; translate: 0 -50%; }
.ph-lb-close { right: clamp(.4rem, 1.5vw, 2rem); top: clamp(.4rem, 1.5vh, 1.2rem); }
.ph-lb.is-single .ph-lb-prev, .ph-lb.is-single .ph-lb-next { display: none; }
@keyframes ph-fade { from { opacity: 0; } to { opacity: 1; } }
html:has(.ph-lb[open]) { overflow: hidden; }

/* ---- narrower screens ---- */
@media (max-width: 900px) {
  .ph-head h2, .ph-head p, .ph-walk-photo, .ph-walk-text, .ph-about-text, .ph-about-photo, .ph-contact h2, .ph-contact-body,
  .ph-set-head h1, .ph-set-head p, .ph-set-head .ph-set-n, .ph-next-label, .ph-next-name, .ph-next-frame { grid-column: 1 / -1; }
  .ph-head p, .ph-set-head p { margin-top: 1rem; }
  .ph-say p, .ph-page-head h1, .ph-page-head > p, .ph-page-head .ph-facts, .ph-cart h2, .ph-cart-body { grid-column: 1 / -1; }
  .ph-page-head > p, .ph-page-head .ph-facts, .ph-cart-body { margin-top: 1.2rem; }
  .ph-rows b, .ph-rows span { grid-column: 1 / 10; }
  .ph-rows .ph-rows-price { grid-column: 10 / 13; grid-row: 1; }
  .ph-print-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ph-cover-1, .ph-cover-2, .ph-cover-3, .ph-cover-4, .ph-cover-5, .ph-cover-6 { grid-column: 1 / -1; }
  .ph-cover-frame, .ph-cover-3 .ph-cover-frame { height: auto; aspect-ratio: 4 / 3; }
  .ph-cover-4 .ph-cover-frame { height: auto; aspect-ratio: 4 / 5; }
  .ph-walk-photo { position: static; margin-bottom: 2.5rem; }
  .ph-walk-photo img { max-height: 80svh; }
  .ph-about-photo { margin-top: 2.5rem; }
  .ph-set-head .ph-set-n { justify-self: start; margin-top: .4rem; }
  .ph-shot .ph-open, .ph-shot figcaption { grid-column: 1 / -1; grid-row: auto; justify-self: start; text-align: left; }
  .ph-shot figcaption { margin-top: 1rem; }
  .ph-next-label { grid-row: auto; }
  .ph-next-name { grid-row: auto; }
  .ph-next-frame { grid-row: auto; height: auto; aspect-ratio: 16 / 10; }
}
@media (max-width: 800px) {
  .ph-menu {
    display: inline-flex; align-items: center; gap: .5rem; padding: .5rem 0; border: 0; background: none; cursor: pointer; font-size: .9rem;
  }
  .ph-menu::after { content: ""; width: 1.1rem; height: .5rem; border-block: 1px solid currentColor; transition: transform .3s var(--ease); }
  .ph-menu[aria-expanded="true"]::after { transform: scaleY(.2); }
  .ph-nav {
    position: absolute; inset: var(--top-h) 0 auto; flex-direction: column; align-items: flex-start; gap: 0; padding: .5rem var(--gut) 1.5rem;
    background: rgba(11, 12, 13, .97); box-shadow: 0 1px 0 var(--line); font-size: 1.15rem;
    visibility: hidden; opacity: 0; transform: translateY(-.5rem); transition: opacity .3s var(--ease), transform .3s var(--ease), visibility 0s .3s;
  }
  .ph-nav > a { width: 100%; padding-block: .75rem; border-bottom: 1px solid var(--line); color: var(--ink); }
  .ph-nav .ph-lang { padding: 1rem 0 0; }
  .ph-top.is-open .ph-nav { visibility: visible; opacity: 1; transform: none; transition: opacity .3s var(--ease), transform .3s var(--ease); }
  .ph-top.is-open { background: rgba(11, 12, 13, .97); }
  .ph-hero-foot { flex-direction: column; align-items: flex-start; }
  .ph-hero-foot p a { align-items: flex-start; }
  .ph-fields { grid-template-columns: 1fr; }
  .ph-print-list { grid-template-columns: 1fr; }
  .ph-facts div { grid-template-columns: 6rem 1fr; gap: 1rem; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
