* {
    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 {
    /* width: 100%; */
    max-width: 1200px;
    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%;
}

.gallery{
    padding: 0.482rem;
    display: grid;
    gap: 0.482rem;
    justify-content: center;
    position: relative;
}
.gallery img{
    max-width: 1200px;
    object-fit: cover;
    aspect-ratio: 16/9;
    outline: #FA905D;
}

.slideshow-container {
    position: relative;
    width: 100%;
    max-width: 1200px;
    background-color: #FAC15C;
    border-radius: 1rem;
    overflow: hidden;
}

.slide{
    display: none;
    width: 100%;
}
.slide img{
    width: 100%;
    /* max-width: 400px; */
    height: auto;
    object-fit: cover;
    display: block;
}

.slide.active{
    display: block;
}

.fade{
    animation: fade 1s ease-in-out;
}

@keyframes fade{
    from{
        opacity: 0;
    }
    to{
        opacity: 1;
    }
}

.prev, .next{
    cursor: pointer;
    position: absolute;
    top: 50%;
    width: auto;
    margin-top: -22px;
    padding: 16px;
    color: #FA735C;
    font-weight: bold;
    font-size: 18px;
    transition: 0.3s ease;
    border-radius: 3px;
    outline: #FA3E54;
    outline-style: auto;
    background-color: #FAC15C;
    user-select: none;
    border: none;
}

.pause-button{
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    background-color: rgba(0, 0, 0, 0.35);
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    font-size: 1rem;
    border-radius: 0.5rem;
    cursor: pointer;
    opacity: 0;
    pointer-events: none;
    transition: opacity 200ms ease-in-out, transform 200ms ease-in-out;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.15);
    z-index: 999;
}

.gallery:hover .pause-button{
    opacity: 1;
    pointer-events: auto;
}

.pause-button:active{
    transform: translate(-50%, -50%) scale(0.98);
}

.next{
    right: 0;
}

.prev{
    left: 0;
}

.prev:hover, .next:hover {
    background-color: #FAC7B0;
    transform: scale(1.25);
}

.dot_menu{
    text-align: center;
    padding: 10px;
    /* background-color: rgb(206, 179, 179); */
    user-select: none;
}

.dot{
    cursor: pointer;
    height: 15px;
    width: 15px;
    margin: 0 5px;
    background-color: rgb(96, 96, 96);
    border-radius: 50%;
    display: inline-block;
}

.dot.active{
    background-color: #FA3E54;
}

.dot:hover{
    background-color: #ffffff;
}

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(1fr);
    }

}