I've spent several hours trying to correctly position left & right buttons in the correct place for any image I load. Here's an example of the way they should look:

I have a React component called FullSizeImage that is correctly centered, horizontally & vertically in a modal that covers 100% of my browser window. Now what I want to do is add a left button and a right button, have them vertically centered, and positioned left & right respectively over top of the image. But no matter what I've tried, I can't get it working!
Here's some sample layout code:
<div className={styles.container}>
<div className={styles.buttonContainer}>
<div>
<Button type={ButtonType.Circular} text='<' onClick={() => {}} />
<Button type={ButtonType.Circular} text='>' onClick={() => {}} />
</div>
</div>
<img src={`${item.path}${transformation}/${item.name}`} alt={item.name} />
</div>
I have complete flexibility how I introduce those two buttons in relation to the img element.
Any ideas how to do this properly - ie. HTML layout and corresponding CSS?
