
/*
FILE: figures.css
AUTHOR: Edward G. McKeown
DATE: 2024/11/02
VERSION: 1.0.1
DESCRIPTION:
    CSS to align the figures and grids on index.html
 
*/

main {
    display: grid;
    width: 100%;
    height: auto;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(8, .25fr);
    grid-gap: 0;
}

p {
    line-height: 3;
}

#section001 {
    grid-row: 1 / 2;
    grid-column: 1 / 3;
}

#section002 {
    grid-row: 2 / 3;
    grid-column: 1 / 3;
}

#section003 {
    grid-row: 3 / 4;
    grid-column: 1 / 3;
}

h5 {
    display: none;
}

#section00 {
    grid-row: 4 / 5;
    grid-column: 1 / 3;
}

#section01 {
    grid-row: 5 / 6;
    grid-column: 1 / 2;
}

#section02 {
    grid-row: 5 / 6;
    grid-column: 2 / 3;
}

#section025 {
    grid-row: 6 / 7;
    grid-column: 1 / 3;
}

#section03 {
    grid-row: 7 / 8;
    grid-column: 1 / 2;
}

#color_change {
    color: #0000ff;
}

#section04 {
    grid-row: 7 / 8;
    grid-column: 2 / 3;
}
    
section > .top_figure {
    width: 100%;
    padding-right: 10%;
}

section > .top_figure > picture > img {
    width: 100%;
    height: auto;
}

section > .top_figure > figcaption {
    width: 100%;
    font-weight: bold;
    padding-top: .25em;
    margin-bottom: 1em;
}
    
section > .bottom_figure {
    width: 80%;
    padding-left: 10%;
}

section > .bottom_figure > img {
    width: 100%;
    height: auto;
}

section > .bottom_figure > figcaption {
    width: 100%;
    font-weight: bold;
    padding-top: .25em;
    margin-bottom: 1em;
}

@media only screen and (max-width: 767px) {
        
    main {
        display: grid;
        width: 100%;
        height: auto;
        grid-template-rows: repeat(8, .25fr);
        grid-template-columns: repeat(2, 1fr);
        grid-gap: 0;
    }

    p {
        line-height: 1;
    }

    #section001 {
        grid-row: 1 / 2;
        grid-column: 1 / 3;
    }

    #section002 {
        grid-row: 2 / 3;
        grid-column: 1 / 3;
    }

    #section003 {
        grid-row: 3 / 4;
        grid-column: 1 / 3;
    }

    h5 {
        display: none;
    }

    #section00 {
        grid-row: 4 / 5;
        grid-column: 1 / 3;
    }

    #section01 {
        grid-row: 5 / 6;
        grid-column: 1 / 3;
    }

    #section02 {
        grid-row: 6 / 7;
        grid-column: 1 / 3;
        padding: 3%;
    }

    #section025 {
        grid-row: 7 / 8;
        grid-column: 1 / 3;
    }

    #section03 {
        grid-row: 8 / 9;
        grid-column: 1 / 3;
    }

    #color_change {
        color: #0000ff;
    }

    #section04 {
        grid-row: 9 / 10;
        grid-column: 1 / 3;
        padding: 3%;
    }
        
    section > .top_figure {
        width: 100%;
        padding-right: 0;
        margin: 0;
    }

    section > .top_figure > picture > img {
        width: 100%;
        height: auto;
        margin-left: auto;
        margin-right: auto;    
    }

    section > .top_figure > figcaption {
        width: 100%;
        font-weight: bold;
        padding-top: .25em;
        margin-bottom: 1em;
    }
        
    section > .bottom_figure {
        width: 80%;
        padding-right: 0;
    }

    section > .bottom_figure > img {
        width: 100%;
        height: auto;
        margin-left: auto;
        margin-right: auto;
    }

    section > .bottom_figure > figcaption {
        width: 100%;
        font-weight: bold;
        padding-top: .25em;
        margin-bottom: 1em;
    }

}