I tried this code but its not working:
/* Align center gallery thumbnails */
.gallery-slideshow-thumbnails {
display: flex !important;
justify-content: space-between !important;
align-items: center !important;
}
/* Prevent thumbnails from moving */
.gallery-slideshow-thumbnail {
flex: 0 0 auto !important;
}