/* 响应式图片区块 - 前端样式 */
.wp-block-rib-theme-responsive-image {
    /*margin: 20px 0;*/
    max-width: 100%;
    box-sizing: border-box;
    /*border-radius: 10px;*/
    overflow: hidden;
    font-size: 0;
}
.wp-block-rib-theme-responsive-image:first-of-type{
    border-radius: 10px 10px 0 0;
}
.wp-block-rib-theme-responsive-image:last-of-type{
    border-radius: 0 0 10px 10px;
}
.wp-block-rib-theme-responsive-image .rib-image {
    max-width: 100%;
    height: auto;
    display: block;
}

/* 对齐方式 */
.wp-block-rib-theme-responsive-image.alignleft {
    float: left;
    margin-right: 2em;
    margin-top: 0.5em;
    margin-bottom: 0.5em;
}

.wp-block-rib-theme-responsive-image.alignright {
    float: right;
    margin-left: 2em;
    margin-top: 0.5em;
    margin-bottom: 0.5em;
}

.wp-block-rib-theme-responsive-image.aligncenter {
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

.wp-block-rib-theme-responsive-image.alignwide {
    width: 100%;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.wp-block-rib-theme-responsive-image.alignfull {
    width: 100vw;
    max-width: 100vw;
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
}

/* 清除浮动 */
.wp-block-rib-theme-responsive-image::after {
    content: "";
    display: table;
    clear: both;
}

/* 响应式调整 */
@media screen and (max-width: 767px) {
    .wp-block-rib-theme-responsive-image.alignleft,
    .wp-block-rib-theme-responsive-image.alignright {
        float: none;
        margin-left: auto;
        margin-right: auto;
        display: block;
    }
}

/* 图片元素样式 */
.wp-block-rib-theme-responsive-image picture {
    display: block;
    width: 100%;
}

/* 确保图片在容器内正确显示 */
.wp-block-rib-theme-responsive-image img {
    border-radius: 0;
    border: 0;
    padding: 0;
    background: transparent;
}

@media screen and (min-width: 768px){
    .wp-block-rib-theme-responsive-image {
       /*margin: 40px 0;*/
    }
}