body{
    margin:0;
    font-family:Arial,sans-serif;
}

.grid-container{
    display:grid;
    grid-template-areas:
        "header header header"
        "content1 content2 content3"
        "content4 content5 content3"
        "content6 content6 content7"
        "footer footer footer";

    grid-template-columns:repeat(3,1fr);
    gap:10px;
    padding:10px;
}

.header{
    grid-area:header;
    display:flex;
    justify-content:space-between;
    align-items:center;
    background:lightblue;
    padding:20px 30px;
}

.header h1{
    margin:0;
}

.nav{
    display:flex;
    gap:18px;
    background:lightyellow;
    padding:10px 15px;
}

.nav p{
    margin:0;
}

.content1{grid-area:content1;}
.content2{grid-area:content2;}
.content3{grid-area:content3;}
.content4{grid-area:content4;}
.content5{grid-area:content5;}
.content6{grid-area:content6;}
.content7{grid-area:content7;}
.footer{grid-area:footer;}

.content1,
.content2,
.content3,
.content5,
.content6,
.content7,
.footer{
    display:flex;
    justify-content:center;
    align-items:center;
}

.content4{
    background:lightpink;
    padding:12px;
}

.content5{
    background:lightseagreen;
    padding:12px;
}

.content3{
    background:lightgoldenrodyellow;
}

.content6{
    background:lightgray;
    flex-direction:column;
    padding:10px;
}

.content7{
    background:lightsteelblue;
}

img{
    width:100%;
    max-height:300px;
    object-fit:contain;
}

.content1 iframe{
    width:100%;
    aspect-ratio:16/9;
    border:none;
}

.content6 iframe{
    width:100%;
    height:300px;
    border:none;
}

figure{
    margin:0;
    display:flex;
    flex-direction:column;
    align-items:center;
}

figcaption{
    text-align:center;
    margin-top:8px;
    font-size:.9rem;
}

@media(max-width:768px){

    .grid-container{
        grid-template-areas:
            "header"
            "content1"
            "content2"
            "content3"
            "content4"
            "content5"
            "content6"
            "content7"
            "footer";

        grid-template-columns:1fr;
    }

    .header{
        flex-direction:column;
        align-items:flex-start;
        gap:10px;
    }

    .nav{
        flex-wrap:wrap;
    }
}