One note for the vertical gallery, is your vertical scroll bar will be at the very far right of your parent container.

You can use a smaller gallery width to show the scrollbar on the direct right in the container by making a separate container for your header row and setting the width beyond that of the parent container.  Doing so will allow you to scroll horizontally and maintain a scroll bar on the screen instead at the end of the horizontal scroll.

You will also need to "sync" the controls inside the gallery to the X position of your header rows columns so that they align when scrolling horizontally.  There is a slight delay when scrolling as they "sync" when the horizontal scroll happens.

We had a requirement to do this because the user wanted both vertical and horizontal scroll bars visible at all times.