nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 96vw;
    margin: 2vw;
}

body#index nav {
    z-index: 1;
}

nav a {
    text-decoration: none !important;
    color: lightgray;
}

nav ul {
    display: flex;
    flex-direction: column;
    width: 45vw;
    overflow: visible;
    word-break: keep-all;
    white-space: nowrap;
}

nav * {
    cursor: pointer;
}

nav li {
    text-transform: uppercase;
    font-size: var(--mbig);
}


/* active nav button */
body#works .worksbtn a {
    color: var(--activetxt);
}
body#about .aboutbtn a {
    color: var(--activetxt);
}
body#index .indexbtn a {
    color: var(--activetxt);
}



.bottombuttons {
    position: fixed;
    bottom: 1vh;
    z-index: 1;
    display: flex;
    width: 96vw;
    justify-content: space-between;
    z-index: 99999999; /* needed to stay on top of lightbox */
}
.bottombuttons p {
    display: flex;
    flex-direction: column;
    text-transform: uppercase;
}
.bottombuttons p:nth-child(2) {
    text-align: right;
}

#gridbtn {
    letter-spacing: 0.17vw;
}
#nightbtn {
    letter-spacing: 0.15vw;
}

/* active bottom buttons */
body.feed.white #gridbtn {
    color: var(--txtcolor);
}
body.grid.white #feedbtn {
    color: var(--txtcolor);
}
body.white #nightbtn {
    color: var(--txtcolor);
}

body.black {
    color: white;
}
body.black #daybtn {
    color: var(--txtcolor);
}

body.feed.black #gridbtn {
    color: var(--txtcolor);
}
body.grid.black #feedbtn {
    color: var(--txtcolor);
}




/* hide grid/feed btn on subpages */

body#about #togglefeed {
    visibility: hidden;
    pointer-events: none;
}

body#works #togglefeed {
    visibility: hidden;
    pointer-events: none;
}





@media only screen and (min-width: 768px) {
    nav {
        margin: 0 1vw;
        width: fit-content;
    }

    nav ul {
        flex-direction: column;

        /* to keep nav from overlaying images */
        width: 25vw;

        /* keep name from wrapping */
        overflow: visible;
        word-break: keep-all;
        white-space: nowrap;
    }

    nav li {
        font-size: var(--dbig);
        line-height: 7vw;
        width: fit-content;
    }

    .bottombuttons {
        position: fixed;
        bottom: 0;
        right: 0;
        display: flex;
        width: 98vw;
        margin: 1vw;
        justify-content: space-between;
        cursor: pointer;
    }
    .bottombuttons p {
        font-size: var(--dsmall);
        align-items: flex-end;
    }

    #togglebg {
        width: 12.5%;
    }

    #gridbtn {
        letter-spacing: 0.04vw;
    }
    #nightbtn {
        letter-spacing: 0.05vw;
    }


}