body {
  padding: 0;
  margin: 0;
  font-family: 'Roboto', sans-serif;
  font-size: 14px;
  position: relative;
}

h1 {
  font-family: 'Roboto Mono', monospace;
  font-size: 16px;
  margin: 5px;
}

article {
  width: 60%;
  max-width: 1000px;
  min-width: 500px;
  padding: 0;
  margin: auto;
  padding-bottom: 80px;
}

article .title {
  margin: 10px 0;
  font-family: 'Roboto Mono', monospace;
  font-size: 14px;
}

article img {
  height:100%;
  width:100%;
  max-width: 100vw;
  max-height: calc(100vh - 75px - 80px);
  margin: 0;
  padding: 0;
  object-fit: scale-down;
}

article .description {
  margin-top: 10px;
}

article .trigger {
  font-size: 12px;
  color: #aaaaaa;
  cursor: pointer;
}

article .description .trigger.close, article .description .description_content {
  display: none;
}

@media screen and (max-width: 520px) {
  article {
      width: calc(100% - 20px);
      min-width: 100px;
      margin-right: 10px;
      margin-left: 10px;
  }

  article img {
    max-width: 100%;
  }
}

/* Navigation arrows */
div.nav {
    position: fixed;
    bottom: 0;
    right: 0;
    padding: 5px;
}
div.nav a {
    font-size: 30px;
    text-decoration: none;
    display: inline-block;
    padding: 8px 21px;
    color: #aaa;
}

div.nav a:hover {
    background-color: #efefef;
    color: #aaa;
}

div.nav .round {
    border-radius: 50%;
}

div.nav.album {
  position: absolute;
  height: 80px;
  width: 100%;
  padding: 0;
  margin: 0;
}

div.nav.album img {
  max-height: 80px;
}

div.nav.album a {
  display: inline-block;
  position: absolute;
  top: calc(50% - 50px/2);
  left: calc(50% - 50px/2);

  text-decoration: none;
  color: rgba(240,240,240,0.9);
}

div.nav.album div.previous {
    position: absolute;
    left: 5px;
    bottom: 5px;
}

div.nav.album div.next {
    position: absolute;
    right: 5px;
    bottom: 5px;
}

div.nav.album a:hover {
    background-color: rgba(255,255,255,0.8);
    color: #aaa;
}
