<html>
  <body>
    <div class="container">
      <button>⏮Prev</button>
      <div class="image-container">
        <img class="gallery-item" src="https://imgix.bustle.com/uploads/image/2020/11/30/8c1feb87-9b38-457f-985c-c93fe73ab374-grogu-baby-yoda-the-child-1606497947.png?w=2000&h=640&fit=crop&crop=faces&auto=format%2Ccompress" alt="">
      </div>
      <button>
        Next ⏭
      </button>
    </div>
  </body>
</html>
.container {
  margin: auto;
  display: flex;
  align-items: center;
}

.image-container {
  margin: auto;
  width: 80%;
  flex: 1;
}

img.gallery-item {
  width: 100%;
}

button {
  margin: 10px;
}

External CSS

This Pen doesn't use any external CSS resources.

External JavaScript

This Pen doesn't use any external JavaScript resources.