/* Tablet */
@media only screen and (max-width: 1300px) {

    h1 {
        font-size: 55px;
    }

    h2 {
        font-size: 40px;
    }
    
    h3 {
        font-size: 20px;
    }
    
    p {
        font-size: 18px;
    }

    .mainCta {
        font-size: 18px;
    }

    section {
        width: 90%;
        padding-bottom: 15em;
        padding-top: 15em;
    }

    /* Navigation */

    .navContainer {
        width: 90%;
    }

    /* Hero */

    header {
        width: 90%;
    }

    /* Portfolio */

    .cardContainer {
        grid-column-gap: 5%;
        grid-row-gap: 5%;
    }

    .titleContainer {
        margin-bottom: 4em;
    }

    /* Contact */
    

    /* Footer  */

    .footerContainer {
        width: 90%;
    }

    /* Case Study */

    .gridContainer {
        grid-column-gap: 5%;
        grid-row-gap: 5%;
    }


}

/* Mobile */
@media only screen and (max-width: 1000px) {


    /* Portfolio */
    .cardContainer {
        grid-template-columns: repeat(1, 1fr);
        grid-template-rows: repeat(4, 1fr);
    }

    /* Case Study */
    .grid { 
        grid-template-columns: repeat(1, 1fr);
        grid-template-rows: repeat(6, 1fr);
    }

    .fullLength {
        grid-column-start: span 1;
    }

    .gridContainer {
        grid-template-columns: repeat(1, 1fr);
        grid-template-rows: repeat(2, 1fr);
    }
    
    /* Case Study */
    .widthChange {
        width: auto;
        height: 80%;
    }
}

@media only screen and (max-width: 900px) {

    /* Case Study */
    .heightChange {
        width: 90%;
        height: auto;
    }
}

@media only screen and (max-width: 800px) {
    h1 {
        font-size: 45px;
    }

    h2 {
        font-size: 30px;
    }
    
    h3 {
        font-size: 20px;
    }
    
    p {
        font-size: 16px;
    }

    .mainCta {
        font-size: 16px;
    }

    /* Navigatoin */

    nav {
        height: 150px;
    }

    .navLogo {
        margin-bottom: 1em;
    }

    .navContainer {
        width: 90%;
        flex-direction: column;
    }

    /* Portfolio */

    .cardImg {
        height: 300px;
    }

    /* Footer */

    .footerContainer {
        flex-direction: column;
        align-items: baseline;
    }

    .footerLogo {
        margin-bottom: 2em;
    }

    .footerLinks {
        display: flex;
        flex-direction: column;
        align-items: baseline;
    }

    footer a {
        margin-right: 0em;
        margin-bottom: 1.5em;
    }
    
    footer a:last-child {
        margin-right: 0px;
    }

    /* Case Study */
    .caseText {
        grid-template-columns: repeat(1, 1fr);
        grid-template-rows: repeat(2, 1fr);
        grid-column-gap: 0px;
        grid-row-gap:25px ;  
    }


    .fullLength {
        height: 400px;
    }

    .halfLength {
        height: 400px;
    }

    .heightChange {
        width: 75%;
        height: auto;
    }

    .widthChange {
        height: 90%;
        width: auto;
    }
}