* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

img {
    width: 100%;
    height: auto;
    display: block;
}

body {
    overflow-x: hidden;
}

main {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

#home_wrapper {
    margin: 0 auto;
    max-width: 768px;
    height: 956px;
    background-image: url('images/cover.jpg'), url('images/cover9.jpg');
    background-position: top, bottom;
    background-repeat: no-repeat;
    background-size: 100% 50%;
    display: flex;
    flex-direction: column;
}

#gallery_wrapper {
    margin: 0 auto;
    max-width: 768px;
    height: auto;
    background-color: rgb(36, 36, 36);
    background-image: url('images/cover7.jpg'), url('images/cover8.jpg');
    background-position: top, bottom;
    background-repeat: no-repeat;
    background-size: 100% 50%;
    display: flex;
    flex-direction: column;
}

#gallery_wrapper.showing {
    margin: 0 auto;
    max-width: 768px;
    height: 695px;
    background-color: rgb(36, 36, 36);
    background-image: url('images/cover7.jpg'), url('images/cover8.jpg');
    background-position: top, bottom;
    background-repeat: no-repeat;
    background-size: 100% 50%;
    display: flex;
    flex-direction: column;

}

#synopsis_wrapper {
    margin: 0 auto;
    max-width: 768px;
    height: 1574px;
    background-image: url('images/cover7.jpg'), url('images/cover8.jpg');
    background-position: top, bottom;
    background-repeat: no-repeat;
    background-size: 100% 50%;
    display: flex;
    flex-direction: column;
}

#cast_wrapper {
    margin: 0 auto;
    max-width: 768px;
    height: 2219px;
    background-image: url('images/cover7.jpg'), url('images/cover8.jpg');
    background-position: top, bottom;
    background-repeat: no-repeat;
    background-size: 100% 50%;
    display: flex;
    flex-direction: column;
}

header nav ul li a:hover {
    text-decoration: none;
    color: white;
    font-family: 'Open Sans';
    font-size: 20px;
    font-weight: 700;
}

header {
    position: fixed;
    width: 100%;
    max-width: 768px;
    z-index: 1;
}

footer {
    position: sticky;
    bottom: 0;
}

#logo {
    max-width: 500px;
    height: 500px;
    margin: 0 auto;
    align-items: center;
    opacity: 0.5;
}

#logo.showing {
    max-width: 500px;
    height: 500px;
    margin: 0 auto;
    align-items: center;
    opacity: 0.5;
}

#logo.hidden {
    display: none;
}

#navbar {
    background-color: rgba(0, 0, 0, 0.5);
    max-width: 100%;
    height: 86px;
    display: flex;
    align-items: center;
}

#links {
    display: flex;
    list-style-type: none;
    gap: 30px;
    margin-left: 20px;
}

#links a {
    text-decoration: none;
    color: white;
    font-family: 'Open Sans';
    font-size: 20px;
}

#some {
    display: flex;
    justify-content: flex-end;
    list-style-type: none;
    margin-left: auto;
    margin-right: 40px;
    gap: 10px;
}

.active {
    text-decoration: none;
    color: white;
    font-family: 'Open Sans';
    font-size: 20px;
    font-weight: 700;
}

#tomb_text {
    display: flex;
    justify-content: center;
    text-align: center;
    position: sticky;
    padding: 20px;
    background-color: rgba(0, 0, 0, 0.6);
    width: 100%;
    max-width: 768px;

}

#tomb_text h1 {
    color: white;
    opacity: 0.6;
    font-family: "Lobster", sans-serif;
    font-weight: 400;
    font-style: normal;
}

#thumbs {
    width: 80%;
    opacity: 0.9;
    margin-top: 150px;
    margin-bottom: 55px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 20px;
}

.thumb_image {
    width: 100%;
    height: 240px;
    overflow: hidden;
    /*bject-fit: cover;*/
}

.thumb {
    display: grid;
    margin-bottom: 25px;
}

.thumb_text {
    width: 100%;
    height: 55px;
    color: white;
    font-family: "Oswald", sans-serif;
    font-size: 16px;
    font-weight: 400;
    margin-top: 10px;
    margin-left: 10px
}

.synopsis_text {
    color: white;
    margin: 24px;
    font-family: "Oswald", sans-serif;
    font-size: 20px;
    font-weight: 400;
}

#bottom_text {
    max-width: 590px;
    height: auto;
    margin: 10px auto 10px auto;
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 40px;
    margin-bottom: 80px;
}

#top_text {
    color: white;
    font-family: "Oswald", sans-serif;
    font-size: 24px;
    font-weight: 400;
}

#mid_text {}

#mid_text p {
    color: white;
}

#top_text_container {
    width: 553px;
    height: 82px;
    display: flex;
    flex-direction: row;
    margin: 0 auto;
}


#top_text_container_2 {
    width: 553px;
    height: 82px;
    display: flex;
    flex-direction: row;
    margin: 0 auto;
}

#text_container_2 p {
    color: white;
    font-family: "Oswald", sans-serif;
    font-size: 16px;
    font-weight: 400;
}

#container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    border-radius: 50px;
    background-color: rgba(255, 255, 255, 0.2);
    padding: 50px;

    margin: 0px 20px 20px 20px;
}

.image_container {
    margin: 0 auto;
}

.image {
    max-width: 280px;
    min-height: 349px;
}

.bread_text {
    color: white;
    font-family: "Oswald", sans-serif;
    font-size: 18px;
    font-weight: 400;
}

#text_container {
    max-width: 520px;
    height: 266px;
}

#text_container_cast {
    max-width: 520px;
    height: auto;
}

#text_container p {
    color: white;
    font-family: "Oswald", sans-serif;
    font-weight: 400;
}

.title {
    color: white;
    font-family: "Oswald", sans-serif;
    font-size: 40px;
    font-weight: 400;
}


#bread_text {
    color: white;
    font-family: "Oswald", sans-serif;
    font-size: 16px;
    font-weight: 400;
}

#image_1,
#image_2 {
    display: flex;
    justify-content: center;
}

#group_1,
#group_2 {
    margin: 80px;
}

.menu {
    display: none;
}

.title_mobile {
    display: none;
}

#tomb_text.hidden {
    display: none;
}

/*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;
}

#lightbox img {
    grid-area: 1 / 1 / 2 / 2;
}

#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 only screen and (max-width:561px) {
    #some {
        display: none;
    }
}

/*Mobile version*/
@media only screen and (max-width:521px) {

    /*index.html*/
    #home_wrapper {
        margin: 0 auto;
        max-width: 320px;
        height: 100vh;
        display: flex;
        flex-direction: column;
        overflow-y: hidden;
        background-position: top, bottom;
        background-repeat: no-repeat;
        background-size: 150% 50%;
    }

    #logo {
        display: flex;
        align-items: center;
    }



    .close.hidden {
        display: none;
    }

    .close.showing {
        width: 20px;
        height: 20px;
        display: grid;
        justify-self: end;
        margin: 10px;
        z-index: 20;
        cursor: pointer;
        position: absolute;
        top: 3px;
    }

    .close {
        position: relative;
        width: 20px;
        height: 20px;
        display: none;
        margin: 10px;
    }

    .close span {
        position: absolute;
        top: 50%;
        left: 50%;
        width: 20px;
        height: 2px;
        background: white;
    }

    .close span:nth-child(1) {
        transform: translate(-50%, -50%) rotate(45deg);
    }

    .close span:nth-child(2) {
        transform: translate(-50%, -50%) rotate(-45deg);
    }

    #navbar {
        display: none;
    }

    .burger_menu {
        width: 20px;
        height: 16px;
        display: grid;
        z-index: 2;
        gap: 5px;
        justify-self: end;
        margin: 10px;
        cursor: pointer;
        position: fixed;
    }

    .burger_menu span {
        height: 0px;
        background: rgb(255, 255, 255);
        width: 100%;
        border: 1px solid white;
    }

    .menu.open {
        display: grid;
        background-color: rgb(35, 35, 35);
        width: 100%;
        height: 100vh;
        text-align: center;
        justify-self: center;
        align-items: center;
        z-index: 1;
        position: fixed;
    }

    .links li {
        margin: 40px;
    }

    .links li a {
        text-decoration: none;
    }

    .burger_menu.hidden {
        display: none;
    }

    .burger_menu.open {
        z-index: 1;
    }

    #logo.showing {}

    .menu.open ul {
        list-style-type: none;
    }

    .menu.open ul li a {
        font-family: 'Open Sans';
        font-size: 20px;
        color: white;
        font-weight: 400;
    }

    .menu.open .active a {
        font-family: 'Open Sans';
        font-size: 20px;
        color: white;
        font-weight: 800;
    }

    .some {
        display: grid;
        grid-auto-flow: column;
        justify-content: space-evenly;
        gap: 1%;
        margin: 15%;
    }

    .title_mobile {
        display: block;
        color: white;
        text-align: center;
        margin-top: 50px;
        font-family: "Orbitron", sans-serif;
        font-optical-sizing: auto;
        font-weight: 200;
        font-style: normal;
    }

    #tomb_text {
        text-align: center;
    }

    /*gallery.html*/

    #gallery_wrapper {
        margin: 0 auto;
        max-width: 320px;
        height: auto;
        display: flex;
        flex-direction: column;
        background-color: rgb(36, 36, 36);
        background-image: url('images/cover7.jpg'), url('images/cover8.jpg');
        background-position: top, bottom;
        background-repeat: no-repeat;
        background-size: 100% 50%;
        display: flex;
        flex-direction: column;
    }

    #thumbs {
        max-width: 330px;
        opacity: 0.9;
        height: auto;
        margin: 0 auto;
        margin-top: 75px;
        display: grid;
        gap: 20px;
        margin-left: 10px;
        margin-right: 10px;
        margin-top: 150px;
        overflow-x: hidden;
    }

    .thumb {
        margin-bottom: 30px;
    }

    /*synopsis.html*/

    #synopsis_wrapper {
        margin: 0 auto;
        max-width: 320px;
        height: auto;
        background-image: url('images/cover7.jpg'), url('images/cover8.jpg');
        background-position: top, bottom;
        background-repeat: no-repeat;
        background-size: 100% 50%;
        display: flex;
        flex-direction: column;
    }

    #bottom_text {
        margin-left: 10px;
        margin-right: 10px;
    }

    #top_text_container {
        margin-top: 100px;
        max-width: 300px;
        height: 100px;
        word-wrap: break-word;
    }

    #top_text {
        margin: 10px;
    }

    #container {
        margin-top: 60px;
    }

    /*cast.html*/

    #cast_wrapper {
        height: auto;
        background-size: 200% 50%;
    }

    .image {
        min-height: 50px;
    }

    #group_2 {
        margin-top: 800px;
    }


}

@media only screen and (max-width:1445px) {

    /*index.html*/
    #home_wrapper {
        margin: 0 auto;
        max-width: 1440px;
        background-image: url('images/cover.jpg'), url('images/cover9.jpg');
        background-position: top, bottom;
        background-repeat: no-repeat;
        background-size: 100% 50%;
        display: flex;
        flex-direction: column;
    }

    #tomb_text {
        max-width: 1440px;
    }

    header {
        max-width: 1440px;
    }

    /*gallery.html*/

    #gallery_wrapper {
        margin: 0 auto;
        max-width: 1440px;
        height: auto;
        background-color: rgb(36, 36, 36);
        background-image: url('images/cover7.jpg'), url('images/cover8.jpg');
        background-position: top, bottom;
        background-repeat: no-repeat;
        background-size: 100% 50%;
        display: flex;
        flex-direction: column;
    }

    #thumbs {
        margin-top: 120px;
    }

    /*synopsis.html*/

    #synopsis_wrapper {
        margin: 0 auto;
        max-width: 1440px;
        height: 1720px;
        background-image: url('images/cover7.jpg'), url('images/cover8.jpg');
        background-position: top, bottom;
        background-repeat: no-repeat;
        background-size: 100% 50%;
        display: flex;
        flex-direction: column;
    }

    /*cast.html*/

    #cast_wrapper {
        margin: 0 auto;
        max-width: 1440px;
        height: auto;
        background-image: url('images/cover7.jpg'), url('images/cover8.jpg');
        background-position: top, bottom;
        background-repeat: no-repeat;
        background-size: 150% 50%;
        display: flex;
        flex-direction: column;
    }

    #text_container_cast {}
}