.cc_gc89BdkRMG_JZOSN53Psm .nisa-hero-item {
  position: relative;
  display: block;
  width: 100%;
  /* Full "rest of the first screen": viewport height minus the header's
     own rendered height (published by Header as --nisa-header-height).
     Falls back to a generous estimate before the header has measured
     itself, and to a fixed min-height so it never collapses. */
  height: calc(100svh - var(--nisa-header-height, 106px));
  min-height: 420px;
  max-height: 900px;
  --nisa-hero-fit-current: var(--nisa-hero-fit, cover);
  overflow: hidden;
  background: #000;
  color: inherit;
  text-decoration: none;
  cursor: pointer;
  -webkit-user-drag: none;
  user-select: none;
}

.cc_gc89BdkRMG_JZOSN53Psm .nisa-hero-item__media {
  position: absolute;
  inset: 0;
}

/* Fixed ratio instead of the default "rest of the first screen" height. */
.cc_gc89BdkRMG_JZOSN53Psm .nisa-hero-item:not([data-ar="full"]) {
  height: auto;
  aspect-ratio: var(--nisa-hero-ar);
  min-height: 0;
  max-height: none;
}

.cc_gc89BdkRMG_JZOSN53Psm .nisa-hero-item__media video, .cc_gc89BdkRMG_JZOSN53Psm .nisa-hero-item__media img {
  width: 100%;
  height: 100%;
  object-fit: var(--nisa-hero-fit-current);
  display: block;
  -webkit-user-drag: none;
}

.cc_gc89BdkRMG_JZOSN53Psm .nisa-hero-item__media-mobile {
  display: none !important;
}

/* Sits between media and content in DOM order, so no z-index needed. */
.cc_gc89BdkRMG_JZOSN53Psm .nisa-hero-item__overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.cc_gc89BdkRMG_JZOSN53Psm .nisa-hero-item__content {
  --nisa-hero-content-side: clamp(16px, 1.39vw, 64px);
  --nisa-hero-content-vside: clamp(16px, 2.78vw, 64px);
  position: absolute;
  display: flex;
  flex-direction: column;
  /* text-align and align-items come from the contentAlign prop, applied
     inline — only positioning (which edge/corner the box sits at) is
     driven by contentPosition here. */
  max-width: min(80%, 480px);
}

.cc_gc89BdkRMG_JZOSN53Psm .nisa-hero-item__content[data-position="bottom-right"] {
  right: var(--nisa-hero-content-side);
  bottom: var(--nisa-hero-content-vside);
}

.cc_gc89BdkRMG_JZOSN53Psm .nisa-hero-item__content[data-position="bottom-left"] {
  left: var(--nisa-hero-content-side);
  bottom: var(--nisa-hero-content-vside);
}

.cc_gc89BdkRMG_JZOSN53Psm .nisa-hero-item__content[data-position="top-right"] {
  right: var(--nisa-hero-content-side);
  top: var(--nisa-hero-content-vside);
}

.cc_gc89BdkRMG_JZOSN53Psm .nisa-hero-item__content[data-position="top-left"] {
  left: var(--nisa-hero-content-side);
  top: var(--nisa-hero-content-vside);
}

.cc_gc89BdkRMG_JZOSN53Psm .nisa-hero-item__content[data-position="middle-right"] {
  right: var(--nisa-hero-content-side);
  top: 50%;
  transform: translateY(-50%);
}

.cc_gc89BdkRMG_JZOSN53Psm .nisa-hero-item__content[data-position="middle-left"] {
  left: var(--nisa-hero-content-side);
  top: 50%;
  transform: translateY(-50%);
}

/* Centred via auto margins (not left: 50% + translate) so the box can
   use its full max-width instead of shrinking to half the slide. */
.cc_gc89BdkRMG_JZOSN53Psm .nisa-hero-item__content[data-position="top-center"] {
  left: 0;
  right: 0;
  top: var(--nisa-hero-content-vside);
  width: fit-content;
  margin-inline: auto;
}

.cc_gc89BdkRMG_JZOSN53Psm .nisa-hero-item__content[data-position="bottom-center"] {
  left: 0;
  right: 0;
  bottom: var(--nisa-hero-content-vside);
  width: fit-content;
  margin-inline: auto;
}

.cc_gc89BdkRMG_JZOSN53Psm .nisa-hero-item__content[data-position="center"] {
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
}

.cc_gc89BdkRMG_JZOSN53Psm .nisa-hero-item__eyebrow {
  margin: 0 0 4px;
  font-size: 12px;
  letter-spacing: 0.02em;
  color: inherit;
}

.cc_gc89BdkRMG_JZOSN53Psm .nisa-hero-item__title {
  margin: 0;
  font-size: clamp(20px, 3vw, 35px);
  font-weight: 400;
  line-height: 1.1;
  color: inherit;
}

.cc_gc89BdkRMG_JZOSN53Psm .nisa-hero-item__cta {
  position: relative;
  display: inline-block;
  margin-top: 2px;
  font-size: clamp(20px, 3vw, 35px);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: 0.02em;
  color: inherit;
}

/* Underline grows left-to-right on hover/focus and shrinks back the same
   way on leave — matches CategoryShowcaseItem's label exactly (same
   transform-transition recipe, see CategoryShowcaseItem/styles.css). */
.cc_gc89BdkRMG_JZOSN53Psm .nisa-hero-item__cta::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 100%;
  height: 2px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.cc_gc89BdkRMG_JZOSN53Psm .nisa-hero-item:hover .nisa-hero-item__cta::after, .cc_gc89BdkRMG_JZOSN53Psm .nisa-hero-item:focus-visible .nisa-hero-item__cta::after {
  transform: scaleX(1);
}

.cc_gc89BdkRMG_JZOSN53Psm .nisa-hero-item:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: -4px;
}

@media (max-width: 767px) {
  .cc_gc89BdkRMG_JZOSN53Psm .nisa-hero-item, .cc_gc89BdkRMG_JZOSN53Psm .nisa-hero-item:not([data-ar="full"]) {
    height: auto;
    aspect-ratio: var(--nisa-hero-ar-m, 3 / 4);
    min-height: 0;
    max-height: none;
    --nisa-hero-fit-current: var(--nisa-hero-fit-m, cover);
  }

  .cc_gc89BdkRMG_JZOSN53Psm .nisa-hero-item[data-mobile-ar="full"] {
    height: calc(100svh - var(--nisa-header-height, 64px));
    aspect-ratio: auto;
    min-height: 420px;
  }

  .cc_gc89BdkRMG_JZOSN53Psm .nisa-hero-item__content {
    max-width: 85%;
  }

  .cc_gc89BdkRMG_JZOSN53Psm .nisa-hero-item__media-desktop {
    display: none !important;
  }

  .cc_gc89BdkRMG_JZOSN53Psm .nisa-hero-item__media-mobile {
    display: block !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  .cc_gc89BdkRMG_JZOSN53Psm .nisa-hero-item__cta::after {
    transition: none;
  }
}
