body {
  background-color: #eee;
  font-family: "Roboto", "Helvetica Neue", arial;
}

.header {
  background: black;
  margin: 0 auto 2ex auto;
  text-align: center;
}

.header img, .post .header img {
  cursor: pointer;
  display: block;
  height: auto;
  margin: 0 auto;
  max-width: min(500px, 90%);
}

.header .subtitle {
  color: #fff;
  margin-bottom: 2ex;
}

.site-nav {
  background-color: #000;
  text-align: center;
}

.site-nav a {
  color: #fff;
  text-decoration: none;
}

.nav-item {
  display: inline-block;
  padding: 1ex 3ex;
}

.nav-item:hover {
  background-color: #ddd;
}

.nav-item:hover a {
  color: #000;
}

.home {
  text-align: center;
}

#search {
  display: none;
  margin-bottom: 2ex;
}

#search input {
  font-size: x-large;
  padding: 0.5ex;
}

.item {
  background-color: #fff;
  border: 1px solid #ddd;
  border-left: 1px solid #ccc;
  border-top: 2px solid #aaa;
  display: inline-block;
  height: 220px;
  margin: 2px;
  padding: 10px;
  position: relative;
  text-align: center;
  vertical-align: text-bottom;
  width: 220px;
}

span.title {
  color: #ccc;
  display: block;
  font-size: 18px;
  font-weight: 200;
  height: 20px;
  line-height: 20px;
  margin: 0;
  overflow: hidden;
  position: absolute;
  text-align: center;
  text-decoration: none;
  text-overflow: ellipsis;
  top: 10px;
  white-space: nowrap;
  width: 220px;
}

span.title a {
  color: #777;
  text-decoration: none;
}

.img-container {
  display: table-cell;
  height: 220px;
  position: relative;
  text-align: center;
  top: 0;
  vertical-align: middle;
  width: 220px;
}

.img-container img {
   margin: auto;
   max-height: 160px;
   max-width: 220px;
   vertical-align: middle;
}

.post {
  text-align: center;
}

.post img {
  max-width: 100%;
}

.post .date {
    color: #555;
}

#prev, #next {
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 1ex;
    color: #ccc;
    cursor: pointer;
    font-size: 200%;
    padding: 1ex;
    position: fixed;
    top: 50vh;
}

#prev {
    left: 2ex;
}

#next {
    right: 2ex;
}

#prev:hover, #next:hover {
    background-color: rgba(255, 255, 255, 0.5);
}

.home, .page-content {
  margin: 0 5%;
}

.page .header {
  margin-bottom: 0;
}

.page-content {
  background-color: #fff;
  box-sizing: border-box;
  margin: 0 auto;
  padding: 2ex;
}

.page-content li {
  margin: 8px 0;
}

.footer {
  font-size: 70%;
  margin: 2ex;
  text-align: right;
}
