/* BantuSocial v2.36.5 — media resilience, showcase title alignment & profile-feed image cleanup */

/* =========================================================
   HOME SHOWCASE HEADERS
   Funding / Marketplace CTA sits on the same baseline as the card title.
   ========================================================= */
html body.bantusphere .bs-funding-spotlight .bs-showcase-head-v2365,
html body.bantusphere .bs-market-spotlight .bs-showcase-head-v2365{
  display:block!important;width:100%!important;margin-bottom:15px!important;
}
html body.bantusphere .bs-funding-spotlight .bs-showcase-copy,
html body.bantusphere .bs-market-spotlight .bs-showcase-copy{width:100%!important;min-width:0!important}
html body.bantusphere .bs-funding-spotlight .bs-showcase-titlebar,
html body.bantusphere .bs-market-spotlight .bs-showcase-titlebar{
  display:flex!important;align-items:center!important;justify-content:space-between!important;gap:14px!important;width:100%!important;min-width:0!important;margin:2px 0 3px!important;
}
html body.bantusphere .bs-funding-spotlight .bs-showcase-titlebar h2,
html body.bantusphere .bs-market-spotlight .bs-showcase-titlebar h2{
  flex:1 1 auto!important;min-width:0!important;margin:0!important;
}
html body.bantusphere .bs-funding-spotlight .bs-showcase-titlebar .bs-showcase-actions,
html body.bantusphere .bs-market-spotlight .bs-showcase-titlebar .bs-showcase-actions{
  flex:0 0 auto!important;display:flex!important;align-items:center!important;justify-content:flex-end!important;gap:8px!important;margin:0!important;padding:0!important;overflow:visible!important;
}
html body.bantusphere .bs-funding-spotlight .bs-showcase-primary-link,
html body.bantusphere .bs-market-spotlight .bs-showcase-primary-link{
  flex:0 0 auto!important;margin:0!important;white-space:nowrap!important;
}
@media(max-width:575.98px){
  html body.bantusphere .bs-funding-spotlight .bs-showcase-titlebar,
  html body.bantusphere .bs-market-spotlight .bs-showcase-titlebar{gap:8px!important;align-items:center!important}
  html body.bantusphere .bs-funding-spotlight .bs-showcase-titlebar h2,
  html body.bantusphere .bs-market-spotlight .bs-showcase-titlebar h2{font-size:15.5px!important;line-height:1.2!important}
  html body.bantusphere .bs-funding-spotlight .bs-showcase-titlebar .bs-carousel-arrow,
  html body.bantusphere .bs-market-spotlight .bs-showcase-titlebar .bs-carousel-arrow{display:none!important}
  html body.bantusphere .bs-funding-spotlight .bs-showcase-primary-link,
  html body.bantusphere .bs-market-spotlight .bs-showcase-primary-link{
    display:inline-flex!important;height:32px!important;min-height:32px!important;padding:0 9px!important;border-radius:10px!important;font-size:9.5px!important;line-height:1!important;align-items:center!important;gap:5px!important;
  }
  html body.bantusphere .bs-funding-spotlight .bs-showcase-head-v2365 p,
  html body.bantusphere .bs-market-spotlight .bs-showcase-head-v2365 p{margin-top:4px!important;max-width:100%!important}
}

/* =========================================================
   MERIT MEDIA
   A failed Merit image may never become a giant empty feed rectangle.
   Valid media keeps its natural ratio and bounded visual height.
   ========================================================= */
html body.bantusphere .post.bs-tech-post .bs-merit-post-content,
html body.bantusphere #bs-profile-native-content .bs-own-profile-feed .post.bs-tech-post .bs-merit-post-content{
  display:block!important;position:relative!important;width:100%!important;height:auto!important;min-height:0!important;max-height:none!important;overflow:hidden!important;margin:10px 0 0!important;padding:0!important;border-radius:15px!important;background:#081422!important;
}
html body.bantusphere .post.bs-tech-post .bs-merit-media-card,
html body.bantusphere #bs-profile-native-content .bs-own-profile-feed .post.bs-tech-post .bs-merit-media-card{
  display:block!important;position:relative!important;width:100%!important;height:auto!important;min-height:0!important;max-height:min(560px,68dvh)!important;aspect-ratio:auto!important;margin:0!important;padding:0!important;border:0!important;border-radius:15px 15px 0 0!important;overflow:hidden!important;background:#071422!important;box-sizing:border-box!important;
}
html body.bantusphere .post.bs-tech-post .bs-merit-media-image,
html body.bantusphere #bs-profile-native-content .bs-own-profile-feed .post.bs-tech-post .bs-merit-media-image{
  display:block!important;position:static!important;inset:auto!important;width:100%!important;height:auto!important;min-height:0!important;max-height:min(560px,68dvh)!important;aspect-ratio:auto!important;margin:0 auto!important;padding:0!important;object-fit:contain!important;object-position:center!important;background:#071422!important;border:0!important;transform:none!important;
}
html body.bantusphere .post.bs-tech-post .bs-merit-media-card.is-media-error,
html body.bantusphere #bs-profile-native-content .bs-own-profile-feed .post.bs-tech-post .bs-merit-media-card.is-media-error{
  height:160px!important;min-height:160px!important;max-height:160px!important;cursor:default!important;
}
html body.bantusphere .post.bs-tech-post .bs-merit-media-card.is-media-error .bs-merit-media-image{display:none!important}
html body.bantusphere .post.bs-tech-post .bs-merit-media-card.is-media-error .bs-merit-media-fallback{
  display:grid!important;position:absolute!important;inset:0!important;min-height:0!important;place-items:center!important;align-content:center!important;gap:8px!important;padding:16px!important;
  color:#cbd6e8!important;background:radial-gradient(circle at 50% 15%,rgba(232,83,177,.18),transparent 48%),linear-gradient(145deg,#0c1930,#081422)!important;
}
html body.bantusphere .post.bs-tech-post .bs-merit-media-card.is-media-error .bs-merit-media-fallback i{font-size:30px!important;color:#ec55b1!important}
html body.bantusphere .post.bs-tech-post .bs-merit-post-content .post-merit-meta{position:relative!important;height:auto!important;min-height:0!important;max-height:none!important;margin:0!important;padding:10px 12px!important}
@media(max-width:575.98px){
  html body.bantusphere .post.bs-tech-post .bs-merit-media-card,
  html body.bantusphere .post.bs-tech-post .bs-merit-media-image{max-height:62dvh!important}
  html body.bantusphere .post.bs-tech-post .bs-merit-media-card.is-media-error{height:132px!important;min-height:132px!important;max-height:132px!important}
}

/* =========================================================
   COMMENT COMPOSER AVATAR
   Prevent the 100%-padding avatar from stretching into the tall white wedge
   shown between mobile posts.
   ========================================================= */
html body.bantusphere .post.bs-tech-post .comment.js_comment-form .comment-avatar,
html body.bantusphere .post.bs-tech-post .comment .comment-avatar,
html body.bantusphere #bs-profile-native-content .bs-own-profile-feed .comment .comment-avatar{
  float:left!important;display:block!important;position:relative!important;width:38px!important;height:38px!important;min-width:38px!important;min-height:38px!important;max-width:38px!important;max-height:38px!important;flex:0 0 38px!important;margin:0!important;padding:0!important;overflow:hidden!important;border-radius:50%!important;box-sizing:border-box!important;
}
html body.bantusphere .post.bs-tech-post .comment .comment-avatar-picture,
html body.bantusphere #bs-profile-native-content .bs-own-profile-feed .comment .comment-avatar-picture{
  display:block!important;position:static!important;width:38px!important;height:38px!important;min-width:38px!important;min-height:38px!important;max-width:38px!important;max-height:38px!important;padding:0!important;margin:0!important;border-radius:50%!important;background-size:cover!important;background-position:center!important;background-repeat:no-repeat!important;overflow:hidden!important;box-sizing:border-box!important;transform:none!important;
}
html body.bantusphere .post.bs-tech-post .comment.js_comment-form .comment-data,
html body.bantusphere #bs-profile-native-content .bs-own-profile-feed .comment.js_comment-form .comment-data{min-width:0!important;margin-left:48px!important}

/* =========================================================
   REACTION STATS
   The visible surface itself is the reaction symbol. No grey placeholder puck.
   ========================================================= */
html body.bantusphere .post.bs-tech-post .post-stats .reactions-stats{
  display:inline-flex!important;align-items:center!important;gap:1px!important;overflow:visible!important;
}
html body.bantusphere .post.bs-tech-post .post-stats .reactions-stats>.reactions-stats-item{
  display:inline-grid!important;place-items:center!important;width:22px!important;height:22px!important;min-width:22px!important;max-width:22px!important;margin:0 -2px 0 0!important;padding:0!important;border:0!important;border-radius:0!important;background:none!important;box-shadow:none!important;outline:0!important;overflow:visible!important;
}
html body.bantusphere .post.bs-tech-post .post-stats .reactions-stats>.reactions-stats-item::before{display:none!important;content:none!important}
html body.bantusphere .post.bs-tech-post .post-stats .reactions-stats>.reactions-stats-item::after{
  display:block!important;width:auto!important;height:auto!important;min-width:0!important;min-height:0!important;margin:0!important;padding:0!important;border:0!important;border-radius:0!important;background:transparent!important;box-shadow:none!important;outline:0!important;font:normal 17px/1 "Apple Color Emoji","Segoe UI Emoji","Noto Color Emoji",sans-serif!important;color:initial!important;text-shadow:none!important;transform:none!important;opacity:1!important;visibility:visible!important;
}
html body.bantusphere .post.bs-tech-post .post-stats .reactions-stats>.reactions-stats-item[data-reaction="like"]::after{content:"👍"!important}
html body.bantusphere .post.bs-tech-post .post-stats .reactions-stats>.reactions-stats-item[data-reaction="love"]::after{content:"❤️"!important}
html body.bantusphere .post.bs-tech-post .post-stats .reactions-stats>.reactions-stats-item[data-reaction="haha"]::after{content:"😂"!important}
html body.bantusphere .post.bs-tech-post .post-stats .reactions-stats>.reactions-stats-item[data-reaction="yay"]::after{content:"🎉"!important}
html body.bantusphere .post.bs-tech-post .post-stats .reactions-stats>.reactions-stats-item[data-reaction="wow"]::after{content:"😮"!important}
html body.bantusphere .post.bs-tech-post .post-stats .reactions-stats>.reactions-stats-item[data-reaction="sad"]::after{content:"😢"!important}
html body.bantusphere .post.bs-tech-post .post-stats .reactions-stats>.reactions-stats-item[data-reaction="angry"]::after{content:"😡"!important}

/* Keep the mobile body-level reaction chooser above the floating composer. */
@media(max-width:969.98px), (hover:none) and (pointer:coarse){
  html body.bantusphere .bs-mobile-reaction-portal.is-open:not([hidden]){z-index:2147483647!important}
  html body.bantusphere .bs-mobile-reaction-portal.is-open .bs-mobile-reaction-choice{pointer-events:auto!important}
  html body.bantusphere .btn-float,html body.bantusphere .js_publisher-btn{z-index:1040!important}
}

/* =========================================================
   STORIES / LAUNCHPAD — final desktop cleanup.
   ========================================================= */
html body.bantusphere .bs-stories-card.bs-stories-ready .empty_stories{display:none!important}
html body.bantusphere .bs-stories-card #stories>.story{box-shadow:none!important;text-shadow:none!important}
html body.bantusphere .bs-stories-card #stories>.story>a>.img::before,
html body.bantusphere .bs-stories-card #stories>.story>a>.img::after{display:none!important;content:none!important;box-shadow:none!important}
@media(min-width:992px){
  html body.bantusphere #bs-superapp-grid[data-collapsed="true"]>.bs-module-grid-footer{
    grid-column:3/5!important;grid-row:2!important;width:auto!important;max-width:none!important;margin:0!important;min-height:112px!important;
  }
  html body.bantusphere #bs-superapp-grid[data-collapsed="true"]>.bs-module-grid-footer .bs-grid-toggle{
    min-height:112px!important;height:100%!important;width:100%!important;margin:0!important;
  }
}

/* Merits spotlight retains a deliberate rectangular action silhouette. */
html body.bantusphere .bs-merits-spotlight .bs-merit-send-btn{width:auto!important;min-width:138px!important;aspect-ratio:auto!important;border-radius:10px!important;padding-inline:18px!important}
