/**
 * Add any custom CSS here.
 *
 * This file will be loaded after all other theme stylesheets.
 */

/* --- Distributor videos --- */

.distributor-video-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.distributor-video-grid__item {
    position: relative;
    padding-top: 56.25%; /* 16:9 ratio */
    overflow: hidden;
}

.distributor-video-grid__item iframe,
.distributor-video-grid__item embed,
.distributor-video-grid__item object,
.distributor-video-grid__item > div {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.distributor-video-grid__item > div[style] {
    width: 100% !important;
    height: 100% !important;
}

@media (max-width: 767px) {
    .distributor-video-grid {
        grid-template-columns: 1fr;
    }

    /* Prevent Elementor's flex-wrap from collapsing the widget height */
    .e-con.e-flex > .e-con-inner > .elementor-widget-shortcode.distributor-videos,
    .e-con.e-flex > .elementor-widget-shortcode.distributor-videos {
        width: 100%;
        flex-shrink: 0;
    }
}