body {
  max-width: 925px;
  margin: auto;
  font-family: "Slabo 27px", serif;
  font-size: 20px;
  text-align: justify;

  color: #222;
  background: #fdfdea;
}

#header {
  padding: 15px 12px 3px 12px;
  margin: 10px 10px 0 10px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;

  border-radius: 5px;
  background:
    linear-gradient(to bottom, #fae4b5, transparent 15px),
    linear-gradient(to top, #fae4b5, transparent 15px),
    linear-gradient(to left, #fae4b5, transparent 15px),
    linear-gradient(to right, #fae4b5, transparent 15px),
    #f5efd2;
}

#header a {
  color: #333;
  text-decoration: none;
}

#logo {
  font-family: "Special Elite", system-ui;
  font-size: 45px;
  text-align: left;
}

#navigation {
  margin-left: auto;
  margin-bottom: 5px;
  margin-top: 3px;
}

#navigation a {
  font-variant-caps: small-caps;
  font-size: 25px;

  border-left: solid 3px #555;
  padding-left: 10px;
  margin-left: 10px;
}

#navigation a:hover {
  text-decoration: underline;
}

#navigation a:first-of-type {
  border: none;
  margin: 0;
  padding: 0;
}

#content {
  padding: 0 10px;
}

#gallery {
  list-style: none;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
}

#gallery li {
  margin: 5px;
  flex-grow: 1;
}

#gallery li:last-child {
  flex-grow: 100;
}

#gallery img {
  min-height: 25vh;
  max-height: 40vh;
  min-width: 100%;
  object-fit: contain;
}

@media (max-height: 480px) {
  #gallery img {
    min-height: 60vh;
    max-height: 80vh;
  }
}

@media (max-aspect-ratio: 1/1) and (max-width: 480px) {
  #gallery {
    flex-direction: row;
  }

  #gallery li {
    width: 100%;
  }

  #gallery img {
    max-width: 100%;
    max-height: 75vh;
  }
}