html {
  font-family: Avenir, sans-serif;
  font-size: 16px;
  display: flex;
  justify-content: center;
}

body {
  height: 100vh;
  width: 960px;
  background-color: white;
  color: black;
  margin-left: 20px;
  margin-right: 25px;
  padding-bottom: 50px;
}

nav {
  border-bottom: 2px solid black;
}

nav a {
  text-decoration: none;
  outline-color: transparent;
  line-height: 2;
  color: black;
}

.menu {
  display: flex;
  gap: 15px;
}

main {
  margin-bottom: 60px;
}

h1 {
  text-transform: uppercase;
  font-size: 1.5rem;
}
h1 a {
  text-decoration: none;
  color: black;
}

h1 a span {
  color: red;
}

.gallery {
  display: flex;
  gap: 20px;
}

figure {
  display: table;
  align-items: right;
  justify-content: center;
  max-height: fit-content;
  margin: 0;
}

figcaption {
  display: table-caption;
  caption-side: bottom;
  vertical-align: top;
  font-style: italic;
}

img {
  max-width: 100%;
  vertical-align: middle;
  height: 16rem;
  width: 16rem;
  object-fit: cover;
  border-radius: 8px;
}

@media only screen and (max-width: 640px) {
  .gallery {
    flex-direction: column;
  }
  img {
    height: 100%;
    width: 100%;
  }
  nav {
    flex-direction: column;
  }
  footer address {
    flex-direction: column;
  }
}
footer {
  text-align: center;
  border-top: 1px solid black;
  margin-top: auto;
  bottom: 0;
  padding-bottom: 1rem;
  width: 100%;
  position: relative;
  font-size: 0.8em;
}
footer address {
  font-style: normal;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
