.Media {
  cursor: var(--custom-cursor, pointer);

  position: relative;

  overflow: hidden;

  height: 0;
  padding-bottom: 100%;

  &::after {
    pointer-events: none;
    content: "";

    position: absolute;
    z-index: 2;
    inset: 0;

    opacity: 0;
    background: rgba(0, 0, 0, 0.16);
    box-shadow: inset 0 0 0 0.125rem var(--color-primary);

    transition: opacity 0.15s ease-in-out;
  }

  &.has-menu-open::after {
    opacity: 1;
  }

  .video-duration {
    position: absolute;
    top: 0.3125rem;
    left: 0.3125rem;

    padding: 0 0.3125rem;
    border-radius: 0.375rem;

    font-size: 0.75rem;
    line-height: 1.125rem;
    color: #fff;

    background: rgba(0, 0, 0, 0.25);
  }

  .media-miniature {
    position: absolute;
    top: 0;
    left: 0;

    width: 100%;
    height: 100%;

    object-fit: cover;
  }
}
