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






.body{
    background-color: rgb(216, 18, 18);
}
html {
  font-size: 24px;
  line-height: 1.44;
  height: 100%;
  scroll-behavior: smooth;
  font-family: 'Inter', sans-serif;
}

figure{
  margin-bottom: 40px;
}



h1 {
  margin-top: 0;
  font-size: 1.728rem;
  text-align: center;
  background-color: rgba(222, 142, 3, 0.9);
}


figcaption {
  width: 100%;
  text-align: center;
  font-size: 10px;
  color: rgb(255, 219, 219);
  font-size: 0.9rem;
}

#gallery{
  max-width: 800px;
  margin: 40px auto;
  padding: 20px;
  display: grid;
  gap: 20px;
  
}

#gallery img, header img{
  width: 100%;

}

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


header img{
  max-width: 1600px;

}

#gallery figcaption, dialog figcaption{
  transform: translateY(-1.482rem);
  background: rgba(128, 7, 7, 0.7);
}


/* modal styles */

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

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

}
.box{
  position: relative;
  left: 20px;
}




footer{
  width: 100vw;
  background-color: rgba(9, 226, 223, 0.811);
  color: rgba(102, 3, 3, 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: 1200px) {
  #gallery{
    grid-template-columns: repeat(4, 1fr);
  } 

}