/* MARCZINKA Gallery 1.2.31 — badge is attached to the image's own figure.
 * It has no in-flow dimensions and does not change image or column widths. */
.mzg-article-image-info-portal {
  position: absolute !important;
  width: 28px !important;
  height: 28px !important;
  z-index: 90;
  box-sizing: border-box !important;
  pointer-events: none;
  font-family: Arial, Roboto, sans-serif;
}
.mzg-article-image-info-button,
.mzg-article-ai-button {
  appearance: none !important;
  -webkit-appearance: none !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 0 !important;
  margin: 0 !important;
  width: 28px !important;
  height: 28px !important;
  min-width: 28px !important;
  min-height: 28px !important;
  border-radius: 50% !important;
  border: 1px solid rgba(255,255,255,.28) !important;
  background: rgba(18,20,25,.58) !important;
  color: rgba(255,255,255,.95) !important;
  -webkit-text-fill-color: rgba(255,255,255,.95) !important;
  box-shadow: 0 1px 3px rgba(0,0,0,.12) !important;
  cursor: pointer !important;
  pointer-events: auto;
  line-height: 1 !important;
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  transition: background-color .14s ease;
}
.mzg-article-image-info-button svg {
  display: block;
  width: 17px;
  height: 17px;
  stroke: currentColor;
  fill: none;
}
.mzg-article-image-info-button:hover,
.mzg-article-image-info-button:focus-visible,
.mzg-article-image-info-open .mzg-article-image-info-button,
.mzg-article-ai-open .mzg-article-ai-button {
  background: rgba(18,20,25,.76) !important;
}
.mzg-article-image-info-button:focus-visible,
.mzg-article-ai-button:focus-visible { outline: 2px solid white !important; outline-offset: 2px; }
.mzg-article-image-info-tooltip {
  position: absolute;
  top: 50%;
  right: calc(100% - 14px);
  box-sizing: border-box;
  width: max-content;
  max-width: var(--mzg-info-maxwidth, 580px);
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  border-radius: 18px 0 0 18px;
  padding: 6px 21px 6px 12px;
  border: 1px solid rgba(255,255,255,.25);
  background: rgba(18,20,25,.65) !important;
  -webkit-backdrop-filter: blur(3px);
  backdrop-filter: blur(3px);
  color: #fff !important;
  -webkit-text-fill-color: #fff !important;
  box-shadow: 0 2px 12px rgba(0,0,0,.15);
  font-size: 11px;
  font-weight: 400;
  line-height: 1.3;
  text-align: left;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(-50%);
  transition: opacity .12s ease, visibility .12s ease;
}
/* Tooltip touches the icon hit area: pointer transfer does not create hover gaps. */
@media (hover: hover) and (pointer: fine) {
  .mzg-article-image-info-button:hover + .mzg-article-image-info-tooltip,
  .mzg-article-image-info-button:focus-visible + .mzg-article-image-info-tooltip,
  .mzg-article-image-info-tooltip:hover {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }
}
.mzg-article-image-info-open .mzg-article-image-info-tooltip {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}
.mzg-caption-under-image-hidden { display: none !important; }
/* The wrapper is in normal flow but ignores the wider caption's intrinsic
   inline size. The visible caption can follow Elementor's wider mobile image
   without enlarging the article column or forcing horizontal scrolling. */
.mzg-caption-rail {
  display: block;
  inline-size: 100%;
  min-inline-size: 0;
  max-inline-size: 100%;
  box-sizing: border-box;
  contain: inline-size;
  clear: both;
}
.mzg-caption-rail > .mzg-caption-generated {
  display: block;
  position: relative;
  left: 0;
  width: 100%;
  max-width: none;
  min-width: 0;
  box-sizing: border-box;
  text-align: center;
  margin: 0 0 26px;
  padding: 12px 16px 14px;
  font-size: 12px;
  line-height: 1.45;
  font-weight: 400;
  color: inherit;
  -webkit-text-fill-color: currentColor;
  background: #F2F4F6;
  border-radius: 0 0 14px 14px;
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: normal;
}
.mzg-has-generated-caption {
  margin-bottom: 0 !important;
}
.mzg-has-generated-caption,
.mzg-has-generated-caption img,
.mzg-has-generated-caption .wp-post-image,
.mzg-has-generated-caption .attachment-full,
.mzg-has-generated-caption .attachment-large {
  border-bottom-left-radius: 0 !important;
  border-bottom-right-radius: 0 !important;
}
.mzg-has-generated-caption figcaption,
.mzg-has-generated-caption .wp-element-caption,
.mzg-has-generated-caption .wp-caption-text,
.mzg-has-generated-caption .elementor-image-caption {
  display: none !important;
}
@media (max-width: 767px) {
  .mzg-article-image-info-portal { width: 30px !important; height: 30px !important; }
  .mzg-article-image-info-button { width: 30px !important; height: 30px !important; min-width: 30px !important; min-height: 30px !important; }
  .mzg-article-image-info-tooltip { font-size: 10.5px; }
}
@media (prefers-reduced-motion: reduce) {
  .mzg-article-image-info-tooltip,.mzg-article-image-info-button { transition: none !important; }
}

.mzg-article-image-info-button,
.mzg-article-ai-button { position:relative; z-index:2; }
.mzg-article-image-info-tooltip { z-index:1; }

/* The AI and info controls share ONE exact button surface/style rule above.
   The AI-only selector sets position and typography, not a competing border or fill. */
.mzg-article-ai-button {
  position: absolute !important;
  top: 35px;
  right: 0;
  font-family: Arial, Roboto, sans-serif !important;
  font-size: 9px !important;
  font-weight: 700 !important;
  line-height: 1 !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
  text-shadow: none !important;
  z-index: 2;
}
.mzg-article-ai-only .mzg-article-ai-button { top: 0; }
.mzg-article-ai-tooltip {
  top: 49px;
  right: calc(100% - 14px);
  padding: 6px 21px 6px 12px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.mzg-article-ai-only .mzg-article-ai-tooltip { top: 14px; }
@media (hover:hover) and (pointer:fine) {
  .mzg-article-ai-button:hover + .mzg-article-ai-tooltip,
  .mzg-article-ai-button:focus-visible + .mzg-article-ai-tooltip {
    opacity: 1; visibility: visible; pointer-events: auto;
  }
}
.mzg-article-ai-open .mzg-article-ai-tooltip {
  opacity: 1; visibility: visible; pointer-events: auto;
}
@media (max-width:767px) {
  .mzg-article-ai-button { top:37px; }
  .mzg-article-ai-only .mzg-article-ai-button { top:0; }
  .mzg-article-ai-tooltip { top:52px; font-size:10.5px; }
  .mzg-article-ai-only .mzg-article-ai-tooltip { top:15px; }
}
@media (prefers-reduced-motion: reduce) {
  .mzg-article-ai-tooltip,.mzg-article-ai-button { transition:none!important; }
}

.mzg-article-ai-tooltip{white-space:normal!important;overflow-wrap:anywhere!important;text-overflow:clip!important;max-width:var(--mzg-info-maxwidth,580px)!important;line-height:1.45!important}

/* Native WordPress/Elementor captions must also wrap long source URLs when
   article-caption override mode is "keep". Never clip the whole page. */
body.single :is(.wue-article-flow-root,.elementor-widget-theme-post-content,
  .wakeup-elements-post-content,.wue3-dynamic_content,.wp-block-post-content,
  .entry-content) :is(figcaption,.wp-element-caption,.wp-caption-text,
  .elementor-image-caption,.widget-image-caption,.wm-image-caption) {
  min-width: 0 !important;
  white-space: normal !important;
  overflow-wrap: anywhere !important;
  word-break: normal !important;
}
