/* Keep the entire photo inside the mobile gallery while it is visible. */
@keyframes location-image-stream-contained {
  0%, 43.75% {
    opacity: 0;
    filter: blur(6px);
    transform: translate3d(calc(44cqw - 100%), -50%, 0);
  }
  45% {
    opacity: 0.98;
    filter: none;
  }
  55% {
    opacity: 0.98;
    filter: none;
  }
  56.25%, 100% {
    opacity: 0;
    filter: blur(6px);
    transform: translate3d(-44cqw, -50%, 0);
  }
}

@media (max-width: 980px) {
  #standorte .locations-gallery-picture-church > img,
  #standorte .locations-gallery-picture-church > img.is-active {
    height: auto;
    aspect-ratio: auto;
    object-fit: contain;
  }
}

@media (max-width: 980px) and (prefers-reduced-motion: no-preference) {
  #standorte .locations-gallery-picture:not(.locations-gallery-picture-church) > .locations-gallery-image,
  #standorte .locations-gallery-picture-church {
    animation-name: location-image-stream-contained;
    animation-duration: 80s;
    animation-timing-function: linear;
  }

  #standorte .locations-gallery-picture-church > .locations-gallery-image,
  #standorte .locations-gallery-picture-church > .locations-gallery-image.is-active {
    animation: none;
  }
}
