/**
 * @file
 * Shared viewer CSS.
 *
 * UV 4.x requires position:relative and an explicit height on its mount point
 * so its internal layout algorithm can calculate dimensions correctly.
 * overflow:hidden prevents UV's UI from escaping the container.
 */

.law-iiif-viewer {
  position: relative;
  width: 100%;
  height: 600px;
  overflow: hidden;
  background: #000;
}

/* Ensure UV fills its container top-to-bottom */
.law-iiif-viewer uv-iiif-extension-host,
.law-iiif-viewer .uv {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}