/* A small exhibition wall: the photograph's whole composition lives inside a paper mount. */
.photography-view {
  --frame-edge: #75685d;
  --frame-rim: #b5a394;
  --frame-paper: #faf7f0;
  --frame-shadow: 0 18px 34px -18px rgba(53, 39, 31, .32), 2px 3px 6px rgba(53, 39, 31, .1);
}
[data-photo-collection="kale-26"] { --frame-paper: #0f1039; }
.photo-section-header, .photo-collection { max-width: 1400px; margin-inline: auto; }
.photo-section-header { display: flex; align-items: baseline; justify-content: space-between; gap: 1.5rem; margin-top: 1.25rem; margin-bottom: clamp(2rem, 4vw, 4rem); padding-bottom: 1rem; border-bottom: 1px solid var(--line); }
.photo-section-header .kicker { margin: 0; font-size: .63rem; }
.photo-edition { margin: 0; color: var(--muted); font-size: .68rem; white-space: nowrap; }
.photo-spread { display: grid; gap: clamp(1.8rem, 4.5vw, 5rem); align-items: center; margin-bottom: clamp(4rem, 8vw, 8rem); }
.photo-spread--opening { grid-template-columns: minmax(0, .83fr) minmax(0, 1.17fr); grid-template-rows: auto auto; column-gap: clamp(2.5rem, 7vw, 7rem); }
.photo-series-intro { grid-column: 2; grid-row: 1; padding: 0 0 .5rem; }
.photo-eyebrow { margin: 0 0 1rem; color: var(--muted); font-size: .58rem; font-weight: 700; letter-spacing: .13em; }
.photo-series-intro h2 { margin: 0; font: 400 clamp(4rem, 7.8vw, 8rem)/1.08 "Fraunces", Georgia, serif; font-variation-settings: "SOFT" 60, "WONK" 1; letter-spacing: -.055em; }
.photo-series-intro h2 em { color: var(--purple); font-weight: 400; }
.photo-series-dek { max-width: 36ch; margin: 1.3rem 0 0; color: var(--muted); font-size: clamp(.95rem, 1.2vw, 1.1rem); line-height: 1.7; }
.photo-handnote { margin: .85rem 0 0; color: var(--purple-dark); font: 500 clamp(1.5rem, 2.2vw, 2rem)/1.2 "Caveat", cursive; transform: rotate(-3deg); }
.photo-plate { min-width: 0; width: 100%; margin: 0; }
.photo-plate--city { grid-column: 1; grid-row: 1 / 3; align-self: center; }
.photo-plate--sky { grid-column: 2; grid-row: 2; }
.photo-frame { position: relative; display: block; width: 100%; margin: 0; padding: clamp(13px, 2.2vw, 30px); overflow: hidden; border: 3px solid var(--frame-edge); border-radius: 2px; outline: 1px solid var(--frame-rim); outline-offset: -1px; background: var(--frame-paper); box-shadow: var(--frame-shadow), inset 0 0 0 1px rgba(86, 68, 50, .13); cursor: zoom-in; transition: transform 220ms ease, box-shadow 220ms ease; }
.photo-frame img { display: block; width: 100%; height: auto; object-fit: contain; box-shadow: 0 0 0 1px rgba(39, 31, 25, .08); }
.photo-frame:hover { transform: translateY(-3px); box-shadow: 0 23px 38px -18px rgba(53, 39, 31, .35), 2px 5px 9px rgba(53, 39, 31, .1); }
.photo-frame:focus-visible { outline: 3px solid var(--purple); outline-offset: 6px; }
.photo-enlarge { position: absolute; right: clamp(20px, 3vw, 40px); bottom: clamp(20px, 3vw, 40px); display: grid; width: 34px; height: 34px; place-items: center; border: 1px solid rgba(255, 255, 255, .45); border-radius: 50%; background: rgba(30, 27, 32, .72); color: #fff; opacity: 0; transform: translateY(3px); transition: opacity 180ms ease, transform 180ms ease; font-size: .9rem; }
.photo-frame:is(:hover, :focus-visible) .photo-enlarge { opacity: 1; transform: none; }
.photo-plate figcaption { display: flex; align-items: baseline; gap: .8rem; margin-top: 1rem; padding-inline: .15rem; color: var(--muted); font-size: .78rem; line-height: 1.5; }
.photo-number { flex: 0 0 auto; color: var(--purple-dark); font-size: .56rem; font-weight: 600; letter-spacing: .04em; }
.photo-spread--street { grid-template-columns: minmax(0, 1.17fr) minmax(0, .83fr); grid-template-rows: 1fr auto 1fr; column-gap: clamp(2.5rem, 7vw, 7rem); row-gap: 0; }
.photo-plate--passing { grid-column: 1; grid-row: 2; }
.photo-margin-note { grid-column: 1; grid-row: 3; align-self: start; margin: 1.7rem 0 0 1.4rem; color: var(--purple-dark); font: 500 1.7rem/1.2 "Caveat", cursive; transform: rotate(-3deg); }
.photo-plate--threshold { grid-column: 2; grid-row: 1 / 4; }
.photo-spread--detail { width: min(100%, 1000px); margin-inline: auto; padding-inline: clamp(0px, 2vw, 2rem); }
.photo-spread--windows { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(1.8rem, 3vw, 3rem); align-items: start; margin-bottom: 3rem; }
.photo-spread--windows .photo-plate:last-child { margin-top: clamp(2rem, 4vw, 4rem); }
.photo-colophon { display: flex; align-items: center; justify-content: space-between; gap: 2rem; padding-block: 1.5rem 1rem; border-top: 1px solid var(--line); }
.photo-colophon p { display: flex; flex-wrap: wrap; gap: .25rem 1.2rem; margin: 0; color: var(--muted); font-size: .65rem; }
.photo-colophon .button { flex: 0 0 auto; font-size: .7rem; }

/* A separate native dialog leaves product screenshots and their interactions untouched. */
.photo-dialog { width: min(96vw, 1600px); max-width: 96vw; max-height: 96svh; margin: auto; padding: clamp(.75rem, 2vw, 1.5rem); overflow: auto; overscroll-behavior: contain; border: 1px solid var(--line); border-radius: 20px; background: var(--paper); color: var(--ink); box-shadow: 0 24px 100px rgba(0, 0, 0, .35); }
.photo-dialog::backdrop { background: rgba(18, 16, 23, .86); backdrop-filter: blur(12px); }
.photo-dialog[open] { display: flex; flex-direction: column; }
.photo-dialog-header { display: flex; flex: 0 0 auto; align-items: center; justify-content: space-between; gap: 1rem; padding-bottom: .75rem; }
.photo-dialog-header h2 { margin: 0; font: 400 1.6rem/1.2 "Fraunces", Georgia, serif; letter-spacing: -.04em; }
.photo-dialog-close, .photo-dialog-arrow { display: grid; flex: 0 0 auto; place-items: center; width: 44px; height: 44px; padding: 0; border: 1px solid var(--line); border-radius: 50%; background: var(--white); color: var(--ink); cursor: pointer; }
.photo-dialog-close { font-size: 1.6rem; }
.photo-dialog-arrow { font-size: 1.1rem; }
.photo-dialog-arrow:disabled { opacity: .3; cursor: default; }
.photo-dialog-stage { position: relative; display: grid; flex: 1 1 auto; min-height: 180px; place-items: center; }
.photo-dialog-stage img { grid-area: 1 / 1; display: block; width: 100%; height: min(70svh, 1000px); object-fit: contain; }
.photo-dialog-stage[aria-busy="true"] [data-photo-image], .photo-dialog-stage[data-state="error"] [data-photo-image] { visibility: hidden; }
.photo-dialog-stage[aria-busy="true"]::after { position: absolute; width: 20px; height: 20px; border: 1px solid var(--line); border-top-color: var(--purple); border-radius: 50%; content: ""; animation: photo-loading 900ms linear infinite; }
@keyframes photo-loading { to { transform: rotate(360deg); } }
.photo-load-error { position: absolute; inset: 0; display: grid; align-content: center; justify-items: center; padding: 1rem; background: var(--paper); color: var(--muted); text-align: center; }
.photo-load-error p { max-width: 30ch; font-size: .85rem; }
.photo-dialog-footer { display: flex; flex: 0 0 auto; align-items: center; justify-content: center; gap: clamp(1rem, 3vw, 3rem); padding-top: 1rem; }
.photo-dialog-footer > div { width: min(60vw, 38rem); text-align: center; }
.photo-dialog-count { margin: 0 0 .3rem; color: var(--purple-dark); font-size: .6rem; font-variant-numeric: tabular-nums; letter-spacing: .1em; }
[data-photo-caption] { margin: 0; color: var(--muted); font-size: .78rem; }
:root[data-theme="dark"] .photography-view { --frame-edge: #4d3d35; --frame-rim: #816b5b; --frame-shadow: 0 18px 40px -18px rgba(0, 0, 0, .65), 2px 3px 6px rgba(0, 0, 0, .2); }

@media (max-width: 1000px) and (min-width: 701px) {
  .photo-spread--opening, .photo-spread--street { column-gap: 2.5rem; }
  .photo-series-intro h2 { font-size: 5rem; }
  .photo-series-dek { font-size: .92rem; }
  .photo-frame { padding: 18px; }
}
@media (max-width: 700px) {
  .photo-section-header { gap: 1rem; margin-top: .8rem; margin-bottom: 2rem; }
  .photo-section-header .kicker { max-width: 24ch; font-size: .55rem; line-height: 1.6; }
  .photo-edition { font-size: .58rem; }
  .photo-spread { grid-template-columns: minmax(0, 1fr); grid-template-rows: none; gap: 2.5rem; margin-bottom: 3.5rem; }
  .photo-spread > * { grid-column: 1; grid-row: auto; }
  .photo-series-intro { padding: 0 .6rem .5rem; }
  .photo-series-intro h2 { font-size: clamp(4.5rem, 19vw, 7rem); }
  .photo-series-dek { max-width: 32ch; font-size: .94rem; }
  .photo-handnote { font-size: 1.75rem; }
  .photo-plate--city, .photo-plate--threshold { width: min(100%, 410px); justify-self: center; }
  .photo-frame { padding: clamp(13px, 4vw, 24px); }
  .photo-enlarge { right: 22px; bottom: 22px; width: 30px; height: 30px; opacity: .9; transform: none; }
  .photo-plate figcaption { margin-top: .8rem; font-size: .74rem; }
  .photo-margin-note { margin: -.8rem 0 0 1rem; font-size: 1.55rem; }
  .photo-spread--detail { padding: 0; }
  .photo-spread--windows .photo-plate:last-child { margin: 0; }
  .photo-colophon { flex-direction: column; align-items: flex-start; gap: 1.25rem; }
  .photo-colophon p { flex-direction: column; }
  .photo-dialog { max-height: 94svh; border-radius: 16px; }
  .photo-dialog-stage img { height: 63svh; }
  .photo-dialog-header h2 { font-size: 1.4rem; }
  [data-photo-caption] { font-size: .7rem; }
}
@media (prefers-reduced-motion: reduce) {
  .photo-frame:hover { transform: none; }
  .photo-dialog-stage[aria-busy="true"]::after { animation: none; }
}
