/* Loaded only by posts that explicitly request this stylesheet. */
.page-posts-single .content {
  text-align: left;
}

/* Figures fill the article width and stay within the mobile viewport. */
.page-posts-single .content a[href^="/images/blogs/warp-loader/"] {
  display: block;
  width: 100%;
  max-width: 100%;
  margin-left: 0;
  margin-right: 0;
}

.page-posts-single .content img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  float: none;
  margin: 1rem 0;
}

/* Wide evidence and GUID tables scroll without widening the mobile viewport. */
.page-posts-single .content table {
  display: block;
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.page-posts-single .content :not(pre) > code {
  overflow-wrap: anywhere;
}

.page-posts-single .content a:has(> img) {
  cursor: zoom-in;
}

.image-preview {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 3.5rem 1rem 1rem;
  border: 0;
  background: transparent;
}

.image-preview[open] {
  display: flex;
  align-items: center;
  justify-content: center;
}

.image-preview::backdrop {
  background: rgb(0 0 0 / 85%);
}

.image-preview img {
  display: block;
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
}

.image-preview-close {
  position: absolute;
  top: 0.5rem;
  right: 1rem;
  width: 2.5rem;
  height: 2.5rem;
  border: 1px solid white;
  border-radius: 50%;
  background: #111;
  color: white;
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
}

.image-preview-close:focus-visible {
  outline: 3px solid white;
  outline-offset: 3px;
}
