body {
  box-sizing: border-box;
  font-family: Arial;
  margin: 0;
  background-color: #333;
  height: 100vh;
}

header {
  background-color: white;
  padding: 20px;
  text-align: center;
}

header h1 {
  color: #481212;
  font-weight: 300;
  margin-bottom: 10px;
}

main {
  width: 1000px;
  padding: 5px;
  box-sizing: border-box;
  margin: 0 auto;
  background-color: #eee;
}

.btn {
  display: inline-block;
  background-color: firebrick;
  padding: 6px 12px;
  color: #fff;
  border-radius: 18px;
  text-decoration: none;
  transition: 0.3s;
}

.btn:hover {
  filter: brightness(1.1);
}

.hes-gallery {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr;
  grid-gap: 10px;
  padding: 10px;
  columns: 5;
}

.hes-gallery img {
  width: 100%;
  object-fit: cover;
  transition: 0.3s;
  cursor: pointer;
}

.hes-gallery img:hover {
  transform: scale(1.04);
  box-shadow: 2px 2px 6px #555;
}

h2 {
  margin-top: 30px;
  margin-bottom: 5px;
  font-variant: small-caps;
  text-align: center;
  color: #481212;
}

p {
  margin: 0;
}

.flex-center { align-items: center; justify-content: center; flex-direction: column; } 

/* unvisited link */
a:link {
  color: #666;
}

/* visited link */
a:visited {
  color: #666;
}

/* mouse over link */
a:hover {
  color: red;
}

/* selected link */
a:active {
  color: #666;
}

@media (max-width: 800px) {
  main {
    width: 100%;
  }
  header img {
    width: 80%;
    object-fit: contain;
  }
  .hes-gallery {
    grid-template-columns: 1fr 1fr 1fr;
  }
}

@media (max-width: 500px) {
  .hes-gallery {
    grid-template-columns: 1fr 1fr;
  }
}
