.sors-wrap,
.sors-wrap * {
  box-sizing: border-box !important;
}

.sors-wrap {
  position: relative !important;
  left: 50% !important;
  right: 50% !important;
  width: 100vw !important;
  max-width: 100vw !important;
  margin-left: -50vw !important;
  margin-right: -50vw !important;
  margin-top: 0 !important;
  margin-bottom: 0 !important;
  padding: 0 !important;
  background: #fff !important;
  isolation: isolate;
  overflow: visible !important;
}

.sors-slider {
  position: relative !important;
  width: 100% !important;
  max-width: var(--sors-max-width, 1120px) !important;
  margin: 0 auto !important;
  min-height: var(--sors-slider-height, 430px) !important;
  overflow: visible !important;
}

/* Salient/WPBakery often keeps shortcode content inside a boxed row.
   This breakout removes the visible left/right margin and keeps the slider centered. */
.wpb_wrapper > .sors-wrap,
.vc_column-inner > .wpb_wrapper > .sors-wrap {
  width: 100vw !important;
  max-width: 100vw !important;
}

.sors-track {
  position: relative !important;
  width: 100% !important;
  height: var(--sors-track-height, 365px) !important;
  display: block !important;
  overflow: visible !important;
  perspective: 1100px !important;
}

.sors-slide {
  position: absolute !important;
  top: 50% !important;
  left: 50% !important;
  width: var(--sors-main-w, 510px) !important;
  height: var(--sors-main-h, 345px) !important;
  max-width: none !important;
  overflow: hidden !important;
  border-radius: var(--sors-radius, 26px) !important;
  background: transparent !important;
  border: 0 !important;
  outline: 0 !important;
  padding: 0 !important;
  transform: translate(-50%, -50%) scale(.72) !important;
  opacity: 0 !important;
  z-index: 0 !important;
  pointer-events: none !important;
  cursor: default !important;
  filter: saturate(.92) brightness(1.03) !important;
  transition:
    transform 680ms cubic-bezier(.22,.61,.36,1),
    opacity 680ms cubic-bezier(.22,.61,.36,1),
    width 680ms cubic-bezier(.22,.61,.36,1),
    height 680ms cubic-bezier(.22,.61,.36,1),
    box-shadow 680ms cubic-bezier(.22,.61,.36,1),
    filter 680ms cubic-bezier(.22,.61,.36,1) !important;
  will-change: transform, opacity, width, height !important;
}

.sors-slide::before,
.sors-slide::after,
.sors-slide *::before,
.sors-slide *::after {
  content: none !important;
  display: none !important;
  box-shadow: none !important;
}

.sors-slide.sors-active {
  background: transparent !important;
  border: 0 !important;
  outline: 0 !important;
  padding: 0 !important;
}

.sors-slide img {
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  min-width: 100% !important;
  display: block !important;
  object-fit: cover !important;
  object-position: center !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  filter: none !important;
  transform: scale(1.025) !important;
  transition: transform 880ms cubic-bezier(.22,.61,.36,1) !important;
}

.sors-slide.sors-active {
  width: var(--sors-main-w, 510px) !important;
  height: var(--sors-main-h, 345px) !important;
  transform: translate(-50%, -50%) scale(1) !important;
  opacity: 1 !important;
  z-index: 6 !important;
  pointer-events: auto !important;
  cursor: zoom-in !important;
  filter: saturate(1) brightness(1) !important;
  box-shadow: 0 7px 16px rgba(0,0,0,var(--sors-shadow-alpha, .24)), 0 3px 6px rgba(0,0,0,.10) !important;
}

.sors-slide.sors-active img {
  transform: scale(1) !important;
}

.sors-slide.sors-prev,
.sors-slide.sors-next {
  width: var(--sors-side-w, 420px) !important;
  height: var(--sors-side-h, 290px) !important;
  opacity: var(--sors-side-opacity, .34) !important;
  z-index: 2 !important;
  filter: saturate(.74) brightness(1.13) !important;
  box-shadow: none !important;
  cursor: pointer !important;
}

.sors-slide.sors-prev {
  transform: translate(calc(-50% - var(--sors-shift, 350px)), -50%) scale(1) !important;
}

.sors-slide.sors-next {
  transform: translate(calc(-50% + var(--sors-shift, 350px)), -50%) scale(1) !important;
}

.sors-slide.sors-hidden {
  width: var(--sors-side-w, 420px) !important;
  height: var(--sors-side-h, 290px) !important;
  opacity: 0 !important;
  z-index: 0 !important;
  transform: translate(-50%, -50%) scale(.72) !important;
}

.sors-arrows {
  position: absolute !important;
  left: 50% !important;
  bottom: 8px !important;
  transform: translateX(-50%) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: var(--sors-arrow-gap, 22px) !important;
  z-index: 20 !important;
  width: auto !important;
  height: auto !important;
  margin: 0 !important;
  padding: 0 !important;
}

.sors-wrap .sors-arrow,
.sors-wrap button.sors-arrow,
.sors-wrap .sors-arrow[type="button"] {
  all: unset;
  box-sizing: border-box !important;
  width: var(--sors-arrow-size, 38px) !important;
  height: var(--sors-arrow-size, 38px) !important;
  min-width: var(--sors-arrow-size, 38px) !important;
  min-height: var(--sors-arrow-size, 38px) !important;
  max-width: var(--sors-arrow-size, 38px) !important;
  max-height: var(--sors-arrow-size, 38px) !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  border-radius: 999px !important;
  border: 0 !important;
  outline: 0 !important;
  padding: 0 !important;
  margin: 0 !important;
  background: var(--sors-arrow-bg, #D5F0FA) !important;
  background-color: var(--sors-arrow-bg, #D5F0FA) !important;
  color: #111 !important;
  line-height: 1 !important;
  text-align: center !important;
  cursor: pointer !important;
  box-shadow: none !important;
  text-decoration: none !important;
  transform: translateY(0) !important;
  transition: transform 200ms ease, box-shadow 200ms ease, opacity 200ms ease !important;
  -webkit-appearance: none !important;
  appearance: none !important;
}

.sors-wrap .sors-arrow svg {
  width: 19px !important;
  height: 19px !important;
  display: block !important;
  fill: currentColor !important;
  pointer-events: none !important;
  margin: 0 !important;
}

.sors-wrap .sors-arrow:hover,
.sors-wrap .sors-arrow:focus-visible {
  background: var(--sors-arrow-bg, #D5F0FA) !important;
  background-color: var(--sors-arrow-bg, #D5F0FA) !important;
  color: #111 !important;
  opacity: .96 !important;
  transform: translateY(-1px) !important;
  box-shadow: 0 6px 13px rgba(0,0,0,.12) !important;
}

.sors-wrap .sors-arrow:active {
  transform: translateY(0) scale(.96) !important;
}

.sors-empty {
  max-width: 900px;
  margin: 20px auto;
  padding: 16px 18px;
  border: 1px dashed #c5c5c5;
  border-radius: 10px;
  background: #fafafa;
  color: #333;
}

@media (max-width: 1100px) {
  .sors-wrap {
    --sors-slider-height: min(430px, 45.5vw) !important;
    --sors-track-height: min(365px, 38.5vw) !important;
    --sors-main-w: min(510px, 48.8vw) !important;
    --sors-main-h: min(345px, 34.9vw) !important;
    --sors-side-w: min(420px, 38.4vw) !important;
    --sors-side-h: min(290px, 28.5vw) !important;
    --sors-shift: min(350px, 30.8vw) !important;
  }
}

@media (max-width: 767px) {
  .sors-wrap {
    padding: 0 !important;
    --sors-slider-height: min(350px, 76vw) !important;
    --sors-track-height: min(300px, 66vw) !important;
    --sors-main-w: 78vw !important;
    --sors-main-h: min(270px, 54vw) !important;
    --sors-side-w: 62vw !important;
    --sors-side-h: min(220px, 44vw) !important;
    --sors-shift: 50vw !important;
    --sors-radius: 24px !important;
  }

  .sors-slider,
  .sors-track {
    overflow: hidden !important;
  }

  .sors-slide.sors-prev,
  .sors-slide.sors-next {
    opacity: calc(var(--sors-side-opacity, .34) * .72) !important;
  }
}

@media (max-width: 480px) {
  .sors-wrap {
    --sors-slider-height: min(300px, 82vw) !important;
    --sors-track-height: min(265px, 70vw) !important;
    --sors-main-w: 78vw !important;
    --sors-main-h: min(220px, 56vw) !important;
    --sors-side-w: 60vw !important;
    --sors-side-h: min(175px, 46vw) !important;
    --sors-shift: 50vw !important;
    --sors-radius: 21px !important;
    --sors-arrow-size: 32px !important;
  }
}


html.sors-lightbox-no-scroll,
html.sors-lightbox-no-scroll body {
  overflow: hidden !important;
}

.sors-lightbox {
  position: fixed !important;
  inset: 0 !important;
  z-index: 999999 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 34px !important;
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
  transition: opacity 180ms ease, visibility 180ms ease !important;
}

.sors-lightbox.sors-lightbox-open {
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
}

.sors-lightbox-backdrop {
  position: absolute !important;
  inset: 0 !important;
  background: rgba(0, 0, 0, .82) !important;
  backdrop-filter: blur(2px) !important;
}

.sors-lightbox-figure {
  position: relative !important;
  z-index: 2 !important;
  width: auto !important;
  max-width: 94vw !important;
  max-height: 90vh !important;
  margin: 0 !important;
  padding: 0 !important;
  transform: scale(.96) !important;
  transition: transform 180ms ease !important;
}

.sors-lightbox.sors-lightbox-open .sors-lightbox-figure {
  transform: scale(1) !important;
}

.sors-lightbox-img {
  display: block !important;
  max-width: 94vw !important;
  max-height: 86vh !important;
  width: auto !important;
  height: auto !important;
  object-fit: contain !important;
  border-radius: 18px !important;
  box-shadow: 0 18px 55px rgba(0,0,0,.45) !important;
  background: #fff !important;
}

.sors-lightbox-caption {
  margin-top: 10px !important;
  color: #fff !important;
  font-size: 14px !important;
  line-height: 1.4 !important;
  text-align: center !important;
  font-family: inherit !important;
}

.sors-lightbox-close,
button.sors-lightbox-close {
  all: unset;
  position: fixed !important;
  top: 20px !important;
  right: 20px !important;
  z-index: 3 !important;
  width: 42px !important;
  height: 42px !important;
  border-radius: 999px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  background: #D5F0FA !important;
  color: #111 !important;
  font-size: 30px !important;
  line-height: 1 !important;
  font-weight: 400 !important;
  cursor: pointer !important;
  box-shadow: 0 8px 24px rgba(0,0,0,.24) !important;
  -webkit-appearance: none !important;
  appearance: none !important;
}

.sors-lightbox-close:hover,
.sors-lightbox-close:focus-visible {
  background: #D5F0FA !important;
  color: #111 !important;
  transform: translateY(-1px) !important;
}

@media (max-width: 767px) {
  .sors-lightbox {
    padding: 18px !important;
  }

  .sors-lightbox-img {
    max-width: 94vw !important;
    max-height: 80vh !important;
    border-radius: 14px !important;
  }

  .sors-lightbox-close,
  button.sors-lightbox-close {
    width: 38px !important;
    height: 38px !important;
    top: 14px !important;
    right: 14px !important;
    font-size: 27px !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  .sors-slide,
  .sors-slide img,
  .sors-wrap .sors-arrow {
    transition: none !important;
  }
}

.sors-wrap[data-open-lightbox="false"] .sors-slide.sors-active {
  cursor: default !important;
}
