:root {
    --bg: #080b16;
    --surface: #11172a;
    --surface-raised: #19213a;
    --border: #293351;
    --text: #f7f9fc;
    --muted: #aab5c8;
    --cyan: #00c8f5;
    --purple: #7000ff;
    --purple-light: #a875ff;
    --amber: #ffb84d;
    --gradient: linear-gradient(120deg, #7000ff 0%, #386cff 52%, #00c8f5 100%);
    --gh-font-body: "Noto Sans", system-ui, sans-serif;
    --gh-font-heading: "BlambotPro", "Noto Sans", system-ui, sans-serif;
    --font-body: var(--gh-font-body);
    --font-display: var(--gh-font-heading);
    --shell: min(1180px, calc(100vw - 40px));
    --radius: 18px;
    --shadow: 0 24px 80px rgba(0, 0, 0, .28);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    color: var(--text);
    background:
        radial-gradient(circle at 85% -10%, rgba(112, 0, 255, .13), transparent 34rem),
        radial-gradient(circle at -5% 22%, rgba(0, 200, 245, .07), transparent 30rem),
        var(--bg);
    font-family: var(--font-body);
    font-size: 17px;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}

body::before {
    position: fixed;
    inset: 0;
    z-index: -1;
    opacity: .15;
    background-image: linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px);
    background-size: 52px 52px;
    content: "";
    pointer-events: none;
    mask-image: linear-gradient(to bottom, #000, transparent 70%);
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
h1, h2, h3, h4 { margin: 0; font-family: var(--font-display); line-height: 1.7em; letter-spacing: -.035em; }
p { margin: 0; }
.shell { width: var(--shell); margin-inline: auto; }
.shell-narrow { max-width: 810px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }
.skip-link { position: fixed; top: 10px; left: 10px; z-index: 1000; padding: 10px 14px; color: var(--bg); background: var(--cyan); border-radius: 8px; transform: translateY(-150%); }
.skip-link:focus { transform: translateY(0); }

.reading-progress { position: fixed; top: 0; right: 0; left: 0; z-index: 100; height: 3px; background: transparent; }
.reading-progress span { display: block; width: 0; height: 100%; background: var(--gradient); }

.site-header { position: sticky; top: 0; z-index: 50; border-bottom: 1px solid rgba(41, 51, 81, .6); background: rgba(8, 11, 22, .82); backdrop-filter: blur(18px); }
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 132px; gap: 28px; }
.brand { display: inline-flex; align-items: center; gap: 13px; flex: 0 0 auto; }
.brand-icon { width: 100px; height: 100px; object-fit: contain; }
.brand-logo { width: auto; max-width: 220px; max-height: 46px; }
.brand-name { color: var(--text); font-family: var(--font-display); font-size: 22px; font-weight: 700; letter-spacing: -.05em; }
.brand-name span { color: var(--cyan); }
.nav-wrap { display: flex; align-items: center; justify-content: flex-end; gap: 32px; width: 100%; }
.nav-wrap ul { display: flex; align-items: center; gap: 26px; margin: 0; padding: 0; list-style: none; }
.nav-wrap a { color: var(--muted); font-size: 15px; font-weight: 600; transition: color .2s ease; }
.nav-wrap a:hover, .nav-current a { color: var(--text); }
.header-actions { display: flex; align-items: center; gap: 14px; }
.icon-button { display: grid; width: 42px; height: 42px; padding: 10px; color: var(--muted); background: transparent; border: 1px solid var(--border); border-radius: 50%; cursor: pointer; }
.icon-button svg { fill: none; stroke: currentColor; stroke-linecap: round; stroke-width: 1.8; }
.icon-button:hover { color: var(--cyan); border-color: rgba(0, 200, 245, .55); }
.nav-toggle { display: none; width: 42px; height: 42px; padding: 10px; background: transparent; border: 1px solid var(--border); border-radius: 10px; }
.nav-toggle span:not(.sr-only) { display: block; height: 2px; margin: 4px 0; background: var(--text); }

.button { display: inline-flex; align-items: center; justify-content: center; min-height: 50px; padding: 0 22px; color: var(--bg); background: var(--cyan); border: 1px solid var(--cyan); border-radius: 12px; font-size: 15px; font-weight: 700; cursor: pointer; box-shadow: 0 10px 32px rgba(0, 200, 245, .15); transition: transform .2s ease, box-shadow .2s ease, background .2s ease; }
.button:hover { color: var(--bg); background: #4ad9fa; transform: translateY(-2px); box-shadow: 0 14px 38px rgba(0, 200, 245, .24); }
.button-small { min-height: 40px; padding-inline: 17px; border-radius: 10px; }
.nav-wrap a.button { color: #fff; background: #007ea8; border-color: #007ea8; }
.nav-wrap a.button:hover { color: #fff; background: #006f96; border-color: #006f96; }
.button-quiet { color: var(--text); background: transparent; border-color: var(--border); box-shadow: none; }
.button-quiet:hover { color: var(--cyan); background: rgba(0, 200, 245, .06); border-color: rgba(0, 200, 245, .45); box-shadow: none; }
.text-link { color: var(--cyan) !important; font-weight: 700; }
.eyebrow { display: inline-flex; align-items: center; gap: 9px; color: var(--purple-light); font-size: 13px; font-weight: 700; letter-spacing: .13em; line-height: 1.3; text-transform: uppercase; }
.status-dot { width: 8px; height: 8px; background: var(--cyan); border-radius: 50%; box-shadow: 0 0 0 5px rgba(0, 200, 245, .1), 0 0 18px var(--cyan); }

.hero { display: grid; grid-template-columns: 1.08fr .92fr; align-items: center; min-height: 610px; padding-block: 90px; gap: 70px; }
.hero h1 { max-width: 720px; margin-top: 20px; font-size: 2em; }
.hero h1::after { display: block; width: 145px; height: 7px; margin-top: 24px; background: var(--gradient); border-radius: 99px; content: ""; }
.hero-copy > p { max-width: 650px; margin-top: 24px; color: var(--muted); font-size: clamp(18px, 2vw, 21px); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 13px; margin-top: 34px; }
.hero-visual { position: relative; }
.terminal-card { position: relative; z-index: 2; overflow: hidden; background: linear-gradient(145deg, rgba(25, 33, 58, .98), rgba(12, 17, 34, .98)); border: 1px solid #354264; border-radius: 20px; box-shadow: var(--shadow), 0 0 70px rgba(112, 0, 255, .12); transform: rotate(1.5deg); }
.terminal-card::before { position: absolute; inset: 0; border-radius: inherit; background: linear-gradient(120deg, rgba(112,0,255,.16), transparent 40%, rgba(0,200,245,.1)); content: ""; pointer-events: none; }
.terminal-bar { display: flex; align-items: center; gap: 7px; height: 48px; padding-inline: 17px; background: rgba(0,0,0,.22); border-bottom: 1px solid var(--border); }
.terminal-bar i { width: 10px; height: 10px; background: #ff6577; border-radius: 50%; }
.terminal-bar i:nth-child(2) { background: var(--amber); }
.terminal-bar i:nth-child(3) { background: #5de2a5; }
.terminal-bar span { margin-left: auto; color: #7f8aa3; font-family: monospace; font-size: 12px; }
.terminal-body { padding: 34px 30px 38px; font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: 15px; line-height: 2.15; }
.terminal-body b { color: var(--cyan); }
.terminal-muted { color: #8390aa; }
.terminal-success { color: #6ce8b2; }
.cursor { display: inline-block; width: 8px; height: 17px; vertical-align: middle; background: var(--purple-light); animation: blink 1s steps(1) infinite; }
.orbit { position: absolute; z-index: 1; border: 1px solid rgba(0, 200, 245, .2); border-radius: 50%; }
.orbit-one { top: -60px; right: -50px; width: 180px; height: 180px; }
.orbit-two { bottom: -45px; left: -35px; width: 110px; height: 110px; border-color: rgba(168, 117, 255, .22); }
@keyframes blink { 50% { opacity: 0; } }

.topic-strip { display: flex; align-items: center; gap: 24px; padding-block: 22px; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.topic-strip > span { flex: 0 0 auto; color: var(--muted); font-size: 13px; font-weight: 700; text-transform: uppercase; }
.topic-list { display: flex; flex-wrap: wrap; gap: 9px; }
.topic-list a, .article-tags a { padding: 7px 12px; color: #dce4f1; background: var(--surface); border: 1px solid var(--border); border-radius: 99px; font-size: 13px; font-weight: 600; }
.topic-list a:hover, .article-tags a:hover { color: var(--cyan); border-color: rgba(0, 200, 245, .45); }
.topic-list small { margin-left: 5px; color: #74809a; }

.featured-section, .feed-section, .related-section { padding-block: 100px; }
.section-heading { display: flex; align-items: end; justify-content: space-between; margin-bottom: 32px; gap: 20px; }
.section-heading h2 { margin-top: 10px; font-size: clamp(34px, 4vw, 48px); }
.featured-card { display: grid; grid-template-columns: 1.15fr .85fr; overflow: hidden; min-height: 420px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); }
.featured-image { min-height: 420px; overflow: hidden; }
.featured-image img, .post-card-image img { width: 100%; height: 100%; object-fit: cover; transition: transform .45s ease; }
.featured-card:hover .featured-image img, .post-card:hover .post-card-image img { transform: scale(1.035); }
.image-placeholder { display: block; width: 100%; height: 100%; min-height: 260px; background: linear-gradient(135deg, rgba(112,0,255,.5), rgba(56,108,255,.38), rgba(0,200,245,.42)), var(--surface-raised); }
.featured-content { display: flex; flex-direction: column; align-items: flex-start; justify-content: center; padding: 48px; }
.post-tag { color: var(--cyan); font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.featured-content h2 { margin-top: 18px; font-size: clamp(32px, 3.4vw, 48px); }
.featured-content h2 a:hover, .post-card h2 a:hover { color: var(--cyan); }
.featured-content > p { margin-top: 19px; color: var(--muted); }
.post-meta { display: flex; gap: 8px; margin-top: 22px; color: #7f8aa3; font-size: 13px; }
.read-link { margin-top: 26px; color: var(--text); font-weight: 700; }
.read-link span { color: var(--cyan); transition: margin .2s ease; }
.read-link:hover span { margin-left: 5px; }

.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.post-card { overflow: hidden; background: rgba(17, 23, 42, .82); border: 1px solid var(--border); border-radius: 16px; transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease; }
.post-card:hover { border-color: rgba(0, 200, 245, .35); transform: translateY(-5px); box-shadow: 0 22px 52px rgba(0,0,0,.22); }
.post-card-image { display: block; height: 220px; overflow: hidden; border-bottom: 1px solid var(--border); }
.post-card-content { padding: 25px; }
.post-card h2 { margin-top: 12px; font-size: 25px; line-height: 1.2; }
.post-card-content > p { margin-top: 14px; color: var(--muted); font-size: 15px; line-height: 1.6; }
.post-card-footer { display: flex; justify-content: space-between; margin-top: 22px; color: #7f8aa3; font-size: 12px; font-weight: 600; }
.pagination { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; margin-top: 48px; color: var(--muted); font-size: 14px; }
.pagination a { color: var(--cyan); font-weight: 700; }
.pagination .older-posts { justify-self: end; }

.newsletter { display: flex; align-items: center; justify-content: space-between; margin-block: 30px 110px; padding: 48px 54px; overflow: hidden; background: linear-gradient(125deg, rgba(112,0,255,.24), rgba(17,23,42,.94) 45%, rgba(0,200,245,.12)); border: 1px solid #3c3a75; border-radius: 20px; gap: 34px; }
.newsletter h2 { margin-top: 10px; font-size: clamp(31px, 4vw, 46px); }
.newsletter p { max-width: 650px; margin-top: 12px; color: var(--muted); }
.newsletter .button { flex: 0 0 auto; }

.archive-header { padding-block: 100px 55px; border-bottom: 1px solid var(--border); }
.archive-header h1 { max-width: 850px; margin-top: 16px; font-size: clamp(48px, 7vw, 78px); }
.archive-header > p { max-width: 700px; margin-top: 22px; color: var(--muted); font-size: 19px; }
.author-header > img { width: 104px; height: 104px; margin-bottom: 25px; object-fit: cover; border: 3px solid var(--cyan); border-radius: 50%; }
.author-links { display: flex; gap: 18px; margin-top: 18px; color: var(--cyan); font-size: 14px; }

.article-header { padding-block: 72px 48px; text-align: center; }
.article-header h1 { margin-top: 12px; font-size: 2em; }
.article-deck { max-width: 720px; margin: 24px auto 0; color: var(--muted); font-size: 21px; }
.article-byline { display: inline-flex; align-items: center; margin-top: 30px; text-align: left; gap: 12px; }
.article-byline img { width: 44px; height: 44px; object-fit: cover; border-radius: 50%; }
.article-byline div { display: flex; flex-direction: column; }
.article-byline a { font-size: 14px; font-weight: 700; }
.article-byline span { color: #7f8aa3; font-size: 12px; }
.article-feature { overflow: hidden; max-height: 700px; border: 1px solid var(--border); border-radius: var(--radius); }
.article-feature img { width: 100%; max-height: 700px; object-fit: cover; }
.article-feature figcaption { padding: 10px 16px; color: #7f8aa3; background: var(--surface); font-size: 12px; text-align: center; }
.article-layout { display: grid; grid-template-columns: 70px minmax(0, 760px) 70px; justify-content: center; padding-block: 65px; gap: 36px; }
.article-rail { position: sticky; top: 115px; display: flex; flex-direction: column; align-items: center; align-self: start; gap: 10px; }
.article-rail > span { color: #7f8aa3; font-size: 10px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.article-rail a, .article-rail button { display: grid; place-items: center; width: 38px; height: 38px; padding: 0; color: var(--muted); background: var(--surface); border: 1px solid var(--border); border-radius: 50%; font-size: 13px; font-weight: 700; cursor: pointer; }
.article-rail a:hover, .article-rail button:hover { color: var(--cyan); border-color: var(--cyan); }
.article-rail .share-facebook:hover { color: #1877f2; border-color: #1877f2; }
.article-rail .share-linkedin:hover { color: #0a66c2; border-color: #0a66c2; }
.article-rail .share-x:hover { color: var(--text); border-color: var(--text); }
.article-rail .share-bluesky:hover { color: #1185fe; border-color: #1185fe; }
.article-rail i { font-size: 15px; }

.gh-content { grid-column: 2; min-width: 0; color: #d8dfeb; font-size: 18px; line-height: 1.8; }
.gh-content > * { margin-block: 0 1.65em; }
.gh-content h2, .gh-content h3, .gh-content h4 { margin-top: 0; margin-bottom: .65em; color: var(--text); }
.gh-content h2 { font-size: 36px; }
.gh-content h3 { font-size: 27px; }
.gh-content a { color: var(--cyan); text-decoration: underline; text-decoration-color: rgba(0,200,245,.35); text-underline-offset: 3px; }
.gh-content strong { color: var(--text); }
.gh-content blockquote { margin-inline: 0; padding: 8px 0 8px 28px; color: var(--text); border-left: 4px solid var(--purple-light); font-family: var(--font-body); font-size: 1em; }
.gh-content blockquote > strong:first-of-type,
.gh-content blockquote > p:first-child > strong:first-of-type { color: var(--purple-light); font-family: var(--font-display); }
.gh-content :not(pre) > code { padding: 3px 7px; color: #cbaeff; background: #17142b; border: 1px solid #32295b; border-radius: 6px; font-size: .86em; }
.gh-content pre { position: relative; overflow-x: auto; padding: 25px; color: #dbe7f5; background: #070a12; border: 1px solid var(--border); border-radius: 13px; font-size: 14px; line-height: 1.7; }
.gh-content hr { height: 1px; margin-block: 3em; background: var(--border); border: 0; }
.gh-content table { display: block; overflow-x: auto; width: 100%; border-collapse: collapse; }
.gh-content th, .gh-content td { padding: 12px 15px; border: 1px solid var(--border); text-align: left; }
.gh-content th { color: var(--text); background: var(--surface); }
.gh-content figure { margin-inline: 0; }
.gh-content figcaption { margin-top: 9px; color: #7f8aa3; font-size: 13px; text-align: center; }
.gh-content .kg-width-wide { width: min(1300px, calc(100vw - 40px)); margin-left: 50%; transform: translateX(-50%); }
.gh-content .kg-width-full { width: 100vw; margin-left: 50%; transform: translateX(-50%); }
.gh-content .kg-callout-card, .gh-content .kg-toggle-card { color: var(--text); background: var(--surface); border: 1px solid var(--border); border-radius: 13px; }
.gh-content .kg-bookmark-container { color: var(--text); background: var(--surface); border-color: var(--border); border-radius: 13px; }
.gh-content .kg-button-card a.kg-btn { color: var(--bg); background: var(--cyan); border-radius: 10px; text-decoration: none; }

.article-footer { padding-bottom: 80px; }
.article-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.author-box { display: flex; align-items: center; margin-top: 45px; padding: 30px; background: var(--surface); border: 1px solid var(--border); border-radius: 16px; gap: 22px; }
.author-box img { width: 88px; height: 88px; object-fit: cover; border-radius: 50%; }
.author-box span { color: var(--purple-light); font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.author-box h3 { margin-top: 3px; font-size: 24px; }
.author-box p { margin-top: 7px; color: var(--muted); font-size: 14px; line-height: 1.6; }
.related-section { border-top: 1px solid var(--border); }
.page-article .gh-content { padding-block: 40px 90px; }

.error-page { min-height: 70vh; padding-block: 110px; text-align: center; }
.error-code { display: block; color: transparent; background: var(--gradient); background-clip: text; font-family: var(--font-display); font-size: clamp(100px, 20vw, 210px); font-weight: 700; line-height: .8; }
.error-page h1 { margin-top: 20px; font-size: 48px; }
.error-page p { margin: 18px auto 30px; color: var(--muted); }

.site-footer { padding-block: 58px; background: rgba(5, 8, 16, .8); border-top: 1px solid var(--border); }
.footer-grid { display: grid; grid-template-columns: 1.2fr .8fr; align-items: start; gap: 35px; }
.footer-grid p { max-width: 500px; margin-top: 14px; color: var(--muted); font-size: 14px; }
.social-links { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.social-links a { display: grid; place-items: center; width: 38px; height: 38px; color: var(--muted); background: var(--surface); border: 1px solid var(--border); border-radius: 50%; font-size: 15px; transition: color .2s ease, border-color .2s ease, transform .2s ease; }
.social-links a:hover { color: var(--cyan); border-color: rgba(0, 200, 245, .45); transform: translateY(-2px); }
.footer-nav ul { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 12px 22px; margin: 0; padding: 0; list-style: none; }
.footer-nav a { color: var(--muted); font-size: 14px; }
.footer-nav a:hover { color: var(--cyan); }
.footer-meta { grid-column: 1 / -1; display: flex; justify-content: space-between; padding-top: 25px; color: #66718a; border-top: 1px solid var(--border); font-size: 12px; }
.footer-meta a { color: var(--cyan); }

@media (max-width: 960px) {
    .nav-toggle { display: block; }
    .nav-wrap { position: absolute; top: 132px; right: 20px; display: none; width: min(360px, calc(100vw - 40px)); padding: 20px; background: #101629; border: 1px solid var(--border); border-radius: 14px; box-shadow: var(--shadow); }
    .nav-wrap.is-open { display: block; }
    .nav-wrap ul { align-items: stretch; flex-direction: column; gap: 4px; }
    .nav-wrap li a { display: block; padding: 9px; }
    .header-actions { margin-top: 15px; padding-top: 15px; border-top: 1px solid var(--border); }
    .hero { grid-template-columns: 1fr; gap: 55px; }
    .hero-visual { width: min(620px, 100%); }
    .post-grid { grid-template-columns: repeat(2, 1fr); }
    .featured-card { grid-template-columns: 1fr; }
    .featured-image { min-height: 360px; }
    .article-layout { grid-template-columns: 48px minmax(0, 760px); gap: 22px; }
}

@media (max-width: 680px) {
    :root { --shell: min(100% - 28px, 1180px); }
    body { font-size: 16px; }
    .header-inner { min-height: 84px; }
    .nav-wrap { top: 84px; }
    .brand-icon { width: 44px; height: 44px; }
    .brand-name { font-size: 19px; }
    .hero { min-height: auto; padding-block: 70px; }
    .hero h1 { font-size: 2em; }
    .hero-actions { align-items: stretch; flex-direction: column; }
    .terminal-body { padding: 26px 20px 30px; font-size: 12px; }
    .topic-strip { align-items: flex-start; flex-direction: column; }
    .featured-section, .feed-section, .related-section { padding-block: 72px; }
    .featured-image { min-height: 250px; }
    .featured-content { padding: 29px 24px; }
    .featured-content h2 { font-size: 32px; }
    .section-heading { align-items: flex-start; flex-direction: column; }
    .post-grid { grid-template-columns: 1fr; }
    .post-card-image { height: 235px; }
    .newsletter { align-items: flex-start; flex-direction: column; margin-bottom: 75px; padding: 32px 25px; }
    .newsletter .button { width: 100%; }
    .archive-header { padding-block: 72px 42px; }
    .article-header { padding-block: 52px 36px; text-align: left; }
    .article-header h1 { font-size: 2em; }
    .article-byline { align-self: flex-start; }
    .article-feature { width: 100%; border-right: 0; border-left: 0; border-radius: 0; }
    .article-layout { display: block; padding-block: 42px; }
    .article-rail { position: static; flex-direction: row; margin-bottom: 28px; }
    .gh-content { font-size: 17px; }
    .gh-content h2 { font-size: 30px; }
    .gh-content .kg-width-wide { width: calc(100vw - 28px); }
    .author-box { align-items: flex-start; flex-direction: column; }
    .footer-grid { grid-template-columns: 1fr; }
    .footer-nav ul { justify-content: flex-start; }
    .footer-meta { flex-direction: column; gap: 7px; }
}

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

/* Lightbox (full-size image viewer for post content) */
.is-zoomable { cursor: zoom-in; transition: opacity .2s ease; }
.is-zoomable:hover { opacity: .92; }
body.lightbox-open { overflow: hidden; }

.lightbox { position: fixed; inset: 0; z-index: 200; display: flex; align-items: center; justify-content: center; padding: 60px; background: rgba(5, 7, 14, .94); backdrop-filter: blur(6px); animation: lightbox-fade .18s ease; }
.lightbox[hidden] { display: none; }
@keyframes lightbox-fade { from { opacity: 0; } to { opacity: 1; } }

.lightbox-figure { display: flex; flex-direction: column; align-items: center; gap: 14px; max-width: 100%; max-height: 100%; margin: 0; }
.lightbox-img { display: block; max-width: min(88vw, 1400px); max-height: 80vh; width: auto; height: auto; border-radius: 8px; box-shadow: 0 30px 90px rgba(0, 0, 0, .5); }
.lightbox-caption { max-width: 70ch; color: var(--muted); font-size: 14px; text-align: center; }
.lightbox-caption:empty { display: none; }

.lightbox-close, .lightbox-nav { position: absolute; display: grid; place-items: center; width: 46px; height: 46px; color: var(--text); background: rgba(17, 23, 42, .75); border: 1px solid var(--border); border-radius: 50%; cursor: pointer; transition: color .2s ease, border-color .2s ease; }
.lightbox-close svg, .lightbox-nav svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 2; }
.lightbox-close:hover, .lightbox-nav:hover { color: var(--cyan); border-color: rgba(0, 200, 245, .55); }
.lightbox-close { top: 24px; right: 24px; }
.lightbox-nav { top: 50%; transform: translateY(-50%); }
.lightbox-prev { left: 24px; }
.lightbox-next { right: 24px; }
.lightbox-nav[hidden], .lightbox-counter[hidden] { display: none; }

.lightbox-counter { position: absolute; bottom: 24px; left: 50%; transform: translateX(-50%); padding: 6px 14px; color: var(--muted); background: rgba(17, 23, 42, .75); border: 1px solid var(--border); border-radius: 999px; font-size: 13px; }

@media (max-width: 680px) {
    .lightbox { padding: 20px; }
    .lightbox-close { top: 14px; right: 14px; width: 40px; height: 40px; }
    .lightbox-nav { width: 40px; height: 40px; }
    .lightbox-prev { left: 10px; }
    .lightbox-next { right: 10px; }
}
