/* Full-width video layout, with the existing image/text slides preserved. */
.hero-banner.tac-hero-video-only {
  height:auto !important;
  padding-bottom:0 !important;
  aspect-ratio:var(--tac-hero-ratio, 2.333333);
  overflow:hidden !important;
  min-height:200px !important;
  margin-top:var(--header-height, 100px);
}
.hero-banner.tac-hero-video-only .hero-img-slide {height:100%;}
.hero-banner.tac-hero-video-only > .swiper {top:0 !important;padding-top:0 !important;}
/* Older merged styles applied gradients over both YouTube and file videos. */
.hero-banner .hero-img-slide[data-media-type="youtube"] .hero-media-wrap::before,
.hero-banner .hero-img-slide[data-media-type="youtube"] .hero-media-wrap::after,
.hero-banner .hero-img-slide[data-media-type="video"] .hero-media-wrap::before,
.hero-banner .hero-img-slide[data-media-type="video"] .hero-media-wrap::after {
  content:none !important;display:none !important;background:none !important;
}
.hero-banner .hero-img-slide[data-media-type="youtube"] .hero-media-wrap,
.hero-banner .hero-img-slide[data-media-type="video"] .hero-media-wrap {
  background:transparent !important;filter:none !important;opacity:1 !important;
}
.hero-banner .hero-media-youtube.is-playing .hero-media-youtube__skeleton,
.hero-banner .hero-media-youtube.is-playing .tac-hero-poster {display:none !important;}
.hero-banner .hero-media-youtube iframe,
.hero-banner .hero-media-youtube__frame {
  width:var(--tac-frame-width, 100%) !important;
  height:var(--tac-frame-height, 100%) !important;
  min-width:0;
  min-height:0;
  max-width:none !important;
  aspect-ratio:auto;
  border:0 !important;outline:0 !important;box-shadow:none !important;background:transparent !important;
}
.tac-hero-poster {position:absolute;inset:0;z-index:1;background:#eee;}
.tac-hero-poster img {width:100%;height:100%;object-fit:cover;}
.hero-media-youtube:has(.tac-hero-poster) .hero-media-youtube__skeleton {display:none;}
.hero-media-youtube.is-playing .tac-hero-poster {opacity:0;transition:opacity .35s;}
/* A background video has no interactive player or slideshow navigation. */
.hero-banner .hero-media-youtube,
.hero-banner .hero-img-slide[data-media-type="youtube"] .hero-media-youtube iframe {pointer-events:none !important;}
/* Reveal the player only after PLAYING. Before that, YouTube can show its
   own red play button; a clean poster is shown during startup instead. */
.hero-banner .hero-media-youtube iframe {opacity:0 !important;transition:none !important;}
.hero-banner .hero-media-youtube.is-playing iframe {opacity:1 !important;}
.hero-banner .tac-hero-poster {background:transparent;}
.hero-banner .hero-media-youtube__skeleton {background:transparent !important;}
.hero-banner .swiper-button-prev,
.hero-banner .swiper-button-next,
.hero-banner [data-slider-prev],
.hero-banner [data-slider-next],
.hero-banner [data-swiper-prev],
.hero-banner [data-swiper-next],
.hero-banner [data-hero-toggle] {display:none !important;}
.hero-banner .tac-hero-status {position:absolute;z-index:3;bottom:64px;left:50%;transform:translateX(-50%);width:max-content;max-width:85%;padding:8px 16px;border-radius:8px;background:rgba(0,0,0,.65);color:#fff;font-size:14px;text-align:center;}
.hero-banner .tac-hero-status:empty {display:none;}
@media(max-width:1023px) {
  .hero-banner.tac-hero-video-only {aspect-ratio:var(--tac-hero-ratio, .5625);min-height:200px !important;}
}

/* v1.9.24: crop the player canvas rather than the portrait image. */
.hero-banner .hero-media-youtube{overflow:hidden!important}
.hero-banner .hero-media-youtube iframe{position:absolute!important;top:50%!important;left:50%!important;right:auto!important;bottom:auto!important;transform:translate(-50%,-50%)!important;display:block!important;margin:0!important;padding:0!important}
.hero-banner.tac-hero-video-only,.hero-banner.tac-hero-video-only .hero-media-wrap{border:0!important;box-shadow:none!important}
.hero-banner .tac-hero-poster img{transform:scale(1.06);transform-origin:center}
