* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;

    background: #ff1493;
    color: white;

    font-family:
        "Neue Haas Grotesk Text Pro",
        "Helvetica Neue",
        Helvetica,
        Arial,
        sans-serif;

    font-size: 16px;
    font-weight: 400;
}


/* =====================================
   NAVIGASJON
===================================== */

.navbar {
    position: fixed;

    top: 0;
    left: 0;

    width: 100%;

    padding: 24px 32px;

    display: grid;
    grid-template-columns: 1fr 1fr 1fr;

    align-items: start;

    z-index: 1000;
}

.navbar a {
    color: white;
    text-decoration: none;

    font-size: 17px;
    line-height: 1;
}

.navbar a:hover {
    opacity: 0.55;
}


/* =====================================
   PROSJEKTER DROPDOWN
===================================== */

.projects-dropdown {
    position: relative;
    justify-self: start;
}

.projects-link {
    display: block;
}

.projects-dropdown::after {
    content: "";

    position: absolute;

    top: 100%;
    left: 0;

    width: 220px;
    height: 20px;
}

.dropdown-menu {
    position: absolute;

    top: 28px;
    left: 0;

    width: 220px;

    padding: 10px 0 0 0;

    display: flex;
    flex-direction: column;

    opacity: 0;
    visibility: hidden;

    transform: translateY(-5px);

    transition:
        opacity 0.2s ease,
        transform 0.2s ease;

    z-index: 2000;
}

.dropdown-menu a {
    display: block;

    padding: 4px 0;

    font-size: 14px;
    line-height: 1.2;
}

.dropdown-menu a:hover {
    opacity: 0.55;
}

.projects-dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}


/* =====================================
   LOGO
===================================== */

.logo {
    justify-self: center;
    text-align: center;

    font-size: 18px !important;
}


/* =====================================
   KONTAKT
===================================== */

.contact-link {
    justify-self: end;
}


/* =====================================
   PROSJEKTSIDE
===================================== */

.project-page {
    padding-top: 105px;
    padding-bottom: 120px;
}


/* =====================================
   INTRO
===================================== */

.project-intro {
    width: 94%;
    max-width: 1900px;

    margin: 0 auto;

    padding: 45px 0 55px;

    display: grid;

    grid-template-columns:
        minmax(0, 1fr)
        320px;

    gap: 70px;

    align-items: start;
}


/* =====================================
   TITTEL
===================================== */

.project-title {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.project-title h1 {
    margin: 0;

    font-size: 88px;
    line-height: 0.9;

    font-weight: 400;
}

.year {
    margin-top: 55px;

    font-size: 15px;
    line-height: 1;
}


/* =====================================
   BESKRIVELSE
===================================== */

.project-description {
    padding-top: 8px;
}

.project-description p {
    margin: 0;

    font-size: 15px;
    line-height: 1.35;
}


/* =====================================
   DE TO STORE HOVEDBILDENE
===================================== */

.project-image-row {
    width: 94%;
    max-width: 1900px;

    margin: 0 auto 70px;

    display: grid;

    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);

    gap: 45px;

    align-items: start;
}


/* =====================================
   BILDECONTAINER
===================================== */

.project-image-row .image-container {
    width: 100%;

    min-width: 0;

    display: flex;
    flex-direction: column;

    align-items: flex-start;
}


/* =====================================
   HOVEDBILDER
===================================== */

.project-image-row img {
    display: block;

    width: 100%;
    height: auto;

    max-width: 100%;
    max-height: calc(100vh - 50px);

    object-fit: contain;

    object-position: left top;

    cursor: zoom-in;

    transition: opacity 0.3s ease;
}

.project-image-row img:hover {
    opacity: 0.8;
}


/* =====================================
   BILDETEKST
===================================== */

.image-caption {
    margin: 7px 0 0;

    color: #ffa9d1;

    font-size: 13px;
    line-height: 1.2;
}


/* =====================================
   MERCH GRID
===================================== */

.project-grid {
    width: 94%;
    max-width: 1900px;

    margin: 0 auto;

    display: grid;

    grid-template-columns: 1fr 1fr;

    column-gap: 45px;

    align-items: start;
}


/* =====================================
   KOLONNER
===================================== */

.column {
    width: 100%;

    display: flex;
    flex-direction: column;

    gap: 45px;
}


/* =====================================
   MERCH-BILDER
===================================== */

.item {
    width: 100%;
}

.item img {
    display: block;

    width: 100%;
    height: auto;

    object-fit: contain;

    cursor: zoom-in;

    transition: opacity 0.3s ease;
}

.item img:hover {
    opacity: 0.8;
}


/* =====================================
   VENSTRE KOLONNE
===================================== */

.left-column .item:nth-child(1) {
    width: 100%;
}

.left-column .item:nth-child(2) {
    width: 88%;
}

.left-column .item:nth-child(3) {
    width: 100%;
}

.left-column .item:nth-child(4) {
    width: 92%;
}

.left-column .item:nth-child(5) {
    width: 88%;
}


/* =====================================
   HØYRE KOLONNE
===================================== */

.right-column .item:nth-child(1) {
    width: 88%;
}

.right-column .item:nth-child(2) {
    width: 100%;
}

.right-column .item:nth-child(3) {
    width: 92%;
}

.right-column .item:nth-child(4) {
    width: 100%;
}


/* =====================================
   LIGHTBOX
===================================== */

.lightbox {
    position: fixed;

    inset: 0;

    width: 100%;
    height: 100%;

    background: rgba(255, 20, 147, 0.96);

    display: flex;

    justify-content: center;
    align-items: center;

    padding: 40px;

    opacity: 0;
    visibility: hidden;

    z-index: 5000;

    transition: opacity 0.2s ease;
}

.lightbox.active {
    opacity: 1;
    visibility: visible;
}

.lightbox-inner {
    width: 100%;
    height: 100%;

    display: flex;

    justify-content: center;
    align-items: center;
}

.lightbox-inner img {
    display: block;

    max-width: 95vw;
    max-height: 92vh;

    width: auto;
    height: auto;

    object-fit: contain;
}


/* =====================================
   LUKKEKNAPP
===================================== */

.close {
    position: absolute;

    top: 16px;
    right: 27px;

    border: 0;
    background: none;

    color: white;

    font-family: Arial, sans-serif;

    font-size: 50px;
    font-weight: 200;

    line-height: 1;

    cursor: pointer;

    z-index: 5001;
}

.close:hover {
    opacity: 0.55;
}

.no-scroll {
    overflow: hidden;
}


/* =====================================
   MOBIL
===================================== */

@media (max-width: 700px) {

    /* NAV */

    .navbar {
        padding: 18px;
    }

    .navbar a {
        font-size: 15px;
    }

    .logo {
        font-size: 16px !important;
    }


    /* DROPDOWN */

    .dropdown-menu {
        top: 25px;
        width: 200px;
    }

    .dropdown-menu a {
        font-size: 13px;
        padding: 4px 0;
    }


    /* SIDE */

    .project-page {
        padding-top: 90px;
        padding-bottom: 80px;
    }


    /* INTRO */

    .project-intro {
        width: 92%;

        padding: 50px 0 45px;

        display: block;
    }

    .project-title h1 {
        font-size: 54px;
    }

    .year {
        margin-top: 25px;

        font-size: 13px;
    }

    .project-description {
        max-width: 400px;

        margin-top: 30px;
    }


    /* =================================
       HOVEDBILDER PÅ MOBIL
    ================================= */

    .project-image-row {
        width: 92%;

        margin: 0 auto 45px;

        display: block;
    }

    .project-image-row .image-container {
        width: 100%;

        margin-bottom: 35px;
    }

    .project-image-row .image-container:last-child {
        margin-bottom: 0;
    }

    .project-image-row img {
        width: 100%;
        height: auto;

        max-width: 100%;
        max-height: none;

        object-fit: contain;
    }


    /* BILDETEKST */

    .image-caption {
        margin-top: 7px;

        font-size: 12px;
    }


    /* =================================
       MERCH
    ================================= */

    .project-grid {
        width: 92%;

        grid-template-columns: 1fr 1fr;

        column-gap: 7px;
    }

    .column {
        gap: 30px;
    }

    .item {
        width: 100% !important;
    }

    .left-column .item,
    .right-column .item {
        width: 100% !important;
    }


    /* =================================
       LIGHTBOX
    ================================= */

    .lightbox {
        padding: 20px;
    }

    .lightbox-inner img {
        max-width: 97vw;
        max-height: 86vh;
    }

    .close {
        top: 10px;
        right: 17px;

        font-size: 42px;
    }
}