/*Variables*/
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background-color: rgb(198, 173, 145);
}

/* In this method of CSS Grid, we use grid-template-areas to establish
BOTH the columns and the rows. Each column contains a name, while the
rows are repeated.*/
#container {
  display: grid;
  grid-template-areas: "header header header" "main main main" "footer footer footer";
  width: 80%;
  max-width: 1080px;
  font-family: Helvetica, Ariel, sans-serif;
  margin: 20px auto;
  background-color: white;
  border: 2px solid black;
  border-radius: 15px;
}

/* use the grid-area property to assign an area to each element.*/
header {
  grid-area: header;
  text-align: center;
  background-color: #DBEAF0;
  padding: 0.8em;
  border-top-left-radius: 15px;
  border-top-right-radius: 15px;
}

main {
  grid-area: main;
  display: grid;
  grid-template-rows: 1fr 1fr 1fr;
  grid-template-columns: auto auto auto;
  justify-content: center;
  gap: 15px;
  background-color: #ccb9da;
  padding: 0.5em;
  text-align: center;
}

h3 {
  margin-top: 20px;
}

figure {
  width: 100%;
  height: 100%;
  -o-object-fit: cover;
     object-fit: cover;
  border: 1px solid black;
  background-color: white;
}

img {
  width: 300px;
  height: 300px;
  -o-object-fit: cover;
     object-fit: cover;
}

figure:hover {
  box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
}

figcaption {
  padding: 15px;
  text-align: center;
  background-color: white;
}

footer {
  grid-area: footer;
  color: white;
  background-color: black;
  text-align: center;
  padding: 1.2em;
  border-bottom-left-radius: 13px;
  border-bottom-right-radius: 13px;
}

@media only screen and (max-width: 600px) {
  #container {
    display: grid;
    grid-template-areas: "header  " "main  " "footer ";
  }
  main {
    grid-area: main;
    display: grid;
    grid-template-rows: 1fr;
    grid-template-columns: auto;
    justify-content: center;
    gap: 15px;
  }
}/*# sourceMappingURL=gallery.css.map */