:root {
    --section-cqw-font-size: 5.3cqw;
}

main {
    width: 100%;
    background-color: rgb(255, 255, 255);
    background-color: #f1f1f1;
    background-color: #303030;
    color: rgb(24, 24, 24);
    padding: 50px;
    position: relative;
    /* display: flex; */
    flex-direction: column;
    justify-content: center;
    align-items: center;
    display: grid;
    /* grid-template-columns: repeat(auto-fill, 100%); */
    grid-template-rows: max-content;
    gap: 3rem;
    /* grid-template-columns: repeat(auto-fill, 330px); */
    /* overflow-y: scroll; */

    font-size: 0px;

    /* background-color: greenyellow; */
}

figure {
    margin: 0;
    padding: 0;
    width: 100%;
    height: fit-content;
    max-width: 1280px;
    display: flex;
    flex-direction: column;
    justify-content: start;
    align-items: center;
    border-radius: 7px;
    overflow: hidden;
}

figure:hover {
    /* box-shadow: 0px 0px 30px 7px rgb(133, 255, 208); */

}

figcaption {
    /* padding-left: 10px;
    padding-right: 10px; */
    color: wheat;
    font-size: 1rem;
    align-self: flex-start;
}

figcaption > h1 {
    color: white;
}

iframe {
    width: 100%;
    /* height: 700px; */
    aspect-ratio: 16/9;
}

iframe:hover {
    background-color: aliceblue;
    color: rgb(31, 31, 31);
    /* transition: .3s; */
}

@media screen and (max-width: 700px) {
    main {
        padding: 10px;
        padding-top: 70px;
        gap: 2rem;
    }
    figcaption {
        font-size: .7rem;
    }
    iframe {
        width: 100%;
    }
}