/* Mobil: swipe z hlavní stránky na náhled Aktualit (→ /aktuality) */

@media (max-width: 767.98px) {
  .home-swipe {
    overflow: hidden;
    position: relative;
    margin-bottom: calc(var(--space-2) * 0.7);
  }

  .home-swipe-track {
    display: flex;
    width: 200%;
    transform: translate3d(0, 0, 0);
    transition: transform 0.32s cubic-bezier(0.22, 1, 0.36, 1);
    will-change: transform;
  }

  .home-swipe.is-dragging .home-swipe-track {
    transition: none;
  }

  .home-swipe.home-swipe--navigating .home-swipe-track {
    transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1);
  }

  .home-swipe-pane {
    flex: 0 0 50%;
    width: 50%;
    min-width: 0;
    box-sizing: border-box;
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  .home-swipe-pane--feed {
    touch-action: pan-y pinch-zoom;
  }

  .home-swipe-pane--aktuality {
    touch-action: pan-y pinch-zoom;
    padding-left: var(--space-2);
  }

  .home-swipe-feed-hero {
    margin-bottom: var(--space-3);
  }

  .home-swipe-feed-hero .role-manage-title {
    font-size: 1.25rem;
  }

  .home-swipe-feed-more {
    margin-top: var(--space-3);
    margin-bottom: 0;
  }

  .home-swipe-aktuality-hero {
    margin-bottom: var(--space-3);
  }

  .home-swipe-aktuality-hero .role-manage-title {
    font-size: 1.25rem;
  }

  .home-swipe-aktuality-list-card {
    margin-bottom: 0;
  }

  .home-swipe-aktuality-list .aktualita-list-item {
    margin-bottom: var(--space-2);
  }

  .home-swipe-aktuality-more {
    margin-top: var(--space-3);
    margin-bottom: 0;
  }

  .home-swipe.is-dragging {
    user-select: none;
    -webkit-user-select: none;
  }

  .home-swipe.home-swipe--navigating {
    pointer-events: none;
  }
}

@media (min-width: 768px) {
  .home-swipe:not(.home-swipe--from-aktuality) .home-swipe-pane--aktuality {
    display: none;
  }

  .home-swipe--from-aktuality .home-swipe-track {
    width: 100%;
    transform: none !important;
  }

  .home-swipe--from-aktuality .home-swipe-pane {
    flex: none;
    width: 100%;
  }

  .home-swipe--from-aktuality .home-swipe-pane--feed {
    display: none;
  }
}
