/* Keep expanded photos entirely visible on small screens before the user zooms. */
.zoom-canvas {
  min-height: 0;
  padding: 12px;
  touch-action: pan-x pan-y pinch-zoom;
}

.zoom-canvas img {
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: calc(100dvh - 84px);
  object-fit: contain;
}

@media (max-width: 480px) {
  .zoom-toolbar {
    padding: 10px 12px;
  }

  .zoom-toolbar button {
    min-width: 42px;
    min-height: 42px;
    padding: 8px 11px;
  }
}
