body { isolation: isolate; }

.ev-gym-background {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  visibility: hidden;
}

.ev-gym-background,
.ev-gym-background::before,
.ev-gym-photo,
.ev-gym-light { pointer-events: none; }

.ev-gym-ready .ev-gym-background { visibility: visible; }

.ev-gym-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: 52% 55%;
}

.ev-gym-background::before {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(105deg, #000d 0%, #000b 50%, #000c 100%),
    linear-gradient(180deg, #08080a30, transparent 72%, #08080a26);
  content: "";
}

.ev-gym-light {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: radial-gradient(ellipse 34% 37% at 55% 56%, #af123225, transparent);
}

/* Keep the existing hero tint and effects, with the photograph visible beneath. */
.ev-gym-ready .hero {
  background: radial-gradient(ellipse at 76% 66%, #5a10274d 0%, transparent 58%),
    linear-gradient(110deg, #08080a70 30%, #180e1530 100%);
}

@media (max-width: 680px) {
  .ev-gym-photo { object-position: 52% 50%; }
}

@media (min-width: 1024px) and (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  .ev-gym-photo {
    inset: -16px;
    width: calc(100% + 32px);
    height: calc(100% + 32px);
  }
}
