.Media {
  background: url(../images/media-background.webp) #999;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
  position: relative;

  &:hover &-dropdown,
  &-dropdown.opened {
    display: flex;
  }

  &:hover &-insertImage {
    display: flex;
  }

  &-image {
    align-items: center;
    display: flex;
    height: 120px;

    img {
      max-height: 100%;
      object-fit: contain;
      width: 100%;
    }

    &.mobile {
      height: 80px;
    }
  }

  &-insertImage {
    bottom: 10px;
    display: none;
    left: 10px;
    position: absolute;
  }

  &-dropdown {
    display: none;
    position: absolute;
    right: 10px;
    top: 10px;

    &:focus-within .Media-content {
      display: block;
    }
  }

  &-dropdownBtn {
    background-color: rgba(255, 255, 255, 0.8);
    border: none;
    border-radius: 6px;
    cursor: pointer;
    color: black;
    font-size: 24px;
    padding: 0px 6px;

    &:hover {
      background: #f1f1f1;
    }
  }

  &-content {
    background-color: #f9f9f9;
    box-shadow: 0px 8px 16px 0px rgba(0, 0, 0, 0.2);
    display: none;
    min-width: 160px;
    position: absolute;
    z-index: 1;

    li {
      color: black;
      display: block;
      padding: 12px 16px;
      text-decoration: none;

      &:hover {
        background-color: #f1f1f1;
      }

      button {
        height: 100%;
        cursor: pointer;
        width: 100%;
      }
    }
  }

  &-progress {
    bottom: 0;
    height: 30px;
    left: 0;
    position: absolute;
    width: 100%;

    .progress {
      height: 99%;
      background: #e1d4e7;
    }

    .progressValue {
      left: 0;
      position: absolute;
      text-align: center;
      top: 6px;
      width: 100%;
    }
  }
}