/* One fallback contract for the actual single Reader and Gutenberg's server render. */
:is(#article-reader[data-lt-geometry='single'], .lt-imagem-editor-preview) .lt-imagem img {
    object-fit:contain;
}
:is(#article-reader[data-lt-geometry='single'], .lt-imagem-editor-preview) .lt-imagem[data-lt-fallback='crop'] .lt-imagem-primary {
    object-fit:cover;
    object-position:var(--lt-focal-x,50%) var(--lt-focal-y,50%);
}
:is(#article-reader[data-lt-geometry='single'], .lt-imagem-editor-preview) .lt-imagem .lt-imagem-alternative { display:none; }
:is(#article-reader[data-lt-geometry='single'], .lt-imagem-editor-preview) .lt-imagem[data-lt-fallback='alternative'] .lt-imagem-primary { display:none; }
:is(#article-reader[data-lt-geometry='single'], .lt-imagem-editor-preview) .lt-imagem[data-lt-fallback='alternative'] .lt-imagem-alternative { display:block; }
.lt-imagem-editor-preview .lt-imagem { margin:0; }
.lt-imagem-editor-preview .lt-imagem-view { display:flex; align-items:center; justify-content:center; width:100%; aspect-ratio:.56; max-height:600px; overflow:hidden; pointer-events:none; }
.lt-imagem-editor-preview .lt-imagem img { display:block; width:100%; height:100%; margin:0; }
.lt-imagem-editor-preview .lt-imagem:is(.lt-mode-normal,.lt-mode-wide) .lt-imagem-view { aspect-ratio:auto; }
.lt-imagem-editor-preview .lt-imagem:is(.lt-mode-normal,.lt-mode-wide) img { height:auto; }

/* One photo-caption identity in every ImagemLT mode and the editor iframe. */
#article-reader[data-lt-geometry] .lt-imagem > figcaption,
#article-reader .lt-imagem > figcaption,
.editor-styles-wrapper .lt-imagem-editor > figcaption,
.lt-imagem-editor > figcaption,
.lt-image-lightbox .lt-lightbox-caption {
    font:normal 400 12px/1.4 system-ui,sans-serif;
    color:var(--text-muted,#626262);
    letter-spacing:normal;
    text-transform:none;
    overflow-wrap:anywhere;
}
#article-reader .lt-imagem > figcaption p,
.lt-imagem-editor > figcaption p,
.lt-image-lightbox .lt-lightbox-caption p { font:inherit; color:inherit; margin:0; }
#article-reader .lt-imagem > figcaption small,
.lt-imagem-editor > figcaption small,
.lt-image-lightbox .lt-lightbox-caption small { font-size:.9em; opacity:.8; }
.lt-imagem-editor > figcaption { margin:.4em 0 0; }
.lt-imagem-view { cursor:zoom-in; }
.lt-imagem-view:focus-visible { outline:2px solid currentColor; outline-offset:3px; }
.lt-image-lightbox[open] { display:flex; flex-direction:column; gap:12px; box-sizing:border-box; width:94vw; height:92dvh; max-height:92dvh; margin:auto; padding:16px; }
.lt-image-lightbox header { flex:none; margin:0; }
.lt-image-lightbox header a { color:#ddd; margin-left:auto; font-size:13px; }
.lt-image-lightbox .lt-lightbox-surface { flex:1; min-height:0; height:auto; margin:0; overflow:hidden; }
.lt-image-lightbox .lt-lightbox-surface img { width:100%; height:100%; max-height:none; object-fit:contain; }
.lt-image-lightbox .lt-lightbox-caption { flex:none; max-height:25%; overflow:auto; margin:0; color:#ddd; }
