/* Local V19 — hard 20-image limit and centered guidance modal. */
#btnCapture.capture-limit-reached {
  opacity: .58;
  filter: saturate(.55);
  cursor: not-allowed;
  box-shadow: none;
}

#btnCapture.capture-limit-reached:hover,
#btnCapture.capture-limit-reached:focus-visible {
  transform: none;
}

.image-limit-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 10040;
  display: grid;
  place-items: center;
  padding: 1.25rem;
  background: rgba(18, 32, 27, .68);
}

.image-limit-modal-overlay[hidden] {
  display: none;
}

.image-limit-modal {
  width: min(92vw, 570px);
  max-height: 88vh;
  overflow: auto;
  padding: 1.35rem;
  border: 1px solid rgba(255, 255, 255, .45);
  border-radius: 20px;
  background: #fffdf6;
  box-shadow: 0 24px 70px rgba(0, 0, 0, .3);
  color: var(--ink);
}

.image-limit-modal h2 {
  margin: 0 0 .75rem;
  color: var(--green-strong);
  font-size: clamp(1.2rem, 2vw, 1.42rem);
  line-height: 1.2;
}

.image-limit-modal p {
  margin: 0;
  line-height: 1.55;
}

.image-limit-modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: .65rem;
  margin-top: 1.15rem;
}

.image-limit-modal-actions button {
  min-width: 130px;
  justify-content: center;
}

body.image-limit-modal-open {
  overflow: hidden;
}

@media (max-width: 560px) {
  .image-limit-modal {
    padding: 1.1rem;
    border-radius: 16px;
  }

  .image-limit-modal-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .image-limit-modal-actions button {
    width: 100%;
  }
}
