.neo-scroll-hero {
  position: relative;
  height: 100vh;
  min-height: 720px;
  overflow: hidden;
  background: #000;
  margin: 0 !important;
  padding: 0 !important;
  width: 100%;
  max-width: none !important;
  isolation: isolate;
}

.neo-scroll-hero * {
  box-sizing: border-box;
}

.neo-scroll-hero .neo-hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  will-change: opacity, transform, filter;
}

.neo-scroll-hero .neo-hero-bg-line {
  background-image: var(--neo-line-image);
  opacity: 1;
  z-index: 1;
  transform: scale(1);
}

.neo-scroll-hero .neo-hero-bg-photo {
  background-image: var(--neo-photo-image);
  opacity: 0;
  z-index: 2;
  transform: scale(1.08);
  filter: blur(8px);
}

.neo-scroll-hero .neo-hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 3;
  background: rgba(0, 0, 0, 0.58);
  opacity: 0;
  pointer-events: none;
  will-change: opacity;
}

.neo-scroll-hero .neo-hero-content {
  position: absolute;
  z-index: 4;
  left: 50%;
  top: 50%;
  width: min(1180px, calc(100% - 80px));
  transform: translate(-50%, -45%);
  text-align: center;
  color: #fff;
  opacity: 0;
  will-change: opacity, transform;
}

.neo-scroll-hero .neo-hero-content h1 {
  max-width: 1055px;
  margin: 0 auto 24px;
  font-size: clamp(72px, 5.2vw, 105px);
  line-height: 1.15;
  font-weight: 900;
  letter-spacing: -0.045em;
  color: #fff;
}

.neo-scroll-hero .neo-hero-content p {
  margin: 20px auto 24px;
  max-width: 1110px;
  font-size: clamp(18px, 1.65vw, 26px);
  line-height: 1.25;
  font-weight: 700;
  color: #fff;
}

.neo-scroll-hero .neo-hero-content span {
  display: block;
  font-size: 16px;
  line-height: 1.4;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.85);
}

.neo-scroll-hero .neo-hero-content span a {
  color: inherit;
  text-decoration: none;
}

.neo-scroll-hero .neo-hero-content span a:hover {
  color: #fff;
  opacity: 0.75;
  text-decoration: none;
}


.neo-scroll-hero .neo-hero-credits {
  margin: 14px auto 0;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 7px 18px;
}

.neo-scroll-hero .neo-hero-credits span {
  display: inline-block;
  font-size: 13px;
  line-height: 1.45;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: rgba(255, 255, 255, 0.78);
}

.neo-scroll-hero .neo-hero-credits strong {
  font-weight: 700;
  color: rgba(255, 255, 255, 0.92);
}

.neo-scroll-hero .neo-hero-target-gif {
  display: block;
  width: 84px;
  height: 84px;
  object-fit: contain;
  margin: 16px auto 18px;
}

.scroll-article-hero,
.elementor-section.scroll-article-hero,
.elementor-container.scroll-article-hero,
.e-con.scroll-article-hero {
  padding: 0 !important;
  margin: 0 !important;
}

@media (max-width: 767px) {
  .neo-scroll-hero {
    min-height: 640px;
  }

  .neo-scroll-hero .neo-hero-bg {
    background-position: center center;
  }

  .neo-scroll-hero .neo-hero-content {
    width: calc(100% - 32px);
  }

  .neo-scroll-hero .neo-hero-content h1 {
    font-size: 46px;
    line-height: 1.25;
  }

  .neo-scroll-hero .neo-hero-content p {
    font-size: 18px;
    line-height: 1.35;
  }

  .neo-scroll-hero .neo-hero-content span {
    font-size: 14px;
  }

  .neo-scroll-hero .neo-hero-credits {
    gap: 5px 12px;
    margin-top: 12px;
  }

  .neo-scroll-hero .neo-hero-credits span {
    font-size: 12px;
  }
}

/* Multi-image režim: aktivira se samo na člancima sa dodatnim kadrovima. */
.neo-scroll-hero--multi .neo-hero-frames {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.neo-scroll-hero--multi .neo-hero-frame {
  opacity: 0;
  z-index: 1;
  transform: scale(1.045);
  filter: blur(5px);
}

.neo-scroll-hero--multi .neo-hero-frame.is-active {
  opacity: 1;
  transform: scale(1);
  filter: blur(0);
}

.neo-scroll-hero--multi .neo-hero-overlay {
  z-index: 3;
}

.neo-scroll-hero--multi .neo-hero-content {
  z-index: 4;
}


/* Efekti se mogu isključiti po članku; sprečava se kratki prikaz zadanog stanja prije inicijalizacije GSAP-a. */
.neo-scroll-hero[data-neo-effect-zoom="0"] .neo-hero-bg-photo,
.neo-scroll-hero--multi[data-neo-effect-zoom="0"] .neo-hero-frame {
  transform: scale(1);
}

.neo-scroll-hero[data-neo-effect-blur="0"] .neo-hero-bg-photo,
.neo-scroll-hero--multi[data-neo-effect-blur="0"] .neo-hero-frame {
  filter: blur(0);
}
