.layout-v4 .studio-generated-component{position:relative;isolation:isolate;max-width:100%;min-width:0;overflow-wrap:anywhere}
.layout-v4 .studio-generated-component *{box-sizing:border-box;min-width:0}
.layout-v4 .studio-generated-component :where(p,span,small,figcaption,td,th){color:inherit}
.layout-v4 .studio-generated-component :where(figure,blockquote,dl,dd,ul,ol){margin:0}
.layout-v4 .studio-generated-component svg{display:block;max-width:100%;overflow:visible}
.layout-v4 .studio-generated-component table{width:100%;table-layout:fixed}
.layout-v4 .studio-generated-component :where(th,td){overflow-wrap:anywhere}
.layout-v4 .studio-generated-component summary{cursor:pointer}
.layout-v4 .studio-generated-component [data-value-state=pending]{opacity:0!important}
.layout-v4 .studio-generated-component .studio-component-data-note{font-size:.85rem;line-height:1.6;padding-block-start:1rem;opacity:.8}
.layout-v4 .studio-generated-component [data-inline-field]{display:inline-block;min-width:1ch}
.layout-v4 .studio-component-empty-value{position:relative;display:inline-block}
.layout-v4 .studio-component-empty-value:has(>[data-inline-field]:empty:not([data-pending-translation=true]))::before{content:attr(data-placeholder);position:absolute;inset-inline-start:0;pointer-events:none;white-space:nowrap}
.layout-v4 .studio-component-empty-value>[data-inline-field]:empty{min-width:12ch;min-height:1.3em}
@media(max-width:700px){.layout-v4 .studio-generated-component{max-width:100%}.layout-v4 .studio-generated-component :where(h2,h3,h4){overflow-wrap:anywhere}}
.studio-component-image-empty { display: grid; place-items: center; min-height: 10rem; padding: 1rem; border: 1px dashed currentColor; color: var(--studio-on-surface); background-color: var(--studio-surface); text-align: center; }

/* Keep authored media geometry outside the user's editable image frame. */
.layout-v4 .studio-component-media { object-fit: cover; }
.layout-v4 .studio-component-media > .content-image { display: flex; flex-direction: column; width: var(--image-width, 100%); max-width: 100%; margin-inline: var(--image-start, auto) var(--image-end, auto); height: 100%; border-radius: inherit; object-fit: inherit; }
.layout-v4 .studio-component-media > .content-image > img { display: block; flex: 1 1 0; min-height: 0; width: 100%; height: 100%; object-fit: var(--image-fit, inherit); border: var(--image-border, 0px) solid var(--image-color, transparent); border-radius: var(--image-radius, inherit); }
.layout-v4 .studio-component-media > .content-image[style*="--image-ratio"] > img { height: auto; aspect-ratio: var(--image-ratio); }
.layout-v4 .studio-component-media > .content-image > figcaption { flex: 0 0 auto; margin-top: .5rem; font-size: .8rem; line-height: 1.5; text-align: center; color: inherit; }
