/* ==========================================================================
   PhotoITPro – main stylesheet
   Mobile-first. Colours and fonts are set once, in :root, below.
   Dark mode follows the system setting, and the toggle can override it
   (it sets data-theme="light" or "dark" on <html>).
   ========================================================================== */

/* ---- Fonts (self-hosted: faster and no third-party requests) ---------- */
@font-face {
  font-family: "Inter";
  src: url("/assets/fonts/inter-latin-wght-normal.woff2") format("woff2-variations"), url("/assets/fonts/inter-latin-wght-normal.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "JetBrains Mono";
  src: url("/assets/fonts/jetbrains-mono-latin-wght-normal.woff2") format("woff2-variations"), url("/assets/fonts/jetbrains-mono-latin-wght-normal.woff2") format("woff2");
  font-weight: 100 800;
  font-style: normal;
  font-display: swap;
}

/* ---- Design tokens ----------------------------------------------------- */
:root {
  --bg: #f7f7f5;          /* off-white page */
  --bg-alt: #eeeeea;      /* tinted sections */
  --surface: #ffffff;     /* cards */
  --ink: #0e1116;         /* body text, near-black */
  --ink-2: #2a313c;
  --muted: #545d6b;       /* secondary text (AA on bg, bg-alt and surface) */
  --line: #dcdcd6;
  --accent: #2456e0;      /* electric blue: links and buttons (AA on light) */
  --accent-strong: #1a43b8;
  --accent-soft: #e6edff;
  --on-accent: #ffffff;
  --code-bg: #f0f1ee;
  --confirm: #b3261e;

  /* Always-dark panels (hero, script band) look the same in both modes */
  --night: #0e1116;
  --night-2: #161b22;
  --night-line: #262d38;
  --night-ink: #f7f7f5;
  --night-muted: #a6afbb;
  --night-accent: #8fb0ff;

  --tip: #0d6a3e;
  --warning: #874a00;
  --gotcha: #8a2bb8;
  --note: #2456e0;

  --font-sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "Cascadia Code", Consolas, monospace;

  --radius: 10px;
  --radius-lg: 16px;
  --shadow: 0 1px 2px rgb(14 17 22 / 0.05), 0 8px 24px rgb(14 17 22 / 0.06);
  --gutter: 16px;
  --header-h: 64px;
  --max: 1160px;
  color-scheme: light;
}

/* Dark tokens: written twice, once for the system setting and once for the toggle. */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0e1116; --bg-alt: #12161c; --surface: #161b22; --ink: #eceef1; --ink-2: #d3d8de; --muted: #a6afbb;
    --line: #2a313c; --accent: #7fa3ff; --accent-strong: #a9c1ff; --accent-soft: #1a2440; --on-accent: #0e1116;
    --code-bg: #12161c; --confirm: #ff8a80; --tip: #5fd39a; --warning: #f2b45a; --gotcha: #d59bf5; --note: #7fa3ff;
    --shadow: 0 1px 2px rgb(0 0 0 / 0.4), 0 8px 24px rgb(0 0 0 / 0.3);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0e1116; --bg-alt: #12161c; --surface: #161b22; --ink: #eceef1; --ink-2: #d3d8de; --muted: #a6afbb;
  --line: #2a313c; --accent: #7fa3ff; --accent-strong: #a9c1ff; --accent-soft: #1a2440; --on-accent: #0e1116;
  --code-bg: #12161c; --confirm: #ff8a80; --tip: #5fd39a; --warning: #f2b45a; --gotcha: #d59bf5; --note: #7fa3ff;
  --shadow: 0 1px 2px rgb(0 0 0 / 0.4), 0 8px 24px rgb(0 0 0 / 0.3);
  color-scheme: dark;
}

@media (min-width: 720px) {
  :root { --gutter: 28px; --header-h: 72px; }
}

/* ---- Base -------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  line-height: 1.7;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
@media (min-width: 720px) { body { font-size: 1.125rem; } }
img, svg, iframe, video { max-width: 100%; }
img { height: auto; display: block; }
picture { display: contents; }
h1, h2, h3, h4 {
  line-height: 1.2;
  margin: 0 0 0.5em;
  letter-spacing: -0.02em;
  text-wrap: balance;
  font-weight: 750;
}
h1 { font-size: clamp(2.1rem, 5.5vw, 3.4rem); letter-spacing: -0.03em; }
h2 { font-size: clamp(1.5rem, 3.4vw, 2.1rem); }
h3 { font-size: clamp(1.15rem, 2.2vw, 1.3rem); letter-spacing: -0.01em; }
p, ul, ol, dl, figure, blockquote, table { margin: 0 0 1.1em; }
a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--accent-strong); text-decoration-thickness: 2px; }
strong { font-weight: 650; }
hr { border: 0; border-top: 1px solid var(--line); margin: 2.5rem 0; }
code, kbd, pre { font-family: var(--font-mono); font-size: 0.88em; }
:not(pre) > code {
  background: var(--code-bg);
  border: 1px solid var(--line);
  padding: 0.1em 0.35em;
  border-radius: 5px;
  overflow-wrap: anywhere;
}
::selection { background: var(--accent); color: var(--on-accent); }

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}
main:focus { outline: none; }

.sr-only {
  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-link {
  position: absolute; left: 12px; top: -100px; z-index: 100;
  background: var(--accent); color: var(--on-accent); padding: 10px 16px; font-weight: 700; border-radius: 6px;
}
.skip-link:focus { top: 12px; }
.muted { color: var(--muted); }
.small-print { color: var(--muted); font-size: 0.9rem; margin-top: 1.5rem; }
.hp { position: absolute; left: -9999px; }

.container { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }
.narrow { max-width: 820px; }
.section { padding-block: 56px; }
.section-tight { padding-block: 32px; }
.section-alt { background: var(--bg-alt); }
@media (min-width: 720px) { .section { padding-block: 80px; } }
.section-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 24px; margin-bottom: 24px; }
.section-head h2 { margin: 0; }
.section-title { font-size: 1.3rem; }

/* ---- CONFIRM tags and preview bar (as on the lodge site) --------------- */
.confirm {
  display: inline-block;
  background: var(--confirm);
  color: #fff;
  font: 600 0.78rem/1.4 var(--font-mono);
  padding: 2px 8px;
  border-radius: 4px;
  vertical-align: middle;
  white-space: normal;
}
:root[data-theme="dark"] .confirm { color: #1a0000; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .confirm { color: #1a0000; } }
.draft-flag { margin: 0 0 12px; padding: 10px 14px; border: 1px solid #b3261e; border-left-width: 4px; border-radius: var(--radius); font-size: .92rem; }
.preview-bar {
  background: #fff4cc; color: #3d2e00; text-align: center;
  font-size: 0.88rem; padding: 8px var(--gutter); border-bottom: 1px solid #e6d58a;
}
:root .preview-bar .confirm { color: #fff; background: #b3261e; }

/* ---- Buttons ------------------------------------------------------------ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 10px 20px;
  border: 2px solid transparent; border-radius: 8px;
  font: 650 1rem/1.2 var(--font-sans);
  text-decoration: none; cursor: pointer;
  transition: background-color 0.15s, color 0.15s, border-color 0.15s;
}
.btn svg { width: 20px; height: 20px; }
.btn-lg { min-height: 52px; padding: 12px 26px; font-size: 1.05rem; }
.btn-primary { background: var(--accent); color: var(--on-accent); }
.btn-primary:hover { background: var(--accent-strong); color: var(--on-accent); }
.btn-ghost { border-color: var(--line); color: var(--ink); background: var(--surface); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn-ghost-light { border-color: var(--night-line); color: var(--night-ink); }
.btn-ghost-light:hover { border-color: var(--night-accent); color: var(--night-accent); }
.link-arrow { display: inline-flex; align-items: center; gap: 6px; font-weight: 650; text-decoration: none; }
.link-arrow svg { width: 18px; height: 18px; transition: transform 0.15s; }
.link-arrow:hover svg { transform: translateX(3px); }
.inline-icon { width: 1em; height: 1em; vertical-align: -0.12em; margin-right: 4px; }

/* ---- Header and navigation ---------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  backdrop-filter: saturate(1.4) blur(8px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; gap: 16px; min-height: var(--header-h); }
.brand { display: inline-flex; align-items: center; flex-shrink: 0; padding: 8px 0; }
.logo { width: 150px; height: auto; }
@media (min-width: 720px) { .logo { width: 180px; } }
.logo-dark { display: none; }
:root[data-theme="dark"] .logo-light { display: none; }
:root[data-theme="dark"] .logo-dark { display: block; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .logo-light { display: none; }
  :root:not([data-theme="light"]) .logo-dark { display: block; }
}

.header-tools { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.icon-btn {
  display: inline-grid; place-items: center; width: 44px; height: 44px;
  border: 0; border-radius: 8px; background: none; color: var(--ink); cursor: pointer;
}
.icon-btn:hover { background: var(--bg-alt); color: var(--accent); }
.icon-btn svg { width: 22px; height: 22px; }
.theme-toggle .i-sun { display: none; }
:root[data-theme="dark"] .theme-toggle .i-sun { display: block; }
:root[data-theme="dark"] .theme-toggle .i-moon { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-toggle .i-sun { display: block; }
  :root:not([data-theme="light"]) .theme-toggle .i-moon { display: none; }
}
.menu-toggle .icon-close { display: none; }
.menu-toggle[aria-expanded="true"] .icon-open { display: none; }
.menu-toggle[aria-expanded="true"] .icon-close { display: block; }

.nav-list { list-style: none; margin: 0; padding: 0; }
.nav-list a, .sub-toggle {
  color: var(--ink); text-decoration: none; font-weight: 600; font-size: 1rem;
}
.nav-list a[aria-current] { color: var(--accent); }
.sub-toggle { display: none; }
.js .sub-toggle { background: none; border: 0; cursor: pointer; display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 8px; }
.chev { width: 18px; height: 18px; transition: transform 0.15s; }
.sub-toggle[aria-expanded="true"] .chev { transform: rotate(180deg); }
.sub { list-style: none; margin: 0; padding: 0; }
.sub a { display: flex; align-items: center; gap: 10px; }
.sub svg { width: 20px; height: 20px; color: var(--muted); flex-shrink: 0; }

/* Mobile: the menu drops down below the header. Without JS it's always shown. */
@media (max-width: 979px) {
  .header-inner { flex-wrap: wrap; }
  .main-nav { order: 3; flex-basis: 100%; }
  .js .main-nav { display: none; }
  .js .main-nav.is-open { display: block; }
  .nav-list { padding: 4px 0 16px; }
  .nav-list > li { border-top: 1px solid var(--line); }
  .nav-list a { display: block; padding: 12px 4px; }
  .has-sub { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; }
  .has-sub > .sub-link { flex: 1; }
  .sub { flex-basis: 100%; padding: 0 0 8px 12px; }
  .js .sub-toggle[aria-expanded="false"] + .sub { display: none; }
  .sub a { padding: 10px 4px; font-weight: 500; }
}
@media (min-width: 980px) {
  .menu-toggle { display: none !important; }
  .main-nav { margin-left: 16px; }
  .nav-list { display: flex; align-items: center; gap: 2px; }
  .nav-list > li > a { display: block; padding: 8px 12px; border-radius: 8px; }
  .nav-list > li > a:hover { background: var(--bg-alt); color: var(--accent); }
  .has-sub { position: relative; display: flex; align-items: center; }
  .has-sub > .sub-link { padding-right: 4px !important; }
  .js .sub-toggle { width: 32px; height: 36px; }
  .sub {
    position: absolute; top: calc(100% + 8px); left: 0; min-width: 300px;
    background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
    box-shadow: var(--shadow); padding: 8px;
  }
  .js .sub-toggle[aria-expanded="false"] + .sub, .sub { display: none; }
  .js .sub-toggle[aria-expanded="true"] + .sub { display: block; }
  .sub a { padding: 9px 10px; border-radius: 6px; font-weight: 550; font-size: 0.95rem; }
  .sub a:hover { background: var(--bg-alt); }
}
.menu-toggle { display: none; }
.js .menu-toggle { display: inline-grid; }
@media (min-width: 980px) { .js .menu-toggle { display: none; } }

/* ---- Hero (always dark) -------------------------------------------------- */
.hero, .section-dark {
  background-color: var(--night);
  background-image:
    linear-gradient(var(--night-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--night-line) 1px, transparent 1px);
  background-size: 40px 40px;
  background-position: -1px -1px;
  color: var(--night-ink);
}
.hero { position: relative; padding-block: 56px 64px; overflow: hidden; }
.hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(ellipse at 20% 0%, rgb(36 86 224 / 0.35), transparent 55%), linear-gradient(transparent 60%, var(--night));
}
.hero-inner { position: relative; z-index: 1; display: grid; gap: 40px; align-items: center; }
@media (min-width: 900px) { .hero { padding-block: 96px; } .hero-inner { grid-template-columns: 1.25fr 1fr; gap: 56px; } }
.hero h1 { color: var(--night-ink); font-size: clamp(2rem, 4.6vw, 3.1rem); }
.hero .lead { color: var(--night-muted); font-size: 1.2rem; max-width: 36em; }
.hero-kicker { font: 600 0.85rem/1.4 var(--font-mono); color: var(--night-accent); letter-spacing: 0.04em; text-transform: uppercase; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero .btn-primary { background: #2f6bff; color: #fff; }
.hero .btn-primary:hover { background: #5a8aff; }

.terminal {
  background: #0a0d11; border: 1px solid var(--night-line); border-radius: var(--radius);
  box-shadow: 0 20px 60px rgb(0 0 0 / 0.45); overflow: hidden; color: #d6dde6;
}
.terminal-bar { display: flex; align-items: center; gap: 6px; padding: 10px 14px; background: #141922; border-bottom: 1px solid var(--night-line); }
.terminal-bar span { width: 11px; height: 11px; border-radius: 50%; background: #3a4350; }
.terminal-bar em { margin-left: 10px; font: 500 0.78rem var(--font-mono); font-style: normal; color: var(--night-muted); }
.terminal-body { margin: 0; padding: 18px 20px 22px; font-size: 0.92rem; line-height: 1.75; white-space: pre-wrap; overflow-wrap: anywhere; }
.t-prompt { color: #7fd1a8; }
.t-out { color: var(--night-muted); }
.t-err { color: #ff8a80; }
.t-cursor { display: inline-block; width: 0.6em; height: 1.1em; background: #8fb0ff; vertical-align: text-bottom; }
@media (prefers-reduced-motion: no-preference) { .t-cursor { animation: blink 1.1s steps(1) infinite; } }
@keyframes blink { 50% { opacity: 0; } }
.terminal-small { margin: 1.5rem 0; max-width: 560px; }

/* ---- Page headers -------------------------------------------------------- */
.page-hero { padding-block: 48px 32px; border-bottom: 1px solid var(--line); }
@media (min-width: 720px) { .page-hero { padding-block: 72px 44px; } }
.lead { font-size: 1.2rem; color: var(--ink-2); max-width: 40em; }
.hub-label, .path-step, .script-type {
  font: 600 0.78rem/1.4 var(--font-mono); letter-spacing: 0.05em; text-transform: uppercase;
  color: var(--accent); margin: 0 0 8px;
}
.hub-label a { color: inherit; text-decoration: none; }
.hub-label a:hover { text-decoration: underline; }
.hub-icon svg { width: 44px; height: 44px; color: var(--accent); }
.post-meta { color: var(--muted); font-size: 0.92rem; margin: 0; }

.breadcrumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 4px 0; padding: 0; margin: 0 0 20px; font-size: 0.88rem; color: var(--muted); }
.breadcrumbs li:not(:last-child)::after { content: "/"; margin: 0 8px; color: var(--line); }
.breadcrumbs a { color: var(--muted); }
.breadcrumbs [aria-current] { display: inline-block; max-width: 28ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; vertical-align: bottom; }

/* ---- Cards and grids ------------------------------------------------------ */
.card-grid { display: grid; gap: 20px; }
@media (min-width: 640px) { .card-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .card-grid { grid-template-columns: repeat(3, 1fr); gap: 24px; } }
.card-grid--3 { grid-template-columns: 1fr; }
@media (min-width: 720px) { .card-grid--3 { grid-template-columns: repeat(3, 1fr); } }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); }
.card-pad { padding: 24px; }

.post-card {
  position: relative; display: flex; flex-direction: column;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg);
  overflow: hidden; transition: border-color 0.15s, transform 0.15s;
}
.post-card:hover { border-color: var(--accent); }
@media (prefers-reduced-motion: no-preference) { .post-card:hover { transform: translateY(-2px); } }
.post-card-media { display: block; aspect-ratio: 16 / 9; background: var(--bg-alt); overflow: hidden; }
.post-card-media img { width: 100%; height: 100%; object-fit: cover; }
.post-card-media--plain { display: grid; place-items: center; background: var(--night); background-image: linear-gradient(var(--night-line) 1px, transparent 1px), linear-gradient(90deg, var(--night-line) 1px, transparent 1px); background-size: 24px 24px; }
.post-card-media--plain svg { width: 56px; height: 56px; color: var(--night-accent); }
.post-card-body { display: flex; flex-direction: column; flex: 1; padding: 20px 20px 22px; }
.post-card-title { font-size: 1.15rem; margin-bottom: 8px; }
.post-card-title a { color: var(--ink); text-decoration: none; }
.post-card-title a::after { content: ""; position: absolute; inset: 0; } /* whole card clickable */
.post-card .hub-label { position: relative; z-index: 1; }
.post-card-excerpt { color: var(--muted); font-size: 0.97rem; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.post-card .post-meta { margin-top: auto; font-size: 0.85rem; }

.post-list { list-style: none; padding: 0; margin: 0; }
.post-list li { padding: 12px 0; border-bottom: 1px solid var(--line); display: grid; gap: 2px; }
.post-list a { font-weight: 600; text-decoration: none; color: var(--ink); }
.post-list a:hover { color: var(--accent); text-decoration: underline; }
.post-list .post-meta { font-size: 0.85rem; }

.hub-grid { list-style: none; padding: 0; margin: 0; display: grid; gap: 16px; }
@media (min-width: 560px) { .hub-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .hub-grid { grid-template-columns: repeat(4, 1fr); } }
.hub-tile {
  position: relative; display: flex; flex-direction: column; padding: 22px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg);
  transition: border-color 0.15s;
}
.hub-tile:hover { border-color: var(--accent); }
.hub-tile-icon { width: 32px; height: 32px; color: var(--accent); margin-bottom: 14px; }
.hub-tile-title { font-size: 1.08rem; margin-bottom: 6px; }
.hub-tile-title a { color: var(--ink); text-decoration: none; }
.hub-tile-title a::after { content: ""; position: absolute; inset: 0; }
.hub-tile p { color: var(--muted); font-size: 0.94rem; margin-bottom: 12px; }
.hub-count { font: 600 0.8rem var(--font-mono); color: var(--accent) !important; margin: auto 0 0 !important; }

.path-grid { list-style: none; padding: 0; margin: 0; display: grid; gap: 16px; }
@media (min-width: 800px) { .path-grid { grid-template-columns: repeat(3, 1fr); gap: 24px; } }
.path-card { position: relative; padding: 26px; border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--line); border-top: 4px solid var(--accent); display: flex; flex-direction: column; }
.path-card h3 a { color: var(--ink); text-decoration: none; }
.path-card h3 a::after { content: ""; position: absolute; inset: 0; }
.path-card:hover { border-color: var(--accent); }
.path-card p { color: var(--muted); font-size: 0.96rem; }
.path-card .confirm { position: relative; z-index: 1; }

.reading-path { padding: 32px 0; border-top: 1px solid var(--line); }
.reading-path h2 { margin-top: 0; }
.path-list { padding-left: 1.4em; }
.path-list li { margin-bottom: 14px; }
.path-list a { font-weight: 650; }
.path-list p { margin: 4px 0 0; color: var(--muted); font-size: 0.95rem; }

.series-grid { list-style: none; padding: 0; display: grid; gap: 16px; }
@media (min-width: 720px) { .series-grid { grid-template-columns: repeat(2, 1fr); } }
.series-card { padding: 24px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); }
.series-progress { display: flex; align-items: center; gap: 6px; font: 600 0.85rem var(--font-mono); color: var(--muted); }
.dot { width: 10px; height: 10px; border-radius: 50%; background: var(--line); }
.dot.is-on { background: var(--accent); }

.popular-list { counter-reset: pop; list-style: none; padding: 0; }
.popular-list li { counter-increment: pop; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 14px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.popular-list li::before { content: counter(pop, decimal-leading-zero); font: 700 0.95rem var(--font-mono); color: var(--accent); min-width: 2ch; }
.popular-list a { font-weight: 650; color: var(--ink); text-decoration: none; flex: 1 1 60%; }
.popular-list a:hover { color: var(--accent); text-decoration: underline; }
.popular-list .hub-label { margin: 0; color: var(--muted); }

/* ---- Script library ------------------------------------------------------- */
.script-grid { display: grid; gap: 16px; }
@media (min-width: 720px) { .script-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1040px) { .script-grid { grid-template-columns: repeat(3, 1fr); } }
.script-card {
  display: flex; flex-direction: column; padding: 22px; border-radius: var(--radius-lg);
  background: var(--surface); border: 1px solid var(--line);
}
.script-card p { font-size: 0.96rem; }
.script-name { display: flex; align-items: center; gap: 8px; font-family: var(--font-mono); font-size: 1rem; letter-spacing: 0; overflow-wrap: anywhere; }
.script-name svg { width: 20px; height: 20px; flex-shrink: 0; color: var(--accent); }
.script-path { color: var(--muted); font-size: 0.85rem; }
.script-links { list-style: none; padding: 0; margin: 0 0 12px; display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 0.93rem; font-weight: 600; }
.script-links a { display: inline-flex; align-items: center; gap: 6px; }
.script-links svg { width: 16px; height: 16px; }
.script-card .post-meta { margin-top: auto; font-size: 0.85rem; }
.script-type { display: inline-block; align-self: flex-start; padding: 3px 8px; border-radius: 4px; background: var(--accent-soft); }
.type-detection { color: var(--note); }
.type-requirement { color: var(--warning); background: color-mix(in srgb, var(--warning) 14%, transparent); }
.type-remediation { color: var(--tip); background: color-mix(in srgb, var(--tip) 14%, transparent); }
.type-utility { color: var(--gotcha); background: color-mix(in srgb, var(--gotcha) 14%, transparent); }
.section-dark { padding-block: 64px; }
.section-dark h2 { color: var(--night-ink); }
.section-dark .link-arrow { color: var(--night-accent); }
.section-dark .small-print { color: var(--night-muted); }
.section-dark .script-card { background: var(--night-2); border-color: var(--night-line); color: var(--night-ink); }
.section-dark .script-card a { color: var(--night-accent); }
.section-dark .script-card .script-path, .section-dark .script-card .post-meta { color: var(--night-muted); }
.section-dark .script-type { background: #1a2440; color: var(--night-accent); }
.section-dark :not(pre) > code { background: #0a0d11; border-color: var(--night-line); color: var(--night-ink); }
.script-group { margin-top: 40px; }
.filter-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; margin: 32px 0 8px; }
.filter-label { font-weight: 650; }
.chips { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  display: inline-flex; align-items: center; min-height: 40px; padding: 6px 14px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--surface); color: var(--ink); text-decoration: none; font-weight: 600; font-size: 0.93rem;
}
.chip:hover { border-color: var(--accent); color: var(--accent); }
.chip[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.filter-search { flex: 1 1 220px; }
.filter-search input, .field input, .field select, .field textarea {
  width: 100%; min-height: 44px; padding: 10px 12px; border: 1px solid var(--muted); border-radius: 8px;
  background: var(--surface); color: var(--ink); font: inherit; font-size: 1rem;
}

/* ---- Single post ----------------------------------------------------------- */
.post-header { padding-block: 40px 24px; }
@media (min-width: 720px) { .post-header { padding-block: 64px 32px; } }
.post-header h1 { font-size: clamp(2rem, 4.8vw, 3rem); }
.post-hero-image { margin-bottom: 32px; max-width: calc(1056px + 2 * var(--gutter)); }
/* On wide screens, line the title up with the text column (the TOC sits to its left). */
@media (min-width: 1100px) {
  .post-header .container { max-width: calc(1056px + 2 * var(--gutter)); padding-left: calc(var(--gutter) + 296px); }
}
.post-hero-image img { width: 100%; border-radius: var(--radius-lg); border: 1px solid var(--line); }
.post-hero-image figcaption { margin-top: 8px; }

.post-layout { display: grid; gap: 24px; padding-bottom: 48px; }
.post-main { min-width: 0; max-width: 760px; }
@media (min-width: 1100px) {
  .post-layout { grid-template-columns: 240px minmax(0, 760px); gap: 56px; justify-content: center; }
  .post-aside { order: 0; }
  .toc { position: sticky; top: calc(var(--header-h) + 24px); max-height: calc(100vh - var(--header-h) - 48px); overflow: auto; }
}
.toc { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); font-size: 0.92rem; }
.toc summary { cursor: pointer; padding: 12px 16px; font: 650 0.82rem var(--font-mono); text-transform: uppercase; letter-spacing: 0.05em; color: var(--muted); }
.toc ol { list-style: none; margin: 0; padding: 0 16px 14px; }
.toc li { margin: 0; }
.toc a { display: block; padding: 5px 0 5px 10px; border-left: 2px solid var(--line); color: var(--ink-2); text-decoration: none; line-height: 1.4; }
.toc a:hover { color: var(--accent); }
.toc a[aria-current="true"] { border-left-color: var(--accent); color: var(--accent); font-weight: 600; }
.toc .toc-l3 a { padding-left: 22px; font-size: 0.88rem; }

.fact-boxes { display: grid; gap: 16px; margin-bottom: 32px; }
@media (min-width: 640px) { .fact-boxes:has(.fact-box + .fact-box) { grid-template-columns: 1fr 1fr; } }
.fact-box { padding: 18px 20px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); font-size: 0.95rem; }
.fact-title { font: 650 0.8rem var(--font-mono); text-transform: uppercase; letter-spacing: 0.05em; color: var(--accent); margin-bottom: 10px; }
.fact-box dl { margin: 0; display: grid; gap: 6px; }
.fact-box dl div { display: flex; gap: 12px; }
.fact-box dt { font-weight: 650; min-width: 6em; }
.fact-box dd { margin: 0; }
.fact-box ul { margin: 0; padding-left: 1.2em; }

.series-badge { display: inline-block; padding: 6px 12px; border-radius: 999px; background: var(--accent-soft); color: var(--accent); font: 600 0.85rem var(--font-mono); }
.series-nav { margin-top: 40px; padding: 24px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface); }
.series-nav-title { font-weight: 700; }
.series-steps { padding-left: 1.3em; }
.series-steps [aria-current] a { font-weight: 700; color: var(--ink); }
.series-prev-next { display: grid; gap: 12px; }
@media (min-width: 640px) { .series-prev-next { grid-template-columns: 1fr 1fr; } }
.pn { display: block; padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; font-weight: 600; }
.pn span { display: block; font: 600 0.75rem var(--font-mono); text-transform: uppercase; color: var(--muted); }
.pn-next { text-align: right; grid-column: 2; }

.tag-list { list-style: none; padding: 0; margin: 32px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.tag-list a { display: inline-block; padding: 4px 10px; border-radius: 999px; background: var(--bg-alt); color: var(--ink-2); text-decoration: none; font-size: 0.85rem; }
.tag-list a:hover { background: var(--accent-soft); color: var(--accent); }

.post-end { padding-bottom: 64px; display: grid; gap: 48px; }
.author-box { display: flex; gap: 20px; align-items: flex-start; padding: 24px; border-radius: var(--radius-lg); background: var(--bg-alt); }
.author-photo { width: 80px; height: 80px; border-radius: 50%; flex-shrink: 0; object-fit: cover; }
.author-photo--placeholder, .about-photo--placeholder {
  display: grid; place-items: center; background: var(--night); color: var(--night-accent); font: 700 1.4rem var(--font-mono);
}
.author-name { font-weight: 700; margin-bottom: 4px; }
.author-box p { font-size: 0.97rem; }
.author-box p:last-child { margin: 0; }
.related h2 { font-size: 1.4rem; }

.share-title { font: 650 0.85rem var(--font-mono); text-transform: uppercase; letter-spacing: 0.05em; color: var(--muted); }
.share ul { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.share a { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 8px 14px; border: 1px solid var(--line); border-radius: 8px; color: var(--ink); text-decoration: none; font-weight: 600; font-size: 0.93rem; }
.share a:hover { border-color: var(--accent); color: var(--accent); }
.share svg { width: 18px; height: 18px; }

/* ---- Prose (post and page bodies) ---------------------------------------- */
.prose { overflow-wrap: break-word; }
.prose > :first-child { margin-top: 0; }
.prose h2 { margin-top: 1.6em; }
.prose h3 { margin-top: 1.8em; }
.prose li { margin-bottom: 0.4em; }
.prose li > ul, .prose li > ol { margin-top: 0.4em; }
.prose img { border-radius: var(--radius); border: 1px solid var(--line); margin: 1.5em 0; }
.zoom-btn { display: block; padding: 0; margin: 1.5em 0; border: 0; background: none; cursor: zoom-in; border-radius: var(--radius); }
.zoom-btn img { margin: 0; }
.prose p > img:only-child { margin: 0; }
.prose blockquote { margin: 1.5em 0; padding: 4px 0 4px 20px; border-left: 4px solid var(--accent); color: var(--ink-2); }
.prose table { width: 100%; }
.prose .not-prose img { cursor: auto; }
.table-wrap { overflow-x: auto; margin-bottom: 1.5em; }
.table { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
.table th, .table td { text-align: left; vertical-align: top; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.table thead th { font: 650 0.8rem var(--font-mono); text-transform: uppercase; letter-spacing: 0.04em; color: var(--muted); }
.prose table:not(.table) { border-collapse: collapse; display: block; overflow-x: auto; }
.prose table:not(.table) th, .prose table:not(.table) td { padding: 8px 12px; border: 1px solid var(--line); }
.link-list li { margin-bottom: 0.6em; }

/* Callouts: ::: tip / warning / gotcha / note */
.callout { --c: var(--note); margin: 1.6em 0; padding: 16px 20px; border: 1px solid color-mix(in srgb, var(--c) 35%, var(--line)); border-left: 4px solid var(--c); border-radius: var(--radius); background: color-mix(in srgb, var(--c) 7%, var(--surface)); }
.callout-tip { --c: var(--tip); }
.callout-warning { --c: var(--warning); }
.callout-gotcha { --c: var(--gotcha); }
.callout-title { display: flex; align-items: center; gap: 8px; margin: 0 0 6px; font: 700 0.85rem var(--font-mono); text-transform: uppercase; letter-spacing: 0.05em; color: var(--c); }
.callout-title svg { width: 20px; height: 20px; }
.callout-body > :last-child { margin-bottom: 0; }
.section > .container > .callout:first-child { margin-top: 0; }

/* Code blocks: highlighted at build time by Prism */
.code-block { position: relative; margin: 1.6em 0; border: 1px solid var(--line); border-radius: var(--radius); background: var(--code-bg); overflow: hidden; }
.code-title { padding: 8px 16px; border-bottom: 1px solid var(--line); font: 600 0.8rem var(--font-mono); color: var(--muted); padding-right: 88px; }
.code-block pre { margin: 0; padding: 16px 18px; overflow-x: auto; line-height: 1.6; font-size: 0.86rem; tab-size: 4; }
.code-block:not(:has(.code-title)) pre { padding-right: 88px; }
.code-block pre:focus-visible { outline-offset: -3px; }
.copy-btn {
  position: absolute; top: 6px; right: 6px; display: inline-flex; align-items: center; gap: 6px;
  min-height: 32px; padding: 4px 10px; border: 1px solid var(--line); border-radius: 6px;
  background: var(--surface); color: var(--muted); font: 600 0.78rem var(--font-sans); cursor: pointer;
}
.copy-btn:hover { color: var(--accent); border-color: var(--accent); }
.copy-btn svg { width: 15px; height: 15px; }
.token.comment, .token.prolog, .token.cdata { color: #6a737d; font-style: italic; }
.token.keyword, .token.boolean, .token.important { color: #a626a4; }
.token.string, .token.char, .token.attr-value { color: #2f7d32; }
.token.function, .token.class-name { color: #2456e0; }
.token.variable, .token.parameter { color: #b45309; }
.token.number, .token.constant, .token.symbol { color: #b31d28; }
.token.operator, .token.punctuation { color: #57606a; }
.token.tag, .token.property { color: #0e7490; }
.token.attr-name { color: #b45309; }
:root[data-theme="dark"] .token.comment { color: #8b949e; }
:root[data-theme="dark"] .token.keyword, :root[data-theme="dark"] .token.boolean { color: #d2a8ff; }
:root[data-theme="dark"] .token.string, :root[data-theme="dark"] .token.attr-value { color: #a5d6a7; }
:root[data-theme="dark"] .token.function, :root[data-theme="dark"] .token.class-name { color: #8fb0ff; }
:root[data-theme="dark"] .token.variable, :root[data-theme="dark"] .token.parameter, :root[data-theme="dark"] .token.attr-name { color: #f2b45a; }
:root[data-theme="dark"] .token.number, :root[data-theme="dark"] .token.constant { color: #ff9b8f; }
:root[data-theme="dark"] .token.operator, :root[data-theme="dark"] .token.punctuation { color: #a6afbb; }
:root[data-theme="dark"] .token.tag, :root[data-theme="dark"] .token.property { color: #67d6e8; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .token.comment { color: #8b949e; }
  :root:not([data-theme="light"]) .token.keyword, :root:not([data-theme="light"]) .token.boolean { color: #d2a8ff; }
  :root:not([data-theme="light"]) .token.string, :root:not([data-theme="light"]) .token.attr-value { color: #a5d6a7; }
  :root:not([data-theme="light"]) .token.function, :root:not([data-theme="light"]) .token.class-name { color: #8fb0ff; }
  :root:not([data-theme="light"]) .token.variable, :root:not([data-theme="light"]) .token.parameter, :root:not([data-theme="light"]) .token.attr-name { color: #f2b45a; }
  :root:not([data-theme="light"]) .token.number, :root:not([data-theme="light"]) .token.constant { color: #ff9b8f; }
  :root:not([data-theme="light"]) .token.operator, :root:not([data-theme="light"]) .token.punctuation { color: #a6afbb; }
  :root:not([data-theme="light"]) .token.tag, :root:not([data-theme="light"]) .token.property { color: #67d6e8; }
}

/* Image zoom (progressive enhancement) */
.zoom-dialog { border: 0; padding: 0; background: transparent; max-width: 96vw; max-height: 96vh; }
.zoom-dialog::backdrop { background: rgb(0 0 0 / 0.85); }
.zoom-dialog img { max-width: 96vw; max-height: 90vh; width: auto; border-radius: 8px; cursor: zoom-out; }
.zoom-dialog form { position: absolute; top: 8px; right: 8px; }
.zoom-dialog button { width: 44px; height: 44px; border: 0; border-radius: 50%; background: rgb(0 0 0 / 0.6); color: #fff; cursor: pointer; }
.zoom-dialog button svg { width: 22px; height: 22px; }

/* ---- Newsletter and forms ------------------------------------------------- */
.newsletter {
  display: grid; gap: 20px; padding: 28px; border-radius: var(--radius-lg);
  background: var(--accent-soft); border: 1px solid color-mix(in srgb, var(--accent) 25%, var(--line));
}
@media (min-width: 800px) { .newsletter { grid-template-columns: 1fr 1fr; align-items: center; padding: 36px; gap: 32px; } }
.newsletter-title { font-size: 1.5rem; }
.newsletter-text p { margin: 0; color: var(--ink-2); }
.newsletter-form { margin: 0; }
.inline-field { display: flex; flex-wrap: wrap; gap: 8px; }
.inline-field input { flex: 1 1 200px; }
.form-small { font-size: 0.85rem; color: var(--muted); margin: 8px 0 0; }
.form { display: grid; gap: 4px; }
.field { margin-bottom: 14px; }
.field label { display: block; font-weight: 650; margin-bottom: 6px; }
.field-row { display: grid; gap: 0 16px; }
@media (min-width: 640px) { .field-row { grid-template-columns: 1fr 1fr; } }
.req, .opt { font-weight: 500; font-size: 0.82rem; color: var(--muted); margin-left: 6px; }
.field input:focus, .field select:focus, .field textarea:focus, .filter-search input:focus { outline: 3px solid var(--accent); outline-offset: 1px; border-color: var(--accent); }
.field [aria-invalid="true"] { border-color: var(--confirm); }
.field-error { color: var(--confirm); font-size: 0.9rem; font-weight: 600; margin: 6px 0 0; }
.form-status { padding: 12px 14px; border-radius: 8px; background: color-mix(in srgb, var(--confirm) 12%, var(--surface)); color: var(--confirm); font-weight: 600; margin-bottom: 12px; }
.pagination { display: flex; justify-content: space-between; gap: 12px; margin-top: 32px; }

/* ---- Hub page ----------------------------------------------------------- */
.hub-intro-grid { display: grid; gap: 32px; }
@media (min-width: 800px) { .hub-intro-grid { grid-template-columns: 1fr 1fr; gap: 48px; } }

/* ---- About strip --------------------------------------------------------- */
.about-strip { background: var(--bg-alt); }
.about-inner { display: grid; gap: 24px; align-items: center; max-width: 900px; }
@media (min-width: 640px) { .about-inner { grid-template-columns: 160px 1fr; gap: 40px; } }
.about-photo { width: 160px; height: 160px; border-radius: 50%; object-fit: cover; }
.about-photo--placeholder { font-size: 2.4rem; }

/* ---- Search (Pagefind UI, themed to match) -------------------------------- */
.search-label { display: block; font-weight: 650; margin-bottom: 8px; }
.search-ui {
  --pagefind-ui-primary: var(--accent);
  --pagefind-ui-text: var(--ink);
  --pagefind-ui-background: var(--surface);
  --pagefind-ui-border: var(--muted);
  --pagefind-ui-tag: var(--bg-alt);
  --pagefind-ui-border-width: 1px;
  --pagefind-ui-border-radius: 8px;
  --pagefind-ui-font: var(--font-sans);
}

/* ---- Footer ----------------------------------------------------------------- */
.site-footer { margin-top: 0; padding-top: 56px; border-top: 1px solid var(--line); background: var(--bg-alt); font-size: 0.95rem; }
.footer-grid { display: grid; gap: 32px; padding-bottom: 40px; }
@media (min-width: 640px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1000px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 48px; } }
.site-footer h2 { font: 650 0.8rem var(--font-mono); text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); margin-bottom: 14px; }
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: 8px; }
.footer-links a, .footer-legal a { color: var(--ink); text-decoration: none; }
.footer-links a:hover, .footer-legal a:hover { color: var(--accent); text-decoration: underline; }
.footer-about p { color: var(--muted); margin-top: 12px; }
.social-links { list-style: none; padding: 0; margin: 16px 0 0; display: flex; gap: 6px; }
.social-links a { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 8px; color: var(--ink); border: 1px solid var(--line); background: var(--surface); }
.social-links a:hover { color: var(--accent); border-color: var(--accent); }
.social-links svg { width: 20px; height: 20px; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding-block: 20px 32px; border-top: 1px solid var(--line); color: var(--muted); }
.footer-bottom p { margin: 0; }
.footer-legal { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px 20px; }

@media print {
  .site-header, .site-footer, .post-aside, .post-end, .preview-bar, .copy-btn { display: none !important; }
  body { background: #fff; color: #000; }
}

/* ---- Sponsor slot ------------------------------------------------------------ */
.sponsor { padding: 16px; border: 1px dashed var(--line); border-radius: var(--radius); }
.sponsor-label { font: 600 0.75rem var(--font-mono); text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); margin-bottom: 8px; }
.sponsor img { border-radius: 6px; }

/* ---- Photography ----------------------------------------------------------- */
.photo-hero .btn svg, .album-end .btn svg, .lens .btn svg { width: 20px; height: 20px; }
.lens-intro { color: var(--muted); max-width: 40em; }
.lens .insta-grid, .lens .album-grid { margin-bottom: 24px; }

/* Gallery cards */
.album-grid { list-style: none; padding: 0; margin: 0; display: grid; gap: 24px; }
@media (min-width: 640px) { .album-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .album-grid { grid-template-columns: repeat(3, 1fr); } }
.album-card { position: relative; }
.album-cover { display: block; aspect-ratio: 4 / 3; overflow: hidden; border-radius: var(--radius-lg); background: var(--night); margin-bottom: 12px; }
.album-cover img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s; }
@media (prefers-reduced-motion: no-preference) { .album-card:hover .album-cover img { transform: scale(1.03); } }
.album-title { font-size: 1.15rem; margin-bottom: 4px; }
.album-title a { color: var(--ink); text-decoration: none; }
.album-title a::after { content: ""; position: absolute; inset: 0; }

/* A gallery: photos keep their own shape, in columns */
.album-hero { border-bottom: 0; }
.album-story { margin-bottom: 8px; }
.photo-grid { list-style: none; padding: 0; margin: 0; columns: 1; column-gap: 16px; }
@media (min-width: 640px) { .photo-grid { columns: 2; } }
@media (min-width: 1100px) { .photo-grid { columns: 3; } }
.photo { break-inside: avoid; margin-bottom: 16px; }
.photo .gallery-link { display: block; border-radius: var(--radius); overflow: hidden; cursor: zoom-in; }
.photo img { width: 100%; }
.photo-caption { margin: 6px 0 0; font-size: 0.9rem; color: var(--muted); }
.album-end { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; margin-top: 32px; }

/* Instagram feed: square tiles, served from this site */
.insta-grid { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
@media (min-width: 640px) { .insta-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1000px) { .insta-grid { grid-template-columns: repeat(6, 1fr); gap: 12px; } }
.insta-item { position: relative; display: block; aspect-ratio: 1; overflow: hidden; border-radius: var(--radius); background: var(--bg-alt); }
.insta-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s, opacity 0.2s; }
.insta-item:hover img { opacity: 0.9; }
@media (prefers-reduced-motion: no-preference) { .insta-item:hover img { transform: scale(1.04); } }
.insta-badge { position: absolute; top: 8px; right: 8px; padding: 2px 8px; border-radius: 4px; background: rgb(14 17 22 / 0.75); color: #fff; font: 600 0.72rem var(--font-mono); }

/* Full-screen gallery viewer */
.lightbox { border: 0; padding: 0; background: transparent; width: 100vw; height: 100vh; max-width: 100vw; max-height: 100vh; }
.lightbox::backdrop { background: rgb(8 10 13 / 0.94); }
.lightbox figure { margin: 0; height: 100%; display: grid; grid-template-rows: 1fr auto; place-items: center; padding: 56px 16px 16px; }
.lightbox img { max-width: 100%; max-height: calc(100vh - 120px); width: auto; height: auto; object-fit: contain; border-radius: 4px; }
.lightbox figcaption { color: #e6e9ed; font-size: 0.95rem; text-align: center; padding-top: 12px; max-width: 60em; }
.lb-btn { position: fixed; display: grid; place-items: center; width: 48px; height: 48px; border: 0; border-radius: 50%; background: rgb(255 255 255 / 0.12); color: #fff; cursor: pointer; }
.lb-btn:hover { background: rgb(255 255 255 / 0.24); }
.lb-btn svg { width: 24px; height: 24px; }
.lb-close { top: 12px; right: 12px; }
.lb-prev { left: 12px; top: 50%; transform: translateY(-50%) rotate(180deg); }
.lb-next { right: 12px; top: 50%; transform: translateY(-50%); }
