.mw-video-embed {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
}

.mw-video-embed iframe,
.mw-video-embed video,
.mw-video-embed embed,
.mw-video-embed object {
    position: absolute;
    inset: 0;
    width: 100% !important;
    height: 100% !important;
}

.mw-video-embed > .fluid-width-video-wrapper {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    padding: 0 !important;
}

.mw-video-products {
    margin-block: 2.5rem;
}

.mw-video-products > h2 {
    margin-bottom: 1.5rem;
}

/* Reset Divi list spacing */
.mw-video-products ul.mw-video-products__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 2rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.mw-video-products__item {
    min-width: 0;
    text-align: center;
}

.mw-video-products__item a {
    display: block;
}

.mw-video-products__item a:focus-visible {
    outline: 2px solid currentColor;
    outline-offset: 5px;
}

.mw-video-products__item img {
    display: block;
    width: 100%;
    max-width: 260px;
    height: auto;
    margin-inline: auto;
}

.mw-video-products__item h3 {
    padding-top: 1rem;
    font-size: 1.125rem;
    line-height: 1.4;
}

@media (max-width: 767px) {
    .mw-video-products ul.mw-video-products__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 1.25rem;
    }
}

@media (max-width: 479px) {
    .mw-video-products ul.mw-video-products__grid {
        grid-template-columns: minmax(0, 1fr);
    }
}
