nav {
    font-weight: bold;
    grid-row: 1 / 2;
    grid-column: 6 / 8;
    top: 0;
    background-color: #2B2B2B;
}

nav ul {
    margin: 0px;
    padding: 0px;
    display: flex;
    flex-flow: row nowrap;
    list-style-type: none;
}

nav ul li {
    width: 100%;
}

nav a {
    text-decoration: none;
    color: #fff;
    padding: 2rem .1rem;
    display: block;
    text-align: center;
}

nav a:hover {
    background-color: #666;
}

header {
    grid-row: 2 / 3;
    grid-column: 5 / 8;
    line-height: 2rem;
    display: flex;
    flex-flow: row nowrap;
    list-style-type: none;
    padding-top: 6rem;
    font-size: larger;
    color: #fff;
}

#right {
    text-align: right;
    padding-right: 1rem;
}

#wrapper {
    display: grid;
    grid-template-rows: minmax(0px, 88px) minmax(0px, 355px) minmax(0px, auto);
    grid-template-columns: minmax(0px, 1fr) repeat(6, minmax(0, 175px))minmax(0px, 1fr);
}

#navig {
    grid-row: 1 / 2;
    grid-column: 1 / 9;
    background-color: #2B2B2B; 
}

#navig2 {
    grid-row: 1 / 2;
    grid-column: 2 / 8;
    background-image: url(frame.svg);
    background-position: left;
    background-repeat: no-repeat;
}

#mainimage {
    grid-row: 2 / 3;
    grid-column: 1 / 9;
    background-image: url(mainimage.jpeg);
    background-size: cover;
    background-position: center;
}

#mainimage2 {
    grid-row: 2 / 3;
    grid-column: 1 / 9;
    background-image: url(vector2.svg);
    background-size: cover;
    background-origin: content-box;
}

main {
    grid-row: 3 / 4;
    grid-column: 2 / 8;
}

#flexcontainer {
    display: flex;
    height: 1900px;
    flex-direction: column;
    flex-wrap: wrap;
    padding-top: 10px;
}


#flexcontainer div img {
    width: 516px;
    height: auto;
}


* {
    box-sizing: border-box;
}

body {
    font-family: 'Lucida Sans', 'Lucida Sans Regular', 'Lucida Grande', 'Lucida Sans Unicode', Verdana, sans-serif;
    margin: 0px;
}

@media only screen and (max-width: 992px) {
    #wrapper {
        display: grid;
        grid-template-rows: minmax(0px, 88px) minmax(0px, 355px) minmax(0px, 1157px);
        grid-template-columns: minmax(0px, 1fr) repeat(6, minmax(0, 128px))minmax(0px, 1fr);
    }
    nav {
        position: static;
    }
    #mainimage {
        height: auto;
    }
    #mainimage2 {
        height: auto;
    }
    #flexcontainer div img {
        width: 372px;
        height: auto;
    }
    #flexcontainer {
        height: 1250px;
    }
}

@media only screen and (max-width: 768px) {
    #wrapper {
        display: grid;
        grid-template-rows: minmax(0px, 88px) minmax(0px, 355px) minmax(0px, 1157px);
        grid-template-columns: minmax(0px, 1fr) repeat(6, minmax(0, 100%))minmax(0px, 1fr);
    }
    nav {
        grid-row: 2 / 3;
        grid-column: 1 / 9;
    }
    nav ul {
        flex-flow: column nowrap;
    }
    #mainimage {
        display: none;
    }
    #mainimage2 {
        display: none;
    }
    #flexcontainer div img {
        width: 450px;
        height: auto;
    }
    #flexcontainer {
        height: auto;
        align-items: center;
    }
}
