demo/css/flex-and-grid.css
.flex {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  box-sizing: border-box;
  gap: 12px;

  & > .expand {
    flex: 1; /* Child with .expand grows to fill available space */
    box-sizing: border-box;
  }

  & > .no-grow {
    flex: 0 0 auto; /* Child with .no-grow does not grow beyond content */
    box-sizing: border-box;
  }

  &.even {
    flex-wrap: nowrap;
    width: 100%;
    flex-direction: row;

    & > * {
      flex: 1;
      box-sizing: border-box;
    }

    @media (max-width: 768px) {
      flex-direction: row;
      flex-wrap: wrap;
      overflow: hidden;

      & > * {
        flex: 0 0 100%;
        width: 100%;
        box-sizing: border-box;
        max-width: 100%;
      }
    }
  }

  &.top {
    align-items: flex-start;

    & > * {
      flex: 1;
      display: flex;
      flex-direction: column;
      justify-content: space-between;
      box-sizing: border-box;
    }
  }
}

.con {
  max-width: 1100px;
  margin: 0 auto;
}

.con-sm {
  max-width: 950px;
  margin: 0 auto;
}

.con-xs {
  max-width: 800px;
  margin: 0 auto;
}
