/* Six-card Journal listing: two equal columns, each card revealing as one item. */
body.page-id-1219 .sos-journal-grid {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 0 !important;
}

html body.page-id-1219 .sos-journal-grid.sos-journal-grid > .sos-story.sos-story:nth-child(1) { transition-delay: 0ms !important; }
html body.page-id-1219 .sos-journal-grid.sos-journal-grid > .sos-story.sos-story:nth-child(2) { transition-delay: 100ms !important; }
html body.page-id-1219 .sos-journal-grid.sos-journal-grid > .sos-story.sos-story:nth-child(3) { transition-delay: 200ms !important; }
html body.page-id-1219 .sos-journal-grid.sos-journal-grid > .sos-story.sos-story:nth-child(4) { transition-delay: 300ms !important; }
html body.page-id-1219 .sos-journal-grid.sos-journal-grid > .sos-story.sos-story:nth-child(5) { transition-delay: 400ms !important; }
html body.page-id-1219 .sos-journal-grid.sos-journal-grid > .sos-story.sos-story:nth-child(6) { transition-delay: 500ms !important; }

body.page-id-1219 .sos-journal-grid > .sos-story h3 {
  max-width: 18ch !important;
}

/*
 * Directional background movement needs a small amount of image overscan.
 * Eight per cent covers the existing 22–26px movement range without changing
 * the Elementor-selected image or its focal position.
 */
html body :is(.sos-parallax-bg, .sos-about--image, .sos-library-feature, .sos-contact-hero, .sos-hero),
html body.page-id-1040 .sos-hero {
  background-size: 108% auto !important;
  background-repeat: no-repeat !important;
}

@media (max-width: 1024px) {
  html body :is(.sos-parallax-bg, .sos-about--image, .sos-library-feature, .sos-contact-hero, .sos-hero),
  html body.page-id-1040 .sos-hero {
    background-size: auto 108% !important;
  }
}

@media (max-width: 820px) {
  body.page-id-1219 .sos-journal-grid {
    grid-template-columns: minmax(0, 1fr) !important;
  }
  html body.page-id-1219 .sos-journal-grid.sos-journal-grid > .sos-story.sos-story:nth-child(n) {
    transition-delay: 0ms !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  html body.page-id-1219 .sos-journal-grid.sos-journal-grid > .sos-story.sos-story:nth-child(n) {
    transition-delay: 0ms !important;
  }
}
