/* heavily inspired by "Web Design in 4 minutes" https://jgthms.com/web-design-in-4-minutes/ */

body {
  margin: 0 auto;
  max-width: 50em;
  text-align: justify;
  text-justify: inter-word;
  font-family: "Helvetica", "Arial", sans-serif;
  line-height: 1.2;
  padding: 4em 1em;
  background: #eee;
}

h1 {
  text-align: center;
  font-variant: small-caps;
}

h2 {
  margin-top: 1em;
  padding-top: 1em;
}

img {
  max-width: 90%;
  height: auto;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.caption {
  max-width: 90%;
  margin-left: auto;
  margin-right: auto;
  font-style: italic;
}

/* aspect ratio stuff ganked from https://stackoverflow.com/a/35153397 */

.aspect-ratio {
  position: relative;
  width: 100%;
  height: 0;
}

.aspect-ratio iframe {
  position: absolute;
  width: 100%;
  height: 100%;
  left: 0;
  top: 0;
}
