/* V7.5 — preserve ALL original 1672×941 Estate illustration pixels.
 * A scenic matte surrounds a fitted image. Do not invent additional land.
 * Six new artwork-aligned controls delegate to the original real project buttons.
 */
#cinematicWorld.lw-scale--estate {
  background:
    radial-gradient(ellipse 75% 65% at 48% 47%, #315038 0%, #132a1e 63%, #07140f 100%);
}
#cinematicWorld.lw-scale--estate:before {
  content:"";position:absolute;inset:0;z-index:0;pointer-events:none;
  background:
    repeating-linear-gradient(90deg,transparent 0 15px,#dec7920c 15px 16px),
    radial-gradient(ellipse 85% 80% at 48% 42%,#d8bb7030,transparent 76%);
}
@media (min-width:901px) and (min-height:541px) {
  /* Width follows the known image aspect; 100% of the scene is the whole art,
     not the previous cropped cover view. The border is intentionally substantial. */
  body.jw-expanded-estate #cinematicWorld.lw-scale--estate #cinematicScene {
    inset:auto!important;left:50%!important;top:49%!important;
    /* Larger baseline, retaining every edge and the original image ratio. */
    width:auto!important;height:min(90%,calc(100% - 84px))!important;
    aspect-ratio:1672 / 941!important;
    /* CSS individual scale precedes the transform shorthand. Putting the
       -50% centering in transform caused a zoomed-out Estate to slide right.
       Translate first, then scale around the actual viewport center; preserve
       the authored small pointer parallax and independent detail-camera pan. */
    translate:calc(-50% + var(--jw-place-x,0px)) calc(-50% + var(--jw-place-y,0px))!important;
    transform:translate3d(var(--cine-x,0px),var(--cine-y,0px),0) scale(var(--cine-scale,1))!important;
    transform-origin:center center!important;
    border:1px solid #e3cf9b9c;
    box-shadow:0 0 0 8px #10241ba6,0 0 0 9px #e0c9875c,0 18px 65px #06100be8;
    background:#183025;
  }
  body.jw-expanded-estate #cinematicWorld #cinematicImage {object-fit:fill!important;}
  /* Original cover-based node positions are NOT valid on a fitted illustration.
     Leave their actions in the DOM, accessible via the unchanged project rail. */
  body.jw-expanded-estate #cinematicWorld .cinematic-nodes,
  body.jw-expanded-estate #cinematicWorld .cinematic-districts,
  body.jw-expanded-estate #cinematicWorld .cinematic-links {display:none!important;}
  /* The four-level selector and centered Fine Zoom replace both legacy
     vertical controls in Estate only. Their handlers remain intact for the
     original 3D / broader-world modes where those actions are still useful. */
  body.jw-expanded-estate #cinematicWorld.lw-scale--estate .lw-zoom-guide,
  body.jw-expanded-estate:has(#cinematicWorld.lw-scale--estate) #terrainWorld.cinematic-active .terrain-controls {
    display:none!important;
  }
  body.jw-expanded-estate #cinematicWorld .jw-estate-markers {
    position:absolute;inset:0;z-index:8;display:block!important;pointer-events:none;
  }
  body.jw-expanded-estate #cinematicWorld .jw-estate-marker {
    position:absolute;transform:translate(-50%,-50%);
    display:flex;align-items:center;justify-content:center;
    width:33px;height:33px;min-width:33px;min-height:33px;padding:0;
    border:1.5px solid #f8e9b3;border-radius:50%;
    background:#143624df;color:#f8efcf;
    font:700 12px/1 system-ui,sans-serif;
    box-shadow:0 0 0 3px #102319a0,0 4px 12px #06180de0;
    cursor:pointer;pointer-events:auto;
  }
  body.jw-expanded-estate #cinematicWorld .jw-estate-marker[aria-current="true"] {
    background:#f1e5b8;color:#193324;
  }
  body.jw-expanded-estate #cinematicWorld .jw-estate-marker:focus-visible {
    outline:3px solid #fff1b7;outline-offset:3px;
  }
  /* Make room for the Greenhouse on the left: replace the huge text overlay
     with a modest identity plate in the outer matte, without deleting content. */
  body.jw-expanded-estate .hero-left {
    top:245px;left:12px;width:170px;padding:12px 9px;
    background:#091c13e8;border:1px solid #c1ac805d;box-shadow:0 9px 28px #06120f96;
  }
  body.jw-expanded-estate .hero-left .metadata-line,
  body.jw-expanded-estate .hero-left .hero-lede,
  body.jw-expanded-estate .hero-left .hero-remark,
  body.jw-expanded-estate .hero-left .text-link {display:none;}
  body.jw-expanded-estate .hero-left .hero-heading-wrap {padding-top:2px;}
  body.jw-expanded-estate .hero-left h1 {
    font-size:29px;line-height:.99;letter-spacing:-.035em;
    margin-bottom:8px;
  }
  body.jw-expanded-estate .hero-left .hero-actions{padding-top:3px;}
  body.jw-expanded-estate .hero-left .hero-actions .solid-link {
    min-height:38px;padding:10px 8px;font-size:8px;
  }
  body.jw-expanded-estate #terrainWorld.cinematic-active .world-facts,
  body.jw-expanded-estate #terrainWorld.cinematic-active .network-compass {
    display:none!important;
  }
  body.jw-expanded-estate.jw-estate-details-open #terrainWorld.cinematic-active .world-facts {
    display:block!important;right:clamp(120px,10vw,185px)!important;bottom:150px!important;
    width:220px!important;max-height:235px!important;overflow-y:auto!important;
    z-index:74!important;
  }
  body.jw-expanded-estate.jw-estate-details-open .jw-estate-details-dismiss {
    display:block;position:absolute;right:clamp(120px,10vw,185px);bottom:392px;z-index:75;
    color:#f4e8ca;background:#12291feb;border:1px solid #e2d19a9c;
    padding:7px 10px;font:700 11px system-ui,sans-serif;cursor:pointer;
  }
  body.jw-expanded-estate #cineDistrictRail {
    left:50%!important;right:auto!important;bottom:155px!important;
    width:max-content;max-width:min(85%,830px);
    transform:translateX(-50%);overflow-x:auto;justify-content:center;
    scrollbar-width:thin;
  }
  /* The existing site header and level selector already identify the Atlas.
     Move the real story-lens controls into the free top matte instead of
     hiding the Technology Studio hotspot at its authored image position. */
  body.jw-expanded-estate .v46-stage .map-heading {display:none!important;}
  body.jw-expanded-estate .v54-lens-dock {
    top:10px!important;left:50%!important;transform:translateX(-50%)!important;
    width:min(470px,calc(100% - 510px))!important;min-width:330px;
  }
  body.jw-expanded-estate .v46-stage .map-view-switch {bottom:16px;}
  body.jw-expanded-estate #cinematicWorld.lw-scale--estate::after {
    background:linear-gradient(180deg,#07170f32,transparent 20%,transparent 83%,#07170f8a);
  }
}
@media (max-width:650px), (max-width:900px) and (max-height:540px) and (orientation:landscape) {
  /* A genuine border around a fully fitted panoramic illustration on phone;
     the original six normalized markers travel with the whole image. */
  body.jw-mobile-estate #cinematicWorld.lw-scale--estate #cinematicScene {
    width:88%!important;top:43%!important;
    border:1px solid #e2ce939c;
    box-shadow:0 0 0 7px #122b1cb8,0 0 0 8px #d5c18c6b,0 15px 38px #07130de0;
  }
  body.jw-mobile-estate #cinematicWorld.lw-scale--estate #cinematicImage {object-fit:contain!important;}
}
@media (max-width:900px) and (max-height:540px) and (orientation:landscape) {
  body.jw-mobile-estate #cinematicWorld.lw-scale--estate #cinematicScene{
    width:79%!important;top:44%!important;
  }
  body.jw-mobile-estate #cineDistrictRail {
    left:10%!important;right:10%!important;
  }
}
@media (prefers-reduced-motion:reduce) {
  body.jw-expanded-estate #cinematicWorld .jw-estate-marker{transition:none!important;}
}