/* kaox.win — base styles */

:root {
  --paper: #f2efe9;
  --paper-deep: #e8e3d8;
  --ink: #171612;
  --ink-soft: #4c4840;
  --muted: #7d7568;
  --line: rgba(23, 22, 18, 0.14);
  --card: #fffdf8;
  --card-line: rgba(23, 22, 18, 0.07);
  --shadow: 0 16px 36px rgba(40, 32, 20, 0.14), 0 2px 6px rgba(40, 32, 20, 0.06);
  --shadow-hover: 0 24px 52px rgba(40, 32, 20, 0.2), 0 3px 10px rgba(40, 32, 20, 0.08);
  --accent: #9a5b32;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB",
    "Microsoft YaHei", "Noto Sans SC", sans-serif;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
  --measure: 68ch;
}

[data-theme="dark"] {
  --paper: #0d0d0f;
  --paper-deep: #131318;
  --ink: #ece7dd;
  --ink-soft: #c9c2b6;
  --muted: #948c81;
  --line: rgba(236, 231, 221, 0.16);
  --card: #17171c;
  --card-line: rgba(236, 231, 221, 0.08);
  --shadow: 0 18px 40px rgba(0, 0, 0, 0.55), 0 1px 0 rgba(255, 255, 255, 0.05) inset;
  --shadow-hover: 0 26px 56px rgba(0, 0, 0, 0.65), 0 1px 0 rgba(255, 255, 255, 0.08) inset;
  --accent: #d39a6a;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  background: var(--paper);
  color-scheme: light;
}

[data-theme="dark"] html,
html[data-theme="dark"] {
  color-scheme: dark;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img {
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
  text-underline-offset: 0.25em;
  text-decoration-thickness: 1px;
}

a:hover {
  text-decoration: underline;
}

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  cursor: pointer;
}

[hidden] {
  display: none !important;
}

::selection {
  background: rgba(154, 91, 50, 0.22);
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 100;
  padding: 8px 14px;
  background: var(--ink);
  color: var(--paper);
  font-size: 13px;
}

.skip:focus {
  top: 12px;
}

/* ---------- header / footer ---------- */

.site-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 24px;
  padding: 30px 40px 22px;
  max-width: 1280px;
  margin: 0 auto;
}

.wordmark {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: lowercase;
}

.wordmark:hover {
  text-decoration: none;
  opacity: 0.7;
}

.site-nav,
.wall-nav {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 22px;
  font-size: 12.5px;
  letter-spacing: 0.08em;
  color: var(--ink-soft);
}

.site-nav a,
.wall-nav a {
  position: relative;
  padding-bottom: 2px;
}

.site-nav a[aria-current="page"] {
  color: var(--ink);
}

.site-nav a[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -2px;
  height: 1px;
  background: currentColor;
}

.theme-toggle {
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--muted);
  border: 1px solid var(--line);
  padding: 4px 10px;
  border-radius: 999px;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.theme-toggle:hover {
  color: var(--ink);
  border-color: var(--ink-soft);
}

.site-foot {
  max-width: 1280px;
  margin: 90px auto 0;
  padding: 26px 40px 46px;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 0.04em;
}

.foot-links {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}

.foot-links a:hover {
  color: var(--ink);
}

.foot-note {
  margin: 0;
}

/* ---------- page scaffolding ---------- */

.wrap {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 40px;
}

.page-head {
  padding-top: 56px;
  padding-bottom: 34px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 44px;
}

.page-head h1 {
  margin: 0 0 14px;
  font-size: clamp(30px, 4.4vw, 46px);
  font-weight: 500;
  letter-spacing: 0.02em;
  line-height: 1.2;
}

.kicker {
  margin: 0 0 18px;
  font-size: 11.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

.kicker a:hover {
  color: var(--ink);
}

.lede {
  margin: 0;
  max-width: var(--measure);
  color: var(--ink-soft);
  font-size: 15.5px;
  line-height: 1.9;
}

/* ---------- works grid ---------- */

.series-block {
  margin-bottom: 78px;
}

.series-block + .series-block {
  border-top: 1px solid var(--line);
  padding-top: 30px;
}

.series-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 20px;
}

.series-head h2 {
  margin: 0;
  font-size: 20px;
  font-weight: 500;
  letter-spacing: 0.04em;
}

.series-meta {
  font-size: 11.5px;
  letter-spacing: 0.12em;
  color: var(--muted);
  white-space: nowrap;
}

.series-statement {
  max-width: var(--measure);
  margin: 10px 0 26px;
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.9;
}

.grid {
  columns: 3;
  column-gap: 22px;
}

.grid-series {
  columns: 3;
}

.grid-item {
  position: relative;
  display: block;
  break-inside: avoid;
  margin-bottom: 22px;
  background: var(--card);
  box-shadow: var(--shadow);
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.grid-item img {
  display: block;
  width: 100%;
  height: auto;
  vertical-align: bottom;
}

.grid-item:hover {
  box-shadow: var(--shadow-hover);
  text-decoration: none;
}

.grid-cap {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 28px 12px 9px;
  font-size: 10.5px;
  letter-spacing: 0.1em;
  color: #fff;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.55), transparent);
  opacity: 0;
  transition: opacity 0.25s ease;
}

.grid-item:hover .grid-cap,
.grid-item:focus-visible .grid-cap {
  opacity: 1;
}

@media (hover: none) {
  .grid-cap {
    display: none;
  }
}

/* ---------- photo detail ---------- */

.photo-wrap {
  max-width: 1080px;
  padding-top: 44px;
}

.photo-figure {
  margin: 0;
}

.photo-figure img {
  display: block;
  width: auto;
  max-width: 100%;
  max-height: 76vh;
  margin: 0 auto;
  background: var(--paper-deep);
  box-shadow: var(--shadow);
}

.photo-figure figcaption {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-top: 18px;
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--muted);
}

.photo-figure figcaption a {
  color: var(--ink-soft);
}

.photo-nav {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-top: 46px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--ink-soft);
}

.photo-nav .disabled {
  color: var(--muted);
  opacity: 0.5;
}

/* ---------- journal ---------- */

.post-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.post-item {
  border-top: 1px solid var(--line);
}

.post-item:last-child {
  border-bottom: 1px solid var(--line);
}

.post-item a {
  display: grid;
  grid-template-columns: 108px minmax(0, 1fr);
  gap: 4px 26px;
  padding: 24px 0;
}

.post-item a:hover {
  text-decoration: none;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.02), transparent 60%);
}

[data-theme="dark"] .post-item a:hover {
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.04), transparent 60%);
}

.post-date {
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.04em;
  color: var(--muted);
  padding-top: 4px;
}

.post-title {
  font-size: 18px;
  letter-spacing: 0.02em;
}

.post-summary {
  grid-column: 2;
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.8;
}

/* ---------- prose ---------- */

.post-wrap {
  max-width: 780px;
  padding-top: 48px;
}

.post-wrap h1 {
  margin: 0 0 12px;
  font-size: clamp(26px, 3.6vw, 38px);
  font-weight: 500;
  line-height: 1.25;
}

.prose {
  max-width: var(--measure);
  margin-top: 34px;
  font-size: 16px;
  line-height: 1.95;
  color: var(--ink-soft);
}

.prose > :first-child {
  margin-top: 0;
}

.prose h2,
.prose h3 {
  color: var(--ink);
  font-weight: 500;
  letter-spacing: 0.02em;
  margin: 2.2em 0 0.7em;
}

.prose h2 {
  font-size: 20px;
}

.prose h3 {
  font-size: 17px;
}

.prose p {
  margin: 0 0 1.25em;
}

.prose a {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: var(--line);
}

.prose a:hover {
  text-decoration-color: currentColor;
}

.prose ul,
.prose ol {
  margin: 0 0 1.4em;
  padding-left: 1.3em;
}

.prose li {
  margin-bottom: 0.5em;
}

.prose blockquote {
  margin: 1.6em 0;
  padding: 2px 0 2px 20px;
  border-left: 2px solid var(--line);
  color: var(--muted);
}

.prose img {
  display: block;
  margin: 2em auto;
  box-shadow: var(--shadow);
}

.prose hr {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 2.4em 0;
}

.prose code {
  font-family: var(--mono);
  font-size: 0.9em;
  background: var(--paper-deep);
  padding: 2px 6px;
  border-radius: 3px;
}

.prose pre {
  background: var(--paper-deep);
  padding: 18px 20px;
  overflow: auto;
  font-size: 13px;
  line-height: 1.7;
}

.prose pre code {
  background: none;
  padding: 0;
}

.post-back {
  margin-top: 54px;
  font-size: 12px;
  letter-spacing: 0.08em;
}

/* ---------- about ---------- */

.about-wrap {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(240px, 380px);
  gap: 64px;
  align-items: start;
}

.about-text {
  margin-top: 0;
  max-width: 58ch;
}

.about-figure {
  margin: 0;
}

.about-figure img {
  display: block;
  width: 100%;
  height: auto;
  box-shadow: var(--shadow);
}

.about-figure figcaption {
  margin-top: 10px;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.06em;
  color: var(--muted);
}

/* ---------- 404 ---------- */

.notfound h1 {
  font-size: clamp(64px, 12vw, 140px);
  font-weight: 300;
  letter-spacing: 0.04em;
  line-height: 1;
}

/* ---------- guestbook ---------- */

body.lb-open {
  overflow: hidden;
}

.gb-wrap {
  max-width: none;
}

.gb-form,
.gb-list,
.gb-more,
.gb-foot {
  max-width: 780px;
}

.gb-form {
  margin-bottom: 8px;
}

.gb-row {
  display: grid;
  grid-template-columns: 86px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
  padding: 16px 0;
  border-top: 1px solid var(--line);
}

.gb-row:last-of-type {
  border-bottom: 1px solid var(--line);
}

.gb-row label {
  padding-top: 10px;
  font-size: 11px;
  letter-spacing: 0.16em;
  color: var(--muted);
}

.gb-row input,
.gb-row textarea {
  width: 100%;
  padding: 10px 12px;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 2px;
  color: var(--ink);
  font: inherit;
  font-size: 14px;
  line-height: 1.7;
  resize: vertical;
}

.gb-row input::placeholder,
.gb-row textarea::placeholder {
  color: var(--muted);
  opacity: 0.7;
}

.gb-row input:focus,
.gb-row textarea:focus {
  outline: none;
  border-color: var(--ink-soft);
}

.gb-hp {
  position: absolute !important;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.gb-actions {
  display: flex;
  align-items: center;
  gap: 18px;
  margin: 20px 0 46px;
}

.gb-actions button {
  border: 1px solid var(--ink);
  padding: 9px 24px;
  font-size: 12px;
  letter-spacing: 0.18em;
  transition: background 0.2s ease, color 0.2s ease;
}

.gb-actions button:hover {
  background: var(--ink);
  color: var(--paper);
}

.gb-actions button[disabled] {
  opacity: 0.45;
  cursor: default;
}

.gb-status {
  font-size: 12px;
  color: var(--muted);
}

.gb-status.is-error {
  color: #a3402f;
}

[data-theme="dark"] .gb-status.is-error {
  color: #e59a86;
}

.gb-list {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--line);
}

.gb-item {
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
}

.gb-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 8px;
}

.gb-name {
  font-size: 13px;
  letter-spacing: 0.05em;
}

.gb-time {
  font-family: var(--mono);
  font-size: 10.5px;
  color: var(--muted);
}

.gb-msg {
  margin: 0;
  color: var(--ink-soft);
  font-size: 14px;
  line-height: 1.9;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.gb-more {
  margin: 30px 0;
  text-align: center;
}

.gb-more button {
  font-size: 11.5px;
  letter-spacing: 0.14em;
  color: var(--muted);
  border-bottom: 1px solid var(--line);
  padding-bottom: 2px;
}

.gb-more button:hover {
  color: var(--ink);
}

.gb-foot {
  margin-top: 10px;
  font-size: 11.5px;
  color: var(--muted);
}

.gb-empty {
  padding: 26px 0;
  color: var(--muted);
  font-size: 13px;
}

@media (max-width: 620px) {
  .gb-row {
    grid-template-columns: minmax(0, 1fr);
    gap: 6px;
  }
  .gb-row label {
    padding-top: 0;
  }
}

/* ---------- responsive ---------- */

@media (max-width: 980px) {
  .grid,
  .grid-series {
    columns: 2;
  }
  .about-wrap {
    grid-template-columns: minmax(0, 1fr);
    gap: 34px;
  }
  .about-figure {
    max-width: 380px;
  }
  .site-head {
    padding: 24px 24px 18px;
  }
  .wrap {
    padding: 0 24px;
  }
  .site-foot {
    padding: 24px 24px 40px;
  }
}

@media (max-width: 620px) {
  body {
    font-size: 14.5px;
  }
  .site-head {
    flex-wrap: wrap;
    gap: 10px 20px;
    padding: 20px 20px 14px;
  }
  .site-nav {
    gap: 16px;
    font-size: 12px;
  }
  .wrap {
    padding: 0 20px;
  }
  .site-foot {
    padding: 22px 20px 36px;
    flex-direction: column;
    align-items: flex-start;
  }
  .page-head {
    padding-top: 36px;
    padding-bottom: 24px;
    margin-bottom: 28px;
  }
  .grid,
  .grid-series {
    columns: 1;
  }
  .post-item a {
    grid-template-columns: minmax(0, 1fr);
    gap: 6px;
  }
  .post-summary {
    grid-column: 1;
  }
  .photo-figure figcaption {
    flex-direction: column;
    gap: 6px;
  }
  .photo-nav {
    font-size: 11px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ================= wall ================= */

.wall-page {
  position: fixed;
  inset: 0;
  overflow: hidden;
}

/* paper scrims keep the nav and footer readable over big prints */
.wall-page::before,
.wall-page::after {
  content: "";
  position: fixed;
  left: 0;
  right: 0;
  z-index: 12;
  pointer-events: none;
}

.wall-page::before {
  top: 0;
  height: 104px;
  background: linear-gradient(to bottom, var(--paper) 26%, transparent);
}

.wall-page::after {
  bottom: 0;
  height: 84px;
  background: linear-gradient(to top, var(--paper) 34%, transparent);
}


.wall-head {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 18px;
  padding: 24px 34px;
  pointer-events: none;
}

.wall-head a,
.wall-head button {
  pointer-events: auto;
}

.wall-viewport {
  position: absolute;
  inset: 0;
  cursor: grab;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
  background-color: var(--paper);
  background-image: radial-gradient(
      1100px 760px at 50% 16%,
      rgba(255, 255, 255, 0.58),
      rgba(255, 255, 255, 0) 68%
    ),
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='g'><feTurbulence type='fractalNoise' baseFrequency='.82' numOctaves='2' stitchTiles='stitch'/><feColorMatrix type='saturate' values='0'/></filter><rect width='180' height='180' filter='url(%23g)' opacity='.05'/></svg>");
}

[data-theme="dark"] .wall-viewport {
  background-image: radial-gradient(
      1100px 760px at 50% 16%,
      rgba(255, 255, 255, 0.05),
      rgba(255, 255, 255, 0) 70%
    ),
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='g'><feTurbulence type='fractalNoise' baseFrequency='.82' numOctaves='2' stitchTiles='stitch'/><feColorMatrix type='saturate' values='0'/></filter><rect width='180' height='180' filter='url(%23g)' opacity='.07'/></svg>");
}

.wall-viewport.is-dragging {
  cursor: grabbing;
}

.wall-viewport:focus-visible {
  outline-offset: -6px;
}

.wall-scaler {
  position: absolute;
  top: 0;
  left: 0;
  width: 0;
  height: 0;
  transform-origin: 0 0;
  will-change: transform;
}

.wall-tiles {
  position: absolute;
  top: 0;
  left: 0;
  will-change: transform;
}

.wall-tile {
  position: absolute;
  top: 0;
  left: 0;
}

.print {
  position: absolute;
  display: block;
  padding: 10px;
  background: var(--card);
  border: 1px solid var(--card-line);
  box-shadow: var(--shadow);
  transition: box-shadow 0.35s ease;
  cursor: pointer;
}

.print img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  -webkit-user-drag: none;
  user-select: none;
}

.print:hover,
.print:focus-visible {
  box-shadow: var(--shadow-hover);
  z-index: 2;
}

.print:focus-visible {
  outline-offset: 5px;
}

/* light leak: red/orange/yellow bleeding in from a random edge, toward centre */
.print::after {
  content: "";
  position: absolute;
  inset: var(--leak-inset, 8px);
  z-index: 2;
  pointer-events: none;
  opacity: 0;
  mix-blend-mode: screen;
  filter: blur(var(--leak-blur, 1px));
  background:
    linear-gradient(
      var(--leak-a, 90deg),
      rgba(255, 54, 18, var(--leak-o1, 0.5)) 0%,
      rgba(255, 118, 30, var(--leak-o2, 0.32)) 18%,
      rgba(255, 190, 60, 0) 54%
    ),
    linear-gradient(
      var(--leak-b, 270deg),
      rgba(255, 206, 76, var(--leak-o3, 0.24)) 0%,
      rgba(255, 150, 40, 0) 42%
    );
  transition: opacity 0.25s ease;
}

.print.leak::after {
  opacity: 1;
  animation: leak-breathe 2.1s ease-out forwards;
}

@keyframes leak-breathe {
  0% {
    opacity: 0;
    transform: scale(1.015);
  }
  14% {
    opacity: 1;
  }
  62% {
    opacity: 0.75;
  }
  100% {
    opacity: 0;
    transform: scale(1);
  }
}

.label {
  position: absolute;
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 12px 14px;
  background: var(--card);
  border: 1px solid var(--card-line);
  box-shadow: var(--shadow);
  font-family: var(--mono);
  font-size: 9.5px;
  line-height: 1.6;
  letter-spacing: 0.05em;
  color: var(--muted);
  overflow: hidden;
}

.label-series {
  font-size: 8.5px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
}

.label-title {
  color: var(--ink);
  font-size: 11px;
  letter-spacing: 0.02em;
}

.label-year {
  margin-top: auto;
}

.wall-hint {
  position: fixed;
  left: 50%;
  bottom: 26px;
  z-index: 15;
  margin: 0;
  padding: 5px 13px;
  transform: translateX(-50%);
  font-size: 10.5px;
  letter-spacing: 0.2em;
  color: var(--ink-soft);
  background: rgba(242, 239, 233, 0.86);
  border: 1px solid var(--line);
  border-radius: 999px;
  backdrop-filter: blur(6px);
  pointer-events: none;
  transition: opacity 0.9s ease;
  white-space: nowrap;
}

[data-theme="dark"] .wall-hint {
  background: rgba(13, 13, 15, 0.74);
  color: var(--muted);
}

.wall-hint.is-gone {
  opacity: 0;
}

.wall-foot {
  position: fixed;
  right: 34px;
  bottom: 22px;
  z-index: 15;
  display: flex;
  gap: 18px;
  font-size: 10.5px;
  letter-spacing: 0.14em;
  color: var(--muted);
}

.wall-foot a:hover {
  color: var(--ink);
}

.wall-noscript {
  position: fixed;
  left: 50%;
  bottom: 64px;
  transform: translateX(-50%);
  z-index: 30;
  background: var(--card);
  padding: 10px 16px;
  font-size: 12px;
  border: 1px solid var(--line);
}

/* ---------- lightbox ---------- */

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 42px;
  background: rgba(10, 9, 8, 0.94);
  color: #f4f1ec;
  backdrop-filter: blur(6px);
}

.lb-figure {
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 100%;
}

.lb-figure img {
  display: block;
  max-width: min(88vw, 1400px);
  max-height: 74vh;
  width: auto;
  height: auto;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.55);
}

.lb-cap {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 6px 18px;
  margin-top: 18px;
  font-size: 11.5px;
  letter-spacing: 0.08em;
  color: rgba(244, 241, 236, 0.72);
}

.lb-cap #lb-title {
  color: #f4f1ec;
  font-size: 13px;
}

.lb-series {
  color: rgba(244, 241, 236, 0.6);
  text-decoration: underline;
  text-decoration-color: rgba(244, 241, 236, 0.3);
}

.lb-close {
  position: absolute;
  top: 14px;
  right: 18px;
  width: 46px;
  height: 46px;
  font-size: 26px;
  line-height: 1;
  color: rgba(244, 241, 236, 0.8);
}

.lb-close:hover {
  color: #fff;
}

.lb-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 56px;
  height: 80px;
  font-size: 22px;
  color: rgba(244, 241, 236, 0.55);
}

.lb-nav:hover {
  color: #fff;
}

.lb-prev {
  left: 14px;
}

.lb-next {
  right: 14px;
}

.lb-nav[disabled] {
  opacity: 0.18;
  pointer-events: none;
}

@media (max-width: 720px) {
  .wall-head {
    padding: 16px 18px;
    flex-wrap: wrap;
    gap: 6px 12px;
  }
  .wall-nav {
    flex: 1 1 100%;
    justify-content: flex-start;
    flex-wrap: wrap;
    row-gap: 6px;
    gap: 12px;
    font-size: 11px;
  }
  .theme-toggle {
    padding: 3px 8px;
    font-size: 10px;
  }
  .wall-foot {
    right: 20px;
    bottom: 14px;
    gap: 14px;
    font-size: 10px;
  }
  .wall-hint {
    bottom: 46px;
    font-size: 9.5px;
    letter-spacing: 0.16em;
  }
  .lightbox {
    padding: 18px;
  }
  .lb-nav {
    width: 44px;
  }
  .lb-prev {
    left: 2px;
  }
  .lb-next {
    right: 2px;
  }
}
