/* --- VIDEO EMBED (--video-embed-*) --- */
.video-embed {
    padding: var(--video-embed-padding, 48px 0);
    background: var(--video-embed-bg, transparent);
}

/* the player box: the content column by default, a narrower one with --video-embed-max-width */
.video-embed__frame {
    position: relative;
    max-width: var(--video-embed-max-width, var(--content-max-width, 1200px));
    margin: 0 auto;
    padding: 0 var(--video-embed-gutter, 12px);
}

.video-embed__player {
    display: block;
    width: 100%;
    aspect-ratio: var(--video-embed-ratio, 16 / 9);
    height: auto;
    border: 0;
    border-radius: var(--video-embed-radius, 0);
    background: var(--video-embed-player-bg, #000000);
}

/* Tablet (768–991px): each falls back to its desktop token */
@media (min-width: 768px) and (max-width: 991px) {
    .video-embed {
        padding: var(--video-embed-padding-tablet, var(--video-embed-padding, 48px 0));
    }

    .video-embed__frame {
        max-width: var(--video-embed-max-width-tablet, var(--video-embed-max-width, var(--content-max-width, 1200px)));
    }
}

/* Phone (≤767px): each falls back to its desktop token */
@media (max-width: 767px) {
    .video-embed {
        padding: var(--video-embed-padding-mobile, var(--video-embed-padding, 48px 0));
    }

    .video-embed__frame {
        padding: 0 var(--video-embed-gutter-mobile, var(--video-embed-gutter, 12px));
    }

    .video-embed__player {
        border-radius: var(--video-embed-radius-mobile, var(--video-embed-radius, 0));
    }
}

/* The player's widest box and its height (--video-embed-player-max-width, --video-embed-height),
   e.g. 560px wide at the start of the column and 315px tall, an embed code's own size.
   Default: the frame's width and the ratio's height, as above. */
.video-embed__player {
    max-width: var(--video-embed-player-max-width, none);
    height: var(--video-embed-height, auto);
}
