.content img {
  width: auto !important;
  max-width: 100% !important;
  margin: 1.5rem auto !important;
}

.content .document-image-frame {
  position: relative;
  display: table;
  width: auto;
  max-width: 100%;
  margin: 1.5rem auto;
  line-height: 0;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(15, 29, 48, .12);
}

.content .document-image-frame img {
  margin: 0 !important;
}

.document-image-zoom {
  position: absolute;
  top: 12px;
  right: 12px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 36px;
  padding: 0 12px;
  border: 1px solid rgba(255, 255, 255, .45);
  border-radius: 999px;
  background: rgba(7, 16, 29, .82);
  color: #fff;
  font: 600 12px/1 Arial, "Microsoft YaHei", sans-serif;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .28);
  backdrop-filter: blur(8px);
  cursor: pointer;
  transition: transform .2s ease, background .2s ease, border-color .2s ease;
}

.document-image-zoom svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: #38e1ff;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.document-image-zoom:hover,
.document-image-zoom:focus-visible {
  transform: translateY(-2px);
  border-color: #38e1ff;
  background: rgba(7, 23, 39, .94);
  outline: 0;
}

.document-lightbox-dialog {
  border-radius: 10px;
}

.document-lightbox-hint {
  position: sticky;
  top: 0;
  z-index: 1;
  padding: 13px 58px 13px 18px;
  background: rgba(9, 15, 24, .92);
  color: #a9bbd1;
  font: 12px/1.4 Arial, "Microsoft YaHei", sans-serif;
  letter-spacing: .3px;
  backdrop-filter: blur(8px);
}

@media (max-width: 620px) {
  .document-image-zoom {
    top: 8px;
    right: 8px;
    min-height: 34px;
    padding: 0 10px;
  }

  .document-lightbox {
    padding: 12px;
  }

  .document-lightbox-dialog {
    max-width: calc(100vw - 24px);
    max-height: calc(100vh - 24px);
  }
}
