@media screen and (min-width: 501px){
    section.b .image {
        background-image: url(images/family-800.jpg);
        height: 496px;
    }
}

@media screen and (min-width: 801px){
    section.b .image {
        background-image: url(images/family-1100.jpg);
        height: 682px;
    }
}

@media screen and (min-width: 1101px){
    section.b .image {
        background-image: url(images/family-1300.jpg);
        height: 806px;
    }
}

@media screen and (min-width: 1301px){
    section.b .image {
        background-image: url(images/family-1600.jpg);
        height: 992px;
    }
}

@media screen and (min-width: 1601px){
    section.b .image {
        background-image: url(images/family-2000.jpg);
        height: 1240px;
    }
}


@media screen and (max-width: 800px) {
    header span.cover {
        width: 315px;
    }
}

@media screen and (max-width: 700px) {
    header span.cover {
        width: 270px;
    }
}


@media screen and (max-height: 700px) and (orientation:landscape) {
    section.a img {
        width: 30%;
    }
}


@media screen and (min-width: 601px) and (max-width: 1000px) {
    nav ul li a {
        font-size: 20px;
    }

    section .content {
        font-size: 18px;
    }

    section .content h2 {
        font-size: 22px;
    }

    section .content p {
        margin-bottom: 18px;
    }

    section.b article .content {
        padding: 40px 15px 250px 220px;
    }

    section.c article .inner {
        padding: 0px 20px 100px 44px;
    }

    section.d article .inner {
        padding: 40px 20px 200px 174px;
    }




    section.d article a.member {
        max-width: 105px;
        height: 105px;
    }

    section.d article a.member img {
        max-width: 85px;
        max-height: 85px;
        margin: 10px auto;
    }

    section.e article .content {
        padding: 20px 15px 250px 220px;
    }

    section.f article .content {
        padding: 40px 15px 250px 220px;
    }

    section.g article .content {
        padding: 288px 16px 100px 40px;
    }
}

@media screen and (min-width: 768px) and (max-width: 1000px) {
    section.d article a.member {
        max-width: 152px;
        height: 152px;
    }

    section.d article a.member img {
        max-width: 122px;
        max-height: 122px;
        margin: 15px auto;
    }
}


@media screen and (max-width: 1050px){
    header {
        height: 140px;
        padding: 10px 0px 10px 2%;
        position: relative;
    }

    section.b article .content {
        padding: 50px 36px 116px 40px;
    }
    section.c article .inner {
        padding: 20px 0px 100px 176px;
    }
    section.d article .inner {
        padding: 20px 0px 346px 200px;
    }
    section.g article .content {
        padding: 32px 0px 100px 40px;
        font-size: aasdf;
    }


    header span.cover {
        width: 500px;
    }

    nav {
        padding-left: 15px;
    }

    section.b article .content,
    section.c article .inner,
    section.d article .inner,
    section.e article .content,
    section.f article .content,
    section.g article .content {
        padding-right: 15px;
    }
}


@media screen and (max-width: 900px){
    header span.cover {
        width: 400px;
    }
}


@media screen and (max-width: 700px){
    header span.cover {
        width: 300px;
    }
}


@media screen and (max-width: 600px){
    header {
        height: 140px;
        padding: 0px 5%;
    }

    header a.logo {
        background-size: 120% auto;
        height: 90px;
        background-position: left bottom;
        margin-top: 10px;
    }

    header span.cover {
        bottom: 10px;
        width: 200px;
    }

    header a.mobile-nav {
        display: block;
        background: url(images/mobile-nav.png) no-repeat 5px center;
        background-size: 40%;
        width: 80px;
        height: 30px;
    }

    section .content {
        font-size: 16px;
    }

    section .content h2 {
        font-size: 20px;
    }

    section .content p {
        margin-bottom: 15px;
    }

    section.a img {
        width: 70%;
    }

    nav {
        padding: 15px 5%;
        margin-left: 0px !important;
    }

    nav.fixed {
        position: static;
    }

    nav ul li a {
        font-size: 18px;
    }

    .nav-spacer {
        display: none !important;
    }

    .under-nav {
         height: 40px;
    }

    section.b .image {
        background-position: center top;
    }

    section.b article .content {
        padding: 20px 5% 100px;
    }

    section.c article .inner {
        padding: 20px 5% 100px;
    }

    section.d article .inner {
        padding: 20px 5% 100px;
    }

    section.d article a.member {
        max-width: 90px;
        height: 90px;
    }

    section.d article a.member img {
        max-width: 70px;
        max-height: 70px;
        margin: 10px auto;
    }

    section.e article .content {
        padding: 20px 5% 100px;
    }

    section.f article .content {
        padding: 20px 5% 100px;
    }

    section.g article .content {
        padding: 124px 20px 100px;
        text-align: left;
    }
}

@media screen and (max-width: 465px){
    header a.logo {
        background-size: 135% auto;
        margin-top: 0px;
        height: 80px;
    }

    header span.cover {
        width: 100px;
    }

    section.b .image {
        height: 250px;
    }
}

@media screen and (max-width: 335px){
    header {
        height: 120px;
    }

    header a.logo {
        height: 70px;
    }

    section.d article a.member {
        max-width: 80px;
        height: 80px;
    }

    section.d article a.member img {
        max-width: 60px;
        max-height: 60px;
        margin: 10px auto;
    }
}