/* Screenshot enlargement, shared by the EN and PL support pages. */
.support-image-zoom {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  cursor: zoom-in;
}
.support-image-zoom:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.support-image-zoom__hint {
  position: absolute;
  right: var(--space-s);
  bottom: var(--space-s);
  padding: var(--space-xs) var(--space-s);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-button-ui);
  background: var(--surface-window);
  color: var(--text-primary);
  font-size: var(--font-caption);
}
.image-zoom-dialog {
  width: fit-content;
  max-width: calc(100vw - var(--space-xl));
  max-height: calc(100dvh - var(--space-xl));
  margin: auto;
  padding: var(--space-s);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-panel-ui);
  background: var(--surface-window);
  color: var(--text-primary);
}
.image-zoom-dialog::backdrop { background: color-mix(in srgb, var(--surface-window) 90%, transparent); }
.image-zoom-dialog img {
  display: block;
  width: auto;
  max-width: 100%;
  max-height: calc(100dvh - var(--space-xxl) * 2);
  height: auto;
  object-fit: contain;
}
.image-zoom-dialog__close {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin: 0 0 var(--space-s) auto;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--text-primary);
  font: inherit;
  font-size: var(--space-xl);
  line-height: 1;
  cursor: pointer;
}
.image-zoom-dialog__close:hover { color: var(--accent); }
.image-zoom-dialog__close:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
html:has(.image-zoom-dialog[open]) { overflow: hidden; }
