/* The Photo Enhancer (inc/enh-tool.inc.php): the samples, the photo and the
   notes under the sliders. The layout is pt-ui.css's, the phone editor
   pt-app.css's. */

/* ── Empty state: the samples ─────────────────────────────────────────── */
.enhance-editor .sample-thumbnails-container {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 10;
  text-align: center;
  /* Without a width it shrinks to half the box (left: 50%). */
  width: 90%;
}
/* By id: in the phone editor the photo box is out of the card. */
#enh-empty.hidden { display: none; }
.enhance-editor .sample-thumbnails { display: flex; justify-content: center; gap: 12px; margin: 10px 0; flex-wrap: wrap; }
.enhance-editor .sample-thumbnail {
  flex-shrink: 0;
  cursor: pointer;
  border: 2px solid #dee2e6;
  border-radius: 10px;
  overflow: hidden;
  width: 110px;
  height: 110px;
  padding: 0;
  background: #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.enhance-editor .sample-thumbnail:hover,
.enhance-editor .sample-thumbnail:focus-visible { border-color: var(--pt-accent, #0f70e6); box-shadow: 0 4px 12px rgba(15, 112, 230, 0.25); }
.enhance-editor .sample-thumbnail img { width: 100%; height: 100%; object-fit: cover; display: block; }
@media (max-width: 767px) { .enhance-editor .sample-thumbnail { width: 84px; height: 84px; } }

/* ── The photo ────────────────────────────────────────────────────────── */
/* Centred in its box, as on the other tools (by id: in the phone editor the
   box is in the stage, out of the card). */
#enh-viewport { display: flex; align-items: center; justify-content: center; padding: 12px; overflow: hidden; }
#enh-canvas { display: block; max-width: 100%; max-height: 100%; border-radius: 6px; }
#enh-canvas[hidden] { display: none; }

/* ── Controls ─────────────────────────────────────────────────────────── */
.enh-hint { font-size: 0.7rem; line-height: 1.45; color: #6c757d; margin: 2px 0 10px; }
#enh-auto { flex: none; }
/* In the phone editor's Settings sheet (dark or light, pt-app.css decides),
   the note takes the sheet's own text colour. */
.pt-app-sheet .enh-hint { color: inherit; opacity: 0.75; }
