
/* Injected: modal and image responsiveness */
.modal, .modal-dialog, .modal-content {
  max-width: 90vw !important;
  max-height: 90vh !important;
}

.modal-dialog {
  width: auto !important;
  margin: 2vh auto !important;
}

.modal-body, .modal-content {
  overflow: hidden !important;
}

.modal-body .modal-image-wrap, .modal-body img.responsive-modal-image {
  display: block;
  width: 100%;
  height: auto;
}

.modal-body .modal-image-wrap {
  position: relative;
  max-height: calc(90vh - 120px);
}

.modal-body .modal-image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* Press modal zoom container */
.press-zoom-container {
  position: relative;
  width: 100%;
  max-height: calc(90vh - 120px);
  overflow: hidden;
  background: rgba(0,0,0,0.02);
  display: flex;
  justify-content: center;
  align-items: center;
}

.press-zoom-container img {
  transform-origin: center center;
  cursor: grab;
  user-select: none;
  -webkit-user-drag: none;
  max-width: none; /* allow true zooming beyond container */
}

/* Zoom controls */
.press-zoom-controls {
  position: absolute;
  top: 8px;
  right: 8px;
  display: flex;
  gap: 8px;
  z-index: 10;
}

.press-zoom-controls button {
  border: none;
  border-radius: 8px;
  padding: 6px 10px;
  background: rgba(0,0,0,0.65);
  color: #fff;
  font-size: 14px;
  cursor: pointer;
}

.press-zoom-controls button:hover {
  background: rgba(0,0,0,0.8);
}
