#dish-dialog .dish-dialog-media[data-ediena-portrets][data-am-food-frame] {
  align-self: start;
  justify-self: center;
  position: relative;
  width: min(100%,var(--am-photo-limit));
  height: auto;
  min-height: 0;
  max-height: none;
  aspect-ratio: var(--am-frame-ratio);
  overflow: hidden;
  border-radius: 12px;
}
#dish-dialog .dish-dialog-media[data-ediena-portrets][data-am-food-frame] > img {
  position: absolute;
  inset: auto;
  left: var(--am-photo-x);
  top: var(--am-photo-y);
  width: var(--am-photo-w);
  height: var(--am-photo-h);
  max-width: none;
  max-height: none;
  object-fit: fill;
  margin: 0;
  transform: translate(-50%,-50%) rotate(var(--am-photo-angle));
}
