/* HLBT Rev7H: soft photographic Hero backdrop, never a full-red background.
   HeroBackgroundImageUrl sets this image; HeroImageUrl still controls the photo card on the right. */
.hlbt-bto-reference .ref-hero.hlbt-hero-with-background {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: #eceef1;
}
.hlbt-bto-reference .hlbt-hero-background-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center 47%;
  filter: saturate(.65) contrast(.88) brightness(1.09);
  z-index: 0;
  pointer-events: none;
}
/* Gray opacity is strongest near the text so the hero remains legible. */
.hlbt-bto-reference .ref-hero.hlbt-hero-with-background::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(100deg,
    rgba(238,240,243,.98) 0%,
    rgba(238,240,243,.96) 28%,
    rgba(238,240,243,.87) 54%,
    rgba(238,240,243,.78) 100%);
  pointer-events: none;
}
.hlbt-bto-reference .ref-hero.hlbt-hero-with-background::before {z-index: 3;}
.hlbt-bto-reference .ref-hero.hlbt-hero-with-background .ref-hero-inner {position: relative;z-index: 2;}
@media (max-width: 991px) {
  .hlbt-bto-reference .ref-hero.hlbt-hero-with-background::after {
    background: linear-gradient(180deg,rgba(238,240,243,.97),rgba(238,240,243,.9));
  }
}
@media (prefers-reduced-transparency: reduce) {
  .hlbt-bto-reference .ref-hero.hlbt-hero-with-background::after {background:rgba(238,240,243,.96);}
}
/* Admin Settings image selection with thumbnails instead of mysterious URLs. */
.hlbt-settings-image-control {border:1px solid #dde0e5;background:#f7f8fa;padding:16px;border-radius:12px;margin-bottom:18px;}
.hlbt-settings-image-control label {display:block;font-size:15px;font-weight:800;margin-bottom:8px;color:#252932;}
.hlbt-settings-image-control .form-control {min-width:0;flex:1;}
.hlbt-settings-image-control .hlbt-settings-image-actions {display:flex;gap:9px;flex-wrap:wrap;margin-top:10px;}
.hlbt-settings-image-control button {border:1px solid #a9122c;border-radius:8px;background:#fff;color:#a9122c;font-size:13px;font-weight:800;padding:9px 12px;}
.hlbt-settings-image-control button:hover {background:#fff0f3;}
.hlbt-settings-image-control .hlbt-settings-image-preview {display:block;max-width:330px;width:100%;max-height:160px;object-fit:cover;object-position:center 42%;border:4px solid #fff;border-radius:10px;margin-top:12px;box-shadow:0 5px 16px #24293217;}
.hlbt-settings-image-control .hlbt-settings-image-preview[hidden] {display:none;}
.hlbt-settings-image-control .hlbt-settings-help {margin:8px 0 0;color:#626974;font-size:13px;line-height:1.6;}
.hlbt-settings-image-grid {display:grid;grid-template-columns:repeat(auto-fill,minmax(155px,1fr));gap:12px;max-height:58vh;overflow:auto;padding:5px;}
.hlbt-settings-image-choice {border:1px solid #dadde4;background:#fff;border-radius:10px;padding:7px;color:#333;min-width:0;text-align:left;cursor:pointer;}
.hlbt-settings-image-choice:hover,.hlbt-settings-image-choice:focus-visible {border-color:#b5122b;outline:2px solid #b5122b;outline-offset:1px;}
.hlbt-settings-image-choice img {width:100%;height:110px;object-fit:cover;border-radius:7px;display:block;}
.hlbt-settings-image-choice span {font-size:11px;display:block;word-break:break-word;margin-top:5px;}
