/**
 * Media block
 */

.single-block div[data-streamfield-stream-container] > div:not(:nth-child(2)),
.single-block div[data-streamfield-stream-container] .w-panel__header {
    display: none;
}

.single-block .w-panel__content {
    /* stylelint-disable-next-line declaration-no-important -- overrides the Wagtail admin's panel background */
    background-image: none !important;
}

.media-block__hide-image [data-contentpath='image'],
.media-block__hide-video [data-contentpath='video'],
.media-block__hide-caption [data-contentpath='caption'] {
    display: none;
}
