/* Original-layout cell fill correction — 2026-08-16
   Preserve the portfolio layout and the preview cell geometry.
   The viewport itself already occupies the full black cell; do not scale the raster. */

.viewport {
  overflow: hidden !important;
}

.canonical-preview-image {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  max-height: none !important;
  margin: 0 !important;
  padding: 0 !important;
  display: block !important;
  object-fit: cover !important;
  object-position: center top !important;
  transform: none !important;
  transform-origin: center !important;
  image-rendering: auto !important;
}

.canonical-modal-image {
  width: 100% !important;
  height: auto !important;
  max-height: none !important;
  object-fit: contain !important;
  transform: none !important;
  image-rendering: auto !important;
}
