/* Task 20：同城分享正文媒体（公开详情页）
   服务端净化会剥掉编辑器的 div 包装，iframe/video 成为正文直接子元素。 */

.blog-item-content img {
    max-width: 100%;
    height: auto;
}

.blog-item-content iframe {
    display: block;
    width: 100% !important;
    max-width: 100%;
    height: auto !important;
    aspect-ratio: 16 / 9;
    margin: 1.2em 0;
    border: 0;
    background: #000;
    border-radius: 4px;
}

.blog-item-content video {
    display: block;
    width: 100%;
    max-width: 100%;
    height: auto;
    margin: 1.2em 0;
    border-radius: 4px;
    background: #000;
}

@media (max-width: 640px) {
    .blog-item-content iframe,
    .blog-item-content video {
        margin: 1em 0;
    }
}
