/* Tablet landscape */
@media screen and ( max-width: 1024px ) {
    /* Nav */
    .nav-primary .menu-item:not(.button) {
        display: none;
    }

    /* Header 
        Major rework to make it image then content.
    */
    header {
        max-height: 1000vh;
        --header-height: 60vh;
    }
    header > .flex-container {
        flex-direction: column-reverse;
        flex-wrap: nowrap;
        align-content: flex-start;
        align-items: flex-start;
        justify-content: flex-end;
        max-width: var(--max-width-text);
        max-width: 640px;
    }
    header .text-wrap {
        max-width: 100%;
    }
    header .image-wrap {
        max-width: 100%;
        min-height: var(--header-height);
    }

    header {
        min-height: var(--header-height);
    }
    header > .flex-container:before {
        left: calc(var(--max-width-text) * -1 + var(--gutter));
        /* max-height: var(--header-height); */
    }
    header > .flex-container:after {
        right: calc(var(--max-width-text) * -1 + var(--gutter));
        /* max-height: var(--header-height); */
    }
    .home header .title.long-title {
        min-height: 460px;
    }
    header.search {
        min-height: 20rem;
    }

    /* Rows */
    article.post-featured-card .title {
        min-height: 5rem;
        margin-bottom: 0.5rem;
    }
    .stall-grid {
        grid-gap: 3rem;
        --cols : 2;
    }
    .col-wrapper.col-2 {
        --gap: 4rem;
    }
    .featured-content-wrap {
        column-gap: 1rem;
    }



    /* Sponsorship */
    .nf-cell[style*="width: 75%;"] {
        width: 67% !important;
    }
    .nf-cell[style*="width: 25%;"] {
        width: 33% !important;
    }
    .field-wrap .nf-field-element input[type=button] {
        width: 100%;
    }
    aside.panel.manage-sponsorships .panel-content .manage-sponsor-child {
        flex-wrap: wrap;
    }
    .manage-sponsor-child .image {
        max-width: 100%;
        min-width: 0;
        width: 33%; 
    }
    .manage-sponsor-child .right-side {
        width: calc(66% - 2rem); 
    }
    .manage-sponsor-child .actions {
        width: 100%;
        max-width: 100%;
        margin-top: 2rem;
        flex-direction: row;
    } 
    .manage-sponsor-child .actions .button:first-child { 
        margin-right: 1rem;
    }
    .manage-sponsor-child .actions .button {
        margin-bottom: 0;
    } 
    
    .sponsorship-write-letter {
        display: block;
    }

    .sponsorship-write-letter .letter {
        width: 100%;
        margin-right: 0;
        margin-bottom: 4rem;
    }
    .sponsorship-write-letter .details.panel {
        width: 100%;
    }
    .sponsorship-write-letter aside.panel.manage-sponsorships .panel-content .manage-sponsor-child {
        display: flex;
        flex-wrap: wrap;
        align-content: flex-start;
        justify-content: center;
        flex-direction: row;
    }
    aside.panel.manage-sponsorships .panel-content .manage-sponsor-child .image {
        max-width: 300px;
        margin-right: 2rem;
    }

    .sponsorship-write-letter .manage-sponsor-child .right-side {
        max-width: calc(100% - 300px - 2rem);
    }
    .sponsorship-write-letter .manage-sponsor-child:not(:first-child) .intro p {
        display: block;
    }
    .sponsorship-write-letter .manage-sponsor-child:not(:first-child) .actions a:last-child {
        display: inline-block;
    }

    /* Nav */
    nav.mega-menu > div {
        padding-top: 0;
    }
    .footer-contact > div:not(:first-child) {
        padding-left: 2rem;
    }

    /* Catalyst */
    .single-campaign-action .body-content .container > div {
        flex-basis: 100%;

    }
    .single-campaign-action .download-form-wrap {
        margin-top: -2rem;
        margin-left:auto;
        margin-right:auto;
    }
    header.campaign-action {
        position: relative;
    }
    header .image-credit {
        /* top: 1rem; */
        right: 0;
        text-align: right;
        /* bottom: unset; */
    }

    header .image-credit a {
        text-align: right;
    }
    .single-campaign-action .body-content .container {
        display: block;
        margin-top: 0;
    }

    .single-campaign-action .body-content .container { margin-top: 0rem; }
    .single-campaign-action .download-form-wrap {margin-top: 2rem;padding: var(--gutter);}

    .download-content {
        max-width: var(--max-width-text);
        margin: 0 auto;
    }

    /* Sponsorship */
    .sponsorship-child-feature .sponsorship-featured-child {
        /* margin-top: -11rem; */
    }

    /* Give */
    header.header-give {
        --header-height: 70vh;
    }
    header.header-give > .flex-container {
        flex-direction: column;
    }
    header.header-give > .flex-container .text-wrap {
        padding-left: calc(var(--gutter) * 2);
        padding-right: calc(var(--gutter) * 2);
    }
    header.header-give > .flex-container:before, header.header-give > .flex-container:after {
        max-height: 100%;
        height: 100%;
        background-size: cover;
    }

    .single_variation_wrap {
        width: 100%;
    }
    .woocommerce-variation-add-to-cart button, .single_add_to_cart_button {
        min-width: 0;
        width: 100%;
    }

    .header-give.appeal .text-wrap .title {
        margin-bottom: 0;
        margin-top: 5rem;
    }

    .single-post section.white .has-sidebar article.post-content-wrapper {
        margin-left: auto;
    }
    .single .has-sidebar {
        display: flex;
        flex-direction: row;
    }
    .single .has-sidebar aside {
        order: 3;
    }
    .single .has-sidebar article { 
        order: 1;
    }
    .single .has-sidebar .author-full {
        max-width: var(--max-width-text);
        margin-left: auto;
        margin-right: auto;
        order: 2;
    }

    aside.sidebar-widget-container {
        margin-left: auto;
        margin-right: auto;
        min-width: 0;
    }

    .single-post section.white .has-sidebar article.post-content-wrapper {
        width: 100%;
    }

    header.banner-sponsorship .image-wrap {
        position: relative;
        /* width: 100%; */
        margin-bottom: 0rem;
        max-width: 480px;
    }
    img.hero-sponsorship {
        position: relative;
        transform: none;
        max-width: 520px;
        margin: 0 auto;
    }
    header.banner-sponsorship .image-wrap:after {
        left: 0rem;
        border-width: 5px;
        right: unset;
        height: calc(100% - 15vh - 4rem);
    }
    header.banner-sponsorship > .flex-container:after {
        top: 5vh;
        left: 30vw;
        height: calc(50% - 5vh);
        width: calc( 6 / 12 * 100%);
    }
    .sponsorship-child-feature .action-button-wrap {
        margin-top: 2rem;
    }


}


@media screen and ( max-width: 1024px ) and ( min-width: 760px ) {
    .sidebar-widget {
        position: unset;
        align-items: center;
        padding-bottom: 0;
        position: relative;
        min-height: 310px;
    display: flex;flex-wrap: wrap;align-content: center;}
    aside.sidebar-widget-container {
        max-width: var(--max-width-text);
    }
    .sidebar-widget img {
        margin-top: 0;
        order: 1;
        position: absolute;
        top: 0;
    }
    .sidebar-widget .sidebar-widget-inner {
        margin-left: calc(365px + 0rem);
        text-align: left;
    }
    .sidebar-widget .sidebar-widget-inner:first-of-type {
        order: 2;
        padding-bottom: 1.5rem;
    }
    .sidebar-widget .sidebar-widget-inner:last-of-type {
        order: 3;
        padding-top: 0;
    }
    .sidebar-widget .appeal-quick-donate.inline {
        max-width: 16rem;
    }
}

@media screen and ( min-width: 1024.1px ) { 
    .top-bar.no-nav + header > div > .text-wrap {
        padding-top: 120px;
    }
}
