/* reset */

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


html {
  font-size: 24px;
  line-height: 1.44;
  height: 100%;
  scroll-behavior: smooth;
  font-family: Impact, Haettenschweiler, 'Arial Narrow Bold', sans-serif;
}

h1 {
  margin-top: 0;
  font-size: 1.828rem;
  text-align: center;
  background-color: rgba(213, 239, 16, 0.9);
}


figcaption {
  width: 100%;
  text-align: center;
  font-size: 0.833rem;
  color: rgb(4, 5, 0);
  gap: 2.482rem;
}


 #gallery {
  padding: 1.582rem;
  display: grid;
  gap: 2.482rem;

 }
  



footer{ 
width: 100vw;
background-color: skyblue;
color: darkviolet;
}


#gallery img{
  width: 100%;
  max-width: 700px;
  object-fit: cover;
  aspect-ratio: 16/9;
}


header img{
  
  width: 100%;
    aspect-ratio: 16 / 3;
    object-fit: cover;  
}

#gallery figcaption, dialog figcaption{
  transform: translateY(0.182rem);
  ;
}


/* modal styles */

dialog{
  max-width: 95vw;
  max-height: 95vh;
  overflow: hidden;
  margin: 0 auto;
  top: 10vh;
}

dialog img{
  max-width: 90vw;
  max-height: 80vh;

}



footer{
  width: 100vw;
  background-color: rgba(130, 218, 232, 0.9);
  color: rgb(240 240 240 / 0.95);
}

@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: 1600px) {
  #gallery{
    grid-template-columns: repeat(4, 1fr);
  }
  
}