.site-photos, .site-album {
  --photo-ink: #252d24;
  --photo-paper: #f3f0e8;
  --photo-rule: #abb0a2;
  color: var(--photo-ink);
  background: var(--photo-paper);
  font-family: var(--sans, "Segoe UI", sans-serif);
}
.site-photos {
  padding: clamp(48px, 6vw, 98px) var(--ld-gutter, 5vw) clamp(52px, 6vw, 100px);
  scroll-margin-top: 0;
}
.photo-masthead, .photo-index, .site-photos figcaption, .album-head, .album-controls {
  display: flex; align-items: center; justify-content: space-between; gap: 18px;
}
.photo-masthead {
  align-items: end; border-bottom: 1px solid var(--photo-ink);
  padding-bottom: clamp(14px, 1.6vw, 25px);
}
.photo-masthead h2, .album-head h2 {
  margin: 0; color: inherit; font: 400 clamp(54px, 7.7vw, 131px)/.98 var(--serif, Georgia, serif);
  letter-spacing: -.055em;
}
.photo-date { display: grid; text-align: right; gap: 4px; font-size: 14px; line-height: 1.25; }
.photo-date span, .site-photos figcaption span { color: #525d50; }
.photo-spread {
  display: grid; grid-template-columns: minmax(0, 2.35fr) minmax(0, 1fr);
  gap: clamp(28px, 6.7vw, 115px); align-items: end; margin: 24px 0 22px;
}
.site-photos figure { margin: 0; min-width: 0; }
.photo-open { display: block; overflow: hidden; background: #ddd9cc; cursor: zoom-in; }
.photo-open img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.photo-lead .photo-open { aspect-ratio: 1.85; }
.photo-side { max-width: 340px; justify-self: end; width: 100%; }
.photo-side .photo-open { aspect-ratio: .88; }
.site-photos figcaption { align-items: baseline; gap: 6px; padding-top: 9px; font-size: 14px; line-height: 1.3; }
.site-photos figcaption span { font-size: 12px; }
.photo-index { border-top: 1px solid var(--photo-rule); padding-top: 18px; }
.photo-enter { font: 400 clamp(27px, 2.6vw, 42px)/1.15 var(--serif, Georgia, serif); letter-spacing: -.04em; }
.photo-enter span { font: 400 .62em var(--sans, sans-serif); vertical-align: .18em; }
.photo-topics { display: flex; flex-wrap: wrap; gap: 6px 22px; }
.site-photos a, .site-album a { color: inherit; }
.photo-enter, .photo-topics a { text-decoration: none; }
.photo-topics a { border-bottom: 1px solid var(--photo-rule); padding: 5px 0; font-size: 14px; }
.photo-enter:hover, .photo-topics a:hover { text-decoration: underline; text-underline-offset: .2em; }
.site-photos :focus-visible, .site-album :focus-visible { outline: 3px solid #aa491b; outline-offset: 3px; }
@media (hover: hover) { .photo-open:hover img { transform: scale(1.015); } }
@media (max-width: 700px) {
  .site-photos { display: grid; grid-template-columns: 46% minmax(0, 1fr); align-items: start; gap: 20px; }
  .photo-masthead, .photo-lead { grid-column: 1 / -1; }
  .photo-masthead { gap: 8px; }
  .photo-masthead h2 { font-size: clamp(43px, 10vw, 69px); }
  .photo-date { font-size: 12px; }
  .photo-spread { display: contents; }
  .photo-lead .photo-open { aspect-ratio: 1.55; }
  .photo-side { grid-column: 1; }
  .photo-side figcaption { font-size: 12px; }
  .photo-side figcaption span { display: none; }
  .photo-index { display: contents; }
  .photo-enter { align-self: center; justify-self: end; }
  .photo-topics { grid-column: 1 / -1; gap: 3px 16px; border-top: 1px solid var(--photo-rule); padding-top: 10px; }
  .photo-topics a { padding: 4px 0; font-size: 13px; }
}
.site-album {
  box-sizing: border-box; position: fixed; inset: 0; width: min(1200px, 96vw);
  height: min(900px, 94dvh); max-width: 100%; max-height: 100%; margin: auto;
  padding: 0; border: none; overflow: hidden;
}
.site-album[open] { display: flex; flex-direction: column; }
.site-album [hidden] { display: none !important; }
.site-album::backdrop { background: rgba(16, 23, 18, .76); }
html:has(.site-album[open]) { overflow: hidden; }
.site-album button { font: inherit; color: inherit; border: 0; background: transparent; cursor: pointer; }
.album-head { flex: none; padding: 17px 3%; border-bottom: 1px solid var(--photo-rule); }
.album-head h2 { font-size: clamp(29px, 3.3vw, 46px); }
.album-head button { padding: 9px 3px; }
.album-close { margin-left: auto; }
.album-close span { font-size: 1.35em; margin-left: 4px; }
.album-index { padding: 20px 3% 32px; overflow: auto; overscroll-behavior: contain; }
.album-filters { display: flex; flex-wrap: wrap; gap: 0 22px; }
.album-filters button { font-size: 15px; border-bottom: 2px solid transparent; padding: 10px 0; }
.album-filters button[aria-pressed="true"] { border-color: currentColor; font-weight: 650; }
.album-count { color: #505b50; font-size: 13px; margin: 18px 0 12px; }
.album-grid { display: grid; grid-template-columns: repeat(5, minmax(0,1fr)); gap: 8px; }
.album-thumb { display: block; aspect-ratio: 1.32; background: #dedbcf; cursor: zoom-in; }
.album-thumb img { display: block; width: 100%; height: 100%; object-fit: cover; }
.site-album .album-more { display: block; margin: 22px auto 0; border: 1px solid var(--photo-rule); padding: 11px 24px; }
.album-viewer { display: flex; flex: 1; min-height: 0; flex-direction: column; background: #21251f; color: #f4f0e6; }
.album-stage { display: grid; flex: 1; place-items: center; min-height: 0; padding: 10px; touch-action: pan-y pinch-zoom; }
.album-stage img { width: 100%; height: 100%; min-height: 0; object-fit: contain; }
.album-controls { flex: none; padding: 12px 3%; border-top: 1px solid #63695d; gap: 6px; }
.album-legend { display: grid; gap: 3px; margin-right: auto; }
.album-legend small { color: #c3c7b9; }
.site-album .album-controls button { font-size: 24px; min-width: 46px; min-height: 44px; }
.site-album.is-viewing .album-head h2 { display: none; }
.ld-timber.photo-timber { grid-template-columns: minmax(0,1fr) minmax(0,1fr); border-top: 1px solid #8e6b3b; }
.ld-timber.photo-timber h2 { max-width: 14ch; }
.photo-beam .km-leaf-frame img { transform: scale(2.4); transform-origin: 50% 23%; }
.photo-directory { margin: 0 auto; padding: 24px 4vw 48px; max-width: 1440px; background: #f3f0e8; color: #252d24; font: 16px/1.45 "Segoe UI", sans-serif; }
.photo-directory a { color: inherit; text-underline-offset: 4px; }
.photo-directory h1, .photo-directory h2 { font-family: Georgia, serif; font-weight: 400; letter-spacing: -.04em; }
.photo-directory h1 { margin: 26px 0 0; font-size: clamp(52px, 7vw, 100px); line-height: 1; }
.photo-directory nav { display: flex; flex-wrap: wrap; gap: 8px 22px; padding: 15px 0; border-block: 1px solid #a7ad9e; }
.photo-directory section { margin-top: 32px; scroll-margin-top: 16px; }
@media(max-width:700px) {
  .site-album { width: 100vw; height: 100dvh; }
  .album-head { padding: 10px 16px; }
  .album-index { padding: 8px 14px 24px; }
  .album-filters { column-gap: 14px; }
  .album-filters button { font-size: 14px; }
  .album-grid { grid-template-columns: repeat(3, minmax(0,1fr)); gap: 5px; }
  .album-controls { padding: 10px 14px max(12px, env(safe-area-inset-bottom)); }
  .ld-timber.photo-timber { grid-template-columns: 1fr; }
}
@media(prefers-reduced-motion: reduce) { .photo-open img { transition: none; } }

