a.figure-link { cursor: zoom-in; }
#podglad-rysunku {
  --wysokosc-rysunku: calc(90vh - 3.25rem);
  --wysokosc-rysunku: calc(90dvh - 3.25rem);
  position: fixed;
  inset: 0;
  width: min(94vw, 82rem);
  max-width: 100%;
  max-height: 94vh;
  max-height: 94dvh;
  margin: auto;
  padding: 0;
  overflow: hidden;
  border: 1px solid #728993;
  border-radius: 6px;
  background: #fff;
  color: #193744;
  box-shadow: 0 12px 48px #0006;
}
#podglad-rysunku::backdrop { background: rgb(10 22 30 / .72); }
#podglad-rysunku .rysunek-pasek {
  display: flex;
  align-items: center;
  gap: .4rem;
  padding: .3rem .5rem;
  background: #eaf0f2;
  border-bottom: 1px solid #aebfc6;
  font: 600 .875rem/1.2 system-ui, sans-serif;
}
#podglad-rysunku .rysunek-pasek strong { margin-inline-end: auto; min-width: 0; }
#podglad-rysunku button {
  flex: none;
  padding: .35rem .65rem;
  border: 1px solid #8197a1;
  border-radius: 4px;
  background: #fff;
  color: #193744;
  font: inherit;
  cursor: pointer;
}
#podglad-rysunku .rysunek-zamknij { color: #fff; background: #193744; }
#podglad-rysunku .rysunek-zamknij span { font-size: 1.15em; }
#podglad-rysunku button:focus-visible { outline: 2px solid #267fa3; outline-offset: 1px; }
#podglad-rysunku .rysunek-pole {
  max-height: var(--wysokosc-rysunku);
  overflow: auto;
  overscroll-behavior: contain;
  background: #fff;
}
#podglad-rysunku img {
  display: block;
  margin-inline: auto;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: var(--wysokosc-rysunku);
}
#podglad-rysunku.rysunek-powiekszony img { max-width: none; max-height: none; }
#podglad-rysunku [hidden] { display: none; }
#podglad-rysunku [role="status"] { margin: 1rem; color: #193744; }
@media screen {
  .czytelnia-inwersja #podglad-rysunku .rysunek-pasek { background: #26343c; color: #edf3f4; }
  .czytelnia-inwersja #podglad-rysunku .rysunek-zamknij { border-color: #b6d5e0; }
}
@media print {
  #podglad-rysunku, #podglad-rysunku::backdrop { display: none !important; }
}
