/* ==========================================================
   BantuSocial Full Image/Post View Controls v2.39.1
   Professional desktop + mobile control dock
   ========================================================== */

html body .bs2382-lightbox{
  --fv-bg:#081321;
  --fv-surface:rgba(11,24,42,.92);
  --fv-border:rgba(157,177,212,.16);
  --fv-text:#f6f9ff;
  --fv-muted:#98abc6;
  --fv-danger:#ff6682;
}

/* Stop the control bar from covering the author/reaction area */
html body .bs2382-lightbox .js_scroller{
  padding-top:84px!important;
}

/* DESKTOP: one clean horizontal action dock */
html body .bs2382-lightbox-toolbar{
  position:absolute!important;
  top:14px!important;
  left:16px!important;
  right:16px!important;
  z-index:80!important;
  display:flex!important;
  flex-wrap:nowrap!important;
  align-items:center!important;
  gap:7px!important;
  width:auto!important;
  min-width:0!important;
  padding:7px!important;
  border:1px solid var(--fv-border)!important;
  border-radius:18px!important;
  background:linear-gradient(180deg,rgba(9,20,36,.96),rgba(7,16,29,.95))!important;
  box-shadow:0 16px 38px rgba(0,0,0,.28), inset 0 1px 0 rgba(255,255,255,.035)!important;
  backdrop-filter:blur(18px)!important;
  -webkit-backdrop-filter:blur(18px)!important;
}

/* Full View becomes a quiet context label, not another oversized button */
html body .bs2382-lightbox-toolbar .bs2382-lb-title{
  order:0!important;
  flex:0 1 auto!important;
  min-width:0!important;
  margin-right:auto!important;
  display:inline-flex!important;
  align-items:center!important;
  gap:7px!important;
  height:38px!important;
  padding:0 11px!important;
  border:0!important;
  border-radius:12px!important;
  background:rgba(85,105,255,.10)!important;
  color:#cbd8ff!important;
  box-shadow:none!important;
  font-size:10px!important;
  line-height:1!important;
  font-weight:900!important;
  letter-spacing:.11em!important;
  text-transform:uppercase!important;
  white-space:nowrap!important;
}
html body .bs2382-lightbox-toolbar .bs2382-lb-title i{
  width:26px!important;
  height:26px!important;
  display:grid!important;
  place-items:center!important;
  border-radius:9px!important;
  background:linear-gradient(135deg,#635bff,#9b5cf6)!important;
  color:#fff!important;
  font-size:11px!important;
}

/* Back / Open Post / Delete become a consistent compact action group */
html body .bs2382-lightbox-toolbar .bs2382-lb-chip{
  flex:0 0 auto!important;
  min-width:0!important;
  height:38px!important;
  margin:0!important;
  padding:0 11px!important;
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  gap:6px!important;
  border:1px solid rgba(151,169,201,.14)!important;
  border-radius:12px!important;
  background:rgba(16,29,49,.88)!important;
  color:#edf3ff!important;
  box-shadow:none!important;
  font-size:10px!important;
  line-height:1!important;
  font-weight:850!important;
  letter-spacing:0!important;
  text-transform:none!important;
  white-space:nowrap!important;
  text-decoration:none!important;
  cursor:pointer!important;
  transition:transform .16s ease,border-color .16s ease,background .16s ease,box-shadow .16s ease!important;
}
html body .bs2382-lightbox-toolbar .bs2382-lb-chip i{
  font-size:11px!important;
  color:#b8c8e2!important;
}
html body .bs2382-lightbox-toolbar .bs2382-lb-chip:hover{
  transform:translateY(-1px)!important;
  border-color:rgba(116,143,196,.28)!important;
  background:rgba(25,43,70,.98)!important;
  box-shadow:0 8px 18px rgba(0,0,0,.14)!important;
  color:#fff!important;
}
html body .bs2382-lightbox-toolbar .bs2382-lb-chip.delete{
  margin-left:1px!important;
  border-color:rgba(255,102,130,.18)!important;
  background:rgba(91,22,38,.58)!important;
  color:#ffbdca!important;
}
html body .bs2382-lightbox-toolbar .bs2382-lb-chip.delete i{
  color:#ff8198!important;
}
html body .bs2382-lightbox-toolbar .bs2382-lb-chip.delete:hover{
  border-color:rgba(255,102,130,.36)!important;
  background:rgba(124,29,50,.84)!important;
  color:#fff!important;
}

/* Make the existing dismiss control visually compatible and keep it separate */
html body .lightbox-close,
html body .js_lightbox-close{
  z-index:100!important;
}
html body .bs2382-lightbox ~ .lightbox-close,
html body .lightbox-close{
  border-radius:12px!important;
}

/* Prevent action labels from breaking letter-by-letter */
html body .bs2382-lightbox-toolbar *,
html body .bs2382-lightbox .post-actions *,
html body .bs2382-lightbox .post-stats *{
  word-break:normal!important;
  overflow-wrap:normal!important;
}

/* Tablet / narrow desktop */
@media (max-width:1180px){
  html body .bs2382-lightbox-toolbar{
    left:10px!important;
    right:10px!important;
    gap:5px!important;
    padding:6px!important;
  }
  html body .bs2382-lightbox-toolbar .bs2382-lb-title{
    padding:0 8px!important;
    font-size:9px!important;
  }
  html body .bs2382-lightbox-toolbar .bs2382-lb-chip{
    padding:0 8px!important;
    font-size:9px!important;
  }
}

/* MOBILE / PWA:
   context label on row 1;
   three equal action buttons on row 2.
   Nothing wraps unpredictably or overlays the post header. */
@media (max-width:767.98px){
  html body .bs2382-lightbox .js_scroller{
    padding-top:132px!important;
  }

  html body .bs2382-lightbox-toolbar{
    top:10px!important;
    left:10px!important;
    right:10px!important;
    display:grid!important;
    grid-template-columns:repeat(3,minmax(0,1fr))!important;
    gap:7px!important;
    padding:8px!important;
    border-radius:18px!important;
  }

  html body .bs2382-lightbox-toolbar .bs2382-lb-title{
    grid-column:1 / -1!important;
    width:100%!important;
    height:34px!important;
    margin:0!important;
    justify-content:flex-start!important;
    padding:0 9px!important;
    border-radius:11px!important;
    font-size:9px!important;
  }
  html body .bs2382-lightbox-toolbar .bs2382-lb-title i{
    width:24px!important;
    height:24px!important;
    border-radius:8px!important;
    font-size:10px!important;
  }

  html body .bs2382-lightbox-toolbar .bs2382-lb-chip{
    width:100%!important;
    min-width:0!important;
    height:42px!important;
    padding:0 8px!important;
    gap:5px!important;
    border-radius:12px!important;
    font-size:10px!important;
  }

  html body .bs2382-lightbox-toolbar .bs2382-lb-chip.delete{
    margin-left:0!important;
  }

  /* More breathing room for the actions and reaction counts underneath */
  html body .bs2382-lightbox .post-header{
    padding-top:14px!important;
  }
  html body .bs2382-lightbox .post-actions{
    margin-top:8px!important;
  }
}

/* Very small phones: keep all 3 actions usable */
@media (max-width:380px){
  html body .bs2382-lightbox-toolbar{
    left:7px!important;
    right:7px!important;
    gap:5px!important;
    padding:6px!important;
  }
  html body .bs2382-lightbox-toolbar .bs2382-lb-chip{
    height:40px!important;
    padding:0 5px!important;
    font-size:9px!important;
  }
  html body .bs2382-lightbox-toolbar .bs2382-lb-chip i{
    font-size:10px!important;
  }
}

/* Desktop widescreen: keep action bar elegant instead of stretching */
@media (min-width:1400px){
  html body .bs2382-lightbox-toolbar{
    top:16px!important;
    left:18px!important;
    right:18px!important;
  }
  html body .bs2382-lightbox .js_scroller{
    padding-top:88px!important;
  }
}