.pine div:has(> .elev-hero),
.pine div:has(> div > .elev-hero) {
  pointer-events: none;
}

.pine div:has(> .elev-hero) {
  position: relative;
  width: min(calc(100% + 22px), calc(100vw - 12px), 740px);
  left: 50%;
  transform: translateX(-50%);
  aspect-ratio: 2;
}

@media (min-width: 768px) {
  .pine div:has(> .elev-hero) {
    width: min(100%, clamp(430px, 89vh, 860px));
  }
}

@media (min-width: 1024px) {
  .pine div:has(> div > .elev-hero) {
    margin-top: clamp(-150px, calc(31vh - 330px), -36px);
  }
}

.pine div:has(> .elev-hero)::before,
.pine div:has(> .elev-hero)::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-position: center;
  background-size: 100% 100%;
  background-repeat: no-repeat;
  mask-image: linear-gradient(to bottom, #000 85%, #000d 94%, #0000 100%);
}

.pine div:has(> .elev-hero)::before {
  background-image: url("/residence-assets/hero-residence.webp?v=3");
}

.pine div:has(> .elev-hero)::after {
  background-image: var(--residence-window-lights, none);
}

.pine .elev-hero {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
}
