* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}
body {
    background-color: #899fbb;
}
nav {
  font-weight: bold;
  text-align: right;
  font-size: 1.44rem;
  display: grid;
  grid-template-columns: repeat(3, min-content);
  justify-content:right;
}

nav a {
    color: #ffffff;
    text-decoration: none;
    padding: 23px;
    text-align: right;
}

nav a:hover {
    text-decoration:underline;
    color: #000000;
}

header {
    background-image: url(https://i.pinimg.com/1200x/32/07/3d/32073d92ca4748738ee0c946ea966b6e.jpg);
    width: 100%;
    background-position: center ;
    background-size: cover;
    padding: 11.391rem;
    margin-bottom: 50px;
}

h1 {
  font-size: 2.44rem;
  font-optical-sizing: auto;
  color: #ffffff;
}

h4 {
  padding: 0.8rem;
  color: #ffffff;
}
figcaption {
  width: 100%;
  text-align: center;
  font-size: 1rem;
  padding: 1px;
}

#art-gallery {
  padding: 1rem;
  display: grid;
  gap: 1rem;
  margin-top: 30px;
}

#art-gallery img {
  width: 350px;
  height: 370px;
  object-fit: cover;
  aspect-ratio: 4/5;
  filter: brightness(90%); 

}


#art-gallery figure {
  padding: 0 0 1.2rem 0; 

}

#art-gallery figure {
  display: inline-block;
  margin: 12px;
}

#art-gallery img {
  transition: 
    transform 0.3s ease,
    box-shadow 0.3s ease;
  border-radius: 8px;
}

#art-gallery figure:hover img {
  transform: scale(1.2);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.25);
  z-index: 10;
}


footer {
  background-color:#f1eef3;
  width: 100%;
  background-size: cover;
  padding: 35px;
  font-size: 17px;
  color: #7d7cac;
  margin-top: 50px;
}

.footer-socials {
  transition: opacity 1% ease;
  position: relative;
  bottom: 6px;
}

.footer-socials img {
  height: 24px;
}


footer p {
  max-width: 60%;
  padding: 5px;
}

@media screen and (min-width: 400px) {
  #art-gallery {
    grid-template-columns: 1fr 1fr;
  }
}

@media screen and (min-width: 800px) {
  #art-gallery {
    grid-template-columns: 1fr 1fr 1fr;
  }
}

@media screen and (min-width: 1200px){
  #art-gallery {
    grid-template-columns: repeat(4, 1fr);
  }
}