/* ==========================================================================
   Media frame — container for an image, video or 3D canvas
   Drop any element with .media-frame__asset inside; it fills the frame.
   ========================================================================== */

.media-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 1200 / 493;
  overflow: hidden;
  border-radius: var(--radius-sm);
  background-color: var(--color-night-700);
}

.media-frame__asset {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Placeholder state until the final media is decided */
.media-frame--placeholder {
  background-image: url("../../assets/images/placeholders/checker.png");
  background-position: center;
  background-size: cover;
}

@media (max-width: 47.99rem) {
  .media-frame {
    aspect-ratio: 4 / 3;
  }
}
