
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}


html {
    font-size: 24px;
    line-height: 1.44;
    height: 100%;
    scroll-behavior: smooth;
    font-family: 'Inter', sans-serif;
}
nav {
    background-color: #FA3E54;
    padding-bottom: 0px;
    font-size: 0.85em;
}
nav a {
    font-size: clamp(0.9rem, 2vw, 2.44rem);
    text-decoration: none;
    color: white;
    outline: #FAC15C;
    outline-width: 1em;
    font-family: "Zalando Sans", sans-serif;
}

#top {
    grid-template-columns: 1fr 1fr 1fr;
    gap: 1rem;
    display: grid;
    justify-items: center;
}

body{
    background-color: #FAC7B0;
}

h1 {
    margin-top: 0;
    font-size: 1.728rem;
    text-align: center;
    background-color: #FA735C;
    color: white;
}



#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;
    outline: #FA905D;
    outline-width: 1em;
    outline-style: auto;
    opacity: 0.5;
    transition: opacity 500ms;
}

#gallery img:hover{
    opacity: 1;
}


header img {
    max-width: 1600px;
}

#gallery figcaption,
dialog figcaption {
    transform: translateY(-0.328rem);
    background: hsl(0, 0%, 100%);
    border-bottom-left-radius: 1em;
    border-bottom-right-radius: 1em;
    font-size: 0.65em;

}

#gallery figcaption{
    max-width: 400%;
    width: 100%;

}
dialog figcaption{
    width: 100%;
    max-width: unset;
}

figcaption {
    width: 100%;
    text-align: center;
    font-size: 0.833rem;
    color: rgb(16 16 16 /1);
    max-width: 400%;
}


dialog {
    max-width: 95vw;
    max-height: 95vh;
    overflow: hidden;
    margin: 0 auto;
    top: 10vh;
}

dialog img {
    max-width: 90vw;
    max-height: 80vh;

}



footer {
    width: 100vw;
    background-color: #FA3E54;
    color: rgb(240 240 240 / 0.95);
    text-align: center;
}

@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(6, 1fr);
    }

}