* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
body {
    display: grid;
    grid-template-columns: 20% 80%;
    grid-template-areas: 
        'header header'
        'sidebar gallery'
        'footer footer';
    background-image: linear-gradient(to bottom, black, blue);
    position: relative;
}


header {
    grid-area: header;
    display: flex;
    align-items: center;
    border-bottom: 5px solid red;
    color: whitesmoke;
    padding-bottom: 20px;
    margin-bottom: 70px;
}
header img {
    border-radius: 50vh;
    max-width: 200px;
    padding-top: 20px;
    padding: 1em;
}
#nav_list {
    grid-area: sidebar;
    display: flex;
    flex-direction: column
}
#nav_list ul{
    position:sticky;
    top: 20px;
}
#nav_list li {
    margin-bottom: 20px;
}
#nav_list a {
    background-color: cornsilk;
    color: black;
    padding: 8px 20px 8px 20px;
    text-decoration: none;
    border-radius: 5px;
    display: block;
}
#nav_list a:hover {
    background-color: black;
    color: pink;
}
section {
    max-width: 75%;
    margin: 0 auto;
}
main {
    grid-area: gallery;
}
main h4 {
    color: white;
    font-size: 200%;
    text-align: center;
    margin-bottom: 20px;
}
.btn {
    display: inline-block;
    align-self: center;
    margin-top: 1em;
    padding: 1em 2em;
    background-color: green;
    color: aliceblue;
    text-decoration: none;
    font-weight: 600;
    border-radius: 10px;
    box-shadow: 1px 1px 12px 2px gray
}
.return-to-top {
    display: none;
    position: fixed;
    left: 75px;
    bottom: 75px;
    z-index: 9999;
    cursor: pointer;
    border: none;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, .5);
    transition: all ease-in-out 300ms;
}
.return-to-top img {
    max-width: 50px;
}
.return-to-top:hover {
    background-color: rgba(255, 0, 255, 1); 
}

footer {
    grid-area: footer;
    display: flex;
    text-align: center;
    justify-content: center;
    padding: 50px 0;
    background-color: black;
    color: white;
}


/*video settings*/
.videowrapper {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 */
    padding-top: 25px;
    height: 0;
    margin: 0 auto;
    border: none; 
}
.videowrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 10px;
}
.caption {
    margin-top: 10px;
    border-left: 25px solid green;
    padding-left: 20px;
    color: white;
    max-width: 75%;
    margin-bottom: 70px;
}



@media (max-width: 767px) {
    #nav_list {
        display: none;
    }
    body {
        grid-template-columns: 1fr;
        grid-template-areas:
        'header'
        'videos'
        'footer';
    }
    section {
        max-width: 100%;
    }
}