/* Board previews follow the asset's intrinsic ratio instead of a fixed 4:4.3 box.
   No cover/crop: subtitles, logos and the native video controls remain visible.
   Bars encoded in the original file itself cannot be removed by this layout. */
.nest-creative-grid .nest-creative-card .media {
  display:block;
  aspect-ratio:auto;
  min-height:0;
  height:auto;
  background:transparent;
}
.nest-creative-grid .nest-creative-card .media video,
.nest-creative-grid .nest-creative-card .media img {
  display:block;
  width:100%;
  height:auto;
  min-height:0;
  max-height:none;
  object-fit:contain;
  background:transparent;
}
/* Reserve a useful loading size, then let the native asset ratio take over. */
.nest-creative-grid .nest-creative-card .media video { aspect-ratio:auto 9 / 16; }
.nest-creative-grid .nest-creative-card .media img { aspect-ratio:auto 1 / 1; }
.nest-creative-grid .nest-creative-card .media:has(> .media-empty) {
  display:flex;
  aspect-ratio:4 / 3;
  min-height:180px;
}
.nest-creative-grid .nest-creative-card .media video:fullscreen {
  width:100%;
  height:100%;
  aspect-ratio:auto;
  object-fit:contain;
  background:#000;
}
