/* Scoped story refinements: preserve the explorer and the measured type scale. */
#ourStory19 .p21-stop {
  height: 72vh;
  height: 72svh;
}
#ourStory19 .p21-stop:last-child {
  height: 100vh;
  height: 100svh;
}
#ourStory19 .p21-map {
  transition: transform 180ms ease-out;
}
#ourStory19 .p21-map.p21-hidden-map {
  visibility: hidden;
}
#ourStory19 .p21-map [id^="story-"] {
  transition: none;
}
#ourStory19 .p21-map [id="story-roads"],
#ourStory19 .p21-map [id="story-roads-secondary"],
#ourStory19 .p21-map [id="story-farmland"],
#ourStory19 .p21-map [id="story-buildings"],
#ourStory19 .p21-map [id="story-water"],
#ourStory19 .p21-map [id="story-industry"],
#ourStory19 .p21-map [id="story-services"] {
  display: none;
}
#ourStory19 .p21-map .p21-layer-on {
  display: block;
}
#ourStory19 .p21-progress i {
  transition: width 180ms ease-out;
}
#portal19.p21-scrolled > .p19-header {
  backdrop-filter: none;
}
#ourStory19 .p21-workflow {
  backdrop-filter: none;
  background: transparent;
}
#ourStory19 .p21-node,
#ourStory19 .p21-orbit-node,
#ourStory19 .p21-orbit-node > span,
#ourStory19 .icon {
  background: transparent;
  box-shadow: none;
}
#ourStory19 .icon {
  fill: none;
  stroke: currentColor;
}
#ourStory19 .p21-orbit-node {
  text-shadow: 0 1px 3px #101610;
}
#ourStory19 .p21-orbit-ring {
  border-color: #d8bd8130;
}
#ourStory19 .p22-location,
#ourStory19 .p21-dates span,
#ourStory19 .p21-divider span {
  backdrop-filter: none;
}

/* A complete, aligned 900×805 image, never a full-screen enlarged crop. */
#ourStory19 {
  --p23-image-width: min(52vw, calc((100svh - 280px) * 900 / 805), 900px);
}
#ourStory19 .p21-compare {
  inset: auto;
  left: 9%;
  top: 50%;
  transform: translateY(-50%);
  width: var(--p23-image-width);
  height: auto;
  aspect-ratio: 900 / 805;
  z-index: 2;
  overflow: visible;
  isolation: isolate;
}
#ourStory19 .p21-image-pair {
  height: 100%;
  overflow: hidden;
  background: transparent;
}
#ourStory19 .p21-image-pair img {
  object-fit: contain;
  background-size: 100% 100%;
  background-repeat: no-repeat;
}
#ourStory19 .p21-dates {
  inset: -34px 0 auto;
  width: auto;
}
#ourStory19 .p21-dates span {
  background: transparent;
  border: 0;
  padding: 0;
}
#ourStory19 .p21-divider {
  inset-block: 0;
}
#ourStory19 .p21-divider span {
  background: #10161070;
}
#ourStory19 .p21-slider-label {
  left: 9%;
  right: auto;
  bottom: 76px;
  top: auto;
  width: var(--p23-image-width);
  z-index: 4;
}
#ourStory19 .p21-delta #storyAfter21 {
  display: block;
  clip-path: none;
}
#ourStory19 #storyDelta21 {
  image-rendering: pixelated;
}
#ourStory19 .p21-delta .p21-dates span {
  border: 0;
}
#ourStory19 .p23-analysis-legend {
  position: absolute;
  bottom: -30px;
  inset-inline: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  color: #dce3d4;
  font-size: 10px;
  line-height: 1.4;
}
#ourStory19[data-mode="ndvi"] .p23-analysis-legend {
  bottom: 12px;
  color: #fff;
  text-shadow: 0 1px 4px #000;
}
#ourStory19 .p23-analysis-legend span {
  display: flex;
  align-items: center;
  gap: 6px;
}
#ourStory19 .p23-analysis-legend i {
  display: inline-block;
  width: 7px;
  height: 7px;
}
#ourStory19 .p23-analysis-legend .p23-ndvi-ramp {
  display: none;
}
#ourStory19 .p23-image-error {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 24px;
  background: #101610;
  color: #e7d5a8;
  font-size: 13px;
  text-align: center;
}
#ourStory19[data-scene="turbah"] .p22-geo {
  inset: auto;
  left: 9%;
  top: 50%;
  transform: translateY(-50%);
  width: var(--p23-image-width);
  height: auto;
  aspect-ratio: 900 / 805;
  z-index: 2;
}
#ourStory19[data-scene="turbah"] .p22-geo svg {
  width: 100%;
  height: 100%;
  position: static;
}
#ourStory19[data-scene="khulais"] .p22-geo svg {
  max-width: 256px;
  max-height: 512px;
  margin: auto;
}
@media (max-width: 850px) {
  #ourStory19 {
    --p23-image-width: min(78vw, calc((47svh - 105px) * 900 / 805), 900px);
  }
  #ourStory19 .p21-compare,
  #ourStory19[data-scene="turbah"] .p22-geo {
    left: 50%;
    top: 104px;
    transform: translateX(-50%);
    width: var(--p23-image-width);
    height: auto;
  }
  #ourStory19 .p21-dates {
    inset: -16px 0 auto;
  }
  #ourStory19 .p21-dates span {
    font-size: 8px;
  }
  #ourStory19 .p21-image-pair {
    height: 100%;
  }
  #ourStory19 .p21-divider {
    bottom: 0;
  }
  #ourStory19 .p21-slider-label {
    left: 50%;
    transform: translateX(-50%);
    top: 43%;
    bottom: auto;
    width: var(--p23-image-width);
  }
  #ourStory19 .p23-analysis-legend {
    bottom: -23px;
    font-size: 8px;
    gap: 8px;
  }
  #ourStory19[data-mode="ndvi"] .p23-analysis-legend {
    display: none;
  }
  #ourStory19[data-scene="turbah"] .p22-location {
    top: 79px;
  }
}
@media (prefers-reduced-motion: reduce) {
  #ourStory19 .p21-map,
  #ourStory19 .p21-progress i {
    transition: none;
  }
}
