:root {
  --bg: #333333;
  --fg: #f1f1f1;
  --muted: #c4c4c4;
  --line: #c8c8c8;
  --link: #f1f1f1;
}
* { box-sizing: border-box; }
html.index, body {
  margin: 0;
  background: #333333;
  color: var(--fg);
  font: 16px/1.45 "Segoe UI", sans-serif;
}
a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; }
.wrap { margin: 0 auto; padding: 0.75rem 1rem 2rem; }
.count, .credit { color: var(--muted); margin: 0.25rem 0 0.8rem; }
.pages { display: flex; flex-wrap: wrap; gap: 0.45rem; justify-content: center; margin: 0.75rem 0 1rem; }
.pages a, .pages span {
  min-width: 2rem;
  text-align: center;
  border: 1px solid var(--line);
  color: var(--fg);
  padding: 0.25rem 0.5rem;
}
.pages .here { border-color: #f1f1f1; }
.grid {
  position: relative;
  list-style: none;
  width: 100%;
  margin: 0;
  padding: 0;
}
.grid li { position: absolute; margin: 0; }
.grid a { display: block; }
.grid img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
  border: 1px solid #fff;
  box-shadow: 2px 2px 2px rgba(0,0,0,0.25);
}
.walk { display: flex; justify-content: space-between; gap: 1rem; margin: 0.5rem 0 1rem; }
.walk .off { color: var(--muted); }
.frame { margin: 0; text-align: center; }
.frame img { max-width: 100%; height: auto; background: #000; }
.caption { max-width: 42rem; margin: 0.8rem auto 0; }
footer { margin-top: 2rem; color: var(--muted); font-size: 0.92rem; }
body.float-open { overflow: hidden; }
.float[hidden] { display: none !important; }
.float { position: fixed; inset: 0; z-index: 20; }
.float-backdrop { position: absolute; inset: 0; background: rgba(8, 7, 6, 0.92); }
.float-frame {
  position: relative;
  z-index: 1;
  height: 100%;
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 3.4rem 4.6rem 4.6rem;
  pointer-events: none;
}
.float-frame img {
  pointer-events: auto;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  background: #000;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.45);
  cursor: zoom-in;
}
.float.is-zoomed .float-frame { display: block; overflow: auto; pointer-events: auto; }
.float.is-zoomed .float-frame img { max-width: none; max-height: none; cursor: zoom-out; }
.float figcaption {
  pointer-events: none;
  margin: 0.7rem 0 0;
  text-align: center;
  max-width: 40rem;
  color: #f4f0e8;
}
.float button, .float-count {
  position: absolute;
  z-index: 2;
  font: inherit;
  color: #f4f0e8;
}
.float button {
  background: rgba(20, 18, 15, 0.82);
  border: 1px solid var(--line);
  padding: 0.35rem 0.7rem;
  cursor: pointer;
}
.float button:disabled { opacity: 0.35; cursor: default; }
.float-close { top: 0.75rem; right: 0.75rem; }
.float-prev { left: 0.6rem; top: 50%; transform: translateY(-50%); }
.float-next { right: 0.6rem; top: 50%; transform: translateY(-50%); }
.float-count { left: 0.85rem; bottom: 0.85rem; margin: 0; color: #f4f0e8; }
.float-page { left: 5.2rem; bottom: 0.75rem; }
.float-zoom { right: 0.75rem; bottom: 0.75rem; }
.float figcaption:empty { display: none; }
@media (max-width: 640px) {
  .float-frame { padding: 3.2rem 0.6rem 4.4rem; }
  .float-prev { left: 0.3rem; }
  .float-next { right: 0.3rem; }
}