* {
    margin: 0px;
    padding: 0px;

}

body {
    background-color: #8FA3E4;
    background-image: url("../../img/image_1.png");
    
}

header {
    background-color: #8F90E4;
    background-image: url("../../img/image_1.png");
    padding: 2px;
    margin-bottom: 10px;
    text-align: center;
    font-family: "Whisper", cursive;
    font-weight: 400;
    font-style: normal;
    font-size: 30px; 
}   

header h1 {
    margin-bottom: 25px;
}

header nav {         
    display: inline-block;
    margin-right: 20px;
    padding: 5px;
    background-color: rgb(117, 184, 242);
    border-radius: 10px;
}

nav a {
    letter-spacing: 1px;
    color: black;
    text-decoration: none;
}

nav a:hover {
    color: white;
    bottom: 2px;
    position: relative;
}


footer {
    text-align: center;
    font-size: 20px;
}

figcaption {
    width: 100%;
    text-align: center;
    font-size: 15px;
    color: black;
    background: rgb(216 216 216 / .95);
    z-index: 999;
    position: relative;
    transform: translate(0, -4px);
}

#gallery {
    display: grid;
    gap: 1.44rem;
}

#gallery figure{
    padding: 0 0 1.2rem 0;
    overflow: hidden;
    cursor: pointer;
}

#gallery img{
    object-fit: cover;
    aspect-ratio: 16/9;
    width: 100%;
    transition: transform 0.5s
    
}

#gallery figure:hover img{
    transform: scale(1.2);
}

dialog{
    margin: 0 auto;
}

dialog img{
    max-height: 80vh;
}

@starting-style {
    dialog[open]::backdrop {
      background-color: rgb(0 0 0 / 0);
    }
  }

  dialog[open]::backdrop {
    background-color: rgb(0 0 0 / 0.8);
  }

  


@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);
    }
    
}


