@include exports('md-content-item') {
  .md-content {
    @include flex($jc: center, $ai: center);

    width: 348px;
    height: 196px;
    background-size: contain;
    border-radius: 4px;
    box-shadow: 0 0 0 1px $black-06;

    &:hover .md-content__hover {
      display: flex;
    }

    &__gif {
      position: absolute;
      top: 0.2rem;
      right: 0.5rem;

      &--oneOne {
        right: 2.6rem;
      }

      &--fourThree {
        right: 1.3rem;
      }
    }

    &__container {
      @include flex($fd: column, $jc: flex-start);

      width: 204px;
      height: 190px;
    }

    &__chat-inner-container {
      position: relative;
      width: 348px;
      height: 230px;
      margin-bottom: 8px;
      background-color: $md-gray-10;
      background-color: var(--mdl-background-tertiary, $md-gray-10);
      border-radius: 4px;
      box-shadow: 0 0 0 1px $black-20;

      &:hover .md-content__hover {
        visibility: visible;
      }
    }

    &__chat-wide-container {
      width: 348px;
      height: 196px;
      margin-bottom: 8px;
      background-color: $md-gray-10;
      background-color: var(--mdl-background-tertiary, $md-gray-10);
      border-radius: 4px;
    }

    &--failed {
      background-color: $md-gray-10;
      background-color: var(--mdl-background-tertiary, $md-gray-10);
      box-shadow: 0 0 0 1px $black-20;

      &-warning {
        margin-bottom: 10px;
      }

      &-message {
        color: $md-gray-70;
        color: var(--mdl-textColor-secondary, $md-gray-70);
      }

      &-container {
        @include flex($jc: center, $ai: center);

        width: 314px;
        height: 58px;
        font-family: $brand-font-regular;
        line-height: 22px;
        border-radius: 4px;
        flex-direction: column;
      }
    }

    &__chat-four-three {
      height: 260px;
    }

    &__chat-three-two {
      height: 232px;
    }

    &__chat-sixteen-nine {
      height: 196px;
    }

    &--centered {
      @include flex($jc: center, $ai: center);

      width: 100%;
      height: 100%;
    }

    &--opacity {
      @extend .md-content--centered;

      background-color: $gray-6-40;
    }

    &__hover {
      @include flex($jc: space-between, $ai: center);

      position: relative;
      bottom: 56px;
      width: 100%;
      height: 56px;
      background-color: var(--mds-color-theme-common-overlays-primary-normal);
      border-radius: 0 0 4px 4px;
      visibility: hidden;
      align-self: flex-end;

      &--wide {
        position: relative;
        top: 60px;
        bottom: 0px;
      }

      &-files {
        display: flex;
        width: 90%;
        margin-top: 5px;
        margin-left: 12px;
        font-family: $brand-font-regular;
        flex-direction: column;

        &--file-name {
          @include text-overflow;

          width: rem-calc(214);
          height: 24px;
          font-size: 16px;
          font-weight: 750;
          line-height: 24px;
          color: $md-black-100;
          color: var(--mdl-textColor-primary, $md-black-100);
        }

        &--file-size {
          height: 22px;
          font-size: 14px;
          line-height: 22px;
          color: $md-gray-70;
          color: var(--mdl-textColor-secondary, $md-gray-70);
        }
      }

      &-icons {
        @include flex($jc: flex-end, $ai: center);

        width: 40%;
        margin-right: 3px;
      }
    }
  }

  .md-content-file {
    @include flex($jc: center, $ai: center);

    position: relative;
    width: 204px;
    height: 136px;
    margin-bottom: 8px;
    background-repeat: no-repeat;
    background-size: 204px 136px;
    border-radius: 4px;
    box-shadow: 0 0 0 1px $black-20;

    &:hover .md-content-file__icon {
      visibility: visible;
    }

    &__aspect {
      @include flex($jc: center, $ai: center);

      position: relative;
      bottom: 56px;
      width: 204px;
      height: 56px;
      background-color: var(--mds-color-theme-common-overlays-primary-normal);
      border-radius: 0 0 4px 4px;
      visibility: hidden;
      align-self: flex-end;
    }

    &__icon {
      @include flex($jc: center, $ai: center);

      position: absolute;
      bottom: 0px;
      width: 204px;
      height: 56px;
      background-color: var(--mds-color-theme-common-overlays-primary-normal);;
      border-radius: 0 0 4px 4px;
      visibility: hidden;
    }

    &__block {
      position: relative;
      width: 204px;
      height: 136px;
      margin-bottom: 8px;
      background-color: $md-white-100;
      background-color: var(--mdl-background-primary, $md-white-100);
      border-radius: 4px;
      box-shadow: 0 0 0 1px $black-20;

      &:hover .md-content-file__aspect {
        visibility: visible;
      }
    }

    &--clickable {
      cursor: pointer;
    }

    &--chat-one-one {
      @include chat(230px, 230px);
    }

    &--chat-two-three {
      @include chat(154px, 230px);
    }

    &--chat-tall {
      @include chat(100px, 230px);
    }

    &--chat-wide {
      @include chat(348px, 80px);

      position: relative;
      top: 58px;
    }

    &--chat-three-four {
      @include chat(174px, 230px);
    }

    &--full,
    &--three-two {
      @include file-aspect(100%, 100%);

      background-position: center;
      border-radius: 4px;
    }

    &--two-three {
      @include file-aspect(90px, 100%, 0 auto);
    }

    &--three-four {
      @include file-aspect(102px, 100%, 0 auto);
    }

    &--sixteen-nine {
      @include file-aspect(100%, 116px, 10px 0, contain);
    }

    &--nine-sixteen {
      @include file-aspect(78px, 100%, 0 auto);
    }

    &--one-one {
      @include file-aspect(136px, 136px, 0 auto);

      border-radius: 4px;
    }

    &--four-three {
      @include file-aspect(182px, 136px, 0 auto);

      border: 1px solid $black-06;
      border-radius: 4px;
    }

    &__info-container {
      display: flex;
      flex-direction: column;
    }

    &__title {
      @include text-overflow;

      width: 204px;
      height: 24px;
      font-family: $brand-font-regular;
      font-size: 16px;
      line-height: 24px;
      color: #000000;
      color: var(--mdl-textColor-primary, $md-gray-100);
      text-align: center;
    }

    &__subtitle {
      @include text-overflow;

      width: 204px;
      height: 22px;
      font-family: $brand-font-regular;
      font-size: 14px;
      line-height: 22px;
      color: $md-gray-70;
      color: var(--mdl-textColor-secondary, $md-gray-70);
      text-align: center;
    }
  }

  .content-file--no-border {
    box-shadow: none;
  }
}
