/* JB Builder CSS 3.2 – 07-media.css
   Společné dokončení médií a vložených rámců (načítat jako poslední).
   Pořadí registrace v JB Code Manageru: podle čísla v názvu souboru. */

/* ===== base/other.css ===== */
/* JB Builder 2.8.23 — shared media finishing, never global MIO/FAPI images. */
.jb-co[id] {
  scroll-margin-top: 80px;
}
.jb-co {
  --jb-media-radius: 20px;
  --jb-video-radius: 10px;
}
.jb-co :is(.jb-co-gallery, .jb-co-media-text__media, .jb-co-card__media) img {
  border-radius: var(--jb-media-radius);
  max-width: 100%;
}
.jb-co :is(.jb-co-media-text__media, .jb-co-gallery) video {
  border-radius: var(--jb-video-radius);
}
.jb-co .jb-co-media-text__video {
  border-radius: var(--jb-video-radius);
  overflow: hidden;
}
.jb-co .jb-co-media-text__video iframe {
  border-radius: inherit;
}
/* Media touches a card's edges; the card handles clipping. */
.jb-co .jb-co-card__media img {
  border-radius: 0;
}
/* Edge-to-edge banner backgrounds never get rounded corners. */
.jb-co--banner .jb-co-banner,
.jb-co--banner .jb-co-banner__overlay {
  border-radius: 0;
}

/* JB Builder – responsive embedded frames (2026-11-09).
   Keep this scoped to JB Builder so third-party MIO/FAPI frames are untouched.
   Media + Text uses its existing positioned 16:9 wrapper and is unchanged. */
.jb-co iframe {
  max-width: 100%;
  box-sizing: border-box;
}

/* Embedded Custom HTML must shrink inside flex columns and combinators. */
.jb-co.jb-co--html,
.jb-co.jb-co--html > .jb-co__inner {
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
}

/* Only actual YouTube player iframes are made fluid by default. */
.jb-co.jb-co--html iframe:is([src*="youtube.com/embed/"], [src*="youtube-nocookie.com/embed/"]) {
  display: block;
  width: 100% !important;
  max-width: 100% !important;
  height: auto !important;
  aspect-ratio: var(--jb-embed-aspect, 16 / 9);
  border: 0;
  border-radius: var(--jb-video-radius, 10px);
}
