/*To Add: Intersection Observer to avoid perforamnce issues and lag*/

body {
    background-color: lightblue;
}


.videos iframe,
.extras iframe{
    width: 100%;
    max-width: 100%;
    height: auto;
    aspect-ratio: 16/9;
    display: block;
}

#video-gallery,
#extra-gallery {
    display: grid;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 15px;
    padding: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.videos,
.extras {
    background: lightpink;
    border-radius: 15px;
    overflow: hidden;
    min-width: 0;
    display: block;
    align-items: center;
    text-align: center;
}

.videos figcaption,
.extras figcaption {
    text-align: center;
    font-size: 20px;
    padding: 10px 15px;
}


h2{
    text-align: center;
    background: beige;
    padding: 20px 15px;
    border-radius: 15px;
    margin: 0px auto;
    width: 350px;
}