@font-face {
  font-family: "Source Serif 4 Variable";
  font-weight: 200 900;
  font-style: normal;
  src: url("fonts/SourceSerif4Variable-Roman.ttf.woff2") format("woff2-variations");
}
@font-face {
  font-family: "Source Serif 4 Variable";
  font-weight: 200 900;
  font-style: italic;
  src: url("fonts/SourceSerif4Variable-Italic.ttf.woff2") format("woff2-variations");
}
@font-face {
  font-family: "Open Sans Variable";
  font-weight: 200 900;
  font-style: normal;
  src: url("fonts/OpenSans.woff2") format("woff2-variations");
}
:root {
  --image-frame-border-color-bright: #452b00;
  --image-frame-border-color-dark: #291900;
}

body {
  background: #e7e6e4;
  background-image: url("bg.jpg");
  background-repeat: no-repeat;
  background-size: cover;
  display: grid;
  grid-template-columns: fit-content(800px);
  grid-template-rows: auto 1fr auto;
  place-content: center;
  min-height: 100vh;
  font-family: "Source Serif 4 Variable";
  margin: 0;
  padding-left: 2rem;
  padding-right: 2rem;
  padding-top: 2rem;
  gap: 2rem;
  box-sizing: border-box;
}

header h1 {
  font-weight: 300;
  text-align: center;
  margin: 0;
  margin-bottom: 1rem;
  font-family: "Open Sans Variable";
}

main .about {
  margin-bottom: 2rem;
}
main .gallery {
  display: grid;
  gap: 2rem;
  grid-template-columns: repeat(3, 1fr);
}
main figure {
  display: flex;
  flex-direction: column;
  margin: auto;
  background: #fff;
  padding: 2rem;
  padding-bottom: 0.5rem;
  border-style: solid;
  border-width: 15px;
  border-top-color: var(--image-frame-border-color-bright);
  border-right-color: var(--image-frame-border-color-dark);
  border-bottom-color: var(--image-frame-border-color-bright);
  border-left-color: var(--image-frame-border-color-dark);
  border-radius: 2px;
  box-shadow: 2px 2px 6px rgba(0, 0, 0, 0.6);
}
main figure img {
  max-width: 100%;
}
main figure .caption {
  font-style: italic;
  color: rgba(0, 0, 0, 0.5);
  text-align: center;
  padding-top: 0.5rem;
}

footer {
  padding: 2rem;
  opacity: 0.8;
  background-color: rgb(255, 255, 255);
  backdrop-filter: blur(8px);
}
footer a {
  color: #181575;
  text-decoration: none;
}
footer ul {
  list-style-type: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}
footer ul li {
  text-align: center;
  margin: 0;
  padding: 0;
}

@media (max-width: 800px) {
  main .gallery {
    max-width: 100%;
    grid-template-columns: 1fr;
  }
}
