:root {
  color-scheme: light;
  --bg: #f7f7f4;
  --ink: #202124;
  --muted: #626860;
  --line: #d9d8d1;
  --panel: #ffffff;
  --accent: #0f6a61;
  --accent-2: #8a3f36;
}
* { box-sizing: border-box; }
html { font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; color: var(--ink); background: var(--bg); }
body { margin: 0; }
a { color: inherit; }
.topbar { display: flex; align-items: end; justify-content: space-between; gap: 24px; padding: 32px clamp(18px, 5vw, 64px) 20px; border-bottom: 1px solid var(--line); background: var(--panel); }
.topbar h1 { margin: 4px 0 6px; font-size: clamp(32px, 5vw, 56px); line-height: 1; font-weight: 760; letter-spacing: 0; }
.eyebrow { margin: 0; color: var(--accent); font-size: 13px; font-weight: 700; text-transform: uppercase; }
.summary { margin: 0; color: var(--muted); font-size: 15px; }
.archive-link, .album-nav a { display: inline-flex; align-items: center; min-height: 40px; padding: 0 14px; border: 1px solid var(--line); border-radius: 8px; background: var(--panel); text-decoration: none; font-weight: 650; white-space: nowrap; }
.album-nav { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; }
.controls { padding: 18px clamp(18px, 5vw, 64px); }
.search { width: min(480px, 100%); height: 42px; border: 1px solid var(--line); border-radius: 8px; padding: 0 14px; background: #fff; color: var(--ink); font: inherit; }
.album-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(178px, 1fr)); gap: 18px; padding: 0 clamp(18px, 5vw, 64px) 48px; }
.album-card { display: grid; gap: 9px; text-decoration: none; min-width: 0; }
.album-cover { display: block; aspect-ratio: 1; overflow: hidden; border-radius: 8px; background: #e5e2da; border: 1px solid var(--line); }
.album-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.album-name { font-weight: 720; line-height: 1.25; overflow-wrap: anywhere; }
.album-meta { color: var(--muted); font-size: 13px; }
.media-grid { columns: 260px; column-gap: 16px; padding: 0 clamp(18px, 5vw, 64px) 56px; }
.media-tile { break-inside: avoid; margin: 0 0 16px; display: inline-block; width: 100%; }
.image-button { display: block; width: 100%; padding: 0; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; background: #e9e8e1; cursor: zoom-in; }
.image-button img { display: block; width: 100%; height: auto; }
figcaption { margin-top: 6px; color: var(--muted); font-size: 12px; line-height: 1.35; overflow-wrap: anywhere; }
.video-link { display: grid; min-height: 150px; place-items: center; gap: 8px; padding: 18px; border: 1px solid var(--line); border-radius: 8px; background: #fff; text-align: center; text-decoration: none; }
.video-badge { color: var(--accent-2); font-weight: 760; }
.lightbox { position: fixed; inset: 0; z-index: 10; display: grid; grid-template-columns: 56px 1fr 56px; grid-template-rows: 56px 1fr auto; background: rgba(20, 20, 18, .92); color: #fff; }
.lightbox[hidden] { display: none; }
.lightbox img { grid-column: 2; grid-row: 2; max-width: 100%; max-height: 100%; margin: auto; object-fit: contain; }
.lightbox button { border: 0; background: transparent; color: #fff; font-size: 42px; cursor: pointer; }
.lightbox-close { grid-column: 3; grid-row: 1; }
.lightbox-prev { grid-column: 1; grid-row: 2; }
.lightbox-next { grid-column: 3; grid-row: 2; }
#lightboxCaption { grid-column: 1 / -1; grid-row: 3; margin: 0; padding: 10px 18px 18px; text-align: center; color: #e8e6df; overflow-wrap: anywhere; }
@media (max-width: 700px) {
  .topbar { align-items: start; flex-direction: column; padding-top: 22px; }
  .topbar h1 { font-size: 34px; }
  .album-grid { grid-template-columns: repeat(auto-fill, minmax(136px, 1fr)); gap: 14px; }
  .media-grid { columns: 150px; column-gap: 10px; }
  .media-tile { margin-bottom: 10px; }
}
