:root {
    --section-cqw-font-size: 5.3cqw;
}

main {
    width: 100%;
    height: 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: row;
    justify-content: center;
    align-items: center;
    gap: 3rem;
    display: grid;
    /* grid-template-columns: repeat(3, 1000px); */

    font-size: 0px;
    /* overflow: hidden; */


    /* background-color: greenyellow; */
}

main section {
    width: 100%;
    height: fit-content;
    position: relative;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: space-around;
    gap: 2rem;

    margin: 0;
    margin-bottom: 10px;
    padding: 0;
    /* overflow-x: scroll; */
}

@keyframes slide-animation {
    0% {
        left: 0%;
    }

    100% {
        left: -100%;
    }
}

main section::-webkit-scrollbar {
    background-color: rgb(219, 219, 219);
    padding: 2px;
    height: 15px;
}

main section::-webkit-scrollbar-track {
    background-color: rgb(204, 204, 204);
    box-shadow: 0px 0px 2px 2px rgb(80, 80, 80) inset;
    /* border: 3px solid rgb(119, 119, 119); */
}

main section::-webkit-scrollbar-thumb {
    background-color: rgb(34, 34, 34);
    border: 1px solid rebeccapurple;
    border-radius: 50px;
    width: 30px;
}

main section:hover {
    /* animation-duration: 1000s; */
}

figure {
    /* position: absolute;
    left: 0;
    margin: 0; */
    margin: 0;
    padding: 0;
    /* width: 1440px; */
    /* height: 100%; */
    min-width: 480px;
    max-width: 480px;
    aspect-ratio: .6;
    /* aspect-ratio: 1.6; */
    /* max-width: 1440px; */
    /* height: fit-content; */
    display: flex;
    flex-direction: column;
    justify-content: start;
    align-items: center;
    border-radius: 7px;
    /* overflow-x: hidden; */
    box-shadow: 0px 0px 130px 3px rgb(37, 37, 37);
}

figure:hover {
    box-shadow: 0px 0px 30px 3px rgb(61, 61, 61);
}

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;
    height: 150px;
}

figcaption>h1 {
    color: white;
}

iframe {
    margin: 0;
    padding: 0;
    width: 100%;
    max-width: 1440px;
    height: 100%;
}

iframe:hover {
    /* background-color: aliceblue;
    color: rgb(31, 31, 31); */
    /* transition: .3s; */
}

@media screen and (max-width: 700px) {
    main {
        width: 100%;
        padding: 0px;
        padding-top: 70px;
        gap: 2rem;
    }
    
    figcaption {
        font-size: .7rem;
    }
    
    iframe {
        /* height: 1000px; */
        margin-top: auto;
        width: 100%;
    }
    
    main section {
        width: 100%;
        justify-content: center;
        margin: 0;
        padding: 0;
        gap: 1rem;
    }

    figure {
        min-width: 90%;
        max-width: 90%;
        margin: 0;
        padding: 0;
    }
}