
h2 {
    font-size: 20px;
    font-style: italic;
    color: #191970;
    padding: 0 0 15px 0;
}

p {

    font-size: 20px;
    padding: 20px;
}

.header {
    text-align: center;
    font-size: 20px;
    position: sticky;
    top: 0;
    /*Required for the stickiness */
}

.wrapper {
    max-width: 100%;
    /*Sets wrapper/page width*/
    display: grid;
    grid-gap: 6px;
}


@media screen and (min-width: 360px) and (max-width:1024px) {

    .content {
        padding: 10px 10px 0 10px;
        border: 4px solid #dcdcdc;
        border-style: double;
    }

    .section {
        padding: 25px 0 25px 10px;
        font-size: 20px;
        color: #191970;
        font-style: italic;
        font-weight: bold;

    }

    .content h2 {
        padding: 10px 0 20px 5px;
        font-size: 20px;
    }

    .content p {
        padding: 5px;
        font-size: 18px;
    }

    .bio {
        border: 1px solid #dcdcdc;
        margin-top: 10px;
        margin-bottom: 5px;


    }



    .wrapper {
        margin: 0 auto;
        grid-template-columns: 1fr;
    }

    .header,
    .footer {
        grid-column: 1 / -1;
        /* needed for the floated layout */
        clear: both;
    }

}

@media screen and (min-width: 1024px) {

    /* no grid support? */
    .content {
        padding: 20px 20px 0 20px;
        border: 4px solid #dcdcdc;
        border-style: double;
    }

    .section {
        padding: 0 0 25px 5px;
        font-size: 25px;
        color: #191970;
        text-decoration: underline;
        font-weight: bold;
    }

    .bio {
        border: 1px solid #dcdcdc;
        margin-top: 10px;
        margin-bottom: 5px;

    }

    .wrapper {
        margin: 0 auto;
        grid-template-columns: 1fr 1fr;
        /*Changes wrapper width*-original 2fr 2fr*/

    }

    .header,
    .footer {
        grid-column: 1 / -1;
        /* needed for the floated layout */
        clear: both;
    }

}

.wrapper>* {
    background-color: #ffffff;
    color: #000000;
    border-radius: 2.5px;
    font-size: 150%;
    /* needed for the floated layout*/
}

/* We need to set the widths used on floated items back to auto, and remove the bottom margin as when we have grid we have gaps. */
@supports (display: grid) {
    .wrapper>* {
        width: auto;
        margin: 0;
    }
}


/*Members CSS start*/

img {
    max-width: 100%;
}


.media {
    margin-bottom: 2em;
    border: 2px solid #dcdcdc;
    padding: 10px;
    border-style: ridge;
}

.media>.title {
    grid-area: title;
}

.media>.img {
    grid-area: img;
}

.media>.content {
    grid-area: bd;
}


.media {
    display: grid;
    grid-column-gap: 20px;
    grid-template-areas:
        "title"
        "img"
        "bd";

}

@media (max-width: 414px) {
    img {
        max-width: 50%;
    }

    .section {
        font-size: 20px;
        padding: 10px 0 30px 5px;
        color: navy;
        text-decoration: underline;
    }

    .content h2 {
        font-size: 18px;
        padding: 0 0 10px 5px;
        color: navy;
        text-decoration: underline;
    }

    .bio p {
        font-size: 18px;
    }
}




@media (min-width: 600px) {

    .section {
        text-decoration: underline;
    }

    .content h2 {
        text-decoration: underline;
    }

    /* clearfix*/
    .media:after {
        content: "";
        display: block;
        clear: both;
    }

    .media>.media {
        margin-left: 160px;
        clear: both;
    }

    .media .img {
        float: left;
        margin: 0 10px 0 0;
        width: 150px;
    }



    .media.media-flip .img {
        float: right;
        margin: 0 0 0 10px;
    }

    .media>* {
        margin: 0 0 0 160px;

    }

    .media.media-flip>* {
        margin: 0 160px 0 0;
    }

    @supports(display: grid) {

        /* override */
        .media>*,
        .media.media-flip>* {
            margin: 0;
        }

        .media .img,
        .media.media-flip .img {
            width: auto;
            margin: 0;
        }

        .media:after {
            content: none;
        }

        .media {
            display: grid;
            grid-column-gap: 10px;
            grid-template-columns: 150px 3fr;
            grid-template-rows: auto 1fr auto;
            grid-template-areas:
                "img title"
                "img bd";

        }

        .media.media-flip {
            grid-template-columns: 3fr 150px;
            grid-template-areas:
                "title img"
                "bd img";
        }
    }
}

