/* InsightBD R47 — menu text visibility without changing either brand's logo/footer. */
/* Desktop dropdown entries should not wrap short brand or page labels. */
body .ib-projects-nav .ib-projects-subnav {
  width:max-content!important;
  min-width:240px!important;
  max-width:calc(100vw - 20px)!important;
  box-sizing:border-box!important;
}
body .ib-projects-nav .ib-projects-subnav>a {
  white-space:nowrap!important;
  word-break:normal!important;
  overflow-wrap:normal!important;
  max-width:100%!important;
  box-sizing:border-box!important;
}
/* Keep the popup within the viewport near the right edge of the mobile grid. */
@media(max-width:1024px){
  body .ib-r27-mobile-nav-links>.ib-projects-nav>.ib-projects-subnav{
    width:max-content!important;
    min-width:min(240px, calc(100vw - 16px))!important;
    max-width:calc(100vw - 16px)!important;
    overflow-x:auto!important;
    -webkit-overflow-scrolling:touch;
  }
  body .ib-r27-mobile-nav-links>.ib-projects-nav:nth-child(4n+3)>.ib-projects-subnav,
  body .ib-r27-mobile-nav-links>.ib-projects-nav:nth-child(4n+4)>.ib-projects-subnav{
    right:0!important;left:auto!important;
  }
  body .ib-r27-mobile-nav-links>.ib-projects-nav>.ib-projects-subnav>a{
    white-space:nowrap!important;
  }
}
