* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: #171715; color: #f2efe8; font-family: Arial, Helvetica, sans-serif; }
a { color: inherit; }
.wrap { width: min(1180px, calc(100% - 48px)); margin: 0 auto; }
.topbar { display: flex; justify-content: space-between; align-items: center; min-height: 84px; border-bottom: 1px solid rgba(242,239,232,.15); }
.brand { font: 18px Georgia, 'Times New Roman', serif; letter-spacing: .04em; text-decoration: none; }
.back { color: #d5d0c4; font-size: 11px; letter-spacing: .11em; text-decoration: none; text-transform: uppercase; }
.back:hover, .back:focus-visible { color: #fff; }
.album-intro { padding: 76px 24px 84px; background: #68714b; text-align: center; }
.eyebrow { color: #e6dbc4; font-size: 11px; letter-spacing: .19em; text-transform: uppercase; }
h1 { max-width: 1000px; margin: 19px auto 15px; font: clamp(42px, 7vw, 78px)/1.08 var(--serif, Georgia, 'Times New Roman', serif); font-weight: 400; letter-spacing: -.04em; }
.album-intro p { max-width: 520px; margin: 0 auto; color: rgba(242,239,232,.82); font-size: 14px; line-height: 1.8; }
.album-hint { margin-top: 25px; color: #e6dbc4; font-size: 10px; line-height: 1.6; letter-spacing: .09em; text-transform: uppercase; }
.photo-gallery { padding: 60px 0 90px; background: radial-gradient(ellipse at 12% 8%, rgba(104,113,75,.2), transparent 38%), radial-gradient(ellipse at 90% 88%, rgba(182,162,124,.2), transparent 34%), linear-gradient(135deg, #e9e3d5, #d9cfba 55%, #eee8db); color: #34392e; }
.photo-grid { columns: 3; column-gap: 14px; }
.photo-card { position: relative; margin: 0 0 14px; break-inside: avoid; background: #d0c6b4; }
.photo-open { display: block; cursor: zoom-in; }
.photo-open img { display: block; width: 100%; height: auto; }
.photo-open:focus-visible { outline-color: #68714b; }
/* Retain the two unlinked legacy albums until their photographs are supplied. */
.photo-card:has(.photo-placeholder) { min-height: 350px; }
.photo-placeholder { position: absolute; inset: 0; display: grid; place-items: end start; padding: 18px; color: rgba(255,255,255,.78); font-size: 9px; letter-spacing: .16em; text-transform: uppercase; background: linear-gradient(145deg, #716754, #282d2a 65%); }
.photo-card:nth-child(2n) .photo-placeholder { background: linear-gradient(155deg, #817262, #33312b 68%); }
.photo-card:nth-child(3n) .photo-placeholder { background: linear-gradient(145deg, #797568, #34332c 68%); }
.photo-placeholder::before { content: ''; position: absolute; width: 50px; height: 50px; top: 35%; left: 52%; border-radius: 50%; background: rgba(210,188,151,.45); }
.photo-card:nth-child(2) .photo-placeholder::before, .photo-card:nth-child(5) .photo-placeholder::before { width: 72px; height: 84px; left: 40%; top: 39%; border-radius: 50% 50% 47% 47%; }
.bottom-nav { display: flex; justify-content: space-between; gap: 20px; align-items: center; padding: 26px 0; color: #aaa79e; font-size: 10px; letter-spacing: .1em; text-transform: uppercase; }
.bottom-nav a { text-decoration: none; }
.bottom-nav a:hover, .bottom-nav a:focus-visible { color: #f2efe8; }
:focus-visible { outline: 2px solid #e6dbc4; outline-offset: 4px; }
.lightbox { position: fixed; inset: 0; width: 100vw; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 68px 76px 28px; border: 0; background: rgba(17,17,15,.97); color: #f2efe8; }
.lightbox[open] { display: grid; place-items: center; }
.lightbox::backdrop { background: rgba(17,17,15,.94); }
.lightbox-frame { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; max-width: 100%; margin: 0; pointer-events: none; }
.lightbox-image { display: block; max-width: 100%; max-height: calc(100dvh - 138px); width: auto; height: auto; object-fit: contain; }
.lightbox-count { min-height: 18px; color: #d5d0c4; font-size: 12px; letter-spacing: .14em; }
.lightbox button { position: absolute; display: grid; width: 48px; height: 48px; padding: 0; place-items: center; border: 1px solid rgba(242,239,232,.25); border-radius: 50%; background: #252520; color: #f2efe8; font: 36px/1 Arial, sans-serif; cursor: pointer; }
.lightbox button:hover { background: #454b34; }
.lightbox-close { top: 16px; right: 20px; }
.lightbox-prev { top: calc(50% - 24px); left: 16px; }
.lightbox-next { top: calc(50% - 24px); right: 16px; }
@media (max-width: 900px) { .photo-grid { columns: 2; } }
@media (max-width: 760px) {
  .wrap { width: min(100% - 32px, 560px); }
  .topbar { min-height: 70px; }
  .brand { font-size: 16px; }
  .album-intro { padding: 58px 20px 64px; }
  .photo-gallery { padding: 42px 0 64px; }
  .photo-grid { column-gap: 14px; }
  .bottom-nav { flex-wrap: wrap; font-size: 9px; }
  .lightbox { padding: 68px 12px 84px; }
  .lightbox-image { max-height: calc(100dvh - 188px); }
  .lightbox-prev, .lightbox-next { top: auto; bottom: 18px; }
  .lightbox-prev { left: calc(50% - 62px); }
  .lightbox-next { right: calc(50% - 62px); }
}
@media (max-width: 520px) {
  .photo-grid { columns: 1; }
  .brand { font-size: 15px; }
  .back { font-size: 9px; letter-spacing: .04em; }
  .album-intro { padding: 48px 20px 54px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
