@font-face {
    font-family: "AkkuratLLEduWeb-Light";
    src: url("AkkuratLLEduWeb-Light.woff") format("woff");
}

@font-face {
    font-family: "AkkuratLLEduWeb-Light";
    src: url("AkkuratLLEduWeb-Light.woff2") format("woff2");
}

@font-face {
    font-family: "AkkuratLLEduWeb-Bold";
    src: url("AkkuratLLEduWeb-Bold.woff") format("woff");
}

@font-face {
    font-family: "AkkuratLLEduWeb-Bold";
    src: url("AkkuratLLEduWeb-Bold.woff2") format("woff2");
}

@font-face {
    font-family: "AkkuratLLEduWeb-Regular";
    src: url("AkkuratLLEduWeb-Regular.woff") format("woff");
}

@font-face {
    font-family: "AkkuratLLEduWeb-Regular";
    src: url("AkkuratLLEduWeb-Regular.woff2") format("woff2");
}

a {
    font-family: "AkkuratLLEduWeb-Regular", sans-serif;
    color: black;
    font-size: 0.8rem;
    font-weight: normal;
    letter-spacing: 0.02em;
}

h1 {
    font-family: "AkkuratLLEduWeb-Regular", sans-serif;
    font-size: 1.2rem;
    text-transform: uppercase;
    margin-top: 9em;
    margin-bottom: 2em;
    line-height: 0.7em;
    font-weight: 600;
    letter-spacing: 0.04em;
    float: none;
}

h2 {
    font-family: "AkkuratLLEduWeb-Light", sans-serif;
    font-size: 0.9rem;
    font-weight: 100;
    margin-top: 5em;
    margin-bottom: 0.5em;
    line-height: 1.5em;
    float: none;
    letter-spacing: 0.02em;
}

h3 {
    font-family: "AkkuratLLEduWeb-Light", sans-serif;
    font-weight: 100;
    font-size: 36px;
    margin-top: 3.6em;
    line-height: 1em;
    letter-spacing: 0.02em;
    float: none;
}

h4 {
    font-family: "AkkuratLLEduWeb-Regular", sans-serif;
    font-size: 12px;
    margin-top: 1em;
    margin-bottom: 3em;
    line-height: 1.5em;
    float: none;
}

body {
    font: Akkurat;
    background-color: #fcfcfc;
    font-size: 12px;
    color: black;
    letter-spacing: 0.004em;
    width: 100%;
    font-weight: 400;
    min-height: 100vh;
    margin: 0;
    padding: 0;
}

section {
    width: 100rem;
    margin: 0;
    overflow: visible;
}

div.main {
    width: 100vh;
    float: left;
    margin-left: 22vh;
    margin-top: 0;
}

div.side {
    width: 350px;
    float: left;
    padding-right: 3em;
    padding-left: 7em;
    margin-left: 3em;
    margin-right: 3em;
    margin-top: 5.5em;
}

div.project {
    width: 950px;
    float: right;
    padding-left: 0;
    padding-right: 3em;
    object-fit: scale-down;
}

div.main img {
    width: auto;
    max-width: 100%;
    height: auto;
    display: block;
    float: none;
    padding-bottom: 1.5em;
    overflow: visible;
    object-fit: contain;
    margin: 0 0 0.5em 0;
}

iframe {
    display: block;
    float: none;
    width: 100%;
    max-width: 800px;
    aspect-ratio: 16 / 9;
    height: auto;
    border: 0;
    margin: 0;
}

.main::after {
    content: "";
    display: table;
    clear: both;
}

footer {
    clear: both;
    margin-top: 5em;
    float: none;
    text-align: left;
    height: 4em;
    font-family: Akkurat, sans-serif;
    line-height: 1em;
    font-weight: 600;
    text-transform: uppercase;
    color: black;
    padding-left: 0;
    font-size: 10px;
    letter-spacing: 0.03em;
}

/* PHONE */
@media (max-width: 756px) {

    h1 {
        margin-top: 7em;
        margin-bottom: 0;
    }

    h2 {
        margin-top: 4em;
    }

    section {
        width: 100%;
        margin: 0;
        padding: 0;
        overflow: visible;
    }

    div.main {
        position: relative;
        z-index: 1;
        width: 350px;
        max-width: 100%;
        box-sizing: border-box;
        padding-left: 2.5em;
        padding-right: 2.5em;
        padding-top: 0;
        margin: 0 auto;
        float: none;
        clear: both;
        overflow: visible;
    }

    div.side {
        position: relative;
        z-index: 3000;
        width: 350px;
        max-width: 100%;
        box-sizing: border-box;
        padding-left: 2.5em;
        padding-right: 2.5em;
        margin: 5.5em auto 0 auto;
        float: none;
        overflow: visible;
    }

    div.main img {
        width: 100%;
        max-width: 100%;
        height: auto;
        display: block;
        float: none;
        box-sizing: border-box;
        padding-bottom: 0.5em;
        margin: 0 0 0.5rem 0;
        object-fit: contain;
    }

    iframe {
        display: block;
        float: none;
        width: 100%;
        max-width: 100%;
        aspect-ratio: 16 / 9;
        height: auto;
        border: 0;
        margin: 0;
    }
}

/* IPAD / TABLET */
@media (min-width: 757px) and (max-width: 1100px) {

    section {
        width: 100%;
        margin: 0;
        padding: 0;
        overflow: visible;
    }

    div.side {
        width: 280px;
        box-sizing: border-box;
        float: left;
        padding-left: 3em;
        padding-right: 2em;
        margin-left: 0;
        margin-right: 1.5rem;
        margin-top: 5.5em;
        position: relative;
        z-index: 3000;
    }

    div.main {
        width: calc(100% - 310px);
        box-sizing: border-box;
        float: left;
        margin-left: 0;
        margin-right: 0;
        padding-top: 4em;
        padding-right: 2em;
        position: relative;
        z-index: 1;
        overflow: visible;
    }

        div.main img {
            width: 100%;
            max-width: 100%;
            height: auto;
            display: block;
            float: none;
            box-sizing: border-box;
            padding-bottom: 0.75em;
            margin: 0 0 0.5rem 0;
            object-fit: contain;
        }

    iframe {
        display: block;
        float: none;
        width: 100%;
        max-width: 100%;
        aspect-ratio: 16 / 9;
        height: auto;
        border: 0;
        margin: 0;
    }
}


/* =========================================================
   GETT — SAME PROPORTIONS AS THE OTHER new_project PAGES
   .main remains 100vh, just like project6/project16.
   The 18 Gett images form a 3-column composition inside
   that existing main area instead of using a fixed 1000px width.
   ========================================================= */

/* DESKTOP */
@media (min-width: 1101px) {

    div.main {
        width: 100vh;
        float: left;
        margin-left: 22vh;
        margin-top: 0;
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        column-gap: 0.5em;
        row-gap: 0;
        align-items: start;
    }

        /* Title and description keep the exact main-column position
       but span all three image columns. */
        div.main > h3,
        div.main > h4 {
            grid-column: 1 / -1;
        }

        /* The three-column Gett gallery. */
        div.main > img.project3 {
            display: block !important;
            float: none !important;
            width: 100% !important;
            max-width: 100% !important;
            height: auto !important;
            aspect-ratio: 1 / 1;
            object-fit: contain;
            box-sizing: border-box;
            margin: 0 0 0.5em 0 !important;
            padding: 0 !important;
        }

        /* The three <br> elements after the gallery must not become
       extra grid items. */
        div.main > br {
            display: none;
        }

        /* Keep the lower Gett composition inside the same main width. */
        div.main > div.project {
            grid-column: 1 / -1;
            width: 100%;
            max-width: 100%;
            float: none;
            clear: both;
            box-sizing: border-box;
            padding-left: 0;
            padding-right: 0;
            object-fit: scale-down;
            margin-top: 3em;
        }

            div.main > div.project img {
                max-width: 100%;
                height: auto;
                object-fit: contain;
            }
}

/* IPAD / TABLET
   Same principle as new_project.css:
   the main column follows the available space rather than
   being forced to 1000px. */
@media (min-width: 757px) and (max-width: 1100px) {

    div.main > img.project3 {
        width: calc((100% - 0.5em) / 2) !important;
        max-width: calc((100% - 0.5em) / 2) !important;
        height: auto !important;
        aspect-ratio: 1 / 1;
        display: inline-block !important;
        vertical-align: top;
        float: none !important;
        box-sizing: border-box;
        margin: 0 0.5em 0.5em 0 !important;
        padding: 0 !important;
        object-fit: contain;
    }

    div.main > div.project {
        width: 100%;
        max-width: 100%;
        float: none;
        clear: both;
        box-sizing: border-box;
        padding-left: 0;
        padding-right: 0;
    }

        div.main > div.project img {
            max-width: 100%;
            height: auto;
            object-fit: contain;
        }

    div.main > br {
        display: none;
    }
}

/* PHONE */
@media (max-width: 756px) {

    div.main > img.project3 {
        width: 100% !important;
        max-width: 100% !important;
        height: auto !important;
        aspect-ratio: 1 / 1;
        display: block !important;
        float: none !important;
        box-sizing: border-box;
        margin: 0 0 0.8em 0 !important;
        padding: 0 !important;
        object-fit: contain;
    }

    div.main > div.project {
        width: 100%;
        max-width: 100%;
        float: none;
        clear: both;
        box-sizing: border-box;
        padding-left: 0;
        padding-right: 0;
    }

        div.main > div.project img {
            max-width: 100%;
            height: auto;
            object-fit: contain;
        }

    div.main > br {
        display: none;
    }
}

/* Keep the no-horizontal-drag behavior. */
html,
body {
    overflow-x: hidden;
}
