/*reset*/

@import url('https://fonts.googleapis.com/css2?family=Jost:ital,wght@0,100..900;1,100..900&display=swap');

*{
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family:Arial, Helvetica, sans-serif;

}

@font-face {
    font-family: "Jost", sans-serif;;
    src: url();
}

html{
    font-size: 24px;
    line-height: 1.44;
    height: 100%;
    scroll-behavior: smooth;   
}

nav{
    background-color:#051207 ;
    text-align: center;
    padding: 15px;
    justify-content: end;
    grid-template-columns: 1fr 1fr;
    gap: 2.074rem;
    display: grid;
}

nav a::after{
    content: "";
    position:absolute;
    width: 0;
    height: 2px;
    display: block;
    margin-top: 5px;
    left: 0;
    background:#E13619;
    transition: width 0.3s ease-in-out;
}

nav a:hover::after{
    width: 100%;
}

nav a{
    text-decoration: none;
    color: white;
    position: relative;
    display: inline-block;
}

nav a:hover{
    background-color:#351428 ;
    display: block; 
}

/* header{
    background-color: #5F120F;
    animation:fadeInDown 0.9s ease-out forwards ;
}  */

h1{
    margin-top: 0;
    font-size: 1.728rem;
    text-align: center;
    background-color: #5F120F;
    padding: 30px;
    color: white;
    background-color: #5F120F;
    animation:fadeInDown 0.9s ease-out forwards ;
    opacity: 0;
    animation-delay: 0.3s;
}



body{
    background-color: #9D0916;
    

}

figcaption{
    width: 100%;
    text-align: center;
    font-size: 0.833rem;
    color: white;
    background-color:rgb(95, 18, 15);
}

#gallery{
    padding: .482rem;
    display: grid;
    gap: 0.482rem;
}

/* #gallery figure{ */
    /* padding: 0 0 1.2rem 0; */
/* } */

#gallery img{
   width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
}

#gallery img:hover{
    transition:transform 0.5s ease-in-out;
}

#gallery figure{
    overflow: hidden;
}

#gallery figure:hover img{
    transform: scale(1.1);
}


#gallery figcaption{
    transform: translateY(-0.528em);
    background-color: rgb(95, 18, 15);
    /* max-width: 400px; */
    /* border-radius: 15px; */
    padding: 0.5rem;

}

/* modal styles */

dialog{
    position:fixed;
    top: 5vh;
    max-width: 90vw;
    max-height: 90vh;
    margin: 0 auto;
} 

dialog::backdrop{
    background-color: rgb(33 33 33 /0.8);
}

dialog img{
    width: 100%;
    max-height: 80vh;
}


footer{
    background-color:#051207 ;
    text-align: center;
    padding: 15px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    /* position: fixed; */
    bottom: 0;
    width: 100%;
    justify-content: end;
    gap: 2.074rem;
    color: white;
    
} 

footer a{
    text-decoration: none;
    color: white;
    position: relative;
    display: inline-block;
}

footer a:hover{
    background-color:#351428 ;
    display: block; 
}


footer a::after{
    content: "";
    position:absolute;
    width: 0;
    height: 2px;
    display: block;
    margin-top: 5px;
    left: 0;
    background:#E13619;
    transition: width 0.3s ease-in-out;
}

footer a:hover::after{
    width: 100%;
}

p {
    color: white;
}

@keyframes fadeInDown {
    0%{
        opacity: 0;
        transform: translateY(-3.815rem);
    }
    100%{
        opacity:1;
        transform: translate(0);
    }
}


@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);
}
} 