/* Homepage legacy feature cards: captions always participate in document flow.
   Prevents the old absolute-position caption from escaping its grid column. */
body.bbf-home-overlay-fixed .thumbnail.thumb-shadow {
  position: relative !important;
  display: flex !important;
  flex-direction: column !important;
  width: 100% !important;
  min-width: 0 !important;
  max-width: 100% !important;
  height: auto !important;
  overflow: hidden !important;
  isolation: isolate;
  box-sizing: border-box;
}
body.bbf-home-overlay-fixed .thumbnail.thumb-shadow > picture,
body.bbf-home-overlay-fixed .thumbnail.thumb-shadow > picture img {
  display: block !important;
  width: 100% !important;
  max-width: 100% !important;
  height: auto !important;
}
body.bbf-home-overlay-fixed .thumbnail.thumb-shadow > .caption {
  position: relative !important;
  top: auto !important;
  right: auto !important;
  bottom: auto !important;
  left: auto !important;
  inset: auto !important;
  display: block !important;
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  margin: 0 !important;
  transform: none !important;
  box-sizing: border-box !important;
  writing-mode: horizontal-tb !important;
  overflow-wrap: anywhere;
}
body.bbf-home-overlay-fixed .thumbnail.thumb-shadow > .caption h3,
body.bbf-home-overlay-fixed .thumbnail.thumb-shadow > .caption .wrap,
body.bbf-home-overlay-fixed .thumbnail.thumb-shadow > .caption p {
  position: static !important;
  float: none !important;
  width: auto !important;
  max-width: 100% !important;
  min-width: 0 !important;
  writing-mode: horizontal-tb !important;
  word-break: normal !important;
  overflow-wrap: break-word !important;
}
body.bbf-home-overlay-fixed .thumbnail.thumb-shadow > .caption .wrap a {
  float: none !important;
  display: inline-block;
}
@media (max-width: 767px) {
  body.bbf-home-overlay-fixed .thumbnail.thumb-shadow > .caption { padding: 20px !important; }
}
