/* NEVER the dance-guide inset: it keeps its own small fixed size (bottom-right) and ratio; only the MAIN preview media is fitted */
/* gallery-visible-r1 card-fit: shared rule (linked statically so the fitted box never shifts after load; js/studio-card-fit.js sets --fit-ar/data-fit) */
[data-fit]{position:relative!important;overflow:hidden!important;aspect-ratio:var(--fit-ar)!important;height:auto!important;min-height:0!important;max-height:none!important;flex:0 0 auto!important}
video[data-fit]:not([class*="guide"]):not([class*="inset"]),img[data-fit]:not([class*="guide"]):not([class*="inset"]){object-fit:cover!important;width:100%!important;transform:none!important}
[data-fit]>:is(img,video):not([class*="guide"]):not([class*="inset"]),[data-fit] :is(img.ep-poster,video.ep-video,img.emh-poster,video.emh-vid):not([class*="guide"]):not([class*="inset"]){position:absolute!important;inset:0!important;width:100%!important;height:100%!important;object-fit:cover!important;object-position:50% 50%!important;transform:none!important}
[data-fit] .epp-bg{display:none!important}
