/* Геометрия фотографии общая у карточки на сайте и у предпросмотра в кабинете. */
.format-frame {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  aspect-ratio: 1.28;
  width: 100%;
  flex: none;
  background: #8b8177;
  container-type: inline-size;
}
.format-frame > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: var(--crop-x, 50%) var(--crop-y, 50%);
  transform-origin: var(--crop-x, 50%) var(--crop-y, 50%);
  transform: scale(var(--crop-zoom, 1));
}
.format-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(24,27,23,.32), transparent 30%, transparent 48%, rgba(24,27,23,.66));
  pointer-events: none;
}
.format-frame .time, .format-frame .price {
  position: absolute;
  z-index: 1;
  color: white;
  text-align: center;
  overflow-wrap: anywhere;
  pointer-events: none;
}
.format-frame .time {
  top: 6%;
  left: 50%;
  transform: translateX(-50%);
  width: max-content;
  max-width: 90%;
  padding: 7px 14px;
  border-radius: 99px;
  background: rgba(28,32,28,.64);
  font: 600 13px/1.3 var(--body);
}
.format-frame .price {
  bottom: 7%;
  inset-inline: 5%;
  font: 600 clamp(23px, 8.5cqw, 34px)/1.15 var(--display);
  text-shadow: 0 2px 12px rgba(0,0,0,.35);
}
.format-frame .time:empty, .format-frame .price:empty { display: none; }
