.md-content img[data-fullscreen-ready="true"] {
  cursor: zoom-in;
}

.md-content img[data-fullscreen-ready="true"]:focus-visible {
  outline: 2px solid var(--md-accent-fg-color);
  outline-offset: 0.25rem;
}

html.docs-image-fullscreen-open,
body.docs-image-fullscreen-open {
  overflow: hidden;
}

.docs-image-fullscreen {
  position: fixed;
  inset: 0;
  z-index: 10001;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100vw;
  height: 100vh;
  padding: 0;
  overflow: hidden;
  background: #0a0e18;
}

.docs-image-fullscreen-close {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  z-index: 1;
  min-height: 2.25rem;
  padding: 0 0.75rem;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 0.25rem;
  background: rgba(255, 255, 255, 0.94);
  color: #172033;
  cursor: pointer;
  font: inherit;
}

.docs-image-fullscreen-close:hover,
.docs-image-fullscreen-close:focus-visible {
  border-color: var(--md-accent-fg-color);
  color: var(--md-accent-fg-color);
}

.docs-image-fullscreen-body {
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  width: 100vw;
  height: 100vh;
  padding: 3.25rem 1rem 1rem;
  overflow: hidden;
  text-align: center;
}

.docs-image-fullscreen-body img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 0;
  margin: 0 auto;
  border-radius: 0.25rem;
  object-fit: contain;
}

.docs-image-fullscreen-caption {
  margin: 0.75rem auto 0;
  max-width: min(56rem, calc(100vw - 2rem));
  color: rgba(255, 255, 255, 0.86);
  font-size: 0.8rem;
  line-height: 1.35;
}