.uri-frame { width: 100%; position: relative; min-width: 0; }
.uri-stage { position: relative; width: 100%; min-height: 1px; }
.uri-image { display: block; position: absolute; top: 50%; left: 50%; width: auto; height: auto; max-width: none !important; max-height: none !important; object-fit: fill; transform-origin: center center; }
.uri-link { display: contents; }
/* Do not expose the unrotated image before the measured transform has been applied. */
.uri-frame:not(.uri-ready) .uri-image { visibility: hidden; }
/* Fallback box when original dimensions are unknown. */
.uri-frame:not(.uri-ready) .uri-stage:not([style*="aspect-ratio"]) { min-height: 1px; }

