/**
 *  Media Queries
 */
@media only screen and (max-width: 960px) {
    .row .row .c1, .row .row .c2, .row .row .c3, .row .row .c4, .row .row .c5, .row .row .c6, .row .row .c7, .row .row .c8, .row .row .c9, .row .row .c10, .row .row .c11, .row .row .c12 { width: 100%; margin: 0; }
    .row .row > div:last-child { margin-bottom: 0 !important; }



    /**
     * Header
     */
    header {
        min-height: auto;
    }

    header .c4,
    header .c8 {
        float: none;
        width: 100%;
    }

    .logo img {
        margin: 0 auto;
    }

    header .menu {
        text-align: center;
    }



    /**
     * Community
     */
    .community-subpages .c4 {
        width: 33.33% !important;
    }



    /**
     * Footer
     */
    .footer-menu-wrap .row .c6 {
        width: 50%;
    }
}

@media handheld, only screen and (max-width: 768px), only screen and (max-device-width: 768px) and (orientation: portrait) {

    /**
     * General + helpers
     */
    .desktop {
        display: none !important;
    }

    .tablet {
        display: block !important;
    }



    /**
     * Banner
     */
    .banner {
        height: auto !important;
    }

    .banner:before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.5);
    }

    .banner.programs-banner:before,
    .banner.inner-banner:before,
    .banner.inner--banner:before {
        display: none;
    }

    .banner.programs-banner h1,
    .banner.inner--banner h1 {
        font-size: 34px;
        line-height: 1.1;
    }

    .caption a {
        margin-top: 15px;
    }

    .banner .table:only-child {
        padding: 50px 0 !important;
    }

    .banner .table:not(:only-child) {
        height: auto;
        padding: 25px 0 35px;
    }

    .program-subnav {
        position: relative;
    }

    .program-subnav ul li {
        float: none;
        width: 100%;
        margin: 0 auto;
    }

    

    /**
     * Home
     */
    .help .c6:only-child {
        max-width: 50%;
    }



    /**
     * About
     */
    .resources-wrap .row .c3 {
        width: 25%;
    }



    /**
     * Programs
     */
    .program-outer {
        height: auto;
    }

    .program-outer .program-image {
        position: relative;
        height: 0;
        padding-top: 56.25%;
    }

    .program-outer .program {
        position: relative;
        bottom: 0;
    }

    .programs {
        padding: 20px 0 60px;
    }

    .has-sidebar .page-sidebar {
        margin: 40px 0 0;
        /*padding: 0 16px 0 32px;*/
        padding: 0 32px;
        word-wrap: break-word;
    }



    /**
     * Get Involved
     */
    .get-involved-sections .c4 {
        padding: 0 15px !important;
    }

    .get-involved-section br {
        display: none;
    }



    /**
     * 404
     */
    .error404 .program-group:first-of-type {
        float: none;
        width: 100%;
    }



    /**
     * Footer
     */
    .footer-menu-wrap {
        width: 66.66%;
    }

    .footer-menu-wrap .row .c6 {
        width: 100%; /* previous value is 35%*/
        margin: 10px 0;
    }

    .footer-menu-wrap .row .c6:nth-of-type(2) {
        float: right;
    }

    .c4.footer-small-menu.pie-chart {
        position: relative; /*Contains pie chart, default value is absolute*/
        margin-top: 20px;
    }
    .footer-social-wrap {
        width: 33.33%;
        margin: 0;
    }


}

@media handheld, only screen and (max-width: 768px), only screen and (max-device-width: 768px) and (orientation: portrait) {
    .row { margin-bottom: 0 !important; }
    .c1, .c2, .c3, .c4, .c5, .c6, .c7, .c8, .c9, .c10, .c11, .c12{ width: 100%; margin: 0; }

    .donate-wrap ul li {
        margin-bottom:20px;
    }
    div.amount {
        float:left;
    }
    .donate-wrap .amount:before {
        font-size:18px;
        top:27px;
    }
    .donate-wrap .amount:after {
        font-size:18px;
        top:27px;
    }
    .donate-wrap .amount {
        width:100%;
    }
    .donate-wrap .amount input {
        text-align: center;
        padding: 16px 16px 16px 16px;
        font-size:18px;
    }
    .donate-wrap ul.button-wrap li {
        width:100%;
        padding: 0 20px 0px;
    }
    /**
     * General + helpers
     */
    .mobile {
        display: block !important;
    }



    /**
     * Header
     */
    header .c4 {
        max-width: 75%;
    }

    .logo img {
        margin: 0;
        height: 40px;
    }

    header .menu {
        display: none;
    }

    .menu li {
        display: block;
        margin: 5px auto 0;
    }

    .menu li.btn-donate a {
        display: inline-block;
    }



    /**
     * Buttons
     */
    .blue-btn-wrap,
    .orange-btn-wrap {
        text-align: center !important;
    }

    .blue-btn-wrap br,
    .orange-btn-wrap br {
        display: block !important;
    }

    .blue-btn-wrap a,
    .orange-btn-wrap a {
        float: none !important;
        width: auto !important;
        margin: 0 auto 20px !important;
        /*padding: 15px 45px !important;*/
        padding: 15px !important;
    }

    .blue-btn-wrap a:only-child,
    .orange-btn-wrap a:only-child {
        width: 100% !important;
    }



    /**
     * Banner
     */
    .banner:empty {
        min-height: 200px;
    }

    .caption {
        max-width: 100%;
    }

    

    /**
     * Home
     */
    .help .c6,
    .help .c6:only-child {
        max-width: 100%;
        margin-top: 8px;
    }

    .help .c6:first-of-type {
        margin-top: 0;
    }



    /**
     * Locations
     */
    html .locations-wrap li .subpage-left,
    html .locations-wrap li .subpage-right {
        float: none;
        width: 100%;
        padding: 0;
        text-align: center;
    }

    .locations-wrap .about-thumb {
        position: relative;
        padding-top: 56.25%;
    }



    /**
     * Programs
     */
    .programs-wrapper .c4 {
        max-width: 100%;
        margin-top: 20px;
    }

    .programs-wrapper .c4:first-of-type {
        margin-top: 0;
    }

    .programs-list .c3,
    .programs-list .c9 {
        max-width: 100%;
    }

    .programs-list li .program-image {
        margin-bottom: 20px;
    }



    /**
     * Get Involved
     */
    .get-involved-sections .c4 {
        margin-top: 50px;
    }

    .get-involved-sections .c4:first-of-type {
        margin-top: 0;
    }

    .get-involved-section {
        max-width: 400px;
        margin: 0 auto;
    }

    .get-involved-section .get-involved-icon,
    .get-involved-section .get-involved-description {
        margin: 0 0 17px;
    }



    /**
     * Blog
     */
    .blog-intro {
        display: none;
    }

    .blog .c8 {
        float: none;
        max-width: 100%;
    }



    /**
     * Newsletter
     */
    .newsletter-signup .c3 {
        max-width: 50%;
        margin-top: 16px;
    }



    /**
     * About
     */
    .inner.about {
        padding: 80px 15px;
    }

    .about-subpages li .subpage-left,
    .about-subpages li .subpage-right {
        display: block;
        width: 100%;
        height: auto;
    }

    .about-thumb {
        position: relative;
        height: auto;
        margin-bottom: 30px;
        padding-top: 56.25%;
    }

    .resources-wrap .row .c3 {
        width: 100%;
    }



    /**
     * Community
     */
    .community-subpages .c4 {
        width: 100% !important;
        margin-top: 50px !important;
    }

    .community-subpages .c4:first-of-type {
        margin-top: 0 !important;
    }



    /**
     * Footer
     */
    footer {
        text-align: center;
    }

    .footer-social-wrap {
        margin-top: 20px;
    }

    .footer-menu-wrap,
    .footer-social-wrap {
        max-width: 100%;
    }

    .menu-social li {
        float: none;
        display: inline-block;
        margin-left: 0 0 0 15px;
    }

    .menu-social li:first-of-type {
        margin: 0;
    }
}
