html {
  background: white;
}

body {
  margin: 32px 8%;
  color: black;
  background: white;
  font-family: "Courier New", Courier, monospace;
  font-size: 24px;
  line-height: 1.16;
}

h1 {
  margin: 0 0 46px;
  font-size: 48px;
  line-height: 1;
}

p {
  margin: 0 0 30px;
}

a {
  color: #0000ee;
  text-decoration: underline;
}

a:visited {
  color: #551a8b;
}

a:active {
  color: #ff0000;
}

dl {
  margin: 32px 0;
}

dt {
  margin-top: 6px;
}

dd {
  margin-left: 80px;
}

img {
  display: block;
  max-width: 520px;
  width: 100%;
  height: auto;
  margin: 0 0 30px;
}

button {
  padding: 0;
  border: 0;
  color: #0000ee;
  background: transparent;
  font: inherit;
  text-decoration: underline;
  cursor: pointer;
}

body.is-viewing-photo {
  overflow: hidden;
}

.photo-roll img {
  cursor: pointer;
}

.photo-viewer {
  position: fixed;
  inset: 0;
  z-index: 1;
  box-sizing: border-box;
  overflow: auto;
  padding: 32px 8%;
  background: white;
  overscroll-behavior: contain;
  touch-action: auto;
}

.photo-viewer[hidden] {
  display: none;
}

.photo-viewer-controls {
  position: sticky;
  top: 0;
  margin-bottom: 24px;
  background: white;
}

.photo-viewer-image {
  max-width: none;
  width: auto;
  max-height: calc(100vh - 130px);
  margin: 0 auto 30px 0;
  transform-origin: left top;
  touch-action: auto;
}

small {
  font-size: 70%;
}

@media (max-width: 620px) {
  body {
    margin: 18px 14px;
    font-size: 20px;
  }

  h1 {
    margin-bottom: 32px;
    font-size: 38px;
  }

  p {
    margin-bottom: 24px;
  }

  dd {
    margin-left: 34px;
  }

  .photo-viewer {
    padding: 18px 14px;
  }

  .photo-viewer-image {
    max-width: 100%;
    max-height: none;
  }
}
