.single-storymaps {
  --story-bg: #f3f6f4;
  --story-surface: #ffffff;
  --story-surface-alt: #deebe5;
  --story-ink: #143334;
  --story-muted: #5f7771;
  --story-accent: #0f6a68;
  --story-accent-soft: #9ccbc3;
  --story-line: rgba(20, 51, 52, 0.12);
  --story-shadow: 0 28px 60px rgba(20, 51, 52, 0.14);
  background:
    radial-gradient(circle at top left, rgba(129, 182, 212, 0.34), transparent 32%),
    linear-gradient(180deg, #e7f2f8 0%, var(--story-bg) 22%, #edf3ef 100%);
  color: var(--story-ink);
  overflow-x: hidden;
  overflow-x: clip;
}

.storymap-video-is-open {
  overflow: hidden;
}

.single-storymaps #page {
  overflow-x: hidden;
  overflow-x: clip;
}

.single-storymaps .site-main,
.single-storymaps .post-thumbnail,
.single-storymaps article.type-storymaps {
  max-width: none;
}

.single-storymaps .section-footer-site {
  position: relative;
  z-index: 2;
  width: 100%;
  overflow-x: hidden;
  background-color: #fff;
}

.single-storymaps .widget-area,
.single-storymaps .site-footer {
  box-sizing: border-box;
  width: 100%;
}

.storymap-motion-ready .storymap-hero__image {
  animation: storymapHeroDrift 1800ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.storymap-motion-ready .storymap-breadcrumb--hero,
.storymap-motion-ready .storymap-title {
  opacity: 0;
  animation: storymapFadeUp 900ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.storymap-motion-ready .storymap-title {
  animation-delay: 140ms;
}

.storymap-motion-ready .storymap-scroll-down {
  opacity: 0;
  animation: storymapScrollCueIn 900ms 360ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.storymap-motion-ready .storymap-motion-item {
  opacity: 0;
  transform: translate3d(0, 34px, 0);
  transition:
    opacity 820ms ease,
    transform 920ms cubic-bezier(0.2, 0.8, 0.2, 1),
    filter 920ms ease;
  will-change: opacity, transform;
}

.storymap-motion-ready .storymap-motion-item.storymap-section__title {
  transition-delay: 60ms;
}

.storymap-motion-ready .storymap-motion-item.storymap-prose {
  transition-delay: 100ms;
}

.storymap-motion-ready .storymap-motion-item.storymap-overview__map,
.storymap-motion-ready .storymap-motion-item.storymap-vulnerability-map,
.storymap-motion-ready .storymap-motion-item.storymap-vulnerability__image,
.storymap-motion-ready .storymap-motion-item.storymap-challenge-hero,
.storymap-motion-ready .storymap-motion-item.storymap-model-layout,
.storymap-motion-ready .storymap-motion-item.storymap-map,
.storymap-motion-ready .storymap-motion-item.storymap-video-card {
  filter: saturate(0.86) contrast(0.94);
  transition-delay: 130ms;
}

.storymap-motion-ready .storymap-motion-item.is-motion-visible {
  opacity: 1;
  transform: translate3d(0, 0, 0);
  filter: none;
}

.storymap-motion-ready .storymap-motion-item.storymap-sticky-story__image:nth-child(2) {
  transition-delay: 180ms;
}

.storymap-motion-ready .storymap-motion-item.storymap-sticky-story__image:nth-child(3) {
  transition-delay: 300ms;
}

@keyframes storymapFadeUp {
  from {
    opacity: 0;
    transform: translate3d(0, 28px, 0);
  }

  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

@keyframes storymapHeroDrift {
  from {
    transform: scale(1.06);
    filter: saturate(0.86) contrast(0.94);
  }

  to {
    transform: scale(1);
    filter: none;
  }
}

@keyframes storymapScrollCueIn {
  from {
    opacity: 0;
    transform: translate3d(-50%, 24px, 0);
  }

  to {
    opacity: 1;
    transform: translate3d(-50%, 0, 0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .storymap-motion-ready .storymap-hero__image,
  .storymap-motion-ready .storymap-breadcrumb--hero,
  .storymap-motion-ready .storymap-title,
  .storymap-motion-ready .storymap-scroll-down,
  .storymap-motion-ready .storymap-motion-item {
    opacity: 1;
    transform: none;
    animation: none;
    transition: none;
    filter: none;
  }

  .storymap-motion-ready .storymap-scroll-down {
    transform: translateX(-50%);
  }
}

.storymap-shell {
  padding-bottom: 8rem;
}

.storymap-breadcrumb {
  padding: 1.5rem 0 0;
  color: var(--story-muted);
  font-size: 0.92rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.storymap-breadcrumb a {
  color: inherit;
  text-decoration: none;
}

.storymap-hero {
  position: relative;
  height: 90vh;
  min-height: 90svh;
  margin: 0!important;
  padding: 0;
  overflow: hidden;
  color: #ffffff;
}

.storymap-hero__backdrop {
  position: absolute;
  inset: 0;
  overflow: hidden;
  width: 100%;
  height: 100%;
}

.storymap-hero__backdrop::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(7, 24, 27, 0.46) 0%, rgba(7, 24, 27, 0.2) 28%, rgba(7, 24, 27, 0.52) 100%),
    linear-gradient(90deg, rgba(10, 34, 36, 0.5) 0%, rgba(10, 34, 36, 0.08) 55%, rgba(10, 34, 36, 0.22) 100%);
}

.storymap-hero__inner {
  position: relative;
  z-index: 1;
  height: 100%;
  min-height: inherit;
  padding-top: 0;
  padding-bottom: 0;
}

.storymap-hero__grid {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  width: 100%;
}

.storymap-hero__copy {
  max-width: 62rem;
  min-height: 0;
  padding: 0;
}

.storymap-hero__copy,
.storymap-hero__copy .storymap-title {
  position: relative;
  z-index: 2;
}

.storymap-kicker,
.storymap-section__eyebrow {
  display: inline-block;
  margin: 0 0 1rem;
  color: var(--story-accent);
  font-size: 0.84rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.storymap-kicker {
  color: rgba(255, 255, 255, 0.9);
}

.storymap-title,
.storymap-section__title {
  margin: 0;
  font-family: var(--global--font-primary);
  font-size: clamp(2.8rem, 6vw, 5.3rem);
  line-height: 1.2;
  letter-spacing: -0.04em;
}

.storymap-title {
  color: #ffffff;
}

.storymap-section__title {
  margin-bottom: 20px;
  font-size: clamp(2rem, 4vw, 3.3rem);
}

.storymap-intro {
  max-width: 42rem;
  margin: 1.5rem 0 0;
  font-size: clamp(1.08rem, 1.8vw, 1.3rem);
  line-height: 1.7;
  color: var(--story-muted);
}

.storymap-hero__image {
  display: block;
  width: 100%;
  height: 100%;
  min-width: 100%;
  min-height: 100%;
  object-fit: cover;
  object-position: center center;
}

.storymap-breadcrumb--hero {
  position: absolute;
  top: 2rem;
  left: 0;
  z-index: 3;
  padding: 0;
  color: rgba(255, 255, 255, 0.86);
}

.storymap-breadcrumb--hero a {
  color: inherit;
}

.storymap-scroll-down {
  position: absolute;
  left: 50%;
  bottom: 2rem;
  transform: translateX(-50%);
  z-index: 3;
  margin-top: 0;
}

.storymap-nav {
  position: sticky;
  top: 0;
  z-index: 30;
  margin: 0!important;
  border-top: 1px solid rgba(255, 255, 255, 0.35);
  border-bottom: 1px solid rgba(20, 51, 52, 0.1);
  background: rgba(243, 246, 244, 0.78);
  backdrop-filter: blur(18px);
}

.storymap-nav__list {
  display: flex;
  gap: 0.4rem;
  overflow-x: auto;
  padding: 0.85rem 0;
  scrollbar-width: none;
}

.storymap-nav__list::-webkit-scrollbar {
  display: none;
}

.storymap-nav__link {
  flex: 0 0 auto;
  padding: 0.7rem 1rem;
  border-radius: 999px;
  color: var(--story-muted);
  font-size: 0.92rem;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}

.storymap-nav__link.is-active,
.storymap-nav__link:hover {
  background: #ffffff;
  color: var(--story-accent);
  box-shadow: 0 8px 24px rgba(20, 51, 52, 0.1);
}

.storymap-section {
  padding: 6rem 0 0;
}

.storymap-overview {
  overflow: hidden;
}

.storymap-overview__grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 3.5rem;
  align-items: stretch;
}

.storymap-overview__copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 2rem 0;
}

.storymap-overview__copy .storymap-prose {
  max-width: 32rem;
}

.storymap-overview__map-wrap {
  margin-right: calc(50% - 50vw);
}

.storymap-overview__map {
  height: 100%;
  min-height: 10vh;
}

.storymap-overview__map img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.storymap-vulnerability {
  overflow: hidden;
}

.storymap-vulnerability__grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 3.5rem;
  align-items: stretch;
}

.storymap-vulnerability__copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 2rem 0;
}

.storymap-vulnerability__copy .storymap-prose {
  max-width: 32rem;
}

.storymap-vulnerability__map-wrap {
  min-height: 70vh;
  margin-right: calc(50% - 50vw);
}

.storymap-vulnerability-map,
.storymap-vulnerability__image {
  width: 100%;
  height: 100%;
  min-height: 70vh;
  border-radius: 0;
}

.storymap-vulnerability-map .gis-climate-map__canvas {
  min-height: 70vh;
}

.storymap-vulnerability__image {
  margin: 0;
}

.storymap-vulnerability__image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.storymap-case-areas {
  overflow: hidden;
}

.storymap-case-areas__grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 3.5rem;
  align-items: stretch;
}

.storymap-case-areas__copy {
  position: sticky;
  top: 22vh;
  align-self: start;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 56vh;
  padding: 2rem 0;
}

.storymap-case-areas__copy .storymap-prose {
  max-width: 34rem;
}

.storymap-case-areas__copy .storymap-prose h3 {
  margin: 0 0 1.2rem;
  color: var(--story-ink);
  font-family: var(--global--font-primary);
  font-size: clamp(1.6rem, 2.5vw, 2.4rem);
  line-height: 1.2;
  letter-spacing: -0.03em;
}

.storymap-case-areas__map-wrap {
  margin-right: calc(50% - 50vw);
}

.storymap-case-areas__map {
  background: transparent;
}

.storymap-case-areas__map img {
  display: block;
  width: 70%;
  height: auto;
}

.storymap-section__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: start;
}

.storymap-section__grid--narrow {
  grid-template-columns: 1fr;
}

.storymap-prose,
.storymap-prose p {
  color: var(--story-muted);
  line-height: 1.78;
}

.storymap-prose p:first-child {
  margin-top: 0;
}

.storymap-card-grid,
.storymap-theme-grid,
.storymap-resource-list,
.storymap-gallery {
  display: grid;
  gap: 1.25rem;
}

.storymap-card-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.storymap-theme-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.storymap-gallery {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.storymap-card,
.storymap-theme,
.storymap-resource {
  padding: 1.4rem;
  border: 1px solid var(--story-line);
  border-radius: 1.5rem;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 14px 34px rgba(20, 51, 52, 0.06);
  backdrop-filter: blur(10px);
}

.storymap-card__label {
  display: block;
  margin-bottom: 0.45rem;
  color: var(--story-accent);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.storymap-card__value,
.storymap-card__desc,
.storymap-theme p,
.storymap-resource {
  color: var(--story-muted);
  line-height: 1.65;
}

.storymap-panel {
  padding: 1.4rem;
  border: 1px solid var(--story-line);
  border-radius: 1.7rem;
  background: var(--story-surface);
  box-shadow: var(--story-shadow);
}

.storymap-panel--soft {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.78) 0%, rgba(222, 235, 229, 0.84) 100%);
}

.storymap-challenge-hero {
  width: 100%;
  margin-top: 2.5rem;
}

.storymap-challenge-hero img {
  display: block;
  width: 100%;
  min-height: 38rem;
  max-height: 52rem;
  object-fit: cover;
}

.storymap-challenge-storyline {
  position: relative;
  display: grid;
  gap: 0;
  min-height: 62rem;
  padding: 5rem 0 3rem;
}

.storymap-challenge-storyline::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 1px;
  background: linear-gradient(180deg, rgba(15, 106, 104, 0) 0%, rgba(15, 106, 104, 0.28) 12%, rgba(15, 106, 104, 0.1) 88%, rgba(15, 106, 104, 0) 100%);
}

.storymap-story-card {
  position: relative;
  display: grid;
  width: min(43rem, 68vw);
  opacity: 1;
  transition: transform 1s cubic-bezier(0.2, 0.8, 0.2, 1), opacity 1s ease;
  will-change: transform, opacity;
}

.storymap-story-card--left {
  margin-right: auto;
  transform: translate3d(calc(var(--story-scroll, 0) * 42px), calc(var(--story-scroll, 0) * -28px), 0);
  z-index: 1;
}

.storymap-story-card--right {
  margin-top: -13rem;
  margin-left: auto;
  transform: translate3d(calc(var(--story-scroll, 0) * -48px), calc(var(--story-scroll, 0) * 34px), 0);
  z-index: 2;
}

.storymap-story-card.is-reveal-ready {
  opacity: 0;
}

.storymap-story-card--left.is-reveal-ready {
  transform: translate3d(-5rem, 6rem, 0);
}

.storymap-story-card--right.is-reveal-ready {
  transform: translate3d(5rem, 7rem, 0);
}

.storymap-story-card.is-visible {
  opacity: 1;
}

.storymap-story-card--left.is-visible {
  transform: translate3d(calc(var(--story-scroll, 0) * 42px), calc(var(--story-scroll, 0) * -28px), 0);
}

.storymap-story-card--right.is-visible {
  transform: translate3d(calc(var(--story-scroll, 0) * -48px), calc(var(--story-scroll, 0) * 34px), 0);
}

.storymap-story-card__media,
.storymap-story-card__copy {
  position: relative;
  z-index: 1;
}

.storymap-story-card__media {
  overflow: hidden;
  aspect-ratio: 1;
  border-radius: 0.35rem;
  background: #ffffff;
}

.storymap-story-card__media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.storymap-media-frame {
  overflow: hidden;
  border-radius: 1.7rem;
  background: #dfe9e4;
  box-shadow: var(--story-shadow);
}

.storymap-media-frame img,
.storymap-gallery__item img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.storymap-media-caption,
.storymap-gallery__caption {
  padding-top: 0.9rem;
  color: var(--story-muted);
  font-size: 0.92rem;
}

.storymap-split {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 2rem;
  align-items: stretch;
}

.storymap-sticky-story {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.9fr);
  gap: clamp(2.5rem, 6vw, 6rem);
  align-items: start;
}

.storymap-sticky-story--media-right {
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1fr);
}

.storymap-sticky-story__copy {
  position: sticky;
  top: 7rem;
  min-height: calc(100vh - 8rem);
  display: flex;
  align-items: center;
}

.storymap-sticky-story__copy-inner {
  width: 100%;
}

.storymap-sticky-story__media-list {
  display: grid;
  gap: clamp(2rem, 5vw, 5rem);
}

.storymap-sticky-story__image {
  position: relative;
  overflow: hidden;
  margin: 0;
  min-height: 68vh;
  border-radius: 0.4rem;
  background: #dfe9e4;
}

.storymap-sticky-story__image:nth-child(even) {
  transform: translateX(8%);
}

.storymap-sticky-story__image img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 68vh;
  object-fit: cover;
}

.storymap-sticky-story__points {
  display: grid;
  gap: 1.3rem;
  margin-top: 2rem;
}

.storymap-sticky-story__points article {
  padding-top: 1.1rem;
  border-top: 1px solid var(--story-line);
}

.storymap-sticky-story__points h3 {
  margin: 0 0 0.45rem;
  font-size: 1.08rem;
  line-height: 1.25;
}

.storymap-sticky-story__points p {
  margin: 0;
  color: var(--story-muted);
  line-height: 1.65;
}

.storymap-gallery__item {
  padding: 1rem;
  border-radius: 1.5rem;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 14px 32px rgba(20, 51, 52, 0.08);
}

.storymap-gallery__item img {
  aspect-ratio: 1.2;
  border-radius: 1rem;
}

.storymap-gallery__title,
.storymap-card h3,
.storymap-theme h3 {
  margin: 0 0 0.55rem;
  font-size: 1.1rem;
  line-height: 1.25;
}

.storymap-model-layout {
  position: relative;
  left: 50%;
  width: 100vw;
  margin-top: 2rem;
  margin-left: -50vw;
}

.storymap-embed,
.storymap-model {
  width: 100%;
  border: 0;
  background: linear-gradient(180deg, #dfeef0 0%, #cfd9d8 100%);
}

.storymap-model-shell {
  position: relative;
  overflow: hidden;
  width: 100%;
  min-height: 100vh;
  border-radius: 0;
  background: #dddddd;
}

.storymap-embed {
  min-height: 520px;
  border-radius: 1.7rem;
}

.storymap-model {
  display: block;
  height: 100vh;
  min-height: 100vh;
  background: #dddddd;
}

.storymap-model-status {
  position: absolute;
  inset: auto 1rem 1rem 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 3.25rem;
  border-radius: 0.9rem;
  background: rgba(20, 51, 52, 0.76);
  color: #ffffff;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  backdrop-filter: blur(10px);
  pointer-events: none;
}

.storymap-model-status--error {
  display: none;
  background: rgba(137, 37, 37, 0.84);
}

.storymap-model-shell.is-loaded .storymap-model-status--loading {
  display: none;
}

.storymap-model-shell.has-error .storymap-model-status--loading {
  display: none;
}

.storymap-model-shell.has-error .storymap-model-status--error {
  display: flex;
}

.storymap-credit {
  max-width: var(--responsive--alignwide-width);
  margin: 0.9rem auto 0;
  color: var(--story-muted);
  font-size: 0.9rem;
}

.storymap-map {
  position: relative;
  overflow: hidden;
  left: 50%;
  width: 100vw;
  max-width: 100vw;
  margin-left: -50vw;
  padding: 0;
  border-radius: 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.72) 0%, rgba(220, 233, 226, 0.9) 100%);
  box-shadow: var(--story-shadow);
}

.storymap-map img {
  display: block;
  width: 100%;
  border-radius: 1.2rem;
}

.storymap-map__canvas {
  width: 100%;
  min-height: min(78vh, 720px);
  border-radius: 0;
  background: #dce8e8;
}

.storymap-map .maplibregl-ctrl button {
  min-width: initial;
}

.storymap-map__legend,
.storymap-map__status {
  position: absolute;
  z-index: 2;
  left: 2rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
  color: var(--story-ink);
  box-shadow: 0 14px 34px rgba(20, 51, 52, 0.14);
  backdrop-filter: blur(14px);
}

.storymap-map__legend {
  bottom: 2rem;
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.72rem 1rem;
  font-size: 0.88rem;
  font-weight: 800;
}

.storymap-map__legend-swatch {
  width: 1rem;
  height: 1rem;
  border-radius: 999px;
  background: #f28c28;
  box-shadow: 0 0 0 4px rgba(242, 140, 40, 0.22);
}

.storymap-map__status {
  top: 2rem;
  max-width: min(30rem, calc(100% - 4rem));
  margin: 0;
  padding: 0.62rem 0.9rem;
  font-size: 0.82rem;
}

.storymap-map-popup {
  display: grid;
  gap: 0.22rem;
  color: var(--story-ink);
}

.storymap-map-popup strong {
  font-size: 0.92rem;
}

.storymap-map-popup span {
  color: var(--story-muted);
  font-size: 0.78rem;
}

.storymap-future {
  position: relative;
  display: flex;
  align-items: center;
  overflow: hidden;
  min-height: 100vh;
  margin-top: 6rem;
  padding: 0;
  color: #ffffff;
}

.storymap-future::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(8, 25, 27, 0.72) 0%, rgba(8, 25, 27, 0.55) 48%, rgba(8, 25, 27, 0.28) 100%);
  z-index: 1;
}

.storymap-future-image {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.storymap-future-image img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 100vh;
  object-fit: cover;
}

.storymap-future__inner {
  position: relative;
  z-index: 2;
}

.storymap-future__content {
  align-items: center;
}

.storymap-future .storymap-section__eyebrow,
.storymap-future .storymap-section__title,
.storymap-future .storymap-prose,
.storymap-future .storymap-prose p {
  color: #ffffff;
}

.storymap-future .storymap-prose {
  max-width: 42rem;
}

.storymap-resource-list {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.storymap-resource a {
  color: var(--story-accent);
  font-weight: 700;
  text-decoration: none;
}

.storymap-video-section {
  padding-bottom: 0;
}

.storymap-video-card {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 2rem;
  align-items: center;
  overflow: hidden;
  min-height: 24rem;
  padding: clamp(2rem, 6vw, 5rem);
  border-radius: 2.4rem;
  background:
    linear-gradient(90deg, rgba(6, 25, 27, 0.86) 0%, rgba(6, 25, 27, 0.58) 48%, rgba(6, 25, 27, 0.24) 100%),
    url("../storymaps/koge-bay/video-pumpe-bg.png") center center / cover no-repeat;
  color: #ffffff;
  box-shadow: 0 34px 90px rgba(14, 48, 49, 0.22);
}

.storymap-video-card::after {
  content: "";
  position: absolute;
  inset: auto -8rem -14rem auto;
  width: 32rem;
  height: 32rem;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
}

.storymap-video-card .storymap-section__eyebrow,
.storymap-video-card .storymap-section__title,
.storymap-video-card .storymap-prose,
.storymap-video-card .storymap-prose p {
  color: #ffffff;
}

.storymap-video-card .storymap-prose {
  max-width: 40rem;
  margin-top: 1.3rem;
}

.storymap-video-trigger {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  min-width: 12rem;
  padding: 1rem 1.35rem 1rem 1rem;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  color: #ffffff;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  cursor: pointer;
  backdrop-filter: blur(14px);
  transition: transform 180ms ease, background 180ms ease, border-color 180ms ease;
}

.storymap-video-trigger:hover,
.storymap-video-trigger:focus-visible {
  transform: translateY(-3px);
  border-color: rgba(255, 255, 255, 0.82);
  background: rgba(255, 255, 255, 0.22);
}

.storymap-video-trigger__icon {
  position: relative;
  width: 3rem;
  height: 3rem;
  flex: 0 0 auto;
  border-radius: 999px;
  background: #ffffff;
  box-shadow: 0 16px 30px rgba(6, 25, 26, 0.22);
}

.storymap-video-trigger__icon::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 54%;
  width: 0;
  height: 0;
  border-top: 0.48rem solid transparent;
  border-bottom: 0.48rem solid transparent;
  border-left: 0.72rem solid var(--story-accent);
  transform: translate(-50%, -50%);
}

.storymap-video-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: clamp(1rem, 4vw, 3rem);
}

.storymap-video-modal.is-open {
  display: flex;
}

.storymap-video-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(3, 17, 18, 0.82);
  backdrop-filter: blur(16px);
}

.storymap-video-modal__panel {
  position: relative;
  z-index: 1;
  width: min(72rem, 100%);
  max-height: min(82vh, 48rem);
}

.storymap-video-modal__media {
  display: block;
  width: 100%;
  max-height: min(82vh, 48rem);
  border-radius: 1.6rem;
  background: #06191a;
  box-shadow: 0 36px 90px rgba(0, 0, 0, 0.42);
}

.storymap-video-modal__close {
  position: absolute;
  top: -2rem;
  right: -1rem;
  z-index: 2;
  display: flex;
  width: 50px;
  height: 50px;
  min-width: initial;
  justify-content: center;
  border-left: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 999px;
  background: #ffffff;
  color: var(--story-ink);
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.28);
  align-items: center;
}

@media (max-width: 1024px) {
  .storymap-hero__grid,
  .storymap-overview__grid,
  .storymap-vulnerability__grid,
  .storymap-case-areas__grid,
  .storymap-section__grid,
  .storymap-split {
    grid-template-columns: 1fr;
  }

  .storymap-hero__copy {
    min-height: 0;
    padding-top: 0;
    padding-bottom: 0;
  }

  .storymap-nav {
    top: 0;
  }

  .storymap-overview__map-wrap {
    margin-right: 0;
  }

  .storymap-vulnerability__map-wrap {
    min-height: 32rem;
    margin-right: 0;
  }

  .storymap-case-areas__map-wrap {
    margin-right: 0;
  }

  .storymap-case-areas__copy {
    position: static;
    min-height: 0;
  }

  .storymap-vulnerability-map,
  .storymap-vulnerability-map .gis-climate-map__canvas,
  .storymap-vulnerability__image {
    min-height: 32rem;
  }

  .storymap-overview__map {
    min-height: 22rem;
  }

  .storymap-challenge-hero img {
    min-height: 28rem;
  }

  .storymap-challenge-storyline {
    gap: 0;
    min-height: auto;
    padding-top: 3rem;
  }

  .storymap-challenge-storyline::before {
    left: 1.25rem;
  }

  .storymap-story-card,
  .storymap-story-card--left,
  .storymap-story-card--right {
    width: min(34rem, calc(100% - 2.5rem));
    margin-top: 0;
    margin-left: 2.5rem;
    margin-right: 0;
    transform: translate3d(0, 3rem, 0) rotate(0deg);
  }

  .storymap-story-card--right {
    margin-top: -4rem;
  }

  .storymap-story-card.is-visible,
  .storymap-story-card--left.is-visible,
  .storymap-story-card--right.is-visible {
    transform: translate3d(0, 0, 0) rotate(0deg);
  }

  .storymap-sticky-story,
  .storymap-sticky-story--media-right {
    grid-template-columns: 1fr;
  }

  .storymap-sticky-story__copy {
    position: relative;
    top: auto;
    min-height: 0;
  }

  .storymap-sticky-story--media-right .storymap-sticky-story__copy {
    order: 1;
  }

  .storymap-sticky-story--media-right .storymap-sticky-story__media-list {
    order: 2;
  }

  .storymap-sticky-story__image,
  .storymap-sticky-story__image img {
    min-height: 28rem;
  }

  .storymap-sticky-story__image:nth-child(even) {
    transform: none;
  }
}

@media (max-width: 782px) {
  .storymap-shell {
    padding-bottom: 5rem;
  }

  .storymap-card-grid,
  .storymap-theme-grid,
  .storymap-gallery,
  .storymap-resource-list {
    grid-template-columns: 1fr;
  }

  .storymap-section {
    padding-top: 4rem;
  }

  .storymap-embed,
  .storymap-model {
    min-height: 70vh;
    height: 70vh;
  }

  .storymap-model-shell {
    min-height: 70vh;
  }

  .storymap-video-card {
    grid-template-columns: 1fr;
    min-height: 20rem;
    border-radius: 1.6rem;
  }

  .storymap-video-trigger {
    justify-self: start;
  }

}
