/* ============================================================
   CHERNOV — Журнал (лента + посты)
   Языковая база — main.css; здесь только блог.
   ============================================================ */

/* ---------- Плавный переход лента ↔ пост (View Transitions) ---------- */
@view-transition { navigation: auto; }
::view-transition-old(root),
::view-transition-new(root) { animation-duration: 0.35s; }
@media (prefers-reduced-motion: reduce) {
  * { view-transition-name: none !important; }
}

/* ---------- LQIP: подложка-миниатюра, пока грузится оригинал ---------- */
img.lqip {
  background-size: cover;
  background-position: center;
}
img.lqip.loaded { background-image: none !important; }

/* ============================================================
   ЛЕНТА
   ============================================================ */

.bj-hero {
  position: relative;
  padding-top: clamp(130px, 18vh, 190px);
}
.bj-wm {
  position: absolute;
  right: var(--pad);
  top: clamp(116px, 15vh, 168px);
  z-index: -1;
  font-family: var(--display);
  font-weight: 300;
  font-size: clamp(90px, 15vw, 240px);
  line-height: 1;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  white-space: nowrap;
  color: transparent;
  -webkit-text-stroke: 1px rgba(242, 240, 234, 0.08);
  pointer-events: none;
  user-select: none;
}
.bj-counter {
  font-family: var(--display);
  font-weight: 400;
  font-size: 13px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--acid);
}
.bj-rss {
  color: var(--muted);
  border-bottom: 1px dashed var(--line);
  transition: color 0.25s, border-color 0.25s;
}
.bj-rss:hover { color: var(--acid); border-color: var(--acid); }
.bj-display {
  margin-top: 22px;
  font-size: clamp(48px, 10.5vw, 158px);
  color: var(--ink);
}
.bj-display .l2 {
  display: block;
  padding-left: clamp(26px, 9vw, 190px);
}
.bj-display .dot { color: var(--acid); }
.bj-title-h {
  margin-top: clamp(28px, 4.5vw, 52px);
  font-family: var(--head);
  font-weight: 600;
  font-size: clamp(26px, 3.4vw, 46px);
  line-height: 1.08;
  letter-spacing: -0.01em;
  max-width: 24ch;
}
.bj-lead { margin-top: 18px; }

/* ---------- Панель фильтра ---------- */
.bj-controls-wrap {
  position: sticky;
  top: 71px; /* под фиксированной шапкой */
  z-index: 80;
  margin-top: clamp(48px, 7vw, 90px);
  border-block: 1px solid var(--line-soft);
  background: rgba(6, 6, 5, 0.82);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}
.bj-controls {
  display: flex;
  align-items: center;
  gap: 14px 22px;
  padding-block: 12px;
  flex-wrap: wrap;
}
.bj-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  flex: 1;
  min-width: 0;
}
.bj-chip {
  display: inline-flex;
  align-items: baseline;
  gap: 7px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.03em;
  color: var(--muted);
  border: 1px solid var(--line-soft);
  border-radius: 999px;
  padding: 7px 14px;
  white-space: nowrap;
  transition: color 0.25s, border-color 0.25s, background 0.25s, transform 0.35s var(--ease-out);
}
.bj-chip b {
  font-weight: 500;
  font-size: 10.5px;
  color: var(--faint);
  font-family: var(--display);
  letter-spacing: 0.08em;
  transition: color 0.25s;
}
.bj-chip:hover { color: var(--ink); border-color: var(--line); transform: translateY(-1px); }
.bj-chip.on {
  background: var(--acid);
  border-color: var(--acid);
  color: var(--acid-ink);
}
.bj-chip.on b { color: rgba(11, 13, 0, 0.55); }

.bj-search {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  border: 1px solid var(--line-soft);
  border-radius: 999px;
  padding: 8px 14px;
  color: var(--muted);
  min-width: 220px;
  transition: border-color 0.25s;
}
.bj-search:focus-within { border-color: var(--acid); color: var(--ink); }
.bj-search input {
  background: none;
  border: 0;
  outline: 0;
  color: var(--ink);
  font: inherit;
  font-size: 13.5px;
  width: 100%;
}
.bj-search input::placeholder { color: var(--faint); }
.bj-search input::-webkit-search-cancel-button { -webkit-appearance: none; }
.bj-search kbd {
  font-family: var(--display);
  font-size: 10.5px;
  color: var(--faint);
  border: 1px solid var(--line-soft);
  border-radius: 5px;
  padding: 1px 6px 2px;
}

/* ---------- Сетка карточек ---------- */
.bj-feed-wrap { padding-top: clamp(36px, 5vw, 64px); padding-bottom: var(--gap-section); }
.bj-feed {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.bj-card {
  position: relative;
  border: 1px solid var(--line-soft);
  border-radius: 20px;
  overflow: hidden;
  background: linear-gradient(160deg, rgba(242, 240, 234, 0.03), rgba(242, 240, 234, 0.006));
  transition: border-color 0.35s, transform 0.55s var(--ease-out), box-shadow 0.6s ease, opacity 0.3s;
}
.bj-card:hover {
  border-color: rgba(215, 255, 0, 0.4);
  transform: translateY(-5px);
  box-shadow: 0 34px 90px -36px rgba(215, 255, 0, 0.35);
}
.bj-card.bj-hide { display: none; }
.bj-card.bj-pop { animation: bj-pop 0.5s var(--ease-out); }
@keyframes bj-pop {
  from { opacity: 0; transform: translateY(14px) scale(0.985); }
  to { opacity: 1; transform: none; }
}

.bj-card-a { display: flex; flex-direction: column; height: 100%; }

.bj-media {
  position: relative;
  overflow: hidden;
  background: var(--bg-soft);
  aspect-ratio: 16 / 9.5;
}
.bj-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.012);
  transition: transform 1.1s var(--ease-out);
}
.bj-media.contain img { object-fit: cover; } /* композитные обложки собраны под кроп */
.bj-card:hover .bj-media img { transform: scale(1.055); }
.bj-media::after {
  content: '';
  position: absolute;
  inset: 0;
  box-shadow: inset 0 0 0 1px rgba(242, 240, 234, 0.06);
  pointer-events: none;
}

/* карточка без обложки — типографическая */
.bj-media-typo {
  display: grid;
  place-items: center;
  padding: 26px;
  background:
    radial-gradient(120% 130% at 12% 0%, rgba(215, 255, 0, 0.08), transparent 55%),
    var(--bg-soft);
}
.bj-typo-mark {
  position: absolute;
  left: 22px;
  bottom: 14px;
  font-size: 44px;
  line-height: 1;
  color: var(--acid);
  opacity: 0.85;
}
.bj-typo-word {
  font-family: var(--head);
  font-weight: 600;
  font-size: clamp(24px, 2.6vw, 34px);
  line-height: 1.12;
  letter-spacing: -0.01em;
  text-align: center;
  max-width: 16ch;
  color: transparent;
  -webkit-text-stroke: 1px rgba(242, 240, 234, 0.45);
  transition: color 0.4s, -webkit-text-stroke-color 0.4s;
}
.bj-card:hover .bj-typo-word { color: var(--ink); -webkit-text-stroke-color: transparent; }

.bj-body {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 24px 26px 26px;
  flex: 1;
}
.bj-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 11.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--faint);
  font-weight: 500;
}
.bj-meta .dot, .bp-meta .dot {
  width: 4px; height: 4px;
  background: var(--acid);
  border-radius: 1px;
  transform: rotate(45deg);
  flex: 0 0 auto;
}
.bj-title {
  font-family: var(--head);
  font-weight: 600;
  font-size: clamp(20px, 1.9vw, 26px);
  line-height: 1.14;
  letter-spacing: -0.01em;
  transition: color 0.3s;
}
.bj-card:hover .bj-title { color: var(--acid); }
.bj-excerpt {
  color: var(--muted);
  font-size: 14.5px;
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.bj-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: auto;
  padding-top: 6px;
}
.bj-more {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink-dim);
  margin-top: 2px;
}
.bj-more .arr { transition: transform 0.3s var(--ease-out); }
.bj-card:hover .bj-more { color: var(--acid); }
.bj-card:hover .bj-more .arr,
.bp-rel:hover .bj-more .arr { transform: translateX(4px); }

/* featured-карточка */
.bj-feat { grid-column: 1 / -1; }
.bj-feat .bj-card-a {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: stretch;
}
.bj-feat .bj-media { aspect-ratio: auto; min-height: clamp(280px, 34vw, 470px); height: 100%; }
.bj-feat .bj-body {
  padding: clamp(26px, 3vw, 44px);
  justify-content: center;
  gap: 14px;
}
.bj-kicker {
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--acid);
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 10px;
}
.bj-kicker::before {
  content: '';
  width: 26px; height: 1px;
  background: var(--acid);
}
.bj-feat .bj-title { font-size: clamp(26px, 3vw, 42px); max-width: 18ch; }
.bj-feat .bj-excerpt { -webkit-line-clamp: 4; font-size: 15.5px; }

/* пустая выдача */
.bj-empty {
  text-align: center;
  padding: clamp(48px, 8vw, 110px) 20px;
  color: var(--muted);
}
.bj-empty-mark {
  font-family: var(--display);
  font-weight: 300;
  font-size: clamp(64px, 9vw, 130px);
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1px rgba(215, 255, 0, 0.4);
  margin-bottom: 18px;
}
.bj-empty .bj-reset { margin-top: 22px; }

/* ============================================================
   ПОСТ
   ============================================================ */

.bp-progress {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 2px;
  z-index: 130;
  pointer-events: none;
}
.bp-progress i {
  display: block;
  height: 100%;
  background: var(--acid);
  box-shadow: 0 0 12px rgba(215, 255, 0, 0.55);
  transform-origin: 0 50%;
  transform: scaleX(0);
}

.bp-hero {
  position: relative;
  padding-top: clamp(130px, 18vh, 190px);
}
.bp .back {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--muted);
  margin-bottom: clamp(28px, 4vw, 48px);
  transition: color 0.3s;
}
.bp .back:hover { color: var(--acid); }
.bp-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--faint);
  font-weight: 500;
}
.bp-upd { color: var(--muted); }
.bp-h1 {
  margin-top: 18px;
  font-family: var(--head);
  font-weight: 600;
  font-size: clamp(34px, 5.6vw, 76px);
  line-height: 1.02;
  letter-spacing: -0.015em;
  max-width: 20ch;
}
.bp-lead {
  margin-top: 22px;
  max-width: 700px;
}
.bp-tags-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 26px;
}
.bp-tag { transition: color 0.25s, border-color 0.25s, transform 0.3s var(--ease-out); }
.bp-tag:hover {
  color: var(--acid);
  border-color: rgba(215, 255, 0, 0.45);
  transform: translateY(-1px);
}

.bp-cover {
  margin-top: clamp(40px, 6vw, 76px);
  border-radius: 22px;
  overflow: hidden;
  background: var(--bg-soft);
}
.bp-cover img { width: 100%; height: auto; }
.bp-cover::after { content: none; }

/* ---------- Колонки: оглавление/шаринг + текст ---------- */
.bp-layout {
  display: grid;
  grid-template-columns: minmax(0, 260px) minmax(0, 720px);
  justify-content: space-between;
  gap: 40px clamp(40px, 6vw, 110px);
  margin-top: clamp(56px, 8vw, 110px);
}
.bp-side {
  position: sticky;
  top: 104px;
  align-self: start;
  display: flex;
  flex-direction: column;
  gap: 34px;
}
.bp-side .h {
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--acid);
  font-weight: 600;
  margin-bottom: 14px;
}
.bp-toc ol { counter-reset: toc; }
.bp-toc li { counter-increment: toc; }
.bp-toc a {
  display: flex;
  gap: 12px;
  align-items: baseline;
  padding: 7px 0;
  font-size: 14px;
  color: var(--muted);
  border-left: 1px solid transparent;
  transition: color 0.25s;
}
.bp-toc a::before {
  content: counter(toc, decimal-leading-zero);
  font-family: var(--display);
  font-weight: 400;
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--faint);
  transition: color 0.25s;
}
.bp-toc a:hover { color: var(--ink); }
.bp-toc a.on { color: var(--acid); }
.bp-toc a.on::before { color: var(--acid); }

.bp-share-row { display: flex; flex-wrap: wrap; gap: 9px; }
.bp-share-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-dim);
  border: 1px solid var(--line-soft);
  border-radius: 999px;
  padding: 8px 15px;
  transition: color 0.25s, border-color 0.25s, background 0.25s;
}
.bp-share-btn:hover { color: var(--acid); border-color: rgba(215, 255, 0, 0.45); }
.bp-share-btn.ok {
  background: var(--acid);
  border-color: var(--acid);
  color: var(--acid-ink);
}

/* ---------- Проза ---------- */
.bp-prose {
  font-size: clamp(16.5px, 1.15vw, 19px);
  line-height: 1.72;
  color: var(--ink-dim);
}
.bp-prose > p:first-child::first-letter {
  font-family: var(--head);
  font-weight: 600;
  font-size: 3.05em;
  line-height: 0.82;
  color: var(--acid);
  float: left;
  padding: 0.06em 0.14em 0 0;
}
.bp-prose p { margin-top: 1.15em; }
.bp-prose p:first-child { margin-top: 0; }
.bp-prose strong { color: var(--ink); font-weight: 600; }
.bp-prose a {
  color: var(--ink);
  border-bottom: 1px solid var(--line);
  transition: color 0.25s, border-color 0.25s;
}
.bp-prose a:hover { color: var(--acid); border-color: var(--acid); }

.bp-prose h2, .bp-prose h3 {
  position: relative;
  font-family: var(--head);
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.01em;
  scroll-margin-top: 96px;
}
.bp-prose h2 {
  font-size: clamp(24px, 2.6vw, 34px);
  line-height: 1.12;
  margin-top: 2.1em;
}
.bp-prose h3 {
  font-size: clamp(19px, 1.8vw, 24px);
  margin-top: 1.7em;
}
.bp-prose .hlink {
  margin-left: 12px;
  color: var(--faint);
  border: 0;
  opacity: 0;
  font-weight: 500;
  transition: opacity 0.25s, color 0.25s;
}
.bp-prose h2:hover .hlink, .bp-prose h3:hover .hlink { opacity: 1; }
.bp-prose .hlink:hover { color: var(--acid); }

.bp-prose ul, .bp-prose ol { margin-top: 1.15em; }
.bp-prose li {
  position: relative;
  padding-left: 26px;
  margin-top: 0.55em;
}
.bp-prose ul li::before {
  content: '';
  position: absolute;
  left: 2px; top: 0.72em;
  width: 10px; height: 1px;
  background: var(--acid);
}
.bp-prose ol { counter-reset: bpol; }
.bp-prose ol li { counter-increment: bpol; }
.bp-prose ol li::before {
  content: counter(bpol, decimal-leading-zero);
  position: absolute;
  left: 0; top: 0.22em;
  font-family: var(--display);
  font-weight: 400;
  font-size: 0.72em;
  letter-spacing: 0.1em;
  color: var(--acid);
}

.bp-prose blockquote {
  margin: 1.8em 0;
  padding: clamp(20px, 2.6vw, 34px) clamp(22px, 3vw, 40px);
  border: 1px dashed rgba(215, 255, 0, 0.3);
  border-radius: 16px;
  position: relative;
}
.bp-prose blockquote p {
  margin: 0;
  font-family: var(--head);
  font-weight: 500;
  font-size: clamp(19px, 1.9vw, 26px);
  line-height: 1.34;
  color: var(--ink);
}
.bp-prose blockquote p + p { margin-top: 0.7em; }
.bp-prose blockquote::before {
  content: '✳';
  position: absolute;
  top: -13px; left: 26px;
  padding: 0 8px;
  background: var(--bg);
  color: var(--acid);
  font-size: 17px;
  line-height: 1;
}

.bp-prose hr {
  border: 0;
  margin: 2.4em 0;
  text-align: center;
  height: 1em;
}
.bp-prose hr::before {
  content: '✳ ✳ ✳';
  letter-spacing: 1.2em;
  padding-left: 1.2em;
  color: var(--faint);
  font-size: 12px;
}

.bp-prose code {
  font-family: ui-monospace, 'JetBrains Mono', Consolas, monospace;
  font-size: 0.86em;
  background: rgba(242, 240, 234, 0.07);
  border-radius: 6px;
  padding: 0.14em 0.42em;
  color: var(--ink);
}

/* картинки и галереи в тексте */
.post-figure {
  margin: 2em 0;
  border-radius: 18px;
  overflow: hidden;
  background: var(--bg-soft);
}
.post-figure img { width: 100%; height: auto; cursor: zoom-in; }
.post-figure figcaption,
.bp-lightbox figcaption {
  padding: 12px 16px 14px;
  font-size: 13px;
  line-height: 1.5;
  color: var(--faint);
}

.post-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 14px;
  margin: 2em 0;
}
.pg-item {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  background: var(--bg-soft);
  cursor: zoom-in;
}
.pg-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 4 / 3;
  transition: transform 0.8s var(--ease-out), opacity 0.4s;
  opacity: 0.94;
}
.pg-item:hover img { transform: scale(1.05); opacity: 1; }
.pg-item::after {
  content: '⤢';
  position: absolute;
  right: 10px; bottom: 8px;
  font-size: 15px;
  color: var(--ink);
  opacity: 0;
  transition: opacity 0.3s;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.7);
}
.pg-item:hover::after { opacity: 0.9; }
.pg-item figcaption {
  position: absolute;
  left: -9999px;
}

/* ---------- Лайтбокс ---------- */
.bp-lightbox {
  position: fixed;
  inset: 0;
  z-index: 140;
  background: rgba(6, 6, 5, 0.95);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  display: flex;
  align-items: center;
  justify-content: center;
}
.bp-lightbox[hidden] { display: none; }
.bp-lightbox figure {
  max-width: min(1200px, 92vw);
  max-height: 86vh;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.bp-lightbox img {
  max-width: 100%;
  max-height: 78vh;
  width: auto;
  height: auto;
  border-radius: 10px;
}
.bp-lightbox figcaption { text-align: center; max-width: 62ch; color: var(--muted); }
.bp-lb-close, .bp-lb-prev, .bp-lb-next {
  position: absolute;
  z-index: 2;
  width: 46px; height: 46px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--ink);
  background: rgba(6, 6, 5, 0.6);
  font-size: 17px;
  transition: border-color 0.25s, color 0.25s, background 0.25s;
}
.bp-lb-close:hover, .bp-lb-prev:hover, .bp-lb-next:hover {
  border-color: var(--acid);
  color: var(--acid);
}
.bp-lb-close { top: 20px; right: 22px; }
.bp-lb-prev { left: 22px; top: 50%; transform: translateY(-50%); }
.bp-lb-next { right: 22px; top: 50%; transform: translateY(-50%); }
.bp-lightbox.single .bp-lb-prev,
.bp-lightbox.single .bp-lb-next { display: none; }

/* ---------- Хвост поста ---------- */
.bp-after { margin-top: clamp(60px, 9vw, 130px); }
.bp-after-k {
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--faint);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 14px;
}
.bp-after-k::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--line-soft);
}
.bp-rel-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.bp-rel {
  display: flex;
  flex-direction: column;
  gap: 10px;
  border: 1px solid var(--line-soft);
  border-radius: 18px;
  padding: 24px 26px;
  transition: border-color 0.3s, transform 0.5s var(--ease-out);
}
.bp-rel:hover { border-color: rgba(215, 255, 0, 0.4); transform: translateY(-4px); }
.bp-rel-meta {
  font-size: 11.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--faint);
}
.bp-rel-title {
  font-family: var(--head);
  font-weight: 600;
  font-size: 19px;
  line-height: 1.2;
}
.bp-rel:hover .bp-rel-title { color: var(--acid); }
.bp .case-next a { max-width: 24ch; }

/* ---------- Тост «скопировано» ---------- */
.bp-toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  z-index: 150;
  transform: translate(-50%, 20px);
  background: var(--acid);
  color: var(--acid-ink);
  font-size: 14px;
  font-weight: 600;
  padding: 11px 22px;
  border-radius: 999px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s, transform 0.4s var(--ease-out);
}
.bp-toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ============================================================
   Адаптив
   ============================================================ */
@media (max-width: 1100px) {
  .bp-layout { grid-template-columns: 1fr; }
  .bp-side {
    position: static;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 28px 48px;
    order: 2;
    margin-top: 44px;
    padding-top: 28px;
    border-top: 1px solid var(--line-soft);
  }
  .bp-toc { display: none; }
}

@media (max-width: 860px) {
  .bj-feed { grid-template-columns: 1fr; }
  .bj-feat .bj-card-a { grid-template-columns: 1fr; }
  .bj-feat .bj-media { min-height: 0; aspect-ratio: 16 / 10; height: auto; }
  .bj-controls { padding-block: 10px; }
  .bj-search { order: -1; width: 100%; }
  .bj-search kbd { display: none; }
  .bj-chips {
    flex-wrap: nowrap;
    overflow-x: auto;
    scrollbar-width: none;
    margin-inline: calc(-1 * var(--pad));
    padding-inline: var(--pad);
  }
  .bj-chips::-webkit-scrollbar { display: none; }
  .post-gallery { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .bp-rel-grid { grid-template-columns: 1fr; }
  .bp-lb-prev { left: 10px; }
  .bp-lb-next { right: 10px; }
}

@media (max-width: 480px) {
  .post-gallery { grid-template-columns: 1fr; }
}
