/* =========================================================
   CUSTOM HERO SLIDER - TROSZOK WARZECHA
   7.5% | 25% | 35% | 25% | 7.5%
   ========================================================= */

.embla {
  width: 100vw;
  max-width: 100vw;
  height: 840px;
  position: relative;
  overflow: hidden;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  padding-top: 20px;
  --main-slide-height: 720px;
  cursor: grab;
  touch-action: pan-y;
  user-select: none;
}

.embla:active {
  cursor: grabbing;
}

.embla__container {
  position: relative;
  width: 100%;
  height: 100%;
}

.embla__slide {
  position: absolute;
  top: 0;
  opacity: 0;
  pointer-events: none;
  overflow: visible;
  will-change: left, width, transform, opacity;
cursor: pointer;
}

.embla__slide.is-animating {
  transition:
    left 900ms cubic-bezier(0.22, 1, 0.36, 1),
    width 900ms cubic-bezier(0.22, 1, 0.36, 1),
    transform 900ms cubic-bezier(0.22, 1, 0.36, 1),
    opacity 900ms cubic-bezier(0.22, 1, 0.36, 1);
}

.embla__slide::after {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: var(--current-img-height, var(--main-slide-height));
  background: #0a0d12;
  opacity: var(--overlay-opacity, 0);
  transition:
    height 900ms cubic-bezier(0.22, 1, 0.36, 1),
    opacity 900ms cubic-bezier(0.22, 1, 0.36, 1);
  pointer-events: none;
}

.embla__slide img {
  display: block;
  width: 100%;
  height: var(--current-img-height, var(--main-slide-height));
  object-fit: cover;
  object-position: center center;
  user-select: none;
  -webkit-user-drag: none;
  transition: height 900ms cubic-bezier(0.22, 1, 0.36, 1);
}

.embla__caption {
  margin-top: 10px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition:
    opacity 450ms ease,
    transform 450ms ease,
    visibility 450ms ease;
  pointer-events: none;
}

.embla__slide.caption-visible .embla__caption {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.embla__caption h3 {
  margin: 0;
  color: #78a78d;
  font-size: 18px;
  line-height: 1.2;
  font-weight: 600;
}

.embla__caption p {
  margin: 2px 0 0;
  color: #d9d9d9;
  font-size: 16px;
  line-height: 1.3;
}

@media (max-width: 767px) {
  .embla {
    height: 440px;
    --main-slide-height: 320px;
  }
}

.embla__slide.pos-center,
.embla__slide.caption-visible {
  cursor: default;
}