:root {
  color-scheme: light;
  --paper: #f4f4f4;
  --text: #303030;
  --gap: 24px;
  --columns: 3;
  font-family: "Times New Roman", Times, serif;
  font-synthesis: none;
  color: var(--text);
  background: var(--paper);
}
* { box-sizing: border-box; }
body { margin: 0; font-size: 1rem; line-height: 1.5; }
a { color: inherit; text-decoration: none; }
a:hover, button:hover { color: #666; }
button { font: inherit; color: inherit; cursor: pointer; }
a:focus-visible, button:focus-visible, main:focus-visible { outline: 1px solid currentColor; outline-offset: 5px; }
.site { padding: 28px 30px 24px; }
.masthead { display: flex; justify-content: space-between; align-items: baseline; gap: 28px; padding-bottom: 64px; }
.brand { font-size: 27px; font-weight: 400; white-space: nowrap; }
nav { display: flex; align-items: baseline; justify-content: flex-end; flex-wrap: wrap; gap: 10px 24px; }
nav a { display: inline-flex; align-items: center; min-height: 30px; text-underline-offset: 5px; }
nav a[aria-current="page"] { text-decoration: underline; text-decoration-thickness: 1px; }
.gallery { display: grid; grid-template-columns: repeat(var(--columns), minmax(0, 1fr)); gap: var(--gap); position: relative; }
.gallery.positioned { display: block; }
.photograph { display: block; line-height: 0; width: 100%; align-self: start; }
.positioned .photograph { position: absolute; left: 0; top: 0; }
.photograph img { display: block; width: 100%; height: auto; }
.photograph:hover img { opacity: .92; }
.prose { max-width: 680px; padding-bottom: 40px; }
.prose p { margin: 0 0 20px; }
.prose a { text-decoration: underline; text-underline-offset: 3px; }
.empty { padding: 48px 0; }
footer { display: flex; justify-content: space-between; gap: 20px; margin-top: 52px; font-size: .875rem; }
.visually-hidden, .skip-link:not(:focus) { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.skip-link:focus { position: fixed; z-index: 3; top: 12px; left: 12px; background: var(--paper); padding: 10px 16px; }
.lightbox { position: fixed; inset: 0; width: 100%; height: 100%; height: 100dvh; max-width: none; max-height: none; margin: 0; border: 0; border-radius: 0; padding: calc(3vw + 20px) 3vw; outline: 0; box-shadow: none; color: #000; background: rgb(255 255 255 / 90%); overflow: hidden; user-select: none; }
.lightbox[open] { display: flex; flex-direction: column; animation: lightbox-open 400ms both; }
.lightbox::backdrop { background: transparent; }
body:has(.lightbox[open]) { overflow: hidden; }
.lightbox-wrapper { position: relative; flex: 1; min-height: 0; width: 100%; touch-action: none; }
.lightbox-slides { position: absolute; inset: 0 calc(3vw + 13px); cursor: grab; }
.lightbox-wrapper.dragging { cursor: grabbing; }
.lightbox-wrapper.dragging .lightbox-slides { cursor: grabbing; }
.lightbox-slide { position: absolute; inset: 0; pointer-events: none; animation: lightbox-photo-in 400ms cubic-bezier(.2,.6,.3,1) both; }
.lightbox-slide.leaving { animation: lightbox-photo-out 400ms cubic-bezier(.2,.6,.3,1) both; }
.lightbox-image { display: block; width: 100%; height: 100%; object-fit: contain; opacity: 0; transition: opacity 600ms cubic-bezier(.4,0,.2,1); }
.lightbox-image.loaded { opacity: 1; }
.lightbox button { color: #000; border: 0; margin: 0; background: transparent; text-decoration: none; }
.lightbox svg { display: block; fill: none; stroke: currentColor; }
.lightbox .close { position: absolute; z-index: 2; top: 1.5vw; right: 1.5vw; padding: 1px 6px; border-radius: .15em; opacity: .75; transition: opacity 600ms cubic-bezier(.4,0,.2,1); }
.lightbox .close::before { content: ""; position: absolute; inset: -10px -6px; }
.lightbox .close svg { width: 20px; height: 20px; stroke-width: 4px; }
.lightbox-controls { position: absolute; inset: 0; display: flex; pointer-events: none; }
.lightbox-controls button { position: relative; display: flex; flex: 1; align-items: center; justify-content: flex-start; min-width: 0; padding: 0; pointer-events: auto; }
.lightbox-controls .next { justify-content: flex-end; }
.lightbox-controls svg { width: 13px; height: 24px; transform: translate(6px, 1px); opacity: .75; transition: opacity 600ms cubic-bezier(.4,0,.2,1); }
.lightbox .close:hover, .lightbox-controls button:hover svg { opacity: 1; }
.lightbox-controls button:focus-visible { outline: 0; }
.lightbox-controls button:focus-visible svg { outline: 1px solid currentColor; outline-offset: 8px; }
.lightbox-controls[hidden] { display: none; }
@keyframes lightbox-open { from { opacity: 0; } to { opacity: 1; } }
@keyframes lightbox-photo-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes lightbox-photo-out { from { opacity: 1; } to { opacity: 0; } }
@media (max-width: 575px) {
  .lightbox { padding: calc(6vw + 20px) 6vw; }
  .lightbox .close { top: 3vw; right: 3vw; }
  .lightbox-slides { inset: 0; }
  .lightbox-controls { display: none; }
  .lightbox-slide { --slide-from: 10%; animation-name: lightbox-photo-slide; animation-duration: 250ms; }
  .lightbox-slide[data-direction="previous"] { --slide-from: -10%; }
  .lightbox-slide.leaving { animation-name: lightbox-photo-out; animation-duration: 250ms; }
}
@keyframes lightbox-photo-slide { from { opacity: 0; transform: translateX(var(--slide-from)); } to { opacity: 1; transform: translateX(0); } }
@media (prefers-reduced-motion: reduce) {
  .lightbox[open], .lightbox-slide, .lightbox-slide.leaving { animation: none; }
  .lightbox-image, .lightbox .close, .lightbox-controls svg { transition: none; }
}
@media (max-width: 759px) {
  :root { --columns: 2; }
  .site { padding: 24px; }
  .masthead { gap: 20px; padding-bottom: 44px; }
  nav { gap: 8px 16px; font-size: .9375rem; }
}
@media (max-width: 520px) {
  .site { padding: 20px 16px; }
  .masthead { flex-direction: column; align-items: flex-start; gap: 16px; padding-bottom: 28px; }
  nav { justify-content: flex-start; column-gap: 18px; row-gap: 0; }
  nav a { min-height: 44px; }
}
@media (max-width: 479px) { :root { --columns: 1; } }
