html,
body {
    margin: 0;
    min-height: 100%;
}

* {
    font-family: Helvetica, sans-serif;
}

html {
    background-color: white;
    
}

h1 {
    text-align: center;
    font-size: 3rem;
}

#videos-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    padding: 0 40px;
}

/* one column on mobile */
@media (max-width: 600px) {
    #videos-wrapper {
        grid-template-columns: 1fr;
    }
}

.video-card {
    background: white;
    padding: 16px;
}

.video-card video {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 16px;
}

/* reserve correct space per orientation so grid rows stay uniform
   and there's no layout shift before the video loads */
.video-card.landscape video {
    aspect-ratio: 16 / 9;
}

.video-card.portrait video {
    aspect-ratio: 9 / 16;
}