* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

@font-face {
    font-family: GoblinOne-Regular;
    src: url(../fonts/GoblinOne-Regular.ttf);
}
@font-face {
    font-family: LibreBaskerville-Bold;
    src: url(../fonts/libre-baskerville/LibreBaskerville-Bold.ttf);
}

body {
    background-color: #D9D9D9;
}

nav {
  font-weight: bold;
  text-align: center;
  font-size: 28px;
  padding: 17px;
}

nav a {
    color: #000000;
    text-decoration: none;
    padding: 30px;
}

nav a:hover {
    text-decoration: overline;
    color: #9CC1E1;
    text-shadow: 2px 2px 5px #1d0347
}

header {
    background-color: #CCC4E7;
    padding: 0px;
    margin-bottom: 0px;
    text-align: center;
    text-shadow: 2px 2px 5px #9CC1E1;
}

h1 {
  font-size: 3.583rem;
  font-family: monospace;
}
figcaption {
  width: 100%;
  text-align: center;
  font-size: 0.833rem;
  font-family: Cambria, Cochin, Georgia, Times, 'Times New Roman', serif;
}

#gallery {
  padding: 1rem;
  display: grid;
  gap: 1rem;
  text-shadow: 2px 2px 5px #1a4f7d;
}

#gallery img {
  width: 100%;
  object-fit: cover;
  aspect-ratio: 4/5;
}

#gallery figcaption, dialog figcaption {
  background-color: #CCC4E7;
  transform: translateY(-0.433rem);
}

#gallery figure {
  padding: 0 0 1.2rem 0;
}

 dialog {
  position: fixed;
  top: 5vh;
  max-width:95vw;
  max-height: 90vh;
  margin: 0 auto;
 }

 dialog img {
  width: 100%;
  max-height: 80vh;
 }


footer {
  background-color:#E2DFAA;
  width: 100%;
  background-size: cover;
  padding: 30px;
  font-size: 17px;
  color: #252926;
  font-family: "Kavoon", serif;
  margin-top: 50px;
}

footer p {
  max-width: 50%;
  padding: 3px;
}

.gallery img {
  width: 100%;
  height: auto;
  object-fit: contain;
  display: block;
}

.gallery figure {
  overflow: visible;
}

@media screen and (min-width: 400px) {
  #gallery {
    grid-template-columns: 1fr 1fr;
  }
}

@media screen and (min-width: 800px) {
  #gallery {
    grid-template-columns: 1fr 1fr 1fr;
  }
}

@media screen and (min-width: 1200px){
  #gallery {
    grid-template-columns: repeat(4, 1fr);
  }

}s

#modal {
  width: 100%;
  height: 1000%;
  position: absolute;
  top: 0px;
  left: 0px;
  background-color: rgba(240, 248, 255, 0.806);
  text-align: center;
  z-index: 2;
  display: none;
} 

#modal img{
  width: 100%;
  max-width: 700px;
}