@media only screen {
    :root {
        --font-extra-small: 0.75rem;
        --font-small: 0.9rem;
        --font-medium: 1.25rem;
        /*12 16 24*/
    }

    html {
        height: 100%;
    }

    body {
        overflow: hidden;
    }

    #container {
        padding: 1rem 1rem 1rem 1rem;
        gap: 1.5rem;
        grid-template-columns: 1.4fr 1.9fr 4fr;
        grid-template-rows: min-content 1fr;
        grid-template-areas: 
        "header . ."
        "nav text media";
    }

    .collapsible {
        display: none;
    }
}

/*@media only screen and (min-width: 1550px) {
    :root {
        --font-extra-small: 16px;
        --font-small: 20px;
        --font-medium: 28px;
    }
}*/

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

}

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

    html {
        height: auto;
    }

    body {
        overflow: visible;
    }

    #container {
        padding: 1rem;
        gap: 0.5rem;
        grid-template-columns: 1fr;
        grid-template-rows: min-content min-content 1fr min-content;
        grid-template-areas:
        "header"
        "nav"
        "media"
        "text";
    }

    .collapsible {
        display: block;
        font-family: favorit;
        font-size: var(--font-medium);
        font-weight: 400;
    }
    
    .collapsible:after {
        content: '\002B';
    }

    .collapsible.active:after {
        content: '\2212';
    }

    #nav {
        transition: max-height .2s ease-out;
        max-height: 0;
        overflow: hidden;
    }

    .main-wrapper {
        transition: margin-top .2s ease-out;
        margin-top: -0.5rem;
    }

    #description {
        padding-top: 1rem;
    }
}

@font-face {
    font-family: "Avenir";
    src: url("/font/Avenir-Book.ttf");
}

@font-face {
    font-family: "Avenir-black";
    src: url("/font/Avenir-Black.ttf");
}

*{
    box-sizing: border-box;
    padding: 0;
    margin: 0;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    image-rendering: -webkit-optimize-contrast;
}

html {
    /*height: 100%;*/
    /*min-height: -webkit-fill-available*/
}

body {
    font-family: Avenir;
    font-size: var(--font-small);
    line-height: 1.2;
    height: 100%;
}

ul {
    list-style-type: none;
    margin: 0px;
    padding: 0px;
}

#media img {
    width: 100%;
}

#instagram-icon {
    width: 50px!important;
}

#container {
    height: 100%;
    display: grid;
}

#header {
    grid-area: header;
    display: flex;
    justify-content: space-between;
    font-family: Avenir-Black;
    color: black;

}

#header a {
    text-decoration: none;
}

#nav {
    display: flex;
    flex-direction: column;
    /*justify-content: space-between;*/
    grid-area: nav;
    font-size: var(--font-extra-small);
    line-height: 1.2rem;
    gap: 2rem;
}

.project:hover { cursor: pointer; }

#media-wrapper {
    overflow-y: auto;
}

#description {
    overflow-y: auto;
}

#media {
    display: grid;
    gap: 0.5rem;
}

.projectheader {
    margin: 0;
    padding: 0;
    font-family: Avenir-Black;
    padding-bottom: 0.5rem;
}

a {
    color: black;
}