.menu-photo-slot {
  flex: 0 0 100%;
  min-width: 0;
  margin: 10px 0 16px;
  position: relative;
}
.menu-photo-slot > img {
  display: block;
  width: min(100%, 580px);
  height: auto;
  max-width: 100%;
  border-radius: 6px;
  object-fit: cover;
}
.menu-photo-slot:has(> img[src="/assets/i18n/photo-slot.png"]) { display: none; }
.menu-section > .items > article:has(.menu-photo-slot > img:not([src="/assets/i18n/photo-slot.png"])),
.cms-active .menu-section > .items > article:has(.menu-photo-slot) { flex-wrap: wrap; }
.bar-page p:has(+ .menu-photo-slot + h2) { margin-bottom: 30px; }

.breakfast-photo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 180px), 1fr));
  gap: 12px;
}
.breakfast-photo-grid:has(img:not([src="/assets/i18n/photo-slot.png"])),
.cms-active .breakfast-photo-grid:has(.menu-photo-slot:not([data-cms-shared-page])) {
  margin-block: 18px;
}
.breakfast-photo-slot { margin: 0; }
.breakfast-photo-slot > img { width: 100%; }

.cms-active .menu-photo-slot:not([data-cms-shared-page]):has(> img[src="/assets/i18n/photo-slot.png"]) {
  display: block;
  width: min(100%, 240px);
}
.cms-active .menu-photo-slot > img[src="/assets/i18n/photo-slot.png"] {
  width: 100%;
  min-height: 54px;
  border: 1px dashed #638475;
  background: #e8eee9;
  cursor: pointer;
}
.cms-active .menu-photo-slot:has(> img[src="/assets/i18n/photo-slot.png"])::after {
  content: "+ Добавить фото";
  color: #244e40;
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font: 600 14px/1.35 system-ui, sans-serif;
  pointer-events: none;
}
