I am using react-image-gallery to have a slideshow on my webpage. I am fetching the data from a json file that looks like this.
"pastdogs": [
{
"description": " Buddy, Dog given to the king of England",
"original": "./puppies/firstday.jpg"
},
This is working fine, both the image and the description are showing up. The issue is the description is awkwardly on the side of the gallery.

I am wanting to make the description in the middle of the image, and preferably on the top. I can manipulate the entire gallery by using a wrapping a div around the component
<div className="container-fluid slider">
<ImageGallery
className=""
items={pastdogs}
showFullscreenButton={false}
autoplay={true}
></ImageGallery>
</div>
.slider {
width: 50% !important;
}
This reduces the size of the entire gallery, which is not ideal. How do I change only the description element? Thank you for your help and expertise.