* {
  box-sizing: border-box;
}

body {
  background: black;
  color: #cccccc;
  font-family: monospace;
  margin: 0;
}

header {
  background: #cccccc;
  color: black;
  overflow: hidden;
  padding: 4px 32px;
  position: fixed;
  top: 0;
  width: 100%;
}

header span {
  display: inline-block;
}

header a {
  color: black;
}

#instructions {
  display: none;
  float: right;
}

.legend {
  background: black;
  color: #cccccc;
  padding: 0 4px;
}

main {
  max-width: 640px;
  width: 96%;
  margin: 4em auto;
}

#postsTitle {
  padding: 4px 16px;
}

h1, h2, h3, h4 {
  font-weight: normal;
  display: inline-block;
}

p {
  margin-bottom: 20px;
  line-height: 150%;
}

a {
  text-decoration: underline;
  color: #cccccc;
}

#posts {
  list-style-type: none;
  padding: 0;
}

#posts a {
  padding: 8px 16px;
  color: #cccccc;
  text-decoration: none;
  display: block;
}

#posts a:focus {
  background: #cccccc;
  color: black;
  outline: none;
}

#posts a:after {
  content: '>';
  float: right;
}

#posts a:focus:after {
  content: '>';
  float: right;
}

img {
  max-width: 100%;
  display: block;
  margin-bottom: 8px;
}

@media (min-width: 640px) {
  #posts a {
    padding: 4px 16px;
  }

  #posts a:focus:after {
    content: '[ENTER]';
    float: right;
  }

  #posts a:after {
    content: '';
  }

  #instructions {
    display: inline-block;
  }

  .portraitPhotoRow {
    overflow: hidden;
  }

  .portraitPhotoRow img {
    max-width: calc(50% - 4px);
    float: left;
  }

  .portraitPhotoRow img:last-child {
    margin-left: 8px;
  }

}
