// ==========================================================================
// OBJECTS | Model List > Cards & Gallery
// ==========================================================================

.list { 
  &--cards {
    .model__list {
      display: flex;
      flex-direction: row;
      flex-wrap: wrap;
      align-items: stretch;
    }

    .model__item {
      width: calc(25% - 20px);
      margin-right: 20px;

      &:nth-child(4n+4) {
        margin-right: 0;
      }
    }
  }

  &--gallery {
    .model__list {
      white-space: nowrap;
      width: 100%;
      overflow-x: auto;
      display: flex;
      flex-direction: row;
    }

    .model__item {
      min-width: 400px;
      max-width: 400px;
      margin-right: 20px;

      &:last-child {
        margin-right: 0;
      }
    }
  }
}
