.elementor-widget-kofilm_fullpage_slider,
.elementor-widget-kofilm_fullpage_slider > .elementor-widget-container {
  width: 100%;
}

/* Keep the Most header over the first slide only on page 782 when this widget is present. */
body.page-id-782:has(.kofilm-fps) .main-header {
  position: absolute;
  inset: 0 0 auto;
  width: 100%;
  background: transparent !important;
  box-shadow: none !important;
  z-index: 1000;
}

body.page-id-782:has(.kofilm-fps) .main-header__layout::before {
  background: transparent !important;
  opacity: 0 !important;
}

body.page-id-782:has(.kofilm-fps) .main-header__layout::after {
  border: 0 !important;
  background: transparent !important;
  -webkit-backdrop-filter: blur(0) !important;
  backdrop-filter: blur(0) !important;
}

body.page-id-782:has(.kofilm-fps) .main-header .logo-dark {
  opacity: 0 !important;
}

body.page-id-782:has(.kofilm-fps) .main-header .logo-light {
  opacity: 1 !important;
}

body.page-id-782:has(.kofilm-fps) .main-header__nav > .navbar-nav > li > a,
body.page-id-782:has(.kofilm-fps) .main-header__nav-trigger,
body.page-id-782:has(.kofilm-fps) .main-header__layout .ms_theme_mode,
body.page-id-782:has(.kofilm-fps) .main-header__layout .header__search-icon,
body.page-id-782:has(.kofilm-fps) .main-header__layout .header__search--open-btn,
body.page-id-782:has(.kofilm-fps) .main-header__layout .header__search--close-btn {
  color: #fff !important;
}

body.page-id-782:has(.kofilm-fps) .main-header__layout .sun-and-moon,
body.page-id-782:has(.kofilm-fps) .main-header__layout .ms_theme_mode svg,
body.page-id-782:has(.kofilm-fps) .main-header__layout .header__search-icon svg,
body.page-id-782:has(.kofilm-fps) .main-header__layout .icon {
  color: #fff !important;
  fill: currentColor !important;
}

body.page-id-782:has(.kofilm-fps) .main-header__layout .sun-and-moon > * {
  fill: #fff !important;
  stroke: #fff !important;
}

.kofilm-fps {
  --kofilm-fps-accent: #fff;
  --kofilm-fps-ease: ease;
  --kofilm-fps-speed: 1000ms;
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 640px;
  overflow: hidden;
  isolation: isolate;
  background: #090909;
  color: #fff;
  outline: 0;
  touch-action: pan-y;
  user-select: none;
}

@supports (height: 100svh) {
  .kofilm-fps { height: 100svh; }
}

.kofilm-fps__track {
  display: flex;
  width: 100%;
  height: 100%;
  will-change: transform;
  transition-property: transform;
  transition-timing-function: var(--kofilm-fps-ease);
}

.kofilm-fps.is-dragging,
.kofilm-fps.is-dragging * {
  cursor: grabbing !important;
}

.kofilm-fps__slide {
  --kofilm-fps-bg-x: 0px;
  --kofilm-fps-content-x: 0px;
  position: relative;
  display: flex;
  flex: 0 0 100%;
  align-items: center;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.kofilm-fps__background,
.kofilm-fps__media,
.kofilm-fps__overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.kofilm-fps__background {
  z-index: -2;
  transform: translate3d(var(--kofilm-fps-bg-x), 0, 0);
  will-change: transform;
  transition: transform var(--kofilm-fps-speed) var(--kofilm-fps-ease);
}

.kofilm-fps__media {
  display: block;
  width: 100% !important;
  height: 100% !important;
  min-height: 100%;
  max-width: none !important;
  object-fit: cover;
}

.kofilm-fps__overlay {
  z-index: 1;
  background: #000;
}

.kofilm-fps__content {
  position: relative;
  z-index: 2;
  width: min(720px, 58vw);
  margin-left: clamp(32px, 4.8vw, 92px);
  padding-top: clamp(46px, 7vh, 110px);
  transform: translate3d(var(--kofilm-fps-content-x), 0, 0);
  opacity: 1;
  will-change: transform;
  transition: transform var(--kofilm-fps-speed) var(--kofilm-fps-ease);
}

.kofilm-fps.is-dragging .kofilm-fps__background,
.kofilm-fps.is-dragging .kofilm-fps__content {
  transition-duration: 0ms;
}

.kofilm-fps__eyebrow {
  margin: 0 0 clamp(18px, 2.4vh, 32px);
  color: #fff;
  font-size: clamp(17px, 1.35vw, 25px);
  font-weight: 800;
  line-height: 1.15;
  text-transform: uppercase;
}

.kofilm-fps__title {
  margin: 0;
  color: #fff;
  font-size: clamp(78px, 9.2vw, 176px);
  font-weight: 800;
  letter-spacing: -.055em;
  line-height: .82;
  text-transform: uppercase;
}

.kofilm-fps__description {
  max-width: 610px;
  margin-top: clamp(28px, 4.5vh, 54px);
  color: #d6d6d6;
  font-size: clamp(17px, 1.18vw, 22px);
  font-weight: 400;
  line-height: 1.55;
}

.kofilm-fps__link {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-top: clamp(24px, 4.2vh, 48px);
  padding-bottom: 7px;
  color: var(--kofilm-fps-accent) !important;
  font-size: clamp(17px, 1.15vw, 22px);
  line-height: 1;
  text-decoration: none !important;
}

.kofilm-fps__link::after {
  content: '';
  position: absolute;
  right: 0;
  bottom: 0;
  left: 23px;
  height: 1px;
  background: currentColor;
  transform-origin: left;
  transition: transform .4s var(--kofilm-fps-ease);
}

.kofilm-fps__link:hover::after,
.kofilm-fps__link:focus-visible::after {
  transform: scaleX(.45);
}

.kofilm-fps__link > span {
  width: 9px;
  height: 9px;
  border: 1px solid currentColor;
  border-radius: 50%;
}

.kofilm-fps__arrow {
  position: absolute;
  z-index: 5;
  bottom: clamp(28px, 5vh, 64px);
  display: grid;
  width: 78px;
  height: 78px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  place-items: center;
  background: rgba(12, 12, 12, .48);
  color: var(--kofilm-fps-accent);
  cursor: pointer;
  backdrop-filter: blur(8px);
  transition: background .3s ease, transform .3s var(--kofilm-fps-ease), opacity .3s ease;
}

.kofilm-fps__arrow:hover,
.kofilm-fps__arrow:focus-visible {
  background: rgba(12, 12, 12, .78);
  transform: scale(1.06);
}

.kofilm-fps__arrow:disabled {
  opacity: .2;
  pointer-events: none;
}

.kofilm-fps__arrow svg {
  width: 42px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 4;
}

.kofilm-fps__arrow--prev { left: clamp(24px, 3.2vw, 62px); }
.kofilm-fps__arrow--next { right: clamp(24px, 3.2vw, 62px); }

.kofilm-fps__progress {
  position: absolute;
  z-index: 5;
  right: 50%;
  bottom: clamp(40px, 6.2vh, 78px);
  display: grid;
  grid-template-columns: auto minmax(180px, 32vw) auto;
  align-items: center;
  gap: 20px;
  transform: translateX(50%);
  color: var(--kofilm-fps-accent);
  font-size: 18px;
  font-weight: 700;
  line-height: 1;
}

.kofilm-fps__bar {
  position: relative;
  display: block;
  height: 4px;
  overflow: hidden;
  background: rgba(255, 255, 255, .42);
}

.kofilm-fps__bar i {
  position: absolute;
  inset: 0;
  display: block;
  background: var(--kofilm-fps-accent);
  transform: scaleX(.3333);
  transform-origin: left;
  transition: transform var(--kofilm-fps-speed) var(--kofilm-fps-ease);
}

.kofilm-fps[data-slides="1"] .kofilm-fps__progress,
.kofilm-fps[data-slides="1"] .kofilm-fps__arrow {
  display: none;
}

@media (max-width: 1024px) {
  .kofilm-fps { min-height: 600px; }
  .kofilm-fps__content {
    width: min(700px, 76vw);
    margin-left: clamp(28px, 6vw, 64px);
  }
  .kofilm-fps__title { font-size: clamp(68px, 12vw, 122px); }
  .kofilm-fps__progress { grid-template-columns: auto minmax(150px, 38vw) auto; }
}

@media (max-width: 767px) {
  .kofilm-fps { min-height: 540px; }
  .kofilm-fps__content {
    width: auto;
    max-width: none !important;
    margin: 0;
    padding: 72px 24px 150px;
  }
  .kofilm-fps__eyebrow {
    margin-bottom: 18px;
    font-size: 15px;
  }
  .kofilm-fps__title {
    font-size: clamp(52px, 17vw, 84px);
    line-height: .88;
  }
  .kofilm-fps__description {
    margin-top: 24px;
    font-size: 16px;
    line-height: 1.5;
  }
  .kofilm-fps__link {
    margin-top: 28px;
    font-size: 16px;
  }
  .kofilm-fps__arrow {
    bottom: 24px;
    width: 54px;
    height: 54px;
  }
  .kofilm-fps__arrow svg { width: 30px; }
  .kofilm-fps__arrow--prev { left: 18px; }
  .kofilm-fps__arrow--next { right: 18px; }
  .kofilm-fps__progress {
    bottom: 42px;
    grid-template-columns: auto minmax(72px, 26vw) auto;
    gap: 10px;
    font-size: 14px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .kofilm-fps__track,
  .kofilm-fps__background,
  .kofilm-fps__content,
  .kofilm-fps__bar i {
    transition-duration: 1ms !important;
  }
}


/* Pełnoekranowe tło z YouTube */
.kofilm-fps__youtube {
    inset: auto;
    top: 50%;
    left: 50%;
    width: 177.77777778vh !important;
    height: 56.25vw !important;
    min-width: 100% !important;
    min-height: 100% !important;
    transform: translate(-50%, -50%);
    border: 0;
    pointer-events: none;
}
