/* organized in order */

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}


html {
  font-size: 18px;
  line-height: 1.44;
  height: 100%;
  scroll-behavior: smooth;
  font-family: 'Inter', sans-serif;
}

header{
  text-align: center;
}

h1 {
  color: #eeeef0;
  margin-top: 0;
  font-size: 1.728rem;
  text-align: center;
  background-color:  #081442;
  font-family:Georgia, 'Times New Roman', Times, serif;
  
}

body {
  background-color: #081442;
}

nav{
  text-align: center;
}

nav a {
  text-decoration: none;
  background-color: #2b3d85;
  font-family:Georgia, 'Times New Roman', Times, serif;
  color: #eeeef0;
  padding: 0 1.5rem;
}


nav a:hover {
  color: #d0d0d4;
}

figcaption {
  width: 100%;
  text-align: center;
  font-size: 0.833rem;
  color: rgb(255, 255, 255);
}

#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;
}


header img{
  max-width: 1600px;

}

#gallery figcaption, dialog figcaption{
  transform: translateY(-1.482rem);
  background: rgba(80, 105, 216, 0.897);
}

 dialog {
  position:fixed;
  top: 5vw;
  max-width:95vw;
  max-height: 90vh;
  margin: 0 auto;
}

 dialog img {
  width: 100%;
  max-height: 75.5vh;
  padding: 0.694rem; 
}

 dialog button {
  font-size: 1.2rem;
  margin: 0.694rem;
}

dialog form {
  text-align:right;
}


/* modal styles */

dialog img {
    max-width: 90vw;
    max-height: 80vh;
}
dialog {
    position: fixed;
    top: 5vh;
    max-width: 90vw;
    max-height: 90vh;
    margin: 0 auto;
}

@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);
  }
  
}


footer {
  background-color:#4059e6;
  width: 100%;
  background-size: cover;
  padding: 35px;
  font-size: 17px;
  color: #000000;
  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;
}


