/* BantuSocial v2.36.3 — own-profile feed, mobile media viewer, auth landing precision */

/* ================================================================
   OWN PROFILE FEED — one disciplined layout, no inherited overlap
   ================================================================ */
html body.bantusphere #bs-profile-native-content .bs-own-profile-feed{
  min-width:0!important;
  width:100%!important;
}
html body.bantusphere #bs-profile-native-content .bs-own-profile-feed .publisher,
html body.bantusphere #bs-profile-native-content .bs-own-profile-feed .js_posts_stream,
html body.bantusphere #bs-profile-native-content .bs-own-profile-feed .js_posts_stream>ul,
html body.bantusphere #bs-profile-native-content .bs-own-profile-feed .js_posts_stream>ul>li,
html body.bantusphere #bs-profile-native-content .bs-own-profile-feed .post.bs-tech-post{
  width:100%!important;
  max-width:100%!important;
  min-width:0!important;
  box-sizing:border-box!important;
}
html body.bantusphere #bs-profile-native-content .bs-own-profile-feed .js_posts_stream{
  display:block!important;
  margin:0!important;
  padding:0!important;
  list-style:none!important;
}
html body.bantusphere #bs-profile-native-content .bs-own-profile-feed .js_posts_stream>ul{margin:0!important;padding:0!important;list-style:none!important}
html body.bantusphere #bs-profile-native-content .bs-own-profile-feed .js_posts_stream>ul>li{
  display:block!important;
  margin:0 0 16px!important;
  padding:0!important;
  list-style:none!important;
}
html body.bantusphere #bs-profile-native-content .bs-own-profile-feed .post.bs-tech-post{
  position:relative!important;
  margin:0!important;
  border-radius:20px!important;
  overflow:visible!important;
  transform:none!important;
}
html body.bantusphere #bs-profile-native-content .bs-own-profile-feed .post.bs-tech-post .post-body{
  width:100%!important;
  max-width:100%!important;
  min-width:0!important;
  height:auto!important;
  min-height:0!important;
  overflow:visible!important;
  box-sizing:border-box!important;
}
html body.bantusphere #bs-profile-native-content .bs-own-profile-feed .post-header,
html body.bantusphere #bs-profile-native-content .bs-own-profile-feed .post-header>*{
  min-width:0!important;
}
html body.bantusphere #bs-profile-native-content .bs-own-profile-feed .post-text,
html body.bantusphere #bs-profile-native-content .bs-own-profile-feed .post-text *{
  max-width:100%!important;
  overflow-wrap:anywhere!important;
  word-break:normal!important;
}
html body.bantusphere #bs-profile-native-content .bs-own-profile-feed .post-media,
html body.bantusphere #bs-profile-native-content .bs-own-profile-feed .post-photos,
html body.bantusphere #bs-profile-native-content .bs-own-profile-feed .post-video,
html body.bantusphere #bs-profile-native-content .bs-own-profile-feed .post-funding-meta,
html body.bantusphere #bs-profile-native-content .bs-own-profile-feed .bs-merit-post-content{
  width:100%!important;
  max-width:100%!important;
  min-width:0!important;
  height:auto!important;
  margin-left:0!important;
  margin-right:0!important;
  box-sizing:border-box!important;
}
html body.bantusphere #bs-profile-native-content .bs-own-profile-feed .post-media img,
html body.bantusphere #bs-profile-native-content .bs-own-profile-feed .post-photos img,
html body.bantusphere #bs-profile-native-content .bs-own-profile-feed .post-funding-meta img,
html body.bantusphere #bs-profile-native-content .bs-own-profile-feed .bs-merit-post-content img{
  display:block!important;
  max-width:100%!important;
  height:auto!important;
}
html body.bantusphere #bs-profile-native-content .bs-own-profile-feed .post-actions{
  display:grid!important;
  grid-auto-flow:column!important;
  grid-auto-columns:minmax(0,1fr)!important;
  align-items:center!important;
  width:auto!important;
  min-width:0!important;
  gap:6px!important;
  margin:10px 12px 0!important;
  padding:8px!important;
  overflow:visible!important;
}
html body.bantusphere #bs-profile-native-content .bs-own-profile-feed .post-actions>.valign{
  display:contents!important;
}
html body.bantusphere #bs-profile-native-content .bs-own-profile-feed .post-actions .action-btn,
html body.bantusphere #bs-profile-native-content .bs-own-profile-feed .post-actions .reactions-wrapper{
  width:100%!important;
  min-width:0!important;
  max-width:none!important;
  margin:0!important;
  justify-content:center!important;
  box-sizing:border-box!important;
}
html body.bantusphere #bs-profile-native-content .bs-own-profile-feed .post-stats{
  display:flex!important;
  align-items:center!important;
  justify-content:space-between!important;
  flex-wrap:wrap!important;
  gap:7px 12px!important;
  width:100%!important;
  min-width:0!important;
  white-space:normal!important;
  overflow:visible!important;
  box-sizing:border-box!important;
}
html body.bantusphere #bs-profile-native-content .bs-own-profile-feed .post-stats>.valign{
  min-width:0!important;
  flex-wrap:wrap!important;
  gap:3px!important;
}
html body.bantusphere #bs-profile-native-content .bs-own-profile-feed .post-footer,
html body.bantusphere #bs-profile-native-content .bs-own-profile-feed .comments-wrapper,
html body.bantusphere #bs-profile-native-content .bs-own-profile-feed .comment{
  width:100%!important;
  max-width:100%!important;
  min-width:0!important;
  box-sizing:border-box!important;
}

@media(max-width:767.98px){
  html body.bantusphere #bs-profile-native-content{padding-left:8px!important;padding-right:8px!important}
  html body.bantusphere #bs-profile-native-content .bs-own-profile-feed{padding-left:0!important;padding-right:0!important}
  html body.bantusphere #bs-profile-native-content .bs-own-profile-feed .post.bs-tech-post{border-radius:16px!important}
  html body.bantusphere #bs-profile-native-content .bs-own-profile-feed .post-actions{
    grid-auto-flow:column!important;
    grid-auto-columns:minmax(72px,1fr)!important;
    gap:3px!important;
    margin:8px 7px 0!important;
    padding:6px!important;
    overflow-x:auto!important;
    overflow-y:visible!important;
    scroll-snap-type:x proximity!important;
    scrollbar-width:none!important;
  }
  html body.bantusphere #bs-profile-native-content .bs-own-profile-feed .post-actions::-webkit-scrollbar{display:none!important}
  html body.bantusphere #bs-profile-native-content .bs-own-profile-feed .post-actions .action-btn,
  html body.bantusphere #bs-profile-native-content .bs-own-profile-feed .post-actions .reactions-wrapper{
    min-width:72px!important;
    scroll-snap-align:start!important;
  }
  html body.bantusphere #bs-profile-native-content .bs-own-profile-feed .post-stats{
    padding-left:12px!important;
    padding-right:12px!important;
    font-size:9.5px!important;
  }
}

/* ================================================================
   MOBILE IMAGE VIEWER — image first, details below, controls reachable
   ================================================================ */
html body.bantusphere .bs-lightbox-mobile-toolbar{display:none}
@media(max-width:991.98px){
  html body.bantusphere .lightbox{
    position:fixed!important;
    inset:0!important;
    display:block!important;
    width:100vw!important;
    height:100dvh!important;
    margin:0!important;
    padding:0!important;
    overflow:hidden!important;
    background:#020711!important;
    z-index:2147483000!important;
  }
  html body.bantusphere .lightbox .lightbox-container{
    position:relative!important;
    display:grid!important;
    grid-template-columns:1fr!important;
    grid-template-rows:minmax(300px,58dvh) minmax(0,42dvh)!important;
    width:100vw!important;
    height:100dvh!important;
    min-width:0!important;
    max-width:none!important;
    min-height:0!important;
    max-height:none!important;
    margin:0!important;
    padding:0!important;
    border:0!important;
    border-radius:0!important;
    overflow:hidden!important;
    background:#030915!important;
  }
  html body.bantusphere .lightbox .lightbox-preview{
    position:relative!important;
    grid-row:1!important;
    grid-column:1!important;
    display:flex!important;
    align-items:center!important;
    justify-content:center!important;
    width:100%!important;
    height:100%!important;
    min-width:0!important;
    min-height:0!important;
    margin:0!important;
    padding:56px 0 0!important;
    overflow:hidden!important;
    background:radial-gradient(circle at 50% 18%,rgba(86,65,142,.12),transparent 44%),#02060d!important;
    border:0!important;
    box-sizing:border-box!important;
  }
  html body.bantusphere .lightbox .lightbox-preview>img,
  html body.bantusphere .lightbox .lightbox-preview .img-fluid{
    display:block!important;
    width:100%!important;
    height:100%!important;
    max-width:100%!important;
    max-height:100%!important;
    margin:0 auto!important;
    object-fit:contain!important;
    object-position:center!important;
  }
  html body.bantusphere .lightbox .lightbox-data{
    position:relative!important;
    grid-row:2!important;
    grid-column:1!important;
    display:flex!important;
    flex-direction:column!important;
    width:100%!important;
    height:100%!important;
    min-width:0!important;
    min-height:0!important;
    margin:0!important;
    padding:0!important;
    overflow:hidden!important;
    background:linear-gradient(180deg,#0a1627,#07111f)!important;
    border-top:1px solid rgba(148,163,184,.12)!important;
  }
  html body.bantusphere .lightbox .lightbox-data>.clearfix{
    display:none!important;
  }
  html body.bantusphere .lightbox .lightbox-post{
    flex:1 1 auto!important;
    width:100%!important;
    height:100%!important;
    min-width:0!important;
    min-height:0!important;
    max-height:none!important;
    padding:8px 10px calc(16px + env(safe-area-inset-bottom))!important;
    overflow-y:auto!important;
    overflow-x:hidden!important;
    -webkit-overflow-scrolling:touch!important;
    overscroll-behavior:contain!important;
    box-sizing:border-box!important;
  }
  html body.bantusphere .lightbox .lightbox-post>.js_scroller,
  html body.bantusphere .lightbox .lightbox-post .slimScrollDiv{
    width:100%!important;
    height:auto!important;
    min-height:100%!important;
    max-height:none!important;
    overflow:visible!important;
  }
  html body.bantusphere .lightbox .bs-lightbox-mobile-toolbar{
    position:absolute!important;
    top:0!important;
    left:0!important;
    right:0!important;
    z-index:30!important;
    display:flex!important;
    align-items:center!important;
    justify-content:space-between!important;
    gap:8px!important;
    min-height:56px!important;
    padding:calc(8px + env(safe-area-inset-top)) 10px 8px!important;
    background:linear-gradient(180deg,rgba(2,7,17,.92),rgba(2,7,17,.54),transparent)!important;
    pointer-events:none!important;
    box-sizing:content-box!important;
  }
  html body.bantusphere .lightbox .bs-lightbox-mobile-toolbar>a,
  html body.bantusphere .lightbox .bs-lightbox-mobile-toolbar>button{
    pointer-events:auto!important;
    display:inline-flex!important;
    align-items:center!important;
    justify-content:center!important;
    gap:7px!important;
    min-height:40px!important;
    padding:0 13px!important;
    border:1px solid rgba(166,184,216,.18)!important;
    border-radius:12px!important;
    background:rgba(10,23,41,.86)!important;
    color:#f7faff!important;
    box-shadow:0 8px 22px rgba(0,0,0,.28)!important;
    backdrop-filter:blur(12px)!important;
    font-size:11px!important;
    font-weight:800!important;
    text-decoration:none!important;
  }
  html body.bantusphere .lightbox .bs-lightbox-mobile-dismiss{
    margin-left:auto!important;
    appearance:none!important;
    outline:0!important;
  }
  html body.bantusphere .lightbox .bs-lightbox-mobile-dismiss>span:first-child{
    font-size:21px!important;
    line-height:1!important;
    margin-top:-2px!important;
  }
  html body.bantusphere .lightbox .lightbox-next,
  html body.bantusphere .lightbox .lightbox-prev{
    z-index:20!important;
    width:42px!important;
    height:56px!important;
    display:grid!important;
    place-items:center!important;
    opacity:.82!important;
  }
  html body.bantusphere .lightbox .lightbox-next{right:6px!important}
  html body.bantusphere .lightbox .lightbox-prev{left:6px!important}
  html body.bantusphere .lightbox .lightbox-download{display:none!important}
}
@media(max-width:575.98px){
  html body.bantusphere .lightbox .lightbox-container{grid-template-rows:minmax(260px,55dvh) minmax(0,45dvh)!important}
  html body.bantusphere .lightbox .bs-lightbox-mobile-toolbar>a,
  html body.bantusphere .lightbox .bs-lightbox-mobile-toolbar>button{min-height:38px!important;padding:0 11px!important}
}

/* Nodate/avatar lightbox remains a single full-viewport image on mobile. */
@media(max-width:991.98px){
  html body.bantusphere .lightbox .lightbox-preview.nodata{
    grid-row:1 / -1!important;
    height:100dvh!important;
    padding-top:56px!important;
  }
  html body.bantusphere .lightbox .lightbox-container:has(.lightbox-preview.nodata){grid-template-rows:1fr!important}
}
