html,
body {
  margin: 0;
  padding: 0;

  font-family: sans-serif;
  font-size: 16px;
  line-height: 2;

  min-height: 100%;
}

#logo {
  width: 128px;
}

h1 {
  line-height: 1;
}

.pre {
  font-family: monospace;
}

header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

small {
  font-size: 0.75em;
}

body {
  max-width: 1024px;
  margin: auto auto;
}

video {
  max-width: 100%;
  height: auto;
}

.gallery {
  list-style: none;
  display: flex;
  flex-flow: row wrap;
  justify-content: space-between;
  align-items: stretch;
  margin: 0;
  padding: 0;
}

.gallery li {
  flex: 1 0 50%;
}

.photo {
  margin: 1em;
  overflow: hidden;
  position: relative;
}

.photo .aspect {
  width: 100%;
}

.photo .baked {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.05);
  filter: blur(20px);
  opacity: 1;
  transition: opacity 0.3s ease-in;
}

.photo .fullsize {
  width: 100%;
  height: auto;
  opacity: 0;
  position: absolute;
  top: 0;
  left: 0;
  object-fit: cover;
  transition: opacity 0.3s ease-out;
}

.no-transitions .photo .fullsize {
  position: relative;
  transition-duration: 0s;
}

.photo.loaded .fullsize {
  opacity: 1;
}

.photo.loaded .baked {
  opacity: 0;
}

@media (max-width: 920px) {
  .gallery li {
    flex-basis: 100%;
  }

  .photo {
    margin-top: 0;
  }
}
