.cop31-popup {
  width: min(400px, calc(100vw - 32px), calc(80vh * 0.8));
  max-width: none;
  max-height: 90vh;
  padding: 0;
  border: 0;
  margin: auto;
  background: #fff;
  overflow: visible;
}

.cop31-popup:not([open]) {
  display: none;
}

.cop31-popup::backdrop {
  background: rgba(0, 0, 0, 0.65);
}

.cop31-popup__link,
.cop31-popup__link img {
  display: block;
  width: 100%;
}

.cop31-popup__link img {
  height: auto;
}

.cop31-popup__close {
  position: absolute;
  top: 8px;
  right: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid #071b42;
  border-radius: 50%;
  background: #fff;
  color: #071b42;
  font-size: 30px;
  line-height: 1;
  cursor: pointer;
}

.cop31-popup__close:focus-visible,
.cop31-popup__link:focus-visible {
  outline: 3px solid #005fcc;
  outline-offset: 3px;
}
