:root {
  color-scheme: light;
  --paper: #faf9f6;
  --ink: #191a17;
  --muted: #62635a;
  --line: #deddd5;
  --gutter: clamp(18px, 4vw, 72px);
  --gap: clamp(10px, 1.3vw, 24px);
  font-family: Arial, Helvetica, sans-serif;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; background: var(--paper); color: var(--ink); }
body:has(dialog[open]) { overflow: hidden; }
button, select, a { font: inherit; color: inherit; }
a { text-decoration: none; }
button, select { cursor: pointer; }
a:focus-visible, button:focus-visible, select:focus-visible {
  outline: 2px solid #377263;
  outline-offset: 3px;
}
.page-width { width: min(100%, 1800px); padding-inline: var(--gutter); margin-inline: auto; }
.skip { position: fixed; z-index: 5; top: 8px; left: 10px; padding: 12px; background: var(--paper); transform: translateY(-150%); }
.skip:focus { transform: none; }
.site-header { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 22px; min-height: 98px; }
.brand, .site-nav, .language { display: flex; align-items: center; }
.brand { gap: 11px; width: fit-content; font-size: 12px; font-weight: 700; letter-spacing: .15em; text-transform: uppercase; }
.brand img { object-fit: contain; }
.site-nav, .language { gap: clamp(14px, 2.3vw, 30px); font-size: 11px; letter-spacing: .09em; text-transform: uppercase; font-weight: 700; }
.language { justify-self: end; gap: 9px; }
.site-nav a, .language a { padding: 6px 0; border-bottom: 1px solid transparent; }
.site-nav a:hover, .language a:hover, .language a[aria-current] { border-color: currentColor; }
.language a:not([aria-current]) { color: var(--muted); }
.intro {
  min-height: clamp(145px, 16vw, 205px);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: flex-start;
  gap: 14px;
  padding-bottom: clamp(26px, 4vw, 50px);
  border-bottom: 1px solid var(--line);
  scroll-margin-top: 16px;
}
.intro h1 { margin: 0; font-size: clamp(2.15rem, 5.2vw, 5.2rem); font-weight: 500; letter-spacing: -.065em; line-height: .99; }
.intro p { margin: 0; color: var(--muted); font-size: clamp(.91rem, 1.2vw, 1.06rem); line-height: 1.5; }
.filter-bar { display: flex; justify-content: space-between; align-items: center; gap: 12px 28px; flex-wrap: wrap; padding: 13px 0; border-bottom: 1px solid var(--line); }
.subjects, .selects { display: flex; align-items: center; flex-wrap: wrap; gap: 5px 15px; }
.subject, .reset { border: 0; background: transparent; color: var(--muted); }
.subject { min-height: 36px; padding: 5px 0; border-bottom: 1px solid transparent; font-size: 12px; }
.subject:hover, .subject[aria-pressed="true"] { border-color: var(--ink); color: var(--ink); }
.subject[aria-pressed="true"] { font-weight: 700; }
.selects label { display: flex; align-items: center; gap: 5px; color: var(--muted); font-size: 11px; }
.selects select { max-width: 132px; height: 32px; padding: 2px 4px; border: 0; background: transparent; color: var(--ink); font-size: 12px; }
.results-bar { min-height: 38px; display: flex; align-items: center; justify-content: space-between; gap: 12px; color: var(--muted); font-size: 11px; }
.results-bar p { margin: 0; }
.reset { padding: 6px 0; font-size: 12px; text-decoration: underline; text-underline-offset: 3px; }
.reset:hover { color: var(--ink); }
.gallery { position: relative; margin-bottom: clamp(52px, 8vw, 114px); }
.work { position: absolute; display: block; overflow: hidden; background: #edebe5; cursor: zoom-in; }
.work img { display: block; width: 100%; height: auto; }
.work:focus-visible { z-index: 1; }
.work::after { content: '+'; position: absolute; inset: auto 10px 10px auto; width: 30px; height: 30px; display: grid; place-items: center; background: var(--paper); color: var(--ink); font-size: 17px; opacity: 0; transition: opacity .18s ease; }
.work:hover::after, .work:focus-visible::after { opacity: 1; }
.gallery-message { margin: 18px 0 75px; color: var(--muted); }
.print-info { display: grid; grid-template-columns: 1fr 2fr 1fr; align-items: baseline; gap: 28px; border-block: 1px solid var(--line); padding: 33px 0; }
.print-info h2 { margin: 0; font-size: 13px; letter-spacing: .1em; text-transform: uppercase; }
.print-info p { margin: 0; font-size: 14px; line-height: 1.55; }
.print-info p + p { margin-top: 7px; color: var(--muted); }
.print-info a { justify-self: end; font-size: 13px; text-decoration: underline; text-underline-offset: 4px; }
.site-footer { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding-block: 26px 36px; color: var(--muted); }
.site-footer small, .site-footer a { font-size: 11px; }
.site-footer a:hover { color: var(--ink); }
.viewer { padding: 0; border: 0; margin: 0; max-width: none; max-height: none; inset: 0; width: 100%; height: 100%; background: #161715; color: #faf9f6; }
.viewer::backdrop { background: #161715; }
.viewer-inner { position: relative; width: 100%; height: 100%; display: grid; grid-template-rows: minmax(0, 1fr) auto; gap: 16px; padding: 50px 74px 24px; }
.viewer-media { min-height: 0; display: grid; place-items: center; }
.viewer-media img { display: block; width: 100%; height: 100%; min-height: 0; object-fit: contain; }
.viewer-caption { display: flex; align-items: end; justify-content: space-between; gap: 15px; width: min(100%, 920px); margin-inline: auto; }
.viewer-caption h2 { margin: 0; font-size: clamp(1.1rem, 2.2vw, 1.7rem); font-weight: 500; letter-spacing: -.02em; }
#photo-category { margin: 0 0 5px; color: #c4c3b8; font-size: 11px; }
.viewer-actions { display: flex; gap: 7px 18px; flex-wrap: wrap; align-items: center; justify-content: end; font-size: 12px; color: #d0cec3; }
.viewer .reset { color: #d0cec3; }
.buy { background: var(--paper); color: var(--ink); padding: 10px 14px; }
.buy:hover { background: #e7e4d8; }
.icon { position: absolute; z-index: 1; width: 43px; height: 43px; display: grid; place-items: center; border: 0; background: transparent; color: #fff; font-size: 24px; }
.icon:hover { background: #ffffff20; }
.icon:disabled { opacity: .32; cursor: default; }
.close { right: 18px; top: 8px; font-size: 30px; }
.previous, .next { top: 47%; }
.previous { left: 12px; }
.next { right: 12px; }
@media (max-width: 690px) {
  .site-header { min-height: 78px; gap: 10px; }
  .brand { font-size: 10px; letter-spacing: .07em; gap: 6px; }
  .brand img { width: 23px; height: 29px; }
  .site-nav { display: none; }
  .language { grid-column: 3; }
  .intro { min-height: 133px; }
  .filter-bar { gap: 4px; padding-block: 7px; }
  .subjects { width: 100%; gap: 0 13px; }
  .selects { gap: 0 12px; }
  .print-info { grid-template-columns: 1fr; gap: 14px; padding-block: 24px; }
  .print-info a { justify-self: start; }
  .viewer-inner { padding: 50px 12px 68px; gap: 12px; }
  .viewer-caption { align-items: start; flex-direction: column; }
  .viewer-actions { justify-content: start; }
  .previous, .next { top: auto; bottom: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  .work::after { transition: none; }
}
