#boegle-fulltext-preview .part-gallery:not(.manufacturing-gallery) .part-media[data-gallery-width],
#boegle-fulltext-preview .manufacturing-gallery .part-media[data-gallery-width]:has(> video) {
 width:calc(100% * var(--gallery-scale));
 margin-inline:auto;
}
#boegle-fulltext-preview .part-gallery:not(.manufacturing-gallery) .part-media[data-gallery-width] :is(img,video) {
 height:calc(var(--gallery-height) * var(--gallery-scale));
}
#boegle-fulltext-preview .part-gallery:not(.manufacturing-gallery) .gallery-nav {
 top:calc(var(--gallery-height) * var(--active-gallery-scale,1) / 2);
}
#boegle-fulltext-preview .manufacturing-gallery .gallery-nav {
 margin-top:calc(37.5% * var(--active-gallery-scale,1));
}
.gallery-crop-frame {
 position:relative;
 aspect-ratio:4/3;
 overflow:hidden;
 border-radius:4px;
 background:#e5eae5;
}
#boegle-fulltext-preview .manufacturing-gallery .part-media[data-gallery-width] img {
 object-fit:contain;
}
#boegle-fulltext-preview .manufacturing-gallery .gallery-crop-frame > img,
.media-dialog .media-layout-list .gallery-crop-frame > img {
 position:absolute;
 inset:0;
 width:100%;
 height:100%;
 object-fit:contain;
 transform:scale(calc(1 + (var(--cover-scale,1) - 1) * var(--crop-level,1)));
}
