.mr-rotation { width:var(--mr-width, 100%); max-width:100%; margin-block:1rem; }
.mr-rotation .mr-slide[hidden], .mr-rotation .mr-controls[hidden] { display:none !important; }
.mr-rotation img { display:block; max-width:100%; width:100%; height:auto; }
.mr-rotation a { display:block; color:inherit; text-decoration:none; }
.mr-rotation a:hover .mr-title { text-decoration:underline; }
.mr-rotation a:focus-visible, .mr-rotation button:focus-visible { outline:3px solid currentColor; outline-offset:3px; }
.mr-title, .mr-caption, .mr-label { display:block; }
.mr-title { font-weight:700; margin-top:.5rem; }
.mr-caption { margin-top:.25rem; }
.mr-rotation .mr-label { display:block; box-sizing:border-box; font-size:.75rem; font-weight:600; line-height:1.5; min-height:1.5em; margin:0 0 .35rem; }
.mr-controls { display:flex; flex-wrap:wrap; align-items:center; gap:.5rem; margin-top:.75rem; }
.mr-controls button { font:inherit; padding:.35rem .65rem; cursor:pointer; }
.mr-status { font-size:.8rem; }

/* One shared image frame for every content type. */
.mr-rotation .mr-image-frame { display:block; }
.mr-rotation.mr-sized-frame .mr-image-frame { position:relative; width:100%; aspect-ratio:var(--mr-ratio); overflow:hidden; }
.mr-rotation.mr-sized-frame .mr-slide .mr-image-frame > img { position:absolute; inset:0; display:block; box-sizing:border-box; width:100%; height:100%; min-width:0; min-height:0; max-width:none; max-height:none; margin:0; padding:0; border:0; aspect-ratio:auto; object-fit:var(--mr-fit, contain); }
.mr-rotation.mr-sized-height img { width:100%; height:var(--mr-height); object-fit:var(--mr-fit, contain); }

/* Send image clicks to the containing link; prevent image selection and dragging. */
.mr-rotation .mr-image-frame,
.mr-rotation .mr-image-frame img { -webkit-user-select:none; user-select:none; }
.mr-rotation .mr-image-frame img { -webkit-user-drag:none; pointer-events:none; }
