.hs-carousel,
.hs-carousel * { box-sizing: border-box; }

.hs-carousel {
  --hs-desktop-height: 390px;
  --hs-mobile-height: 250px;
  --hs-height: var(--hs-desktop-height);
  --hs-spacing: 6px;
  --hs-mobile-spacing: 6px;
  --hs-duration: 750ms;
  --hs-accent: #20a8e8;
  --hs-text: #fff;
  --hs-radius: 2px;
  --hs-tilt: 0deg;
  --hs-y-offset: 0px;
  --hs-reflection-size: 24%;
  --hs-reflection-opacity: .22;
  --hs-shadow-alpha: .32;
  position: relative;
  width: 100%;
  height: var(--hs-height);
  margin: var(--hs-spacing) auto;
  outline: none;
  isolation: isolate;
  overflow: hidden;
  font-family: inherit;
}

.hs-carousel__viewport {
  position: relative;
  height: var(--hs-height);
  perspective: 1100px;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(to right, transparent, #000 4%, #000 96%, transparent);
  mask-image: linear-gradient(to right, transparent, #000 4%, #000 96%, transparent);
}

.hs-carousel__track {
  position: absolute;
  inset: 0;
  transform-style: preserve-3d;
  transform: translateY(var(--hs-y-offset)) rotateX(var(--hs-tilt));
  transform-origin: center 42%;
  touch-action: pan-y;
  cursor: grab;
  user-select: none;
}

.hs-carousel.is-dragging .hs-carousel__track { cursor: grabbing; }

.hs-carousel__slide {
  --hs-distance: 0;
  --hs-abs-distance: 0;
  position: absolute;
  top: 8px;
  left: 50%;
  width: min(52%, 570px);
  height: calc(var(--hs-height) - 78px);
  opacity: var(--hs-opacity, 1);
  transform: translateX(calc(-50% + var(--hs-x, 0%)))
             translateY(var(--hs-y, 0px))
             translateZ(var(--hs-z, 0px))
             rotateY(var(--hs-rotate, 0deg))
             scale(var(--hs-scale, 1));
  transition: transform var(--hs-duration) cubic-bezier(.22, .8, .24, 1), opacity var(--hs-duration) ease, filter var(--hs-duration) ease;
  filter: brightness(var(--hs-brightness, 1)) saturate(var(--hs-saturate, 1));
  will-change: transform, opacity;
  pointer-events: none;
}

.hs-carousel:not(.is-ready) .hs-carousel__slide { opacity: 0; }

.hs-carousel__slide.is-active,
.hs-carousel__slide.is-near,
.hs-carousel__slide.is-visible { pointer-events: auto; }
.hs-carousel__slide:not(.is-active) { cursor: pointer; }

.hs-carousel__card {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: var(--hs-radius);
  background: #111;
  box-shadow: 0 3px 7px rgba(0, 0, 0, var(--hs-shadow-alpha)), 0 10px 24px rgba(0, 0, 0, var(--hs-shadow-alpha));
  overflow: visible;
}

.hs-carousel__card > img {
  display: block;
  width: 100%;
  height: 100%;
  border: 1px solid rgba(255, 255, 255, .55);
  border-radius: inherit;
  object-fit: cover;
  -webkit-user-drag: none;
}

.hs-carousel__shade {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(to bottom, transparent 40%, rgba(0, 0, 0, .75) 100%);
  opacity: 0;
  transition: opacity 700ms ease 220ms;
  pointer-events: none;
}

.hs-carousel__caption {
  position: absolute;
  inset-inline: 7%;
  z-index: 2;
  color: var(--hs-text);
  text-align: center;
  text-shadow: 0 2px 8px rgba(0, 0, 0, .75);
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 750ms ease 300ms, transform 750ms cubic-bezier(.2, .8, .2, 1) 300ms;
  pointer-events: none;
}

.hs-overlay--bottom .hs-carousel__caption { bottom: 7%; }
.hs-overlay--top .hs-carousel__caption { top: 7%; }
.hs-overlay--center .hs-carousel__caption { top: 50%; transform: translateY(calc(-50% + 12px)); }
.hs-overlay--center .hs-carousel__slide.is-active .hs-carousel__caption { transform: translateY(-50%); }

.hs-carousel__slide.is-active .hs-carousel__shade { opacity: 1; }
.hs-carousel__slide.is-active .hs-carousel__caption { opacity: 1; transform: translateY(0); }

.hs-carousel__caption h3 {
  margin: 0;
  color: inherit;
  font: 800 clamp(1.25rem, 2.5vw, 2.1rem)/1.1 inherit;
  letter-spacing: -.02em;
}

.hs-carousel__caption p {
  margin: .45rem 0 0;
  color: inherit;
  font: 500 clamp(.88rem, 1.5vw, 1.08rem)/1.4 inherit;
}

.hs-carousel__play,
.hs-carousel__zoom {
  display: inline-grid;
  place-items: center;
  width: 48px;
  height: 48px;
  margin-top: 12px;
  padding-inline-start: 3px;
  border: 2px solid currentColor;
  border-radius: 50%;
  background: color-mix(in srgb, var(--hs-accent) 70%, transparent);
  font-size: 18px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, .3);
}
.hs-carousel__zoom { font: 300 29px/1 Arial, sans-serif; }

.hs-carousel__reflection {
  position: absolute;
  top: calc(100% + 3px);
  left: 0;
  width: 100%;
  height: var(--hs-reflection-size);
  border-radius: inherit;
  background-position: center;
  background-size: cover;
  transform: scaleY(-1);
  opacity: var(--hs-reflection-opacity);
  filter: blur(.3px);
  -webkit-mask-image: linear-gradient(to bottom, rgba(0,0,0,.65), transparent 86%);
  mask-image: linear-gradient(to bottom, rgba(0,0,0,.65), transparent 86%);
  pointer-events: none;
}

.hs-carousel--no-reflection .hs-carousel__reflection { display: none; }

/* Rotating album: a wide 16:8 image ring. */
.hs-carousel--album .hs-carousel__viewport { perspective: 1250px; }
.hs-carousel--album .hs-carousel__viewport::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 24px;
  z-index: -1;
  width: min(78%, 820px);
  height: 54px;
  border-radius: 50%;
  background: radial-gradient(ellipse, rgba(9, 20, 38, .2), transparent 68%);
  transform: translateX(-50%);
  pointer-events: none;
}
.hs-carousel--album .hs-carousel__slide {
  top: 20px;
  width: min(64%, 610px);
  height: auto;
  aspect-ratio: 16 / 8;
  transform-origin: center center -130px;
}
.hs-carousel--album .hs-carousel__card {
  border: 3px solid rgba(255, 255, 255, .72);
  box-shadow: 0 4px 12px rgba(0,0,0,var(--hs-shadow-alpha)), 0 14px 30px rgba(0,0,0,var(--hs-shadow-alpha));
}
.hs-carousel--album .hs-carousel__slide.is-active .hs-carousel__card {
  box-shadow: 0 4px 14px rgba(0,0,0,var(--hs-shadow-alpha)), 0 16px 34px rgba(0,0,0,var(--hs-shadow-alpha)), 0 0 0 1px var(--hs-accent);
}

.hs-carousel__arrow {
  position: absolute;
  top: calc(var(--hs-height) / 2 - 22px);
  z-index: 130;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid rgba(255,255,255,.55);
  border-radius: 50%;
  background: rgba(10, 20, 38, .58);
  color: #fff;
  font: 300 36px/1 Arial, sans-serif;
  box-shadow: 0 6px 20px rgba(0,0,0,.18);
  cursor: pointer;
  opacity: 0;
  transform: scale(.88);
  transition: opacity 220ms ease, transform 220ms ease, background 220ms ease;
  backdrop-filter: blur(8px);
}

.hs-carousel:hover .hs-carousel__arrow,
.hs-carousel:focus-within .hs-carousel__arrow { opacity: 1; transform: scale(1); }
.hs-carousel__arrow:hover { background: var(--hs-accent); }
.hs-carousel__arrow:focus-visible { opacity: 1; outline: 3px solid color-mix(in srgb, var(--hs-accent) 60%, #fff); outline-offset: 3px; }
.hs-carousel__arrow--prev { right: 18px; }
.hs-carousel__arrow--next { left: 18px; }

/* Alternate style: rounded floating cards. */
.hs-carousel--cards .hs-carousel__slide {
  width: min(44%, 470px);
  top: 15px;
  height: calc(var(--hs-height) - 66px);
}
.hs-carousel--cards .hs-carousel__card { border-radius: max(var(--hs-radius), 18px); }
.hs-carousel--cards .hs-carousel__reflection { display: none; }

/* Alternate style: flat, editorial slider. */
.hs-carousel--flat .hs-carousel__slide {
  width: min(70%, 760px);
  top: 8px;
  height: calc(var(--hs-height) - 50px);
}
.hs-carousel--flat .hs-carousel__slide.is-active { opacity: 1; }
.hs-carousel--flat .hs-carousel__card { box-shadow: 0 12px 32px rgba(0,0,0,.18); }
.hs-carousel--flat .hs-carousel__reflection { display: none; }

.hs-video-modal {
  position: fixed;
  inset: 0;
  z-index: 999999;
  display: grid;
  place-items: center;
  padding: 24px;
}
.hs-video-modal__backdrop { position: absolute; inset: 0; background: rgba(3, 7, 18, .88); backdrop-filter: blur(8px); animation: hs-fade-in 220ms ease both; }
.hs-video-modal__dialog { position: relative; z-index: 1; width: min(100%, 960px); animation: hs-modal-in 350ms cubic-bezier(.2,.8,.2,1) both; }
.hs-video-modal__media { position: relative; width: 100%; aspect-ratio: 16 / 9; overflow: hidden; border-radius: 12px; background: #000; box-shadow: 0 24px 80px rgba(0,0,0,.55); }
.hs-video-modal iframe,
.hs-video-modal video,
.hs-video-modal img { display: block; width: 100%; height: 100%; border: 0; object-fit: contain; }
.hs-video-modal__close { position: absolute; top: -48px; left: 0; z-index: 2; width: 40px; height: 40px; padding: 0; border: 1px solid rgba(255,255,255,.5); border-radius: 50%; background: rgba(255,255,255,.1); color: #fff; font: 300 32px/36px Arial,sans-serif; cursor: pointer; }
.hs-video-modal__close:hover { background: var(--hs-accent, #20a8e8); }
.hs-modal-open { overflow: hidden; }
@keyframes hs-fade-in { from { opacity: 0; } }
@keyframes hs-modal-in { from { opacity: 0; transform: translateY(24px) scale(.97); } }

@media (max-width: 780px) {
  .hs-carousel { --hs-height: calc(var(--hs-mobile-height) + 60px); height: var(--hs-height); margin-block: var(--hs-mobile-spacing); }
  .hs-carousel__viewport { -webkit-mask-image: none; mask-image: none; }
  .hs-carousel__slide { width: 78%; height: var(--hs-mobile-height); }
  .hs-carousel--cards .hs-carousel__slide { width: 76%; }
  .hs-carousel--album .hs-carousel__slide { top: 20px; width: min(82%, calc(var(--hs-mobile-height) + var(--hs-mobile-height))); height: auto; aspect-ratio: 16 / 8; }
  .hs-carousel--flat .hs-carousel__slide { width: 88%; }
  .hs-carousel__arrow { width: 38px; height: 38px; top: calc(var(--hs-height) / 2 - 20px); font-size: 30px; opacity: .82; }
  .hs-carousel__arrow--prev { right: 7px; }
  .hs-carousel__arrow--next { left: 7px; }
  .hs-carousel__reflection { top: calc(100% + 1px); height: 14%; }
  .hs-carousel__card,
  .hs-carousel--album .hs-carousel__card,
  .hs-carousel--album .hs-carousel__slide.is-active .hs-carousel__card {
    box-shadow: 0 2px 7px rgba(0,0,0,var(--hs-shadow-alpha)), 0 8px 18px rgba(0,0,0,var(--hs-shadow-alpha));
  }
  .hs-carousel--album .hs-carousel__slide.is-active .hs-carousel__card {
    box-shadow: 0 2px 7px rgba(0,0,0,var(--hs-shadow-alpha)), 0 8px 18px rgba(0,0,0,var(--hs-shadow-alpha)), 0 0 0 1px var(--hs-accent);
  }
  .hs-carousel__caption { inset-inline: 4%; }
  .hs-carousel__caption p { display: none; }
  .hs-carousel__play,
  .hs-carousel__zoom { width: 40px; height: 40px; margin-top: 8px; font-size: 15px; }
}

@media (prefers-reduced-motion: reduce) {
  .hs-carousel__slide,
  .hs-carousel__caption,
  .hs-carousel__shade { transition-duration: 1ms !important; transition-delay: 0ms !important; }
  .hs-video-modal__backdrop,
  .hs-video-modal__dialog { animation: none; }
}
