/* Additive hero gallery styles: keep the existing first image's crop and shade. */
[data-hero-gallery-ready] { touch-action: pan-y pinch-zoom; }
[data-hero-gallery-ready] .hero-gallery-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 240ms ease;
}
[data-hero-gallery-ready] .hero-gallery-slide.is-current { opacity: 1; }
[data-hero-gallery-ready] .hero-gallery-slide:not(:first-child) { animation: none; }
@media screen {
  [data-hero-gallery] .hero-shade {
    background: linear-gradient(90deg, rgba(0,0,0,.64), rgba(0,0,0,.36) 38%, transparent 70%),
                linear-gradient(0deg, rgba(0,0,0,.58), transparent 27%);
  }
  [data-hero-gallery-browsing] .hero-shade,
  [data-hero-gallery-browsing] .hero-content,
  [data-hero-gallery-browsing] .hero-address { display: none; }
}
.hero-gallery-controls { position: absolute; inset: 0; pointer-events: none; z-index: 2; }
.hero-gallery-arrow {
  position: absolute;
  top: 55%;
  transform: translateY(-50%);
  width: 48px;
  height: 52px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 1px solid rgba(255,255,255,.5);
  color: #fff;
  background: transparent;
  font: inherit;
  font-size: 23px;
  cursor: pointer;
  pointer-events: auto;
  transition: background-color 160ms ease;
}
.hero-gallery-previous { left: 22px; }
.hero-gallery-next { right: 22px; }
.hero-gallery-previous span { transform: rotate(90deg); }
.hero-gallery-next span { transform: rotate(-90deg); }
.hero-gallery-arrow:hover { background: rgba(17,35,28,.36); }
.hero-gallery-arrow:focus-visible { outline: 3px solid #fff; outline-offset: -6px; }
.hero-gallery-count {
  position: absolute;
  top: 35px;
  right: 35px;
  padding: 5px 12px;
  border: 1px solid rgba(255,255,255,.4);
  border-radius: 3px;
  color: #fff;
  background: rgba(17,35,28,.82);
  font: 500 14px/1.5 var(--sans,Arial,sans-serif);
  letter-spacing: .08em;
  font-variant-numeric: tabular-nums;
}
.hero-gallery-status {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}
@media (min-width: 721px) and (max-width: 1023px) {
  .hero-gallery-arrow { top: 62%; }
}
@media (max-width: 720px) {
  [data-hero-gallery] .hero-shade {
    background: linear-gradient(90deg, rgba(0,0,0,.64), rgba(0,0,0,.24)),
                linear-gradient(0deg, rgba(0,0,0,.66), transparent 52%);
  }
  /* Below the text block and above the address: clear mobile text and links. */
  .hero-gallery-arrow { top: auto; bottom: 149px; transform: none; width: 44px; height: 48px; font-size: 20px; }
  .hero-gallery-previous { left: 13px; }
  .hero-gallery-next { right: 13px; }
  .hero-gallery-count { top: 23px; right: 23px; padding: 4px 10px; font-size: 13px; }
}
@media (prefers-contrast: more) {
  [data-hero-gallery] .hero-shade {
    background: linear-gradient(90deg, rgba(0,0,0,.79), rgba(0,0,0,.46) 44%, transparent 76%),
                linear-gradient(0deg, rgba(0,0,0,.69), transparent 34%);
  }
}
@media (prefers-reduced-motion: reduce) {
  [data-hero-gallery-ready] .hero-gallery-slide,
  .hero-gallery-arrow { transition: none; }
}
@media print {
  .hero-gallery-controls { display: none !important; }
  [data-hero-gallery-ready] .hero-gallery-slide { display: none !important; }
  [data-hero-gallery-ready] .hero-gallery-slide:first-child { display: block !important; opacity: 1 !important; }
}

/* Keep the film uncropped and its playback controls usable. Carousel arrows remain above it. */
[data-hero-gallery-ready] .hero-gallery-video {
  width:100%;height:100%;object-fit:contain;background:#111;transform:none;
}
[data-hero-gallery-ready] .hero-gallery-video.is-current {pointer-events:auto;}
[data-hero-gallery-video] .hero-gallery-arrow {background:rgba(17,35,28,.38);}
[data-hero-gallery-video] .hero-image {z-index:0;}
[data-hero-gallery-video] .hero-bottom {display:none;}

/* Ellis Creek opening: closer architectural framing without altering the source photo. */
[data-hero-gallery] .hero-image img:first-child {
  object-position: 50% 68%;
  transform-origin: 50% 68%;
  transform: scale(1.22);
  animation: none;
}
[data-hero-gallery] .hero-image img[data-hero-gallery-index="2"] { object-position: 53% 46%; }
@media (max-width: 720px) {
  [data-hero-gallery] .hero-image img:first-child { object-position: 50% 65%; transform: scale(1.05); }
  [data-hero-gallery] .hero-image img[data-hero-gallery-index="2"] { object-position: 56% center; }
}

/* Portrait foyer remains fully visible rather than being cropped to landscape. */
[data-hero-gallery] .hero-image img[data-hero-gallery-index="2"] {
 object-fit: contain; object-position: center; background: #24382f;
}

/* Screened porch: favor the screened outlook over the foreground floor. */
.outdoors-image img[src*="weepoolow-ellis-outdoors-1139"] { object-position: center top; }
.outdoors-image .image-button img[src*="weepoolow-ellis-outdoors-1139"] {
 transform: scale(1.16); transform-origin: center top;
}

/* Lake and tennis-court aerial: preserve the original horizon and full frame. */
[data-hero-gallery] .hero-image img[src*="neighborhood-dji-0673-"] { object-fit: contain; object-position: center; background: #24382f; }

/* Preserve the wide room and courtyard compositions requested during review. */
[data-hero-gallery] .hero-image img[src*="weepoolow-ellis-finish-1234-"],
[data-hero-gallery] .hero-image img[src*="weepoolow-ellis-finish-1247-"] { object-fit: contain; object-position: center; background: #24382f; }

/* Same higher porch crop in the carousel and main-page photograph. */
[data-hero-gallery] .hero-image img[src*="porch-view-1139"] { object-fit: contain; object-position: center; background: #24382f; }
.outdoors-image .image-button { height: auto; min-height: 0; aspect-ratio: 8192 / 4200; }
.outdoors-image img[src*="porch-view-1139"] { object-fit: cover; object-position: center; transform: none; }

[data-price-slot][hidden] { display: none !important; }

/* Twilight opener: keep the entire facade in view with a restrained architectural crop. */
[data-hero-gallery] .hero-image img:first-child[src*="additional-3043-edit"] {object-position:50% 68%;transform:scale(1.08);transform-origin:50% 68%;}
@media(max-width:720px){[data-hero-gallery] .hero-image img:first-child[src*="additional-3043-edit"]{object-position:53% 70%;transform:none;}}

/* Keep both bodies of water and the house visible in the orientation aerials. */
[data-hero-gallery] .hero-image img[src*="additional-2010-"],
[data-hero-gallery] .hero-image img[src*="neighborhood-dji-0736-"] {object-fit:contain;object-position:center;background:#24382f;}

/* Approved lake-context aerial: preserve house, lake and full source frame. */
[data-hero-gallery] .hero-image img[src*="additional-2013-"] {object-fit:contain;object-position:center;background:#24382f;}

[data-hero-gallery] .hero-image img[src*="patio-cleanup-1247-v5-"] {object-fit:contain;object-position:center;background:#24382f;}

/* Show the entire portrait entrance photograph at carousel position 9. */
[data-hero-gallery] .hero-image img[src*="weepoolow-ellis-entry-1024-"]{object-fit:contain;object-position:center;transform:none;animation:none;background:#24382f;}

/* Clearly distinguish neighborhood facilities from the property itself. */
.hero-gallery-amenity-caption{position:absolute;left:50%;bottom:30px;transform:translateX(-50%);z-index:3;max-width:calc(100% - 190px);padding:8px 15px;color:#fff;background:rgba(20,39,30,.68);font:500 16px/1.4 var(--sans,Arial,sans-serif);text-align:center;text-shadow:0 1px 3px #0008;pointer-events:none;}
/* Retain the shared arrow glyph and outline, with greater contrast. */
[data-hero-gallery] .hero-gallery-arrow,[data-hero-gallery] .scroll-cue{width:56px;height:56px;border:2px solid rgba(255,255,255,.9);background:rgba(24,45,35,.68);color:#fff;font-size:28px;box-shadow:0 2px 12px #0005;}
[data-hero-gallery] .hero-gallery-arrow:hover,[data-hero-gallery] .scroll-cue:hover{background:rgba(24,45,35,.9);}
@media(max-width:720px){[data-hero-gallery] .hero-gallery-arrow,[data-hero-gallery] .scroll-cue{width:50px;height:52px;font-size:26px}.hero-gallery-amenity-caption{max-width:calc(100% - 155px);font-size:15px;bottom:29px;padding:8px 10px;}}

/* Evening courtyard: show the original full frame for a more open sense of space. */
[data-hero-gallery] .hero-image img[src*="weepoolow-ellis-twilight-courtyard-3076-v9-"]{object-fit:contain;object-position:center;transform:none;animation:none;background:#24382f;}

/* Understated amenity caption: typography over the photograph, without a panel. */
[data-hero-gallery] .hero-gallery-amenity-caption{background:transparent;padding:0;color:#fff;font-weight:400;font-size:17px;letter-spacing:.035em;line-height:1.5;text-shadow:0 1px 3px rgba(0,0,0,.95),0 2px 12px rgba(0,0,0,.75);}
@media(max-width:720px){[data-hero-gallery] .hero-gallery-amenity-caption{font-size:15px;letter-spacing:.02em;}}

/* Open white outlines, with no dark fill behind the navigation controls. */
[data-hero-gallery] .hero-gallery-arrow,[data-hero-gallery] .scroll-cue{background:transparent;box-shadow:none;text-shadow:0 1px 4px rgba(0,0,0,.7);filter:drop-shadow(0 1px 2px rgba(0,0,0,.4));}
[data-hero-gallery] .hero-gallery-arrow:hover,[data-hero-gallery] .scroll-cue:hover{background:rgba(255,255,255,.1);}

[data-hero-gallery] .hero-gallery-count{background:transparent;border-color:rgba(255,255,255,.65);text-shadow:0 1px 4px rgba(0,0,0,.85);}

/* Supplied trail photograph: retain complete sign and trail entrance. */
[data-hero-gallery] .hero-image img[src*="weepoolow-ashley-harbor-trail-20261120-spring-20261121-"]{object-fit:contain;object-position:center;transform:none;animation:none;background:#24382f;}

[data-hero-gallery] .hero-image img[src*="weepoolow-ashley-harbor-boat-storage-dji0771-20261120-spring-20261121-"]{object-fit:contain;object-position:center;transform:none;animation:none;background:#24382f;}

[data-hero-gallery] .hero-image img[src*="weepoolow-dji0732-property-arrow-20261120-"]{object-fit:contain;object-position:center;transform:none;animation:none;background:#24382f;}

/* Captions sit beneath the photograph, preserving the full image. */
.hero-gallery-amenity-caption{position:static!important;left:auto!important;bottom:auto!important;transform:none!important;max-width:none!important;width:100%;margin:0;padding:16px max(24px,6vw)!important;background:#f4f2eb!important;color:#293e32!important;font:400 17px/1.6 var(--sans,Arial,sans-serif)!important;letter-spacing:.01em!important;text-align:center;text-shadow:none!important;pointer-events:auto!important;border-bottom:1px solid #ddd8cb}.hero-gallery-amenity-caption[hidden]{display:none!important}@media(max-width:720px){.hero-gallery-amenity-caption{font-size:16px!important;line-height:1.55!important;padding:14px 22px!important}}

/* Readable text below the photograph, never over the image. */
.hero-gallery-amenity-caption{position:relative;left:auto;bottom:auto;transform:none;z-index:auto;display:block;width:100%;max-width:none;margin:0;padding:17px 6%;background:#f3f1e9;color:#283d31;font:400 17px/1.55 var(--sans,Arial,sans-serif);letter-spacing:.01em;text-align:center;text-shadow:none;pointer-events:auto;border-bottom:1px solid #d8d6ca;overflow-wrap:anywhere}.hero-gallery-amenity-caption[hidden]{display:none!important}@media(max-width:720px){.hero-gallery-amenity-caption{position:relative;bottom:auto;max-width:none;padding:15px 22px;font-size:16px;line-height:1.55}}

[data-hero-gallery] .hero-image img[src*="property-location-pointer"]{object-fit:contain;object-position:center;transform:none;animation:none;background:#24382f;}
