.blog-post img {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 1.5rem auto;
}

.blog-image-trigger {
  display: block;
  width: fit-content;
  max-width: 100%;
  margin: 1.5rem auto;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: zoom-in;
}

.blog-image-trigger img {
  margin: 0 auto;
}

.blog-image-trigger:focus-visible,
.image-viewer button:focus-visible,
.image-viewer a:focus-visible,
.image-viewer__viewport:focus-visible {
  outline: 3px solid #b5e853;
  outline-offset: 4px;
}

html.image-viewer-open {
  overflow: hidden;
}

.image-viewer {
  box-sizing: border-box;
  width: 1100px;
  max-width: 96vw;
  max-height: 96vh;
  max-height: 96dvh;
  padding: 1rem;
  border: 1px solid #666;
  border-radius: 8px;
  background: #151515;
  color: #eee;
}

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

.image-viewer__toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.image-viewer__original {
  margin-right: auto;
  color: #b5e853;
}

.image-viewer__close,
.image-viewer__reset {
  flex-shrink: 0;
  min-height: 44px;
  padding: 0.5rem 0.75rem;
  border: 1px solid #666;
  border-radius: 4px;
  background: #222;
  color: #eee;
  font: inherit;
  cursor: pointer;
}

.image-viewer__figure {
  margin: 0;
}

.image-viewer__viewport {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 65vh;
  height: 65dvh;
  overflow: hidden;
  touch-action: none;
  user-select: none;
  cursor: zoom-in;
}

.image-viewer__viewport.is-zoomed {
  cursor: grab;
}

.image-viewer__viewport.is-dragging {
  cursor: grabbing;
}

.image-viewer__image {
  display: block;
  flex: 0 0 auto;
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  margin: 0 auto;
  object-fit: contain;
  transform-origin: center;
}

.image-viewer__help {
  margin: 0.75rem 0 0;
  color: #bbb;
  font-size: 0.85rem;
  text-align: center;
}

.image-viewer__caption {
  margin-top: 0.75rem;
  text-align: center;
  overflow-wrap: anywhere;
}
