/* CamboPost video preview sizing.
   The BLACK PREVIEW BOX itself shrink-wraps the video's intrinsic dimensions.
   Portrait stays portrait, landscape stays landscape, square stays square. */
.mediaStage:not(.photoStage){
  width:fit-content!important;
  height:fit-content!important;
  min-width:0!important;
  min-height:0!important;
  max-width:100%!important;
  max-height:none!important;
  margin:0 auto!important;
  padding:0!important;
  display:block!important;
  overflow:hidden!important;
  background:#0f1218!important;
  border-radius:12px!important;
  box-shadow:inset 0 0 0 1px rgba(255,255,255,.04)!important;
}
.mediaStage:not(.photoStage)>video,
.mediaStage:not(.photoStage) .peVideoOnlyPreview{
  display:block!important;
  width:auto!important;
  height:auto!important;
  max-width:min(100%,920px)!important;
  max-height:min(520px,60vh)!important;
  aspect-ratio:auto!important;
  object-fit:contain!important;
  margin:0!important;
  border-radius:inherit!important;
  background:#0f1218!important;
}
@media(max-width:760px){
  .mediaStage:not(.photoStage){
    max-width:100%!important;
    border-radius:10px!important;
  }
  .mediaStage:not(.photoStage)>video,
  .mediaStage:not(.photoStage) .peVideoOnlyPreview{
    max-width:100%!important;
    max-height:min(430px,55vh)!important;
  }
}
