.cm-eco-encuadre {
  padding: 12px;
  text-align: center;
}

.cm-eco-encuadre[hidden] { display: none; }

.cm-eco-encuadre-recuadro {
  width: min(100%, 330px);
  aspect-ratio: 300 / 208;
  margin-inline: auto;
  border: 1px solid currentColor;
  border-radius: 15px;
  overflow: hidden;
  background: #282125;
  cursor: grab;
  touch-action: none;
  user-select: none;
}

.cm-eco-encuadre-recuadro:active { cursor: grabbing; }
.cm-eco-encuadre-recuadro:focus-visible { outline: 2px solid currentColor; outline-offset: 4px; }

.cm-eco-encuadre-recuadro img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}

.cm-eco-encuadre p { margin: 10px auto 3px; max-width: 40ch; font-size: .9rem; }
.cm-eco-encuadre-restaurar {
  min-height: 44px;
  color: inherit;
  background: none;
  border: 0;
  padding: 4px 10px;
  font: inherit;
  font-size: .85rem;
  text-decoration: underline;
  cursor: pointer;
}

.foto-control[data-eco-foto-lista] > .foto.lista {
  min-height: 44px;
  width: max-content;
  max-width: 100%;
  margin-inline: auto;
  aspect-ratio: auto;
  background: none !important;
}

.foto-control[data-eco-foto-lista] > .foto .cambiar { position: static; }
.foto-control[data-eco-foto-lista] > .foto input { width: 100%; height: 100%; }
.foto-edit[data-eco-foto-lista] > .foto-vista { display: none; }
