* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  background-color: rgb(71, 28, 28);
  color: rgb(255, 255, 255);  
}

a {
  text-decoration: none;
}

html {
  font-size: 24px;
  line-height: 1.44;
  height: 100%;
  scroll-behavior: smooth;
  font-family: 'Inter', sans-serif;
}

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


figcaption {
  width: 100%;
  text-align: center;
  font-size: 0.833rem;
  color: rgb(247, 236, 236);
}

#gallery{
  padding: 0.482rem;
  display: grid;
  gap: 0.482rem;
  
}

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

}

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

#gallery img:hover{
    transition:transform 0.5s ease-in-out;
}

#gallery figure{
    overflow: hidden;
}

#gallery figure:hover img{
    transform: scale(1.3);
}
#gallery figure:hover figcaption{
 transform: scale(1.1);
}

header img{
  max-width: 1600px;

}

#gallery figcaption, dialog figcaption{
  transform: translateY(-1.482rem);
  background: rgba(255, 0, 0, 0.7);
  transition: transform 0.5s ease;
}




dialog{
  position: fixed;
  max-width: 100vw;
  max-height: 100vh;
  margin: 0 auto;
  top: 5vh;
}

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

}



footer{
  width: 100vw;
  background-color: rgb(205 129 1 / 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: 1200px) {
  #gallery{
    grid-template-columns: repeat(4, 1fr);
  }
  
}