/* "Fill the parent" option of picture-edit and video-edit (data-wms-cover).
   The picture's <img> gets the wms-cover class and is positioned against the nearest positioned ancestor
   (the parent needs position: relative and a height). */
picture[data-wms-cover] img.wms-cover { position: absolute; inset: 0; display: block; width: 100%; height: 100%; max-width: none; object-fit: cover; }

:where(.wms-video[data-wms-cover]) { width: 100%; height: 100%; }
.wms-video[data-wms-cover]:not(:fullscreen):not(.wms-video-celaobrazovka) video { width: 100%; height: 100%; object-fit: cover; }
