.pig{
    width: 7vh;
    transition: 1.2s;
    z-index: 1;
}

.pig:hover{
    width: 8vh;
}


figcaption{
    width: 100%;
    text-align: center;
    font-size: 0.833rem;
    color: white;
}

#gallery{
    display: grid;
    gap: 0.482rem;
    grid-template-columns: 1fr;
    padding: 0.482rem;
    z-index: 1;
}

#gallery figure {
    /* padding: 0 0 1.2rem 0; */
    cursor:zoom-in;
}

#gallery img {
    width: 100%;
    max-width: 400px;    
    object-fit: cover;
    aspect-ratio: 16/9;
    
}

#gallery figcaption{
    transform: translateY(-0.482rem);
}

footer{
    text-align: center;
}

form{
translateY:-50vh;
}

form button{
    text-align: center;
    aspect-ratio: 1/1;
    color: white;
    background-color: black;
    border-radius: 0.4vh;
    padding: 0.3%;
    transition: 0.6s;
    cursor:pointer ;
    top: 5vh;
    max-width:95vh ;
    max-height: 90vh;
    margin: 0 auto;

}

form button:hover{
    text-align: center;
    aspect-ratio: 1/1;
    color:black;
    background-color: white;
    border-radius: 0.4vh;
    padding: 0.5%;
}


/* modal styles */
dialog:open {
  opacity: 1;
  transform: scaleY(1);
}

dialog{
    position: fixed;
    top: 5vh;
    max-width:95vh ;
    max-height: 90vh;
    margin: 0 auto;
    transition:
    opacity 0.4s ease-out,
    transform 0.4s ease-out,
    overlay 0.4s ease-out allow-discrete,
    display 0.4s ease-out allow-discrete;
}

dialog img{

width: 100%;
max-height:80vh;
margin: 0 auto;
}

dialog::backdrop{
    background: rgb(16, 16, 16 /0.8);
}


@starting-style {
  dialog:open {
    opacity: 0;
    transform: scaleY(0);
  }
}

@media screen and (min-width:500px) {
    #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) ;

    }
}