/* Loaded only for regional pages. Keep the retained archive photographs whole. */
#post-5706 .wp-block-gallery .blocks-gallery-item figure {
  align-items: flex-start;
  justify-content: center;
  width: 100%;
  height: auto;
}

#post-5706 .wp-block-gallery .blocks-gallery-item img {
  flex: 0 1 auto;
  width: 100%;
  height: auto;
  object-fit: contain;
}

#post-5706 .wp-image-5732 { max-width: 559px; }
#post-5706 .wp-image-5796 { max-width: 768px; }

/* The transparent cutout is only 272 × 464; retain its native resolution. */
.wrapper__img-footer > img.img__footer {
  object-fit: scale-down;
  object-position: center;
}

/* These source photographs were cropped by fixed-height cover backgrounds. */
div.img-text-full.img-text-full14,
div.img-text-full#imgprav {
  display: block;
  position: static;
  width: 100%;
  height: auto !important;
  margin-inline: auto;
  background-size: contain !important;
  background-position: center !important;
  background-repeat: no-repeat;
}

div.img-text-full.img-text-full14 {
  max-width: 877px;
  aspect-ratio: 877 / 695;
}

div.img-text-full#imgprav {
  max-width: 848px;
  aspect-ratio: 848 / 814;
}

/* Krasnodar legacy content: reserve the same final image geometry before decode. */
.wp-block-gallery > .blocks-gallery-grid[data-litart-layout] { width:100%; }
.entry-content .wp-block-image img[data-litart-intrinsic],
.mainblock_777 img[data-litart-intrinsic],
.mainblock_15 img[data-litart-intrinsic],
.formblock .book img[data-litart-intrinsic] { width:var(--litart-image-width); }
.wrapper__img-header[data-litart-layout] { aspect-ratio:var(--litart-image-ratio); }
