﻿/* iPad Landscape Width */
@media screen and (max-width: 1366px) {
}

/* iPad Portrait Width */
@media screen and (max-width: 1024px) {
}

/* Anything up to a new iPad Pro 12.9 in portrait mode (old iPads and all phones) */
@media screen and (max-width: 1023px) {

    .pageTopImage {
        aspect-ratio: unset;
    }

    .pageTopImage .theHeaderContent {
        margin: 0 0 50px;
    }
    .pageTopImage .theHeaderContent h1,
    .headerWithImage .theContent h1 {
        font-size: 3rem;
        margin-bottom: 8px;
    }
    .pageTopImage .theHeaderContent p,
    .headerWithImage .theContent p {
        font-size: 1.6rem;
        line-height: 1.3em;
    }

    .headerWithImage .theContent {
        padding: 30px;
        margin: unset;
        width: calc(100% - 60px);
    }

    .centreText {
        padding: 50px 10px;
    }

    a.linkButton.action {
        text-align: center;
        line-height: 1.4em;
        padding: 8px 15px;
    }

    .pageStartNoImage h1 {
        font-size: 2.8rem;
    }

    .imageGrid ul,
    .contentImageSplit {
        gap: 15px;
        margin-bottom: 30px;
    }
    .imageGrid ul li,
    .contentImageSplit article {
        width: calc(50% - 30px);
    }
    .contentImageSplit {
        margin-top: 15px;
    }
    .contentImageSplit .theContentArea {
        padding: 0 15px 20px 15px;
        width: calc(50% - 60px);
    }

    .contentImageSplit .theContentArea h2 {
        font-size: 2.3rem;
    }

    .fullWidthImage {
        background-size: cover;
    }


    footer .footerBar .footerImage img {
        height: 100%;
        aspect-ratio: unset;
    }
    footer .footerBar .footerContent div {
        padding: 25px;
    }
    footer .footerBar .footerContent h5 {
        font-size: 1.4rem;
    }

}

/* iPhone Landscape Width */
@media screen and (max-width: 880px) {
}

/* iPhone Portrait Width */
@media screen and (max-width: 440px) {

    .headerWithImage {
        margin-bottom: 10px;
    }

    .pageTopImage .theHeaderContent {
        padding: 20px 0;
        width: 100%;
    }

    .pageTopImage .theHeaderContent h1,
    .headerWithImage .theContent h1,
    .centreText h2,
    .imageTextout .theTextContent h3,
    .contentImageSplit .theContentArea h2,
    .pageStartNoImage h1 {
        font-size: 2.4rem;
    }
    .pageTopImage .theHeaderContent p,
    .headerWithImage .theContent p,
    .contentImageSplit .theContentArea p {
        font-size: 1.2rem;
    }

    .centreText p {
        font-size: 1.1rem;
    }

    .imageGrid ul,
    .contentImageSplit,
    footer .footerBar .maxPageWidth {
        display: block;
        margin: 0 auto;
    }
    .imageGrid ul li,
    .contentImageSplit article,
    footer .footerBar .maxPageWidth article {
        width: 100%;
        margin: 0 auto 20px;
    }
    .contentImageSplit .theContentArea {
        padding: 0;
        margin: 25px auto;
        width: 96%;
        text-align: center;
    }
    .contentImageSplit.imageRight .theContentArea {
        text-align: center;
    }

    .centreText .contentLogo,
    .contentImageSplit .contentLogo,
    .contentImageSplit.imageRight .contentLogo {
        width: 80%;
        margin: 0 auto 20px;
    }


    .centreText {
        margin: 25px auto 35px;
        padding: 0;
    }

    .imageTextout .theTextContent {
        padding: 20px;
        width: calc(96% - 40px);
    }
    .imageTextout {
        padding: 20px 0;
        margin: 0 auto 25px;
    }

    .contactForm ul li:not(.buttonArea) .theInputs,
    .contactForm ul li .requiredError {
        display: block;
        text-align: center;
    }
    .contactForm ul li label,
    .contactForm ul li p {
        top: 0;
        margin-bottom: 8px;
        width: 100%;
        display: block;
    }


    footer .footerBar .maxPageWidth article {
        padding-top: 10px;
        margin: 0 auto;
    }
    footer .postFooter p {line-height: 1.4;}

}
