/*!
 * The cropper (inc/crop-tool.inc.php), on /crop and the /crop-jpg, /crop-png and
 * /crop-webp pages: the sample photos and the phone page picture.
 */
.sample-thumbnails-container {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 10;
  /* As wide as the box allows: shrink-to-fit wrapped the prompt and the
     third sample onto lines of their own on a phone. */
  width: calc(100% - 24px);
  max-width: 420px;
  text-align: center;
  transition: opacity 0.3s ease;
}
.sample-thumbnails-container.hidden {
  opacity: 0;
  pointer-events: none;
}
.sample-thumbnails {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin: 10px 0;
  flex-wrap: wrap;
}
.sample-thumbnail {
  cursor: pointer;
  border: 2px solid #dee2e6;
  border-radius: 10px;
  overflow: hidden;
  transition: all 0.2s ease;
  width: 110px;
  height: 110px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: white;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}
.sample-thumbnail:hover {
  border-color: var(--pt-accent, #0f70e6);
  box-shadow: 0 4px 12px rgba(15, 112, 230, 0.25);
}
.sample-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
@media (max-width: 768px) {
  .sample-thumbnail {
    width: 90px;
    height: 90px;
  }
}
@media (max-width: 576px) {
  .sample-thumbnail {
    width: 72px;
    height: 72px;
  }
}
/* On the phone page the photo is a picture: a tap opens the editor. */
html.pt-phone:not(.pt-app-open) #crop-editor-canvas { pointer-events: none; }
#crop-canvas-container.pt-app-loaded { touch-action: none; }
html.pt-phone:not(.pt-app-open) #crop-canvas-container.pt-app-loaded { touch-action: auto; }
