.breakfast-photo-caption {
  display: block;
  margin-top: 6px;
  padding: 4px 0;
  font-size: .9em;
  line-height: 1.4;
  white-space: pre-line;
  overflow-wrap: anywhere;
}

.breakfast-photo-caption:empty,
.breakfast-photo-caption[hidden],
.breakfast-photo-slot:has(> img[src="/assets/i18n/photo-slot.png"]) > .breakfast-photo-caption {
  display: none;
}

.cms-active .breakfast-photo-slot:not([data-cms-shared-page]):has(> img:not([src="/assets/i18n/photo-slot.png"])) > .breakfast-photo-caption {
  display: block;
  min-height: 36px;
  border-bottom: 1px dashed #638475;
  cursor: text;
}

.cms-active .breakfast-photo-caption:empty:not([contenteditable])::before {
  color: #446358;
  content: "Добавить название";
}
