/* ===================================================================
   THE BLACK CLOUD — Custom CSS (vNext)
   Theme base: Tiny Theme (Micro.blog) + Aaron-Tiny-Overrides
   Design refs: Bilberry Hugo Theme
   -------------------------------------------------------------------
   Goals:
   • Single source of truth for colors/spacing via :root variables
   • Consistent, square-corner aesthetic
   • Correct nav hover (white text/outline on red background, no “shrink”)
   • Remove stray vertical overlay in YouTube/link headers
   • Keep current card layouts, background image, centered title/subtitle
   • Make author/date byline visible when the HTML emits it
   =================================================================== */


/* =========================
   1) GLOBAL VARIABLES
   ========================= */

:root{
  /* ---- Brand palette (requested) ---- */
  --black:   #000000;
  --white:   #ffffff;
  --blue-dk: #13294B;  /* dark blue */
  --blue-lt: #77B5D8;  /* Columbia/light blue */
  --red:     #F51821;  /* the ONLY red */
  --orange:  #FF8532;
  --purple:  #502098;
  --silver:  #D9DADB;

  /* ---- Base colors ---- */
  --text-color: #111111;
  --bg-color:   #ffffff;      /* page background (under the speckle) */
  --card-bg:    #ffffff;      /* cards/posts background */
  --rule-color: var(--silver);/* gray post dividers */

  /* ---- Typography ---- */

@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@600;700;800;900&family=Poppins:wght@600;700;800;900&family=Stardos+Stencil:wght@400;700&display=swap');

  --title-font:    "Montserrat", system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
  --subtitle-font: "Stardos Stencil";
  --display-font:  "Frutiger", "Frutiger LT Std", "Segoe UI", "Helvetica Neue", Helvetica, Arial, sans-serif;

  --title-size:    clamp(5rem, 6vw, 6.5rem);
  --title-weight:  900;
  --subtitle-size: clamp(24px, 6vw, 32px);
  --nav-font-size: clamp(15px, 1.6vw, 18px);

  /* ---- Layout ---- */
  --content-max-width: 900px;
  --content-pad-x: 12px;     /* tighter on small screens */
  --header-gap: 12px;
  --accent-width: 6px;

  /* ---- Navigation buttons ---- */
  --nav-pad-y: 10px;
  --nav-pad-x: 16px;
  --nav-border-w: 4px;

  /* ---- Background image ---- */

--bg-speckle: url('https://amblackshaw.micro.blog/uploads/2025/bg-speckle.jpg');

--author-name: "Doc";
}

@media (min-width: 800px){
  :root{ --content-pad-x: 18px; }
}


/* =========================
   2) BASE & WRAPPERS
   ========================= */

html, body{
  background: var(--bg-color) var(--bg-speckle) top left repeat;
  color: var(--text-color);
}

.site-header, header, main, .content, .h-feed, .archive, .archive-page, .page, .post-list{
  max-width: var(--content-max-width);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--content-pad-x);
  padding-right: var(--content-pad-x);
  background: var(--white);
  box-sizing: border-box;
}

.site-header .container,
.site-header .wrapper,
.site-header .inner{
  max-width: 100%;
  margin: 0;
  padding: 0;
}

/* square-corner aesthetic everywhere */
img, figure img, .site-nav a,
.quote-card, .photo-card, .memory-card,
.post.single, .page.single{
  border-radius: 0 !important;
}

/* =========================
   3) HEADER: LOGO/TITLE/SUBTITLE + NAV
   ========================= */

/* Header block */
.site-header{ padding-top: .75rem; padding-bottom: 12px; margin-bottom: 0; text-align: center; }
.site-branding{ display:flex; flex-direction:column; align-items:center; gap: var(--header-gap); }

/* --- Header logo swap (CSS-only) --- */
:root{
  --site-logo: url(https://www.the-black.cloud/uploads/2025/logo.png);
}


/* Title */
.site-title, .site-title a{
  font-family: var(--title-font);
  font-size: var(--title-size);
  font-weight: var(--title-weight);
  letter-spacing: .05em; text-transform: uppercase;
  color: var(--black); line-height: 0.9; margin: 0; text-decoration: none; white-space: normal;
}

/* Hover blink on title (black ↔ red) */
@keyframes title-blink-red{
  0%,49%,100%{ color: var(--black); }
  50%,99%  { color: var(--red); }
}
.site-title:hover, .site-title a:hover{ animation: title-blink-red 1s linear infinite; background: transparent; }

/* Subtitle (centered, red, uppercase) */
.site-subtitle{
  font-family: var(--subtitle-font);
  font-size: var(--subtitle-size);
  color: var(--red) !important;
  letter-spacing: .07em; text-transform: uppercase; margin: 0 0 5px 0; text-align:center;
}

/* Navigation (fix hover behavior + prevent size shift) */
.site-nav{ display:flex; flex-wrap:wrap; justify-content:center; gap: 10px 12px; margin-top: var(--header-gap); }
.site-nav a{
  box-sizing: border-box; /* prevents hover “shrink” */
  font-family: var(--title-font); font-size: var(--nav-font-size); font-weight: 600;
  text-decoration: none; display:inline-block; filter:none;
  padding: var(--nav-pad-y) var(--nav-pad-x);
  border: var(--nav-border-w) solid var(--black) !important;
  background: var(--white); color: var(--black) !important;
  transition: background-color .2s ease, color .2s ease, border-color .2s ease;
}
.site-nav a:hover, .site-nav a:focus-visible{
  background: var(--red);
  color: var(--white) !important;
  border-color: var(--white) !important;
}

/* =========================
   4) POSTS & BYLINES
   ========================= */

/* List separators (homepage/archives) */
.post-list-item, .post-preview{
  padding: 0 0 21px;
  border-bottom: 7px solid var(--rule-color);
  margin-bottom: 21px;
}
.post-preview:last-child{ border-bottom: none; }

/* Single post container */
.post.single, .page.single{
  background: var(--card-bg);
  border: 0;
  padding: 1rem 1.2rem;
  margin: 1rem 0;
}

/* Make meta/byline visible if it exists in the HTML */
.post .post-meta, .post .meta, .post .byline, .post time,
.post .p-author, .post .h-card, .post .author{
  display: inline !important; visibility: visible !important; opacity: 1 !important; height:auto !important;
  font-family: 'Allerta Stencil', system-ui, sans-serif !important;
  font-size: .8rem !important; line-height: 1.2 !important; color: #6b7b8a !important; font-weight: 400 !important;
}

/* Optional fallback if the template doesn’t render an author element */
   add <span class="author"></span> to byline; we’ll fill it with --author-name */
.post .byline .author:empty::after{ content: var(--author-name); }

/* Byline “chips” (date/category/domain/etc.) — single definition (deduped) */
.bc-byline{ padding: 6px 14px 0 14px; margin-bottom: .36rem; }
.bc-chips{ display:flex; flex-wrap:wrap; gap:6px; list-style:none; padding:0; margin:0; }
.chip{ font-size:12px; line-height:1; padding:6px 8px; border-radius:999px; background:#f1f3f5; border:1px solid #e5e7eb; }
.chip-date{ background:#fff; }
.chip-yt{ background:#ffecec; border-color:#ffd4d4; }
.chip-domain{ background:#eef6ff; border-color:#d8e9ff; }
.chip-cat{ background:#f6f7f8; }
.chip-read{ background:#fffdf3; border-color:#f4e8b3; }

.bc-readmore{ margin:.8rem 14px .2rem 14px; }
.bc-readmore a{
  font-size:.9rem; line-height:1.1; text-decoration:none; border-bottom:1px solid rgba(0,0,0,.25);
}
.bc-readmore a:hover{ border-bottom-color: currentColor; }


/* =========================
   5) SPECIAL CARDS (Quote / Link / YouTube / Photo / Memory)
   ========================= */

/* Quote card (Bilberry-inspired) — blue background, red left rail */
blockquote, .quote-card{
  position: relative; background: var(--blue-dk) !important; color: var(--white);
  padding: 1.2rem; margin: 1rem 0; border-left: 0 !important;
}
.quote-card::before{
  content:""; position:absolute; top:0; bottom:0; left:0;
  width: var(--accent-width); background: var(--red);
}
.quote-attrib{ margin-top:1.5rem; font-size:1.2rem; font-weight:700; font-style:italic; text-align:right; }

/* Generic “rail” for card types (right by default, left for quotes) */
.link-composite, .yt-card, .quote-card, .photo-card, .memory-card, .post-default{
  position: relative; --rail-w: 6px; --rail-color: var(--black);
}
.link-composite::after, .yt-card::after, .quote-card::after,
.photo-card::after, .memory-card::after, .post-default::after{
  content:""; position:absolute; top:0; bottom:0; right:0; width: var(--rail-w); background: var(--rail-color);
}
.quote-card::after{ left:0; right:auto; --rail-color: var(--blue-lt); }    /* Quote: left blue rail */
.link-composite.is-youtube{ --rail-color: var(--red); }
.photo-card{ --rail-color: #6e6e6e; }
.memory-card{ --rail-color: #3a8f6b; }

/* Photo / Memory basics */
.photo-card img{ display:block; max-width:100%; height:auto; border:1px solid var(--rule-color); }
.memory-card{ border:1px solid var(--rule-color); background:#fff; padding:1rem 1.2rem; }
.memory-title{ margin:0 0 .4rem 0; font-weight:800; font-family: var(--display-font); }

/* LINK card — black header that turns Columbia blue on hover + white body */
.link-composite{
  margin:1rem 0; border:1px solid var(--rule-color); background: var(--card-bg); overflow:hidden; display:block;
}

.link-header{
  display:grid; grid-template-columns: 42px 1fr auto; align-items:center; gap:12px; padding:10px 12px;
  background:#000; color:#fff;
}

.link-composite .link-ico{
  display:grid; place-items:center; width:42px; height:42px; border-radius:6px; background:#fff; color:#000;
  box-shadow:0 1px 2px rgba(0,0,0,.12);
}

.link-ext{
  color:#fff !important; text-decoration:none; font-family: var(--display-font); font-weight:800;
  font-size: clamp(1.1rem, 1.5vw, 2.1rem); line-height:1.1; text-shadow:0 1px 2px rgba(0,0,0,.35);
}

.link-domain{ color: rgba(255,255,255,.9); font-size:.9rem; white-space:nowrap; margin-left:8px; }
.link-composite:hover .link-header, .link-composite:focus-within .link-header{ background: var(--blue-lt); }
.link-body-card{ background:#fff; padding: 12px 14px 10px 14px; border-top:1px solid var(--rule-color); }

/* YOUTUBE card — hero header image, legible title, pill play badge (no weird right bar) */
.link-composite.is-youtube .link-header{
  position: relative; min-height: clamp(240px, 34vw, 420px);
  background: #F51821; /* light tint while the image loads */
  padding: 0; overflow: hidden;
}

.link-composite.is-youtube .link-thumb-wrap{
  position:absolute; inset:0; width:100% !important; height:100% !important; margin:0 !important; display:block;
}

.link-composite.is-youtube .link-thumb{
  display:block; width:100% !important; height:100% !important; object-fit:cover; object-position:center;
  float:none !important; max-width:none !important; border:1px solid rgba(255,255,255,.65);
}

.link-composite.is-youtube .link-header::after{
  content:""; position:absolute; inset:0;
  background: #F51821 !important;
  pointer-events:none; z-index:1;
}

.link-composite.is-youtube .link-ext{
  position:absolute; left:14px; right:14px; bottom:14px; z-index:2;
  color:#F51821 !important; text-decoration:none; font-weight:800;
  font-size: clamp(1.2rem, 2vw, 3rem); line-height:1.5;
  text-shadow:0 1px 2px rgba(0,0,0,.35);
}

.link-composite.is-youtube .yt-play{
  position:absolute; right:12px; bottom:12px; z-index:2;
  display:inline-flex; align-items:center; justify-content:center;
  padding:2px 10px; border-radius:10px; line-height:1;
  background: #ffff; box-shadow:0 2px 6px rgba(0,0,0,.15);
  font-size: clamp(28px, 4vw, 44px);
}

/* Remove any third-party/legacy overlay controls that render as the “vertical cloudy bar” */
.link-composite .flickity-prev-next-button,
.link-composite .splide__arrow,
.link-composite .swiper-button-next,
.link-composite .swiper-button-prev,
.link-composite .glide__arrow,
.link-composite .carousel__nav,
.link-composite .nav{ display:none !important; }

/* Keep YouTube commentary body the same white card */
.link-composite.is-youtube .link-body-card{ background:#ffff; padding: 12px 14px 10px 14px; border-top:1px solid var(--rule-color); }

/* Responsive 16:9 iframe helper (for embedded video on single pages) */
.bc-video{ position:relative; width:100%; aspect-ratio:16/9; margin:.5rem 0 .5rem; }
.bc-video iframe{ position:absolute; inset:0; width:100%; height:100%; border:0; }


/* =========================
   6) MOBILE POLISH
   ========================= */

@media (max-width: 640px){
  :root{ --header-gap: 10px; }
  .site-nav a{ padding: 8px 12px; }
}

@media (max-width: 420px){
  .link-thumb-wrap{ width: 100px; } /* narrower thumbs on tiny screens (link cards) */
}

/* =========================================================
   YOUTUBE "TITLE BAR" — MATCH LINK CARD HEADER
   (targets the paragraph whose first child is a YouTube link)
   ========================================================= */

/* Modern browsers (uses :has to match the real structure) */
.h-entry .e-content p:has(> a[href*="youtube.com"]),
.h-entry .e-content p:has(> a[href*="youtu.be"]) {
  margin: 0 !important;
}
.h-entry .e-content p:has(> a[href*="youtube.com"]) > a[href*="youtube.com"],
.h-entry .e-content p:has(> a[href*="youtu.be"]) > a[href*="youtu.be"] {
  /* make it a solid bar like the Link card header */
  display: grid !important;
  grid-template-columns: 42px 1fr auto !important; /* icon | title | (optional domain) */
  align-items: center !important;
  gap: 12px !important;
  width: 100% !important;
  min-height: 54px !important;            /* same visual height as your black header */
  box-sizing: border-box !important;
  padding: 10px 12px !important;
  background: var(--red) !important;       /* RED header */
  color: var(--white) !important;          /* WHITE text */
  text-decoration: none !important;
  border: 1px solid rgba(0,0,0,.08) !important;
  border-radius: 0 !important;
}

/* add a simple play icon square so it visually mirrors the link icon box */
.h-entry .e-content p:has(> a[href*="youtube.com"]) > a[href*="youtube.com"]::before,
.h-entry .e-content p:has(> a[href*="youtu.be"]) > a[href*="youtu.be"]::before {
  content: "▶";
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 6px;
  background: var(--white);
  color: var(--red);
  font-weight: 800;
  font-size: 1.05rem;
  line-height: 1;
}

/* kill any old vertical stripe/overlay */
.h-entry .e-content p:has(> a[href*="youtu"]) > a[href*="youtu"]::after { 
  display: none !important; 
}

/* Fallback for browsers without :has (kept safe and narrow) */
.h-entry .e-content > p:first-child > a[href*="youtu"],
.h-entry .e-content > a[href*="youtu"]:first-child {
  display: grid !important;
  grid-template-columns: 42px 1fr auto !important;
  align-items: center !important;
  gap: 12px !important;
  min-height: 54px !important;
  padding: 10px 12px !important;
  background: var(--red) !important;
  color: var(--white) !important;
  text-decoration: none !important;
  border: 1px solid rgba(0,0,0,.08) !important;
  border-radius: 0 !important;
}
.h-entry .e-content > p:first-child > a[href*="youtu"]::before,
.h-entry .e-content > a[href*="youtu"]:first-child::before {
  content: "▶";
  display: grid;
  place-items: center;
  width: 42px; height: 42px; border-radius: 6px;
  background: var(--white); color: var(--red); font-weight: 800; font-size: 1.05rem;
}

/* ensure any span/domain inside stays white */
.h-entry .e-content p:has(> a[href*="youtu"]) > a[href*="youtu"] span {
  color: var(--white) !important;
}

/* =========================================================
   DATE UNDER POSTS — SMALLER + SILVER (strong selectors)
   ========================================================= */

.h-entry time,
.h-entry .post-date,
.post .post-date,
.post time,
time.dt-published,
.entry .post-date,
article.h-entry footer time {
  font-size: 0.80rem !important;
  color: #13294B !important;
  font-style: normal !important;
  display: block !important;
  margin-top: .10rem !important;
}

/* === YOUTUBE CARD — EXACTLY LIKE THE MOCKUP (fixed) === */

/* Header is ONLY the image */
.link-composite.is-youtube .link-header{
  position: relative !important;
  padding: 0 !important;
  min-height: clamp(240px, 34vw, 420px) !important;
  background: var(--red) !important;
  overflow: hidden !important;
  color: #fff !important;
  border: 0 !important;
}
.link-composite.is-youtube .link-header::after{ display:none !important; }

/* Image fills header */
.link-composite.is-youtube .link-thumb-wrap{ position:absolute !important; inset:0 !important; }
.link-composite.is-youtube .link-thumb{
  display:block !important;
  width:100% !important;
  height:100% !important;
  object-fit: cover !important;
  object-position: center !important;
  float:none !important;
  max-width:none !important;
  border:0 !important;
}

/* Red title bar across bottom of image (same font/sizing as link posts) */
.link-composite.is-youtube .link-ext{
  position: absolute !important;
  left: 0 !important; right: 0 !important; bottom: 0 !important; z-index: 5 !important;
  display: block !important;
  margin: 0 !important;
  padding: 10px 12px !important;
  background: var(--red) !important;   /* RED background */
  color: #fff !important;               /* WHITE text */
  text-decoration: none !important;
  font-family: var(--display-font) !important;
  font-weight: 800 !important;
  font-size: clamp(1.05rem, 2.2vw, 1.6rem) !important;
  line-height: 1.2 !important;
  text-shadow: none !important;
}

/* make sure links/nested spans inside the title stay white */
.link-composite.is-youtube .link-ext:link,
.link-composite.is-youtube .link-ext:visited,
.link-composite.is-youtube .link-ext:hover,
.link-composite.is-youtube .link-ext:active{
  color:#fff !important;
}
.link-composite.is-youtube .link-ext *{ color:inherit !important; }

/* Play button: red pill with white triangle */
.link-composite.is-youtube .yt-play{
  position: absolute !important;
  right: 12px !important; bottom: 12px !important; z-index: 6 !important;
  display: inline-flex !important; align-items: center !important; justify-content: center !important;
  padding: 2px 10px !important;
  border-radius: 10px !important;
  line-height: 1 !important;
  background: var(--red) !important;
  color: #fff !important;
  border: 1px solid rgba(0,0,0,.05) !important;
  box-shadow: 0 2px 6px rgba(0,0,0,.15) !important;
}

.link-composite.is-youtube .yt-play svg{ fill:#fff !important; stroke:#fff !important; }

/* Body stays a clean white card */
.link-composite.is-youtube .link-body-card{ background:#fff !important; }

/* === YOUTUBE TITLE STRIP — FORCE RED BG + WHITE TEXT === */
body body body .link-composite.is-youtube .link-header .link-ext,
body body body .link-composite.is-youtube .link-ext {
  background: var(--red) !important;   /* #F51821 */
  color: #fff !important;
  display: block !important;
  margin: 0 !important;
  padding: 10px 12px !important;
  border: 0 !important;
  text-shadow: none !important;
  z-index: 5 !important;
}
body body body .link-composite.is-youtube .link-ext:link,
body body body .link-composite.is-youtube .link-ext:visited,
body body body .link-composite.is-youtube .link-ext:hover,
body body body .link-composite.is-youtube .link-ext:active {
  color: #fff !important;
}
body body body .link-composite.is-youtube .link-ext *{
  color: inherit !important;
}

/* HOME FEED FALLBACK: make the first heading after a YouTube link red */
a[href*="youtube.com"], a[href*="youtu.be"] { /* marker only */ }

a[href*="youtube.com"] + h1,
a[href*="youtube.com"] + h2,
a[href*="youtube.com"] + .post-title,
a[href*="youtu.be"]    + h1,
a[href*="youtu.be"]    + h2,
a[href*="youtu.be"]    + .post-title {
  background: var(--red) !important;
  color: #fff !important;
  display: block !important;
  margin: 0 !important;
  padding: 10px 12px !important;
}
a[href*="youtube.com"] + h1 a,
a[href*="youtube.com"] + h2 a,
a[href*="youtube.com"] + .post-title a,
a[href*="youtu.be"]    + h1 a,
a[href*="youtu.be"]    + h2 a,
a[href*="youtu.be"]    + .post-title a {
  color: #fff !important;
  text-decoration: none !important;
}

/* YOUTUBE TITLE STRIP — works with Tiny's simple markup
   The card is:
     [▶ youtube link]  <-- anchor
     [TITLE BLOCK]     <-- next element sibling (we style this)
*/

/* Home, single, anywhere: the next element after a youtu* link */
article a[href*="youtube.com"] + *,
article a[href*="youtu.be"] + *{
  background: #F51821 !important;  /* RED background */
  color: #ffffff !important;        /* WHITE text */
  display: block !important;
  padding: 10px 12px !important;
  margin: 0 !important;
  border: 0 !important;
  text-shadow: none !important;
}

/* Keep any nested links inside that title white too */
article a[href*="youtube.com"] + * a,
article a[href*="youtu.be"] + * a{
  color: #ffffff !important;
  text-decoration: none !important;
}

/* (Optional) Slight separation from the content below the title */
article a[href*="youtube.com"] + *{ border-bottom: 1px solid rgba(0,0,0,.06) !important; }
article a[href*="youtu.be"] + *{ border-bottom: 1px solid rgba(0,0,0,.06) !important; }

/* YT title strip — match LINK post typography */
article a[href*="youtube.com"] + *,
article a[href*="youtu.be"] + *{
  font-family: var(--display-font, system-ui) !important;
  font-weight: 800 !important;
  font-size: clamp(1.05rem, 2.2vw, 1.6rem) !important;
  line-height: 1.2 !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
}

/* if the title is a link, keep the same font on the anchor too */
article a[href*="youtube.com"] + * a,
article a[href*="youtu.be"] + * a{
  font: inherit !important;
}

/* =========================================================
  1) ONLY the "Continue reading →" link = light blue
     (covers common Tiny/Micro.blog variants)
   ========================================================= 

.bc-readmore a:hover,
.read-more a:hover,
a.read-more:hover,
.more-link:hover,
.post .more a:hover,
.post .continue a:hover,
.post .continue-reading a:hover {
  color: var(--blue-lt, #77B5D8) !important;
  text-decoration-thickness: 2px;
}

/* =========================================================
  2) LINK cards: right rail turns light blue ON HOVER ONLY
     (YouTube and other card types are NOT affected)
   ========================================================= */
.link-composite:not(.is-youtube)::after{
  background: var(--black);
  transition: background-color .2s ease;
}
.link-composite:not(.is-youtube):hover::after,
.link-composite:not(.is-youtube):focus-within::after{
  background: var(--blue-lt, #77B5D8);
}

/* =========================================================
  3) Silver divider separating HEADER from main content column
     (full width of the centered column)
   ========================================================= */
.site-header{
  border-bottom: 5px solid var(--silver, #D9DADB) !important;
  padding-bottom: 12px;   /* keeps the line tucked under the nav */
  margin-bottom: 16px;    /* breathing room before content starts */
}

/* =========================

=========================================================
   PHOTO / GALLERY — RESET (vF)
   ========================================================= */

/* Photo posts: gray accent + white title (works for main + single) */
:root { --photo-accent:#6E6E6E; --rail-w:0px; }

.h-entry:has(.mb-gallery), .post-preview:has(.mb-gallery){ position:relative; }

.h-entry:has(.mb-gallery)::after,
.post-preview:has(.mb-gallery)::after{
  content:""; position:absolute; inset-block:0; inset-inline-end:0;
  width:var(--rail-w); background:var(--photo-accent); pointer-events:none;
}

.h-entry:has(.mb-gallery) :is(h1,h2,h3,.post-title,.entry-title){
  background:var(--photo-accent); color:#fff;
  margin:0; padding:10px 12px; font-weight:800;
}

.h-entry .mb-gallery{ margin:0 0 .9rem 0; }

/* 1) Make photo-post titles same size as other posts */
.h-entry:has(.mb-gallery) :is(h1,h2,h3,.post-title,.entry-title){
  font-size: clamp(1.05rem, 2.2vw, 1.6rem); /* matches your other categories */
  font-weight: 800;
}

/* 2) Single-post right-edge fix:
      - remove any internal right border/shadow that creates the inner gray line
      - overpaint the edge with the accent rail so you see ONE clean line
*/
article.h-entry:has(.mb-gallery) .e-content,
article.h-entry:has(.mb-gallery) .post,
article.h-entry:has(.mb-gallery) .post-body,
article.h-entry:has(.mb-gallery) .post-content,
article.h-entry:has(.mb-gallery) header,
article.h-entry:has(.mb-gallery) .post-title{
  border-right: 0 !important;
  box-shadow: none !important;
}

/* ---- KILL SWITCH: remove ANY right-edge line inside single photo posts ---- */
article.h-entry:has(.mb-gallery),
article.h-entry:has(.mb-gallery) *,
article.h-entry:has(.mb-gallery)::before,
article.h-entry:has(.mb-gallery)::after,
article.h-entry:has(.mb-gallery) *::before,
article.h-entry:has(.mb-gallery) *::after{
  border-right: 0 !important;
  box-shadow: none !important;           /* kills inset shadows used as "borders" */
  outline: 0 !important;
  background-image: none !important;     /* kills gradient/strip borders */
}

/* ---- RE-ADD exactly ONE rail (gray) on the outside edge ---- */
article.h-entry:has(.mb-gallery){ position:relative !important; }
article.h-entry:has(.mb-gallery)::after{
  content:"" !important;
  position:absolute !important;
  inset-block:0 !important;
  inset-inline-end:0 !important;
  width:var(--rail-w,6px) !important;
  background:var(--photo-accent,#6E6E6E) !important;
  pointer-events:none !important;
  z-index:3 !important;
}

/* Also ensure feed cards show only the single rail */
.post-preview:has(.mb-gallery){ position:relative !important; }
.post-preview:has(.mb-gallery)::after{
  content:"" !important;
  position:absolute !important; inset-block:0 !important; inset-inline-end:0 !important;
  width:var(--rail-w,6px) !important; background:var(--photo-accent,#6E6E6E) !important;
  pointer-events:none !important; z-index:3 !important;
}

/* Match title size to other posts */
.h-entry:has(.mb-gallery) :is(h1,h2,h3,.post-title,.entry-title){
  font-size: clamp(1.05rem, 2.2vw, 1.6rem) !important;