How to "wrap" content around Related Boxes in the content

If you are using theme feature "Related Boxed" to be displayed in the post, you can encounter some strange behaviour with large images and videos. This is due to "floating" related boxes on the side.

To remove such behaviour, you just need to place your "problematic" content inside "Flex content" format. Like this:

The result is as follows: