#modal-wnd .modal-dialog {
  position: relative;
}

#modal-wnd .modal-dialog .close {
  position: absolute;
  right: 10px;
  top: 10px;
}

#modal-wnd .modal-dialog .modal-content {
  padding: 15px;
}

#modal-wnd .modal-content img, .test-img-size img {
  max-width: 90vw;
}

.test-img-size {
  visibility: hidden;
  position: fixed;
}

.doc-image {
  text-align: center;
  margin-bottom: 10px;
}

.doc-image img {
  max-width: 400px;
  max-height: 400px;
}

.doc-image img:hover {
  box-shadow: 0 0 10px 1px #ccc;
  cursor: pointer;
}

.doc-image img:active {
  box-shadow: 0 0 5px 1px #aaa;
  cursor: pointer;
}
