/* Profile: narrow image beside the text (Text & Media) */
@media (min-width: 576px) {
  .frame-profile .textmedia {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    align-items: flex-start !important;
    gap: 1.5rem;
  }
  .frame-profile .textmedia .textmedia-gallery {
    flex: 0 0 140px !important;
    width: 140px !important;
    max-width: 140px !important;
    margin: 0 !important;
  }
  .frame-profile .textmedia .textmedia-text {
    flex: 1 1 0 !important;
    width: auto !important;
    max-width: none !important;
    min-width: 0;
    margin: 0 !important;
  }
  /* Image left or right, as chosen in the element */
  .frame-profile .textmedia-left .textmedia-gallery { order: 0 !important; }
  .frame-profile .textmedia-left .textmedia-text { order: 1 !important; }
  .frame-profile .textmedia-right .textmedia-gallery { order: 1 !important; }
  .frame-profile .textmedia-right .textmedia-text { order: 0 !important; }
}
.frame-profile .textmedia-gallery .gallery-row,
.frame-profile .textmedia-gallery .gallery-item {
  width: 100% !important;
  margin: 0 !important;
}
.frame-profile .textmedia-gallery img {
  width: auto !important;
  height: auto !important;
  max-width: 100% !important;
  max-height: 256px;
  image-rendering: pixelated;
}

/* Mirror the skin when it sits on the right, so it faces the text */
.frame-profile .textmedia-right .textmedia-gallery img {
  transform: scaleX(-1);
}
