@import url("https://fonts.googleapis.com/css2?family=Nunito&display=swap");
body {
  margin: 0;
  padding: 0;
  background-color: #ccc;
  font-family: Nunito, Arial, sans-serif;
}
header,
footer {
  background-color: #2980e2;
  color: white;
}
h1 {
  margin: 0;
  padding: 20px 0 10px 0;
  text-align: center;
}
.menu-div {
  display: flex;
  justify-content: center;
}
button p {
  margin: 5px;
  color: white;
  font-size: 1.3em;
}
nav a {
  padding: 20px;
  color: white;
  display: block;
  text-align: center;
}
.hide {
  display: none;
}
.menu-btn {
  cursor: pointer;
  border: none;
  background-color: transparent;
}
h2 {
  text-align: center;
}
.img-grid {
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  justify-items: center;
  padding: 0 20px;
}
.gallery-display {
  margin: 1em;
  object-fit: cover;
  width: 250px;
  aspect-ratio: 1 / 1;
  border: 3px solid white;
  box-shadow: 1px 1px 4px 1px black;
  border-radius: 3px;
}
footer {
  text-align: center;
}
footer p {
  margin: 0;
  padding: 5px;
}

/* modal */
dialog {
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.75);
}
dialog img {
  width: 90%;
  display: block;
  margin: 20vh auto;
}
/* I can't seem to figure out how to make the X button stick to the top right of the image.
Currently, when the screen is wider than the image will display, the button sticks to the
right edge of the screen. */
.close-viewer {
  position: absolute;
  top: 18vh;
  right: 2vh;
  padding: 1px 5px;
  font-size: 1.5em;
}

@media screen and (min-width: 700px) {
  .img-grid {
    grid-template-columns: 1fr 1fr;
  }
  dialog img {
    max-width: 800px;
  }
}

@media screen and (min-width: 1000px) {
  .img-grid {
    max-width: 1000px;
    grid-template-columns: 1fr 1fr 1fr;
  }
  .menu-btn {
    display: none;
  }
  nav a {
    display: inline;
  }
  nav {
    text-align: center;
  }
}
