/* Keep the original story cards while giving the row native horizontal movement. */
.story-grid.stories-carousel {
  position: relative;
  display: flex;
  gap: 26px;
  overflow-x: auto;
  overflow-y: hidden;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: 0;
  scrollbar-width: thin;
  scrollbar-color: #8da890 transparent;
  padding-bottom: 18px;
  touch-action: pan-x pan-y pinch-zoom;
  cursor: grab;
}
.story-grid.stories-carousel > .story {
  flex: 0 0 calc((100% - 52px) / 3);
  min-width: 0;
  scroll-snap-align: start;
}
.story-grid.stories-carousel.is-dragging {
  scroll-snap-type: none;
  scroll-behavior: auto;
  cursor: grabbing;
  user-select: none;
}
.story-grid.stories-carousel.is-dragging a { cursor: grabbing; }
.stories-carousel img { -webkit-user-drag: none; }
.stories-controls {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 14px 20px;
  margin-top: 20px;
}
.stories-navigation { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.stories-control {
  min-height: 44px;
  padding: 10px 17px;
  border: 1px solid var(--forest, #244339);
  border-radius: 7px;
  color: var(--forest, #244339);
  background: transparent;
  font: 600 15px/1.2 var(--body, sans-serif);
  cursor: pointer;
}
.stories-control:hover:not(:disabled) { background: var(--mint, #e9f1e7); }
.stories-control:disabled { opacity: .5; cursor: default; }
.stories-counter { margin-inline: 4px; font-size: 14px; color: var(--muted, #56695e); }
.stories-autoplay { background: var(--forest, #244339); color: var(--paper, #fafcf7); }
.stories-autoplay:hover:not(:disabled) { background: #36594b; }
@media (max-width: 800px) {
  .story-grid.stories-carousel { gap: 20px; }
  .story-grid.stories-carousel > .story { flex-basis: calc((100% - 40px) / 3); }
}
@media (max-width: 650px) {
  .story-grid.stories-carousel {
    gap: 22px;
    margin-inline: -24px;
    padding: 0 24px 20px;
    scroll-padding-inline: 24px;
  }
  .story-grid.stories-carousel > .story { flex-basis: 86%; }
  .stories-control { padding-inline: 15px; }
}
@media (prefers-reduced-motion: reduce) {
  .story-grid.stories-carousel { scroll-behavior: auto; }
}
