You could use CSS to center the whole gallery, but instead I would suggest that you add a $content_width
variable so that the gallery uses the whole width available in your theme’s content area.
To do so, just add the following to your theme’s functions.php file:
if ( ! isset( $content_width ) )
$content_width = 600;
Of course, you’ll want to adjust the value to your own theme.
You can read more about it here:
https://codex.www.ads-software.com/Content_Width
If you do not want to make changes to your theme, you can use this plugin instead:
https://www.ads-software.com/plugins/custom-content-width/