* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;

}

body {
    margin: 0px;
    padding: 0;
    background: #333;

}

li {
    list-style: none;
    display: inline;
    padding: 0px 14px;
}

.container {
    position: relative;
    max-width: 1024px;
    margin: auto;
}

.main-img {

    background-color: rgb(128, 128, 128);
    top: 0;
    display: flex;
    justify-content: space-between;

}

.big-img img {
    height: 600px;
    max-width: 100%;
    /* ocject-fit crops the image inside the grid */
    object-fit: scale-down;
    display: block;
}

.main-img_button {
    flex: 0 0 40px;
}

button img {

    max-width: 100%;
    /* https://stackoverflow.com/questions/3680429/click-through-div-to-underlying-elements */
    pointer-events: none;
}

.imgs {
    height: 62px;
    width: 80%;
    margin: 0.5em auto;
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    overflow: hidden;
    overflow-x: scroll;
}

.imgs img {
    height: 75px;
    width: 75px;
    scroll-snap-align: start;

}

.imgs img:hover,
button {
    cursor: pointer;
}



header {
    background-color: #888888;
    position: relative;
    margin-top: 0px;
    padding: 6px 0;
    width: 100%;
    bottom: 0;
}

footer {
    background-color: burlywood;
    position: relative;
    margin-top: 45px;
    padding: 6px 0;
    width: 100%;
    bottom: 0;
}

@media screen and (max-width:800px) {

    body,
    header {
        margin: 0px;
    }




    .imgs,
    footer {
        display: none;

    }

    .container,
    .big-img img {
        100vh
    }

    .imgs img {
        /* flex: 1 1 40px; */
        /* display: flex; */
        /* align-items: center; */
        /*vertical align*/
        /* justify-content: center; */
        /*horizontal align*/
        /* border: 1px solid red; */
        /* height: 500px; */

    }

    .big-img img {
        /* height: 400px; */
        /* object-fit: contain; */
        /* object-position: top; */
    }
}

@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

.fade-in {
    opacity: 0;
    animation: fadeIn 0.5s ease-in 1 forwards;
}