/* Images accompany the explanation, preserving their natural proportions. */
.abc-post-content .abc-editorial-photo {
  --abc-editorial-width: 560px;
  display: block;
  width: 100%;
  max-width: 100%;
  margin: 30px 0 36px;
  padding: 0;
  border: 0;
  background: transparent;
}
.abc-post-content .abc-editorial-photo--wide { --abc-editorial-width: 100%; }
.abc-post-content .abc-editorial-photo--detail { --abc-editorial-width: 340px; }
.abc-post-content .abc-editorial-photo--portrait,
.abc-post-content .abc-editorial-photo--document { --abc-editorial-width: 680px; }

.abc-post-content .abc-editorial-photo > :is(a, .abc-editorial-media),
.abc-post-content .abc-editorial-photo > img {
  display: block;
  width: 100%;
  max-width: var(--abc-editorial-width);
  margin-inline: auto;
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: 8px;
  box-shadow: none;
}
.abc-post-content .abc-editorial-photo :is(img, picture) {
  display: block;
  max-width: 100%;
}
.abc-post-content .abc-editorial-photo > img { max-width: var(--abc-editorial-width); }
.abc-post-content .abc-editorial-photo img {
  width: 100%;
  height: auto !important;
  max-height: none;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: none;
  transform: none !important;
  transition: none;
}
.abc-post-content .abc-editorial-photo > figcaption {
  max-width: var(--abc-editorial-width);
  margin: 10px auto 0;
  padding: 0;
  border: 0;
  color: #636e72;
  font: 400 14px/1.5 Glacial, system-ui, sans-serif;
  text-align: center;
  text-wrap: pretty;
}
.abc-post-content .abc-editorial-photo > figcaption :is(strong, b) { font-weight: 700; }
.abc-post-content .abc-editorial-photo > a[data-abc-preview] { cursor: zoom-in; }
.abc-post-content .abc-editorial-photo > a[data-abc-preview]:focus-visible {
  outline: 3px solid #6c5ce7;
  outline-offset: 4px;
  box-shadow: 0 0 0 4px #fff;
}

/* A pair is a specific comparison/sequence, never the default for all photos.
   Columns depend on the READING COLUMN width, not the overall viewport: the
   sidebar can leave only 600px even on a desktop. Natural proportions remain. */
.abc-post-content .abc-editorial-pair {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
  align-items: start;
  gap: 22px 24px;
  width: 100%;
  margin: 30px 0 36px;
}
.abc-post-content .abc-editorial-pair > .abc-editorial-photo {
  --abc-editorial-width: 100%;
  margin: 0;
  min-width: 0;
}

@media (max-width: 600px) {
  .abc-post-content .abc-editorial-photo,
  .abc-post-content .abc-editorial-pair { margin-block: 24px 30px; }
  .abc-post-content .abc-editorial-pair { grid-template-columns: 1fr; gap: 28px; }
  .abc-post-content .abc-editorial-pair > .abc-editorial-photo { margin: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .abc-post-content .abc-editorial-photo,
  .abc-post-content .abc-editorial-photo * { animation: none !important; transition: none !important; }
}

/* No hidden initial state, image zoom, fixed image height or 16:9 rule here.
   The existing .abc-post-cover/.abc-card-image keep their own 16:9 contract.
   Preview dialogs retain the site's keyboard, focus-return and reduced-motion
   behavior. Source href points to the original/full image if JavaScript fails. */
