/*
 * ACTIVE internal entry photography — Phase 6A.
 *
 * Scope is deliberately limited to the six photographic entry surfaces
 * rendered inside #activeContent. The ACTIVE homepage, live-session media,
 * logos, icons and every non-ACTIVE section are excluded.
 */

#activeContent.active-setup-shell .active-entry-photo,
#activeContent .move-better-path-screen .active-entry-photo {
  border-color: rgba(37, 95, 72, 0.38);
  background: #202422;
  box-shadow:
    0 13px 28px rgba(28, 34, 31, 0.17),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
  isolation: isolate;
}

#activeContent.active-setup-shell .active-entry-photo::before,
#activeContent .move-better-path-screen .active-entry-photo::before {
  content: "";
  position: absolute;
  z-index: 3;
  inset: 3px;
  border: 1px solid rgba(111, 236, 145, 0.52);
  border-radius: 15px;
  pointer-events: none;
}

#activeContent.active-setup-shell .active-entry-photo:not(.walk)::after,
#activeContent .move-better-path-screen .active-entry-photo.move-better::after {
  z-index: 1;
  background: linear-gradient(
    180deg,
    rgba(7, 12, 10, 0) 62%,
    rgba(7, 12, 10, 0.16) 100%
  );
}

#activeContent.active-setup-shell .active-entry-photo > img,
#activeContent .move-better-path-screen .active-entry-photo > img {
  position: relative;
  z-index: 0;
  transform: none;
}

/* The overlaid Walk heading needs a local scrim, not a whole-image tint. */
#activeContent.active-setup-shell .active-entry-photo.walk::after {
  z-index: 1;
  background:
    linear-gradient(
      90deg,
      rgba(7, 13, 11, 0.68) 0%,
      rgba(7, 13, 11, 0.38) 52%,
      rgba(7, 13, 11, 0.05) 84%,
      rgba(7, 13, 11, 0) 100%
    ),
    linear-gradient(
      0deg,
      rgba(7, 12, 10, 0.43) 0%,
      rgba(7, 12, 10, 0.06) 67%,
      rgba(7, 12, 10, 0) 100%
    );
}

#activeContent.active-setup-shell .active-entry-photo.walk > img {
  filter: grayscale(1) contrast(1.08) brightness(1.05);
  object-position: center 52%;
}

#activeContent.active-setup-shell .active-entry-photo.run > img {
  filter: grayscale(1) contrast(1.06) brightness(1.14);
  object-position: center 44%;
}

#activeContent.active-setup-shell .active-entry-photo.home > img {
  filter: grayscale(1) contrast(1.06) brightness(1.02);
  object-position: center 70%;
}

#activeContent.active-setup-shell .active-entry-photo.gym > img {
  filter: grayscale(1) contrast(0.92) brightness(1.42);
  object-position: center 48%;
}

/* The source is already neutral; this locks the contract without recolouring it. */
#activeContent.active-setup-shell .active-entry-photo.mobility > img {
  filter: grayscale(1) contrast(1.02) brightness(1.04);
  object-position: center 70%;
}

#activeContent .move-better-path-screen .active-entry-photo.move-better > img {
  filter: grayscale(1) contrast(1.04) brightness(1.13);
  object-position: center 34%;
}

@media (max-width: 360px) {
  #activeContent.active-setup-shell .active-entry-photo.gym > img {
    object-position: center 46%;
  }

  #activeContent .move-better-path-screen .active-entry-photo.move-better > img {
    object-position: center 32%;
  }
}

@media (min-width: 400px) {
  #activeContent .move-better-path-screen .active-entry-photo.move-better > img {
    object-position: center 36%;
  }
}
