.media {
  display: flex;
  align-items: center;
}
.media-body {
  flex: 1;
}
.media-body > *:last-child {
  margin-bottom: 0;
}
.media-middle {
  align-self: center;
}
.media-bottom {
  align-self: flex-end;
}
/* Images/elements as the media anchor */
.media-object {
  display: block;
}
/* Alignment */
.media-right {
  padding-left: 16px;
  padding-left: var(--size-16);
}
[dir="rtl"] .media-right {
  padding-right: 16px;
  padding-right: var(--size-16);
  padding-left: 0;
  padding-left: initial;
}
.media-left {
  padding-right: 16px;
  padding-right: var(--size-16);
}
[dir="rtl"] .media-left {
  padding-left: 16px;
  padding-left: var(--size-16);
  padding-right: 0;
  padding-right: initial;
}
@media (max-width: 320px) {
  .media-right,
  .media-left {
    padding-left: 32px;
    padding-left: var(--size-32);
  }
  [dir="rtl"] .media-right,
  [dir="rtl"] .media-left {
    padding-right: 32px;
    padding-right: var(--size-32);
    padding-left: 0;
    padding-left: initial;
  }
}
/* Headings */
.media-heading {
  margin-top: 0;
  margin-bottom: 0;
}
/* Media list variation */
.media-list {
  padding-left: 0;
  list-style: none;
}
[dir="rtl"] .media-list {
  padding-right: 0;
  padding-left: 0;
  padding-left: initial;
}
/* Fix text-ellipsis issue with text in dropdown */
.dropdown-menu .media-body {
  overflow: hidden;
}
