/**
 * modal-imgview.css — Full-screen image viewer modal styles.
 * Used by modal-imgview.html (opened by TxnDetailView.js).
 */

.imgview-dialog {
  max-width: 90vw;
  margin: 4vh auto;
}
.imgview-content {
  background: transparent;
  border: none;
  box-shadow: none;
  align-items: center;
}
.imgview-body { display: inline-block; }
.imgview-close {
  position: absolute;
  top: -16px;
  right: -16px;
  background: rgba(255, 255, 255, 0.15);
  border: none;
  border-radius: 50%;
  width: 36px;
  height: 36px;
  color: #fff;
  font-size: 1.1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
}

/* Scrollable viewport — lets a zoomed-in image be panned via scrollbars/drag */
.imgview-scroll {
  max-width: 85vw;
  max-height: 78vh;
  overflow: auto;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.imgview-scroll.zoomed {
  display: block; /* let the enlarged image overflow and scroll naturally */
  cursor: grab;
}
.imgview-scroll.zoomed.dragging { cursor: grabbing; }

.imgview-img {
  max-width: 85vw;
  max-height: 78vh;
  border-radius: 10px;
  display: block;
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.6);
  user-select: none;
}
/* Once zoomed, lift the fit-to-screen cap so the explicit pixel size set by
   App._setImgZoom() can actually exceed the viewport and scroll/pan. */
.imgview-scroll.zoomed .imgview-img {
  max-width: none;
  max-height: none;
}

/* Bottom zoom toolbar */
.imgview-toolbar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 14px;
  padding: 8px 14px;
  background: rgba(0, 0, 0, 0.55);
  border-radius: 999px;
  width: fit-content;
  margin-left: auto;
  margin-right: auto;
}
.imgview-zoom-btn {
  background: rgba(255, 255, 255, 0.12);
  border: none;
  border-radius: 50%;
  width: 34px;
  height: 34px;
  color: #fff;
  font-size: 0.9rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s;
}
.imgview-zoom-btn:hover { background: rgba(255, 255, 255, 0.25); }
.imgview-zoom-label {
  color: #fff;
  font-size: 0.82rem;
  font-weight: 600;
  min-width: 42px;
  text-align: center;
}
.imgview-toolbar-sep {
  width: 1px;
  height: 20px;
  background: rgba(255, 255, 255, 0.25);
}
