.live-photo-wrapper {
    position: relative;
    margin-bottom: 1.5em;
    line-height: 0; /* 防止图片底部有额外空隙 */
    transition: width 0.3s ease;
}

.live-photo-wrapper .preview-image {
    display: block;
    width: 100%;
    height: auto;
    position: relative;
    z-index: 1;
}

.live-photo-wrapper .live-photo-container {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2;
}

.live-photo-wrapper.initialized .preview-image {
    visibility: hidden;
}

/* 确保编辑器中的容器有正确的高度 */
.wp-block-live-photos-block-main {
    margin-bottom: 28px;
    max-width: 100%;
}

/* LivePhotosKit 样式覆盖 */
[data-live-photo] {
    display: block;
    width: 100%;
    height: 100%;
    background: transparent;
}

/* 调整大小时的样式 */
.live-photo-resizable {
    position: relative;
    margin: 0 auto;
}

.live-photo-resizable .components-resizable-box__handle {
    display: block;
    z-index: 10;
}

/* 调整大小时显示边框 */
.live-photo-resizable:hover {
    outline: 2px solid #007cba;
}

/* 调整大小手柄的样式 */
.components-resizable-box__handle-left,
.components-resizable-box__handle-right {
    width: 10px !important;
    background: rgba(0,0,0,0.2);
}

.components-resizable-box__handle-left:hover,
.components-resizable-box__handle-right:hover {
    background: rgba(0,0,0,0.5);
}

/* 确保初始显示时的合适大小 */
.wp-block-live-photos-block-main {
    max-width: 100%;
}

.live-photo-resizable {
    margin: 0 auto;
    max-width: 100%;
} 