/* MEYWEB 1.0.267 — transparent media in Topkara inner-page body.
   Do not change raster pixels or infer transparency from .png extension.
   Only neutralizes editorial image backing/frame styles; main article card,
   navigation, hero, sidebar, and intentional image size/float/radius are retained. */

/* Imported media must not inherit a white matte or opaque figure fill.
   Keep the configured image dimensions, float, border radius and custom shadow. */
.tk-page.tk-inner-page.tk264-enabled .tk264-main :is(.mw261-rich-content,.prose,.mey-image-text-media) img,
.tk-page.tk-inner-page.tk264-enabled .tk264-main :is(.mw261-rich-content,.prose) picture {
  background: transparent !important;
  background-color: transparent !important;
  background-image: none !important;
}
.tk-page.tk-inner-page.tk264-enabled .tk264-main :is(.mw261-rich-content,.prose) img {
  box-sizing: border-box;
  max-width: 100%;
  padding: 0 !important;
  border: 0 !important;
}
/* PNG alpha is composited naturally and never stretched/cropped by a theme.
   Keep an explicit editor-created width/height and responsive max-width. */
.tk-page.tk-inner-page.tk264-enabled .tk264-main :is(.mw261-rich-content,.prose,.mey-image-text-media) img[src*=".png" i] {
  object-fit: contain !important;
  object-position: center;
}
/* Image-only wrappers from pasted HTML and old rich-text output may have
   a white background, padding, border or shadow even when the PNG has alpha.
   Require a single immediate image child to avoid changing text/image layouts. */
@supports selector(:has(> img:only-child)) {
  .tk-page.tk-inner-page.tk264-enabled .tk264-main :is(.mw261-rich-content,.prose) :is(figure,div,span,a):has(> img:only-child),
  .tk-page.tk-inner-page.tk264-enabled .tk264-main :is(.mw261-rich-content,.prose) :is(figure,div,span,a):has(> picture:only-child),
  .tk-page.tk-inner-page.tk264-enabled .tk264-main :is(.mw261-rich-content,.prose) p:has(> img:only-child),
  .tk-page.tk-inner-page.tk264-enabled .tk264-main :is(.mw261-rich-content,.prose) p:has(> a:only-child > img:only-child) {
    background: transparent !important;
    background-image: none !important;
    border: 0 !important;
    box-shadow: none !important;
  }
  .tk-page.tk-inner-page.tk264-enabled .tk264-main :is(.mw261-rich-content,.prose) :is(figure,div,span):has(> img:only-child),
  .tk-page.tk-inner-page.tk264-enabled .tk264-main :is(.mw261-rich-content,.prose) :is(figure,div,span):has(> picture:only-child) {
    padding: 0 !important;
  }
}
/* Separate image-and-text components sometimes carry a media card shell.
   The image container loses only its artificial backdrop; its grid and ratio
   remain controlled by the existing page/component CSS. */
.tk-page.tk-inner-page.tk264-enabled .tk264-main .mey-image-text-media,
.tk-page.tk-inner-page.tk264-enabled .tk264-main .mey-image-text-media picture {
  background: transparent !important;
  background-image: none !important;
  box-shadow: none !important;
  border-color: transparent !important;
}
/* Avoid horizontal overflow from user-assigned image dimensions. */
.tk-page.tk-inner-page.tk264-enabled .tk264-main :is(.mw261-rich-content,.prose) :is(img,picture,figure) {
  max-width: 100%;
}
