.jb-hero-media {
  --jbh-height-desktop: 620px;
  --jbh-height-tablet: 500px;
  --jbh-height-mobile: 380px;
  --jbh-overlay: .25;
  --jbh-object-position: center center;
  --jbh-content-width: 1100px;
  position: relative;
  display: flex;
  min-height: var(--jbh-height-desktop);
  overflow: hidden;
  isolation: isolate;
  background: #111;
}

.jb-hero-media__media,
.jb-hero-media__overlay {
  position: absolute;
  inset: 0;
}

.jb-hero-media__media { z-index: -2; }
.jb-hero-media__overlay { z-index: -1; background: rgba(0,0,0,var(--jbh-overlay)); pointer-events: none; }

.jb-hero-media__video,
.jb-hero-media__image,
.jb-hero-media__fallback,
.jb-hero-media__media picture {
  width: 100%;
  height: 100%;
}

.jb-hero-media__video,
.jb-hero-media__image,
.jb-hero-media__fallback {
  display: block;
  object-fit: cover;
  object-position: var(--jbh-object-position);
}

.jb-hero-media__fallback { display: none; }
.jb-hero-media.is-video-unavailable .jb-hero-media__video { display: none; }
.jb-hero-media.is-video-unavailable .jb-hero-media__fallback { display: block; }

.jb-hero-media__inner {
  display: flex;
  width: min(100%, var(--jbh-content-width));
  margin: 0 auto;
  padding: clamp(24px, 5vw, 72px);
  box-sizing: border-box;
}

.jb-hero-media--vertical-top { align-items: flex-start; }
.jb-hero-media--vertical-center { align-items: center; }
.jb-hero-media--vertical-bottom { align-items: flex-end; }

.jb-hero-media--content-left .jb-hero-media__inner { justify-content: flex-start; }
.jb-hero-media--content-center .jb-hero-media__inner { justify-content: center; }
.jb-hero-media--content-right .jb-hero-media__inner { justify-content: flex-end; }

.jb-hero-media__content { max-width: 760px; }
.jb-hero-media--text-left .jb-hero-media__content { text-align: left; }
.jb-hero-media--text-center .jb-hero-media__content { text-align: center; }
.jb-hero-media--text-right .jb-hero-media__content { text-align: right; }

.jb-hero-media__title {
  margin: 0 0 16px;
  font-size: clamp(2rem, 5vw, 4.8rem);
  line-height: 1.04;
  font-weight: 700;
  text-wrap: balance;
  text-shadow: 0 2px 18px rgba(0,0,0,.28);
}

.jb-hero-media__subtitle {
  margin: 0;
  color: var(--jbh-subtitle-color, #fff) !important;
  font-size: clamp(1rem, 2vw, 1.35rem);
  line-height: 1.55;
  text-shadow: 0 1px 10px rgba(0,0,0,.3);
}

.jb-hero-media__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 26px;
  padding: 12px 24px;
  border: 2px solid var(--jbh-button-preset-bg, var(--bs-primary, #e86600));
  border-radius: 4px;
  background: var(--jbh-button-preset-bg, var(--bs-primary, #e86600));
  color: var(--jbh-button-preset-text, #fff) !important;
  text-decoration: none;
  font-weight: 700;
  transition: transform .18s ease, background-color .18s ease, color .18s ease;
}

.jb-hero-media__button:hover,
.jb-hero-media__button:focus-visible {
  background: transparent;
  transform: translateY(-1px);
}

.jb-hero-media__button:focus-visible { outline: 3px solid currentColor; outline-offset: 3px; }

.jb-hero-media__scroll {
  position: absolute;
  left: 50%;
  bottom: 18px;
  transform: translateX(-50%);
  font-size: 34px;
  line-height: 1;
  animation: jbh-bounce 1.6s infinite;
}

@keyframes jbh-bounce {
  0%, 100% { transform: translate(-50%, 0); }
  50% { transform: translate(-50%, 7px); }
}

@media (max-width: 991.98px) {
  .jb-hero-media { min-height: var(--jbh-height-tablet); }
}

@media (max-width: 767.98px) {
  .jb-hero-media { min-height: var(--jbh-height-mobile); }
  .jb-hero-media__inner { padding: 24px 18px; }
}

@media (prefers-reduced-motion: reduce) {
  .jb-hero-media__scroll { animation: none; }
  .jb-hero-media__button { transition: none; }
}

.jb-hero-media--custom-colors .jb-hero-media__button {
  background: var(--jbh-button-bg-color, var(--jbh-button-preset-bg)) !important;
  border-color: var(--jbh-button-border-color, var(--jbh-button-preset-bg)) !important;
  color: var(--jbh-button-text-color, var(--jbh-button-preset-text)) !important;
}
