:root {
  font-family: Arial, Helvetica, sans-serif;
  color: #0b0b0b;
  background: #f2f2f2;
  --spread: min(54.5vw, 98svh, 68rem);
  --gap: calc(var(--spread) * .026);
}
* { box-sizing: border-box; }
body { margin: 0; min-height: 100svh; }
button, a { color: inherit; -webkit-tap-highlight-color: transparent; }
a { text-decoration: none; }
button { font: inherit; cursor: pointer; }
:focus-visible { outline: 1px solid currentColor; outline-offset: 4px; }
.masthead { display: grid; justify-items: center; padding-block: 5svh 5.2svh; }
.mark { display: block; }
.mark img { display: block; width: clamp(46px, 4vw, 74px); height: auto; }
.portfolio { padding-bottom: 3rem; }
.gallery { width: var(--spread); position: relative; margin-inline: auto; }
.spread { display: grid; grid-template-columns: 1fr 1.017fr; gap: var(--gap); }
.artwork { margin: 0; aspect-ratio: 2 / 3; overflow: hidden; background: #e5e5e5; }
.artwork img { display: block; width: 100%; height: 100%; object-fit: cover; }
.description-panel { min-width: 0; background: white; padding: clamp(12px, 1.05vw, 24px); font-size: clamp(10px, .64vw, 14px); line-height: 1.2; }
.description p { margin: 0 0 1.05em; }
.description p:last-child { margin-bottom: 0; }
.description .translation { margin-top: 1.5em; word-break: keep-all; overflow-wrap: anywhere; }
.arrow { position: absolute; top: -10px; width: 44px; height: 44px; border: 0; background: transparent; display: grid; place-items: center; }
.arrow::before { content: ""; width: clamp(9px, 1vw, 15px); height: clamp(9px, 1vw, 15px); border-right: 1px solid; border-top: 1px solid; }
.previous { right: calc(100% + 4.9vw); }
.next { left: calc(100% + 4.9vw); }
.previous::before { transform: rotate(-135deg); }
.next::before { transform: rotate(45deg); }
.arrow:disabled { opacity: .25; cursor: default; }
.pagination { display: flex; justify-content: center; align-items: center; margin-top: 6px; }
.dot { width: 12px; height: 30px; padding: 0; display: grid; place-items: center; border: 0; background: transparent; }
.dot::before { content: ""; width: 3px; height: 3px; border-radius: 50%; background: #999; }
.dot[aria-current="true"]::before { background: #111; }
.projects { display: flex; justify-content: center; align-items: center; flex-wrap: wrap; column-gap: clamp(16px, 2.9vw, 48px); margin: 7px auto 0; padding-inline: 12px; max-width: 100%; font-size: clamp(11px, .78vw, 15px); }
.projects a { display: inline-flex; align-items: center; min-height: 32px; }
.projects a:hover, .projects a[aria-current="page"] { text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 900px) {
  :root { --spread: min(70vw, 105svh); }
  .description-panel { font-size: 12px; }
  .previous { right: calc(100% + 1vw); }
  .next { left: calc(100% + 1vw); }
}
@media (max-width: 600px) {
  :root { --spread: min(calc(100vw - 76px), 440px); --gap: 12px; }
  .masthead { padding-block: 26px 28px; }
  .spread { grid-template-columns: 1fr; }
  .artwork { aspect-ratio: 2 / 3; }
  .description-panel { min-height: 170px; padding: 15px; font-size: 13px; line-height: 1.3; }
  .arrow { width: 36px; height: 44px; top: 0; }
  .previous { right: 100%; }
  .next { left: 100%; }
  .dot { width: 30px; height: 44px; }
  .projects { margin-top: 2px; font-size: 12px; }
  .projects a { min-height: 44px; }
}

.photo-controls {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  column-gap: 12px;
  margin-top: 1.5em;
}
.photo-controls[hidden] { display: none; }
.photo-controls button {
  padding: 0;
  min-height: 44px;
  border: 0;
  background: transparent;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.photo-controls [role="status"] { font-variant-numeric: tabular-nums; }

.projects span { opacity: .45; }
