.star-hero-slideshow{
  --shs-min-h: 100svh;
  --shs-pad-x: clamp(44px, 6vw, 92px);
  --shs-pad-b: clamp(76px, 12vh, 146px);
  --shs-content-w: calc(100vw - (var(--shs-pad-x) * 2));
  --shs-arrow-size: clamp(42px, 4.7vw, 60px);
  --shs-arrow-edge: clamp(12px, 2vw, 28px);
  --shs-text: #FFFFFF;
  --shs-body: rgba(255,255,255,.88);

  position: relative;
  isolation: isolate;
  width: 100%;
  min-height: var(--shs-min-h);
  overflow: hidden;
}

.star-hero-slideshow__slides{
  position: relative;
  width: 100%;
  height: 100%;
  min-height: inherit;
}

.star-hero-slideshow__slide{
  position: absolute;
  inset: 0;
  display: grid;
  align-items: end;
  opacity: 0;
  visibility: hidden;
  transition: opacity 860ms ease, visibility 860ms linear;
  pointer-events: none;
  will-change: opacity;
}

.star-hero-slideshow__slide.is-active{
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.star-hero-slideshow__bg{
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center center;
  opacity: 1;
  transition: opacity 860ms ease;
}

.star-hero-slideshow__bg--fallback{
  background: linear-gradient(135deg, #2f403f, #4b5f5e);
}

.star-hero-slideshow__overlay{
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to top, rgba(0,0,0,.56) 0%, rgba(0,0,0,.26) 36%, rgba(0,0,0,.12) 70%, rgba(0,0,0,.08) 100%);
}

.star-hero-slideshow__content-wrap{
  position: relative;
  z-index: 2;
  width: var(--shs-content-w);
  margin: 0 0 var(--shs-pad-b) var(--shs-pad-x);
  color: var(--shs-text);
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 560ms ease 240ms, transform 560ms ease 240ms;
}

.star-hero-slideshow__slide.is-active .star-hero-slideshow__content-wrap{
  opacity: 1;
  transform: translateY(0);
}

.star-hero-slideshow__heading{
  margin: 0;
  color: #FFFFFF !important;
  font-size: clamp(30px, 3.2vw, 46px);
  line-height: 1.12;
  letter-spacing: -0.012em;
  font-family: var(--star-font-heading);
}

.star-hero-slideshow__content{
  margin-top: clamp(12px, 1.5vw, 18px);
  color: var(--shs-body);
  font-size: clamp(14px, 1.1vw, 19px);
  line-height: 1.38;
  font-family: var(--star-font-body);
}

.star-hero-slideshow__content > :first-child{ margin-top: 0; }
.star-hero-slideshow__content > :last-child{ margin-bottom: 0; }

.star-hero-slideshow::after{
  content: "";
  position: absolute;
  left: var(--shs-pad-x);
  right: var(--shs-pad-x);
  bottom: clamp(26px, 4vh, 42px);
  height: 1px;
  background: rgba(255,255,255,.2);
  z-index: 3;
  pointer-events: none;
}

.star-hero-slideshow__nav{
  position: absolute;
  top: 50%;
  z-index: 4;
  width: var(--shs-arrow-size);
  height: var(--shs-arrow-size);
  transform: translateY(-50%);
  border: 1px solid rgba(255,255,255,.74);
  border-radius: 999px;
  background: rgba(20, 34, 33, .2);
  color: var(--shs-text);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background-color 240ms ease, border-color 240ms ease, transform 240ms ease;
  appearance: none;
  -webkit-appearance: none;
  outline: none;
  box-shadow: none;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

.star-hero-slideshow__nav:hover,
.star-hero-slideshow__nav:focus-visible{
  background: rgba(20, 34, 33, .42);
  border-color: rgba(255,255,255,.95);
  outline: none;
  box-shadow: none;
}

.star-hero-slideshow__nav:active{
  transform: translateY(-50%);
}

.star-hero-slideshow__nav:focus{
  outline: none;
  box-shadow: none;
}

.star-hero-slideshow__nav--prev{
  left: var(--shs-arrow-edge) !important;
  right: auto !important;
  bottom: auto !important;
}

.star-hero-slideshow__nav--next{
  right: var(--shs-arrow-edge) !important;
  left: auto !important;
  bottom: auto !important;
}

.star-hero-slideshow button.star-hero-slideshow__nav{
  position: absolute !important;
  top: 50% !important;
  bottom: auto !important;
  margin: 0 !important;
  transform: translateY(-50%) !important;
  background: rgba(20, 34, 33, .2) !important;
  border: 1px solid rgba(255,255,255,.74) !important;
  color: #fff !important;
}

.star-hero-slideshow button.star-hero-slideshow__nav:hover,
.star-hero-slideshow button.star-hero-slideshow__nav:focus,
.star-hero-slideshow button.star-hero-slideshow__nav:focus-visible,
.star-hero-slideshow button.star-hero-slideshow__nav:active{
  position: absolute !important;
  top: 50% !important;
  bottom: auto !important;
  margin: 0 !important;
  transform: translateY(-50%) !important;
}

.star-hero-slideshow button.star-hero-slideshow__nav--prev,
.star-hero-slideshow button.star-hero-slideshow__nav--prev:hover,
.star-hero-slideshow button.star-hero-slideshow__nav--prev:focus,
.star-hero-slideshow button.star-hero-slideshow__nav--prev:focus-visible,
.star-hero-slideshow button.star-hero-slideshow__nav--prev:active{
  left: var(--shs-arrow-edge) !important;
  right: auto !important;
}

.star-hero-slideshow button.star-hero-slideshow__nav--next,
.star-hero-slideshow button.star-hero-slideshow__nav--next:hover,
.star-hero-slideshow button.star-hero-slideshow__nav--next:focus,
.star-hero-slideshow button.star-hero-slideshow__nav--next:focus-visible,
.star-hero-slideshow button.star-hero-slideshow__nav--next:active{
  right: var(--shs-arrow-edge) !important;
  left: auto !important;
}

.star-hero-slideshow__chev{
  width: 10px;
  height: 10px;
  border-top: 2px solid currentColor;
  border-right: 2px solid currentColor;
  transform: rotate(45deg);
  margin-left: -3px;
}

.star-hero-slideshow__nav--prev .star-hero-slideshow__chev{
  transform: rotate(-135deg);
  margin-left: 3px;
}

.star-hero-slideshow--empty{
  padding: 16px;
  border: 1px dashed #b7c2bf;
  border-radius: 10px;
  color: #5c6d68;
}

@media (max-width: 1024px){
  .star-hero-slideshow{
    --shs-pad-x: 36px;
    --shs-pad-b: 78px;
    --shs-content-w: calc(100vw - (var(--shs-pad-x) * 2));
    --shs-min-h: 84svh;
  }
}

@media (max-width: 767px){
  .star-hero-slideshow{
    --shs-pad-x: 28px;
    --shs-pad-b: 64px;
    --shs-content-w: calc(100vw - (var(--shs-pad-x) * 2));
    --shs-min-h: 70svh;
    --shs-arrow-size: 44px;
    --shs-arrow-edge: 8px;
  }

  .star-hero-slideshow__heading{
    font-size: clamp(28px, 7.3vw, 36px);
    text-wrap: balance;
  }

  .star-hero-slideshow__content{
    font-size: clamp(13px, 3.8vw, 16px);
    line-height: 1.38;
    margin-top: 10px;
  }
}

@media (prefers-reduced-motion: reduce){
  .star-hero-slideshow__slide,
  .star-hero-slideshow__bg,
  .star-hero-slideshow__nav{
    transition: none !important;
  }
}
