.mobile-story-carousel {
  display: none;
}

@media (max-width: 640px) {
  .mobile-menu .mm-top {
    padding-left: var(--space-sm);
  }

  #geschichte .g2,
  #geschichte .g2 > .col-center,
  #geschichte .text-box {
    min-width: 0;
    max-width: 100%;
  }

  #geschichte .g2 > .col-center:first-child {
    display: flex;
    opacity: 1;
    transform: none;
    visibility: visible;
  }

  #geschichte .story-title {
    font-size: var(--fs-hero);
    line-height: 1.08;
    max-width: 100%;
    overflow-wrap: normal;
  }

  #geschichte .g2 > .col-center:last-child {
    align-items: stretch;
  }

  #geschichte .text-box {
    width: auto;
    text-align: center;
    overflow: visible;
  }

  #geschichte .text-box p {
    max-width: 100%;
    overflow-wrap: break-word;
  }

  #geschichte .text-box p + .mobile-story-carousel {
    margin-top: clamp(2.25rem, 10vw, 3.5rem);
  }

  #geschichte .mobile-story-carousel + p {
    margin-top: clamp(2rem, 8vw, 3rem);
  }

  #geschichte > .wrap > .g4 {
    display: none;
  }

  #geschichte .text-box .mobile-story-carousel.g4 {
    --mobile-story-card-width: min(72vw, 28rem);
    --mobile-story-side-peek: calc((100vw - var(--mobile-story-card-width)) / 2);
    display: flex !important;
    align-items: stretch;
    justify-content: flex-start;
    gap: clamp(1rem, 4vw, 1.35rem);
    width: 100vw;
    max-width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    padding-left: var(--mobile-story-side-peek);
    padding-right: var(--mobile-story-side-peek);
    overflow-x: auto;
    overflow-y: visible;
    overscroll-behavior-x: contain;
    scroll-padding-left: var(--mobile-story-side-peek);
    scroll-padding-right: var(--mobile-story-side-peek);
    scroll-snap-type: x proximity;
    touch-action: pan-x pan-y pinch-zoom;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  #geschichte .text-box .mobile-story-carousel.g4::-webkit-scrollbar {
    display: none;
  }

  #geschichte .mobile-story-carousel .photo-card {
    position: relative;
    flex: 0 0 var(--mobile-story-card-width);
    max-width: none;
    scroll-snap-align: center;
  }

  #geschichte .mobile-story-carousel .photo-card-img {
    height: min(78.75vw, 336px);
  }

  #geschichte .mobile-story-carousel .photo-card-img::after {
    content: "";
    position: absolute;
    inset: auto 0 0;
    height: 44%;
    background: linear-gradient(to top, rgba(10, 26, 47, .76), rgba(10, 26, 47, 0));
    pointer-events: none;
    z-index: 1;
  }

  #geschichte .mobile-story-carousel .photo-card-bar {
    position: absolute;
    left: clamp(.9rem, 4vw, 1.25rem);
    right: clamp(.9rem, 4vw, 1.25rem);
    bottom: clamp(.9rem, 4vw, 1.25rem);
    z-index: 2;
    padding: 0;
    background: transparent;
  }

  #geschichte .mobile-story-carousel .photo-card-bar h3 {
    display: block;
    min-height: 0;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: var(--color-white);
    font-size: clamp(1.05rem, 4.9vw, 1.28rem);
    letter-spacing: .14em;
    line-height: 1.05;
    text-shadow: 0 3px 18px rgba(10, 26, 47, .74);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
}
