.lesson-video {
    position: relative;
    padding: 0 0 80px; /* half of the padding for the wave */
}

.lesson-video h2 {
    font-family: var(--font-title);
    font-size: 40px;
    font-weight: 600;
    letter-spacing: -.03em;
    line-height: 1.2;
    margin: 0;
    text-align: center;
}

.lesson-video__inner {
    display: flex;
    flex-direction: column;
    gap: 28px;
    position: relative;
    z-index: 4;
}

/* Blue background covering only the bottom 50% of the block */
.lesson-video__bg {
    background: var(--primary-blue);
    bottom: 0;
    left: 0;
    position: absolute;
    right: 0;
    top: 50%;
}

/* oEmbed Responsive Wrapper */
.lesson-video__wrapper {
    border-radius: var(--radius-m);
    height: 640px;
    margin: 0 auto;
    max-width: 1024px;
    overflow: hidden;
    padding-bottom: clamp(0px, 56.25%, 427px);
    position: relative;
    width: 100%;
}

@media (min-width: 760px) {
    .lesson-video__wrapper {
        padding-bottom: 427.5px;
    }
}

.lesson-video__wrapper iframe,
.lesson-video__wrapper object,
.lesson-video__wrapper embed {
    border: none;
    border-radius: var(--radius-m);
    height: 100%;
    left: 0;
    position: absolute;
    top: 0;
    width: 100%;
}

.lesson-video__frame {
    align-items: center;
    border-radius: var(--radius-m);
    display: flex;
    justify-content: center;
    margin: 0 auto;
    max-width: 760px;
    overflow: hidden;
    position: relative;
    text-decoration: none;
    width: 100%;
}

.lesson-video__frame img {
    width: 100%;
}

.lesson-video__play {
    align-items: center;
    background: var(--primary-red);
    border-radius: 999px;
    color: var(--white);
    display: inline-flex;
    font-size: 30px;
    height: 72px;
    justify-content: center;
    left: 50%;
    padding-left: 5px;
    position: absolute;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 72px;
}

@media (max-width: 760px) {
    .lesson-video h2 {
        font-size: 36px;
    }
}
