/*
 * Animate items in one row in a sequence instead of showing simultaneously
 * https://github.com/michalsnik/aos/issues/452
 */

@media (min-width: 768px) {
  .col-sm-3.aos-item:nth-child(4n - 0).aos-animate { transition-delay: 0.6s !important; }
  .col-sm-3.aos-item:nth-child(4n - 1).aos-animate { transition-delay: 0.4s !important; }
  .col-sm-3.aos-item:nth-child(4n - 2).aos-animate { transition-delay: 0.2s !important; }
  .col-sm-3.aos-item:nth-child(4n - 3).aos-animate { transition-delay: 0s !important; }

  .col-sm-4.aos-item:nth-child(3n - 0).aos-animate { transition-delay: 0.6s !important; }
  .col-sm-4.aos-item:nth-child(3n - 1).aos-animate { transition-delay: 0.4s !important; }
  .col-sm-4.aos-item:nth-child(3n - 2).aos-animate { transition-delay: 0.2s !important; }

  .col-sm-6.aos-item:nth-child(2n - 0).aos-animate { transition-delay: 0.6s !important; }
  .col-sm-6.aos-item:nth-child(2n - 1).aos-animate { transition-delay: 0.4s !important; }
}

@media (min-width: 992px) {
  .col-md-3.aos-item:nth-child(4n - 0).aos-animate { transition-delay: 0.6s !important; }
  .col-md-3.aos-item:nth-child(4n - 1).aos-animate { transition-delay: 0.4s !important; }
  .col-md-3.aos-item:nth-child(4n - 2).aos-animate { transition-delay: 0.2s !important; }
  .col-md-3.aos-item:nth-child(4n - 3).aos-animate { transition-delay: 0s !important; }

  .col-md-4.aos-item:nth-child(3n - 0).aos-animate { transition-delay: 0.6s !important; }
  .col-md-4.aos-item:nth-child(3n - 1).aos-animate { transition-delay: 0.4s !important; }
  .col-md-4.aos-item:nth-child(3n - 2).aos-animate { transition-delay: 0.2s !important; }

  .col-md-6.aos-item:nth-child(2n - 0).aos-animate { transition-delay: 0.6s !important; }
  .col-md-6.aos-item:nth-child(2n - 1).aos-animate { transition-delay: 0.4s !important; }
}

@media (min-width: 1200px) {
  .col-lg-3.aos-item:nth-child(4n - 0).aos-animate { transition-delay: 0.6s !important; }
  .col-lg-3.aos-item:nth-child(4n - 1).aos-animate { transition-delay: 0.4s !important; }
  .col-lg-3.aos-item:nth-child(4n - 2).aos-animate { transition-delay: 0.2s !important; }
  .col-lg-3.aos-item:nth-child(4n - 3).aos-animate { transition-delay: 0s !important; }

  .col-lg-4.aos-item:nth-child(3n - 0).aos-animate { transition-delay: 0.6s !important; }
  .col-lg-4.aos-item:nth-child(3n - 1).aos-animate { transition-delay: 0.4s !important; }
  .col-lg-4.aos-item:nth-child(3n - 2).aos-animate { transition-delay: 0.2s !important; }

  .col-lg-6.aos-item:nth-child(2n - 0).aos-animate { transition-delay: 0.6s !important; }
  .col-lg-6.aos-item:nth-child(2n - 1).aos-animate { transition-delay: 0.4s !important; }
}
