/* XAYSOFT / SEAYAPI H2 Slider v1.0.21
 * Only H2 Slider widgets receive these rules; H1/H3/H4 sliders remain unchanged.
 * Owl handles slide transitions, CSS handles picture-only motion.
 */
.sy-h2-slider .banner-carousel .slide-item {
  position: relative;
  overflow: hidden;
}
.sy-h2-slider .banner-carousel .slide-item::before {
  background: var(--sy-h2-overlay, rgba(0, 0, 0, .7)) !important;
  opacity: 1 !important;
  pointer-events: none;
  z-index: 1;
}
.sy-h2-slider .banner-carousel .slide-item .image-layer {
  /* Do NOT use !important here: CSS keyframe animations must be able to animate
   * transform for zoom/pan variants. The scoped selector still overrides
   * Easton's original scale(1.25) transition for the static mode. */
  transform: none;
  -webkit-transform: none;
  transition: none !important;
  -webkit-transition: none !important;
  animation: none !important;
  -webkit-animation: none !important;
  background-size: cover;
  background-repeat: no-repeat;
  will-change: auto;
}
.sy-h2-slider .banner-carousel .content-box { position: relative; z-index: 5; }

/* Theme zoom is explicitly opted in for backwards compatibility. */
.sy-h2-slider--image-legacy .banner-carousel .owl-item.active .slide-item .image-layer,
.sy-h2-slider--image-legacy .banner-carousel .active .slide-item .image-layer {
  transform: scale(1.25) !important;
  -webkit-transform: scale(1.25) !important;
  transition: transform var(--sy-h2-motion-duration, 8s) linear !important;
  -webkit-transition: -webkit-transform var(--sy-h2-motion-duration, 8s) linear !important;
}

/* The other picture effects start only when Owl marks the slide active. */
.sy-h2-slider--image-zoom_in .banner-carousel .owl-item.active .image-layer { animation: sy-h2-zoom-in var(--sy-h2-motion-duration, 8s) linear both !important; }
.sy-h2-slider--image-zoom_out .banner-carousel .owl-item.active .image-layer { animation: sy-h2-zoom-out var(--sy-h2-motion-duration, 8s) linear both !important; }
.sy-h2-slider--image-pan_left .banner-carousel .owl-item.active .image-layer { animation: sy-h2-pan-left var(--sy-h2-motion-duration, 8s) linear both !important; }
.sy-h2-slider--image-pan_right .banner-carousel .owl-item.active .image-layer { animation: sy-h2-pan-right var(--sy-h2-motion-duration, 8s) linear both !important; }
@keyframes sy-h2-zoom-in { from { transform: scale(1.02); } to { transform: scale(1.12); } }
@keyframes sy-h2-zoom-out { from { transform: scale(1.12); } to { transform: scale(1.02); } }
@keyframes sy-h2-pan-left { from { transform: scale(1.14) translateX(2%); } to { transform: scale(1.14) translateX(-2%); } }
@keyframes sy-h2-pan-right { from { transform: scale(1.14) translateX(-2%); } to { transform: scale(1.14) translateX(2%); } }

/* Disable built-in delayed text movement when the editor asks for no movement. */
.sy-h2-slider--text-none .banner-carousel .content-box h2,
.sy-h2-slider--text-none .banner-carousel .content-box p,
.sy-h2-slider--text-none .banner-carousel .content-box .btn-box {
  opacity: 1 !important;
  transform: none !important;
  -webkit-transform: none !important;
  transition: none !important;
  -webkit-transition: none !important;
  transition-delay: 0ms !important;
}
.sy-h2-slider--text-fade .banner-carousel .content-box h2,
.sy-h2-slider--text-fade .banner-carousel .content-box p,
.sy-h2-slider--text-fade .banner-carousel .content-box .btn-box {
  opacity: 0;
  transform: none !important;
  -webkit-transform: none !important;
  transition: opacity 550ms ease-out !important;
  transition-delay: 0ms !important;
}
.sy-h2-slider--text-fade .banner-carousel .owl-item.active .content-box h2,
.sy-h2-slider--text-fade .banner-carousel .owl-item.active .content-box p,
.sy-h2-slider--text-fade .banner-carousel .owl-item.active .content-box .btn-box {
  opacity: 1 !important;
}

/* A user requesting reduced motion should not receive zoom, pan or text fly-in. */
@media (prefers-reduced-motion: reduce) {
  .sy-h2-slider .banner-carousel .owl-item.active .slide-item .image-layer,
  .sy-h2-slider .banner-carousel .active .slide-item .image-layer,
  .sy-h2-slider .banner-carousel .slide-item .image-layer {
    animation: none !important;
    -webkit-animation: none !important;
    transform: none !important;
    -webkit-transform: none !important;
    transition: none !important;
  }
  .sy-h2-slider .banner-carousel .content-box h2,
  .sy-h2-slider .banner-carousel .content-box p,
  .sy-h2-slider .banner-carousel .content-box .btn-box {
    opacity: 1 !important;
    transform: none !important;
    -webkit-transform: none !important;
    transition: none !important;
  }
}


/* v1.0.20 – Height-first centered photography, without artificial filler.
 * The JS picks 'auto 100%' when the photograph is wide enough to cover
 * the entire slide at slide height. Otherwise it falls back to 'cover'
 * to avoid horizontal gaps on unusually narrow images/screens. */
.sy-h2-slider .banner-carousel .slide-item .image-layer {
  background-position: var(--sy-h2-focus-x, 50%) var(--sy-h2-focus-y, 50%);
}
.sy-h2-slider .banner-carousel .slide-item .image-layer.sy-h2-image--height_center {
  background-position: var(--sy-h2-focus-x, 50%) var(--sy-h2-focus-y, 50%) !important;
  background-size: auto 100%;
  background-repeat: no-repeat;
}
/* The photo must remain exactly one slide high: legacy 1.25 scale/zoom/pan
 * would change the crop, so only height-centered slides suppress them. */
.sy-h2-slider .banner-carousel .owl-item .slide-item .image-layer.sy-h2-image--height_center,
.sy-h2-slider .banner-carousel .owl-item.active .slide-item .image-layer.sy-h2-image--height_center {
  transform: none !important;
  -webkit-transform: none !important;
  animation: none !important;
  -webkit-animation: none !important;
  transition: none !important;
  -webkit-transition: none !important;
}
