.viewer {
  margin: 0;
  padding: 0;
  border: none;
  top: 0;
  right: 0;
  height: 100vh;
  width: 100vw;
  max-height: none;
  max-width: none;
  outline: none;

  figure {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
    width: 100%;
    background-color: black;
  }

  img {
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 100%;
    user-select: none;
  }

  button {
    position: absolute;
    color: white;
    padding: 1rem;
    cursor: pointer;
  }

  button:nth-of-type(1) {
    right: 0.5rem;
    top: 0.5rem;
    padding: 1rem;
  }

  button:nth-of-type(2) {
    left: 0.5rem;
    padding: 3rem 1rem;
  }

  button:nth-of-type(3) {
    right: 0.5rem;
    padding: 3rem 1rem;
  }

  button:hover {
    opacity: 0.4;
  }

  figcaption {
    position: absolute;
    bottom: 0.5rem;
    right: 0.5rem;
    color: white;
    padding: 1rem;
    font-size: 1rem;
  }
}
