main {
    display: grid;
    grid-template-areas:
        "header header header"
        "video video object"
        "poem poem bob"
        "flag meme list";
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: auto 1fr 1fr 1fr;
    width: 90%;
    margin: 2rem auto;
    border: 2px solid black;
    text-align: center;
}

h1 {
    grid-area: header;
    border: 2px solid black;
    border-top: none;
    margin: 0;
    padding: 1.5rem 0;
    font-size: 2rem;
    font-weight: bold;
}

.vid {
    grid-area: video;
    width: 100%;
    height: 100%;
    border: 2px solid black;
    border-top: none;
}

.poem {
    grid-area: poem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    border: 2px solid black;
    border-top: none;
    padding: 1rem;
    font-size: 1rem;
    line-height: 1.5;
}

.object {
    grid-area: object;
    border: 2px solid black;
    border-top: none;
    margin: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.object iframe {
    width: 100%;
    height: 100%;
    border: none;
}

figcaption {
    font-size: 0.9rem;
    padding: 0.5rem;
}

.bob {
    grid-area: bob;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border: 2px solid black;
    border-top: none;
}

.flag {
    grid-area: flag;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border: 2px solid black;
    border-top: none;
}

.meme {
    grid-area: meme;
    border: 2px solid black;
    border-top: none;
    margin: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.meme img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.list {
    grid-area: list;
    border: 2px solid black;
    border-top: none;
    list-style-position: inside;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 1rem;
    font-size: 0.95rem;
}

.list li {
    text-align: left;
}

main > * {
    min-height: 250px;
}

@media (max-width: 900px) {
    main {
        grid-template-areas:
            "header"
            "video"
            "object"
            "poem"
            "bob"
            "flag"
            "meme"
            "list";
        grid-template-columns: 1fr;
    }

    h1 {
        font-size: 1.5rem;
        padding: 1rem;
    }

    .poem, .list {
        font-size: 0.9rem;
    }
}
