* {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
}

#wrapper {
    max-width: 1440px;
    margin: 0 auto;
    /* background-image: url(images/background_image_test.jpg); */
}

body {
    background: black;
}

img {
    height: auto;
    width: 100%
}

main {
    background-image: url(images/background_test_big.png);
    background-size: cover;
    background-repeat: no-repeat;
}

nav {
    display: flex;
    width: 100%;
    background-color: rgba(0, 0, 0, 50%);
    color: white;
    padding: 1.5em;
    max-height: 100%;
}

nav ul {
    display: flex;
    flex: 2;
    gap: 20%;
    padding-left: 7%;
}

nav li {
    display: flex;
    align-items: center;
}

a {
    color: white;
    text-decoration: none;
    list-style-type: none;
}

a:hover {
    font-weight: bold;
}

nav div {
    display: flex;
    flex: 1;
    margin-left: 25%;
    gap: 5%;
}

.fa-solid {
    display: none;
}

.header_for_mobile {
    display: none;
}

#images {
    display: grid;
    gap: 2%;
    margin: 2em auto;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    max-width: 1000px;
}

#images p {
    display: none;
}


footer {
    display: flex;
    position: sticky;
    max-width: 1440px;
    width: 100%;
    background-color: rgba(0, 0, 0, 50%);
    color: white;
    justify-content: center;
    align-items: center;
    height: 9%;
    margin-top: 4em;
}


/*---------------------lightbox---------------------*/

#lightbox-mask {
    background-color: rgba(0, 0, 0, 0.5);
    position: fixed;
    width: 100%;
    height: 100%;
    z-index: 2;

    display: grid;
    /* ændres til 'grid' når den skal vises */
    place-items: center;
    /* her centrerer vi #lightbox i masken*/
}

#lightbox {
    position: fixed;
    margin: 2em auto;
    padding: 10px;
    z-index: 3;
    background-color: #fff;
    /* grid til placering af pile*/
    display: grid;
    grid-template-rows: auto;
    grid-template-columns: auto;
    align-items: center;
    width: 46em;
    height: auto
}

#lightbox-mask.hide_this {
    display: none;
}

#lightbox img {
    grid-area: 1 / 1 / 2 / 2;
    border: 4px solid #fff;
}

#lightbox img#prev,
#lightbox img#next {
    width: 60px;
    height: 60px;
    border: none;
    margin: 1em;
}

#lightbox img#prev {
    transform: rotate(180deg);
}

#lightbox img#next {
    justify-self: end;
}



/*-----------------------------------------*/


@media screen and (max-width:1339px) {
    nav ul {
        gap: 7%;
        padding-left: unset;
    }

    nav div {
        justify-content: flex-end;
    }

    #images p {
        justify-content: center;
        display: flex;
        color: #ffffff;
    }

    footer {
        position: relative;
        top: 9em;
    }
}



@media screen and (max-width:599px) {
    nav div {
        display: none;
    }

    nav {
        position: static;

    }

    nav ul {
        justify-items: stretch;
        display: grid;
        grid-auto-flow: row;
        align-items: center;
        padding: 0.5em 0;
        height: 100vh;
    }

    nav li {
        padding: 0.5em 0;
        text-align: center;
    }

    nav a {
        display: grid;
        width: 100%;
        align-items: center;
    }

    .header_for_mobile {
        display: block;
        position: relative;
        left: 1em;
        color: rgb(0, 0, 0);
        max-width: 380px;
        top: 4em;
    }

    #images p {
        justify-content: center;
        display: flex;
        color: #ffffff;
        background-color: #0008;
    }

    header {
        display: none;
    }

    footer {
        position: relative;
        top: 37em;
    }

    .fa-solid {
        display: block;
        position: absolute;
        right: 5vw;
        top: 5vw;
        font-size: 2em;
    }
}