If you use the rtMedia plugin for Buddypress, you will need this patch for the media Lightbox to work correctly, the rtMedia team have figured out a solution for roots theme to work with rtMedia light-box. You need to make some modifications in base.php file of theme.
Following link will describe the changes :
here is the discussion on the rtMedia forum
Hope that helps!