.main {
  display: flex;
  align-items: center;
  justify-content: center;
}
.main figure {
  height: 80%;
  width: 80%;
}
.main img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.prevnext {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  left: 0;
  right: 0;
  display: flex;
  justify-content: space-between;
}
.prevnext a,
.prevnext span {
  padding: 1.5rem;
  text-decoration: none;
}

.prevnext span {
  color: #555;
}
