/* The color blend keeps the star field and dust lanes from the Webb photograph. */
.hero--nebula { background: var(--black); }
.hero--nebula .hero-grid { isolation: isolate; }
.nebula-field {
  --sky: url('assets/tarantula-nebula.53cd937edc34.webp');
  --sky-position: center 46%;
  isolation: isolate;
  position: absolute;
  z-index: -1;
  inset: 0 auto 0 50%;
  width: 100vw;
  transform: translateX(-50%);
  pointer-events: none;
  overflow: hidden;
  background: var(--sky) var(--sky-position) / cover no-repeat;
}
.nebula-field::before, .nebula-field::after {
  content: "";
  position: absolute;
  inset: 0;
}
.nebula-field::before {
  z-index: 1;
  mix-blend-mode: color;
  background: linear-gradient(112deg, #173b5a 15%, #306785 52%, #7cacc3 74%, #2e6586);
}
.nebula-field::after {
  z-index: 2;
  background:
    linear-gradient(180deg, #05060d12 0%, transparent 42%, var(--black) 99%),
    linear-gradient(90deg, #030c13b0 0%, #06131d44 48%, #08162177 66%, #07141c44);
}
.gravity-lens {
  position: absolute;
  inset: 0 auto auto 0;
  opacity: 0;
  transition: opacity 130ms ease-out;
}
.gravity-lens.is-visible { opacity: 1; }
@media (prefers-reduced-motion: reduce), (hover: none), (pointer: coarse) {
  .gravity-lens { display: none; }
}
.nebula-credit { padding: 0 0 26px; font-size: 12px; line-height: 1.7; }
.nebula-credit a { text-decoration: underline; text-underline-offset: 4px; }
@media (max-width: 760px) {
  .nebula-field {
    --sky: url('assets/tarantula-nebula-mobile.b8b3bf5b3ba9.webp');
    --sky-position: 54% 34%;
  }
}
