:root {
  color-scheme: light;
  --neutral-50: 255, 255, 255;
  --neutral-100: 245, 246, 250;
  --neutral-200: 225, 227, 235;
  --neutral-300: 195, 198, 209;
  --neutral-400: 145, 149, 163;
  --neutral-500: 103, 107, 120;
  --neutral-600: 75, 79, 91;
  --neutral-700: 35, 38, 48;
  --neutral-800: 0, 0, 0;
  --neutral-900: 0, 0, 0;
  --primary-100: 234, 237, 255;
  --primary-200: 214, 219, 255;
  --primary-300: 143, 154, 255;
  --primary-400: 35, 55, 255;
  --primary-500: 35, 55, 255;
  --primary-600: 35, 55, 255;
  --primary-700: 35, 55, 255;
  --page-bg: #fff;
  --text: #000;
  --soft-text: rgba(0, 0, 0, .68);
  --border: rgb(var(--neutral-200));
  --sans: 'Atkinson Hyperlegible Next', sans-serif;
  --display: 'Atkinson Hyperlegible Next', sans-serif;
  --mono: 'Atkinson Hyperlegible Next', sans-serif;
  --code: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
}
html.dark {
  color-scheme: dark;
  --neutral-100: 38, 38, 38;
  --neutral-200: 57, 57, 57;
  --neutral-300: 145, 145, 145;
  --neutral-400: 130, 130, 130;
  --neutral-500: 175, 175, 175;
  --neutral-600: 190, 190, 190;
  --neutral-700: 43, 43, 43;
  --neutral-800: 17, 17, 17;
  --neutral-900: 8, 8, 8;
  --primary-100: 17, 61, 23;
  --primary-200: 25, 99, 34;
  --primary-300: 48, 184, 64;
  --primary-400: 70, 232, 86;
  --primary-500: 70, 232, 86;
  --primary-600: 70, 232, 86;
  --primary-700: 70, 232, 86;
  --page-bg: #111;
  --text: #fff;
  --soft-text: rgba(255, 255, 255, .7);
  --border: #393939;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--page-bg); }
body {
  min-height: 100vh;
  margin: 0;
  background: var(--page-bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
a { color: inherit; text-decoration: none; }
a:hover { color: rgb(var(--primary-600)); }
.dark a:hover { color: rgb(var(--primary-400)); }
::selection { background: rgb(var(--primary-200)); color: rgb(var(--neutral-900)); }
.skip-link { position: absolute; z-index: 20; top: -4rem; left: 1rem; padding: .4rem .8rem; border-radius: 0 0 .4rem .4rem; background: rgb(var(--primary-200)); color: rgb(var(--neutral-900)); font-size: .875rem; }
.skip-link:focus { top: 0; }
.site-header, .page-shell, .footer-inner { width: min(100%, 1280px); margin-inline: auto; padding-inline: 24px; }
.site-header { padding-top: 4px; }
.header-inner { display: flex; align-items: center; min-height: 52px; gap: 1rem; }
.wordmark { min-width: 0; overflow: hidden; font-size: 1rem; font-weight: 500; letter-spacing: -.02em; text-overflow: ellipsis; white-space: nowrap; }
.main-nav { display: flex; align-items: center; gap: 20px; margin-left: auto; }
.main-nav > a { color: var(--text); font-size: .875rem; font-weight: 500; line-height: 3rem; }
.main-nav > a:hover, .main-nav > a[aria-current="page"] { color: rgb(var(--primary-600)); }
.dark .main-nav > a:hover, .dark .main-nav > a[aria-current="page"] { color: rgb(var(--primary-400)); }
.theme-toggle { display: grid; width: 32px; height: 32px; place-items: center; padding: 0; border: 0; border-radius: 50%; background: transparent; color: var(--text); cursor: pointer; }
.theme-toggle:hover { background: rgb(var(--neutral-100)); color: rgb(var(--primary-600)); }
.dark .theme-toggle:hover { background: rgb(var(--neutral-700)); color: rgb(var(--primary-400)); }
.theme-toggle svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.icon-moon { display: none; }
.dark .icon-sun { display: none; }
.dark .icon-moon { display: block; }
.page-shell { min-height: calc(100vh - 125px); }

/* Single article */
.single-article { padding-top: 7px; }
.single-cover { width: 100%; height: 144px; overflow: hidden; background: rgb(var(--neutral-100)); }
.single-cover img { display: block; width: 100%; height: 100%; object-fit: cover; }
.single-header { max-width: 72ch; margin-top: 20px; }
.single-header h1 { margin: 0; color: var(--text); font-family: var(--display); font-size: 2.25rem; font-weight: 600; line-height: 1.15; letter-spacing: 0; text-wrap: balance; }
.article-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 0; margin: 4px 0 24px; color: var(--soft-text); font-size: 1rem; line-height: 1.5; }
.article-meta .meta-separator { padding-inline: 8px; color: rgb(var(--primary-500)); }
.article-layout { display: flex; flex-direction: column; max-width: 100%; }
.article-toc { order: 0; margin: 0 0 22px; color: var(--text); font-size: .95rem; line-height: 1.55; }
.article-toc details { overflow: hidden; border-radius: 8px; }
.article-toc summary { padding: 4px 12px; background: rgb(var(--neutral-100)); color: rgb(var(--neutral-800)); font-weight: 600; cursor: pointer; }
.dark .article-toc summary { background: rgb(var(--neutral-700)); color: var(--text); }
.article-toc nav { padding: 9px 12px 12px; border-left: 1px dotted var(--border); }
.article-toc ul { margin: 0; padding: 0 0 0 1rem; list-style: none; }
.article-toc li { margin: .25rem 0; }
.article-toc li ul { margin-top: .2rem; }
.article-toc a { color: var(--soft-text); }
.article-toc a:hover { color: rgb(var(--primary-600)); }
.dark .article-toc a:hover { color: rgb(var(--primary-400)); }
.article-content { order: 1; width: 100%; max-width: 72ch; margin: 0 0 5rem; font-size: 20px; line-height: 1.72; }
.article-content > * { margin-top: 0; margin-bottom: 1.25em; }
.article-content p { margin-block: 1.25em; }
.article-content h2, .article-content h3, .article-content h4 { position: relative; margin-top: 2.1em; margin-bottom: .8em; color: var(--text); font-family: var(--display); font-weight: 600; line-height: 1.25; letter-spacing: 0; scroll-margin-top: 1.5rem; }
.article-content h2 { font-size: 1.75rem; }
.article-content h3 { font-size: 1.4rem; }
.article-content h4 { font-size: 1.2rem; }
.article-content h5 { font-size: 1.1rem; }
.article-content h6 { font-size: 1rem; }
.heading-anchor { display: inline-block; margin-left: .32em; color: rgb(var(--primary-600)); font-family: var(--sans); font-size: .85em; font-weight: 400; line-height: 1; text-decoration: none !important; opacity: 0; visibility: hidden; transition: opacity .15s ease; }
.dark .heading-anchor { color: rgb(var(--primary-400)); }
.heading-with-anchor:hover > .heading-anchor, .heading-anchor:focus-visible { opacity: 1; visibility: visible; }
.article-content strong { font-weight: 600; }
.article-content a { color: rgb(var(--primary-600)); text-decoration: underline; text-decoration-color: rgb(var(--primary-300)); text-underline-offset: 2px; }
.dark .article-content a { color: rgb(var(--primary-400)); text-decoration-color: rgb(var(--primary-700)); }
.article-content a:hover { text-decoration-thickness: 2px; }
.article-content ul, .article-content ol { margin: 1.25em 0; padding-left: 1.5em; }
.article-content ul { list-style: disc; }
.article-content ol { list-style: decimal; }
.article-content li { margin: .35em 0; padding-left: .2em; }
.article-content li::marker { color: rgb(var(--primary-500)); }
.article-content li > ul, .article-content li > ol { margin-block: .4em; }
.article-content input[type="checkbox"] { accent-color: rgb(var(--primary-600)); }
.article-content blockquote { margin: 1.4em 0; padding: .15em 0 .15em 1.1em; border-left: 4px solid rgb(var(--neutral-300)); color: rgb(var(--neutral-600)); font-size: 1.4em; font-weight: 300; line-height: 1.55; }
.dark .article-content blockquote { border-color: rgb(var(--neutral-600)); color: rgb(var(--neutral-300)); }
.article-content :not(pre) > code { padding: .2em .35em; border-radius: .2em; background: rgb(var(--neutral-100)); font-family: var(--code); font-size: 90%; }
.article-content pre { overflow-x: auto; margin: 1.5em 0; padding: 1rem 1.2rem; border-radius: 8px; background: rgb(var(--neutral-900)) !important; color: rgb(var(--neutral-50)); font-family: var(--code); font-size: .84rem; line-height: 1.7; }
.article-content pre code { padding: 0; background: transparent; color: inherit; font-family: inherit; font-size: inherit; }
.article-content table { display: block; width: 100%; overflow-x: auto; border-collapse: collapse; font-size: .92em; }
.article-content thead { border-bottom: 2px solid var(--border); }
.article-content th, .article-content td { padding: .5rem .75rem; border-bottom: 1px solid var(--border); text-align: left; }
.article-content th { font-weight: 600; }
.article-content hr { margin: 2.5em 0; border: 0; border-top: 1px solid var(--border); }
.article-content img { max-width: 100%; height: auto; border-radius: 8px; }
.article-content img[alt="Konstantin Tskhovrebov (terrakok)"] { display: block; width: 160px; height: 160px; margin: 0 0 1.5rem; border-radius: 50%; object-fit: cover; }
.article-footer { display: flex; justify-content: space-between; gap: 24px; max-width: 72ch; padding: 12px 0 32px; border-top: 1px dotted var(--border); font-size: .9rem; line-height: 1.5; }
.article-footer a { display: flex; flex: 1; flex-direction: column; color: rgb(var(--neutral-700)); }
.dark .article-footer a { color: var(--text); }
.article-footer a:hover { color: rgb(var(--primary-600)); }
.dark .article-footer a:hover { color: rgb(var(--primary-400)); }
.article-footer .article-next { align-items: flex-end; text-align: right; }
.article-footer-label { margin-bottom: 3px; color: var(--soft-text); font-size: .75rem; }

/* Home and archives */
.eyebrow { margin: 0 0 12px; color: var(--soft-text); font: .75rem/1.5 var(--mono); letter-spacing: .04em; }
.page-heading { max-width: 65ch; padding: 42px 0 18px; }
.page-heading .eyebrow { margin-bottom: 7px; }
.page-heading h1 { margin: 0; font-family: var(--display); font-size: 2.25rem; font-weight: 600; line-height: 1.2; }
.page-intro { margin: 10px 0 0; color: var(--soft-text); font-size: 1.05rem; }
.post-list { max-width: 65ch; margin-bottom: 2.5rem; }
.empty-state { padding: 1rem 0; color: var(--soft-text); }
.pagination { display: flex; justify-content: center; gap: 8px; padding: 20px 0 48px; font-family: var(--mono); font-size: .8rem; }
.pagination a, .pagination span { padding: 5px 10px; border: 1px solid var(--border); border-radius: 5px; }
.pagination .current { background: rgb(var(--primary-600)); color: white; }
.site-footer { padding: 1.5rem 0 2rem; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 12px; color: var(--soft-text); font-size: .85rem; }
.footer-inner a { color: var(--text); }
.footer-inner a span { color: rgb(var(--primary-500)); }

@media (min-width: 640px) {
  .site-header, .page-shell, .footer-inner { padding-inline: 56px; }
  .single-cover { height: 224px; }
}
@media (min-width: 768px) {
  .site-header, .page-shell, .footer-inner { padding-inline: 96px; }
}
@media (min-width: 853px) {
  .article-layout { display: grid; grid-template-columns: minmax(0, 72ch) minmax(190px, 1fr); column-gap: 32px; align-items: start; }
  .article-content { grid-column: 1; grid-row: 1; }
  .article-toc { grid-column: 2; grid-row: 1; order: initial; position: sticky; top: 2rem; margin: 0; padding-left: 8px; }
  .article-toc summary { display: none; }
  .article-toc nav { padding: 8px 0 8px 16px; }
  .article-footer { margin-top: -1.5rem; }
}
@media (min-width: 1024px) {
  .site-header, .page-shell, .footer-inner { padding-inline: 128px; }
  .single-cover { height: 288px; }
}
@media (max-width: 639px) {
  .header-inner { min-height: 48px; }
  .main-nav { gap: 13px; }
  .main-nav > a { font-size: .8rem; }
  .single-header h1 { font-size: 2rem; }
  .article-content { font-size: 20px; }
  .article-content h2 { font-size: 1.55rem; }
  .article-content h3 { font-size: 1.3rem; }
  .footer-inner { font-size: .78rem; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}

/* Homepage profile, image-led post previews, and keyboard-first search */
.header-actions { display: flex; align-items: center; gap: 18px; margin-left: auto; }
.main-nav { margin-left: 0; }
.search-trigger { display: inline-flex; min-height: 34px; align-items: center; gap: 8px; padding: 4px 9px; border: 1px solid var(--border); border-radius: 8px; background: rgba(var(--neutral-100), .5); color: var(--soft-text); font: 400 .875rem var(--sans); cursor: pointer; transition: border-color .15s, color .15s; }
.search-trigger:hover { border-color: rgb(var(--primary-600)); color: rgb(var(--primary-600)); }
.dark .search-trigger:hover { border-color: rgb(var(--primary-400)); color: rgb(var(--primary-400)); }
.search-trigger svg { width: 14px; height: 14px; fill: currentColor; }
.search-trigger kbd { min-width: 18px; padding: 0 4px; border: 1px solid var(--border); border-radius: 4px; background: var(--page-bg); color: var(--soft-text); font: 400 .72rem var(--mono); text-align: center; }
.profile-hero { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 12px 4px 24px; text-align: center; }
.profile-header { display: flex; flex-direction: column; align-items: center; width: 100%; }
.profile-avatar { display: block; width: 160px; height: 160px; margin-bottom: 8px; border-radius: 50%; object-fit: cover; }
.profile-header h1 { margin: 0; font-family: var(--display); font-size: 2.25rem; font-weight: 600; line-height: 1.25; letter-spacing: 0; }
.profile-header h2 { max-width: 42rem; margin: 10px 0 0; color: var(--soft-text); font-family: var(--sans); font-size: 1.125rem; font-weight: 400; line-height: 1.5; text-wrap: balance; }
.profile-socials { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 13px; color: rgb(var(--neutral-400)); }
.profile-socials a { display: grid; width: 28px; height: 28px; place-items: center; color: inherit; }
.profile-socials a:hover { color: rgb(var(--primary-700)); }
.dark .profile-socials a:hover { color: rgb(var(--primary-400)); }
.profile-socials .font-awesome-icon { width: 22px; height: 22px; }
.font-awesome-icon { display: block; flex: none; background-color: currentColor; -webkit-mask-position: center; -webkit-mask-repeat: no-repeat; -webkit-mask-size: contain; mask-position: center; mask-repeat: no-repeat; mask-size: contain; }
.icon-github { -webkit-mask-image: url("/images/icons/github.svg"); mask-image: url("/images/icons/github.svg"); }
.icon-linkedin { -webkit-mask-image: url("/images/icons/linkedin.svg"); mask-image: url("/images/icons/linkedin.svg"); }
.icon-mastodon { -webkit-mask-image: url("/images/icons/mastodon.svg"); mask-image: url("/images/icons/mastodon.svg"); }
.icon-rss { width: 18px; height: 18px; -webkit-mask-image: url("/images/icons/rss.svg"); mask-image: url("/images/icons/rss.svg"); }
.rss-link { display: grid; width: 30px; height: 30px; place-items: center; border-radius: 50%; }
.rss-link:hover { color: rgb(var(--primary-600)); }
.dark .rss-link:hover { color: rgb(var(--primary-400)); }
.home-posts { display: flex; flex-direction: column; gap: 28px; padding: 12px 0 48px; }
.home-posts-title { margin: 0; font-family: var(--display); font-size: 1.75rem; font-weight: 600; line-height: 1.3; }
.post-card { display: flex; position: relative; flex-direction: column; gap: 0; padding: 0; border: 0; }
.post-card-image { display: block; width: 100%; aspect-ratio: 1.5; min-height: 180px; overflow: hidden; background: rgb(var(--neutral-100)); box-shadow: 5px 5px 20px 1px rgb(0 0 0 / 22%); }
.post-card-image img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .7s cubic-bezier(.22, 1, .36, 1); }
.post-card:hover .post-card-image img { transform: scale(1.035); }
.post-card-content { min-width: 0; margin-top: 12px; }
.post-card-heading { position: relative; z-index: 1; margin: 0; font-family: var(--display); font-size: 1.35rem; font-weight: 600; line-height: 1.35; text-align: left; }
.post-card-heading h2 { margin: 0; font: inherit; }
.post-card-heading h2 { color: rgb(var(--neutral-800)); }
.dark .post-card-heading h2 { color: rgb(var(--neutral-50)); }
.post-card:hover .post-card-heading h2 { text-decoration: underline; text-decoration-color: rgb(var(--primary-500)); text-underline-offset: 3px; }
.post-card-link { position: absolute; z-index: 2; inset: 0; border-radius: 2px; }
.post-card-link:focus-visible { outline: 2px solid rgb(var(--primary-600)); outline-offset: 4px; }
.dark .post-card-link:focus-visible { outline-color: rgb(var(--primary-400)); }
.post-card-date { display: flex; align-items: center; gap: 0; margin-top: 3px; color: var(--soft-text); font-size: .9rem; line-height: 1.5; }
.post-card-date .meta-separator { padding-inline: 8px; color: rgb(var(--primary-500)); }
.post-card-summary { display: -webkit-box; overflow: hidden; margin: 5px 0 0; color: var(--soft-text); font-size: 1rem; line-height: 1.6; -webkit-box-orient: vertical; -webkit-line-clamp: 3; }
.home-all-posts { align-self: center; margin-top: 2px; color: rgb(var(--primary-600)); font-size: .9rem; }
.dark .home-all-posts { color: rgb(var(--primary-400)); }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; clip-path: inset(50%); }
.search-overlay[hidden] { display: none; }
.search-overlay { position: fixed; z-index: 1000; inset: 0; display: flex; justify-content: center; align-items: flex-start; padding: 10vh 24px 24px; }
.search-backdrop { position: absolute; inset: 0; background: rgba(var(--neutral-500), .5); backdrop-filter: blur(5px); }
.dark .search-backdrop { background: rgba(var(--neutral-900), .65); }
.search-modal { position: relative; z-index: 1; display: flex; flex-direction: column; width: min(100%, 768px); max-height: 80vh; overflow: hidden; border: 1px solid var(--border); border-radius: 8px; background: var(--page-bg); box-shadow: 0 18px 55px rgb(0 0 0 / 20%); }
.search-form { display: flex; min-height: 58px; align-items: center; gap: 10px; padding: 4px 12px; border-bottom: 1px solid var(--border); }
.search-form > svg { flex: none; width: 17px; height: 17px; fill: var(--soft-text); }
.search-form input { flex: 1; width: 0; height: 48px; border: 0; outline: 0; background: transparent; color: var(--text); font: 400 1rem var(--sans); }
.search-form input::placeholder { color: var(--soft-text); }
.search-form > button { padding: 4px 7px; border: 0; border-radius: 4px; background: transparent; color: var(--soft-text); font: 400 .75rem var(--mono); cursor: pointer; }
.search-form > button:hover { color: rgb(var(--primary-600)); }
.search-hint { margin: 0; padding: 10px 16px; color: var(--soft-text); font-size: .8rem; }
.search-hint kbd { padding: 1px 4px; border: 1px solid var(--border); border-radius: 3px; font: .7rem var(--mono); }
.search-results { overflow: auto; overscroll-behavior: contain; }
.search-result-list { margin: 0; padding: 0 10px 10px; list-style: none; }
.search-result-list li { margin: 0; }
.search-result { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 12px; padding: 10px 12px; border-radius: 6px; }
.search-result:hover, .search-result.is-active { background: rgb(var(--neutral-100)); color: var(--text); }
.dark .search-result:hover, .dark .search-result.is-active { background: rgb(var(--neutral-700)); }
.search-result-title { font-size: .95rem; font-weight: 600; }
.search-result-date { color: var(--soft-text); font-size: .75rem; }
.search-result-summary { grid-column: 1 / -1; overflow: hidden; color: var(--soft-text); font-size: .82rem; line-height: 1.45; text-overflow: ellipsis; white-space: nowrap; }
.search-message { margin: 0; padding: 12px 16px 18px; color: var(--soft-text); font-size: .9rem; }
.article-content pre.mermaid { padding: 1rem; background: rgb(var(--neutral-100)) !important; color: var(--text); white-space: normal; }
.dark .article-content pre.mermaid { background: rgb(var(--neutral-900)) !important; }
.article-content pre.mermaid svg { max-width: 100%; height: auto; font-family: var(--sans) !important; }
body.search-open { overflow: hidden; }
@media (min-width: 853px) {
  .profile-hero { padding-top: 12px; padding-bottom: 20px; }
  .home-posts { gap: 28px; }
  .post-card { flex-direction: row; gap: 28px; }
  .post-card-image { flex: 0 0 300px; width: 300px; min-height: 180px; }
  .post-card-content { margin-top: 0; }
}
@media (max-width: 767px) {
  .header-actions { gap: 9px; }
  .main-nav { gap: 13px; }
  .search-trigger { width: 32px; height: 32px; min-height: 32px; justify-content: center; padding: 0; border-color: transparent; background: transparent; }
  .search-trigger-label, .search-trigger kbd { display: none; }
}
@media (hover: none) {
  .heading-anchor { opacity: .72; visibility: visible; }
}
@media (prefers-reduced-motion: reduce) {
  .post-card-image img, .heading-anchor { transition: none; }
}

.single-cover img, .article-content img { cursor: zoom-in; }
.image-lightbox { position: fixed; inset: 0; width: 100vw; max-width: none; height: 100vh; height: 100dvh; max-height: none; margin: 0; padding: 0; overflow: hidden; border: 0; background: transparent; color: #fff; }
.image-lightbox[open] { display: grid; place-items: center; }
.image-lightbox::backdrop { background: rgb(0 0 0 / .94); }
.image-lightbox-frame { position: relative; display: grid; width: 100%; height: 100%; place-items: center; padding: max(24px, env(safe-area-inset-top)) max(24px, env(safe-area-inset-right)) max(24px, env(safe-area-inset-bottom)) max(24px, env(safe-area-inset-left)); cursor: zoom-out; }
.image-lightbox-frame > img { display: block; max-width: min(100%, 1600px); max-height: calc(100vh - 48px); max-height: calc(100dvh - 48px); object-fit: contain; border-radius: 0; box-shadow: 0 16px 70px rgb(0 0 0 / .35); }
.image-lightbox-close { position: absolute; z-index: 1; top: max(16px, env(safe-area-inset-top)); right: max(16px, env(safe-area-inset-right)); display: grid; width: 44px; height: 44px; place-items: center; padding: 0 0 4px; border: 1px solid rgb(255 255 255 / .35); border-radius: 50%; background: rgb(20 20 20 / .75); color: #fff; font: 400 2rem/1 var(--sans); cursor: pointer; }
.image-lightbox-close:hover { background: rgb(var(--primary-600)); border-color: rgb(var(--primary-600)); }
.dark .image-lightbox-close:hover { background: rgb(var(--primary-400)); border-color: rgb(var(--primary-400)); color: #111; }
.image-lightbox-caption { position: absolute; right: 70px; bottom: max(16px, env(safe-area-inset-bottom)); left: 24px; margin: 0; color: rgb(255 255 255 / .82); font-size: .9rem; text-align: center; pointer-events: none; }
body.image-lightbox-open { overflow: hidden; }
@media (max-width: 639px) {
  .image-lightbox-frame { padding: 16px; }
  .image-lightbox-frame > img { max-width: 100%; max-height: calc(100vh - 32px); max-height: calc(100dvh - 32px); }
  .image-lightbox-caption { right: 16px; bottom: max(16px, env(safe-area-inset-bottom)); left: 16px; }
}
