When trying to add a new media item under a bucket item, the item is not added directly under the selected item, but instead, it is added under the parent item as a sibling item.
To resolve the issue, add the media folder template to the base templates of your custom bucket media folder.