<link href="https://fonts.googleapis.com/css?family=Poppins:300,400,400i,500,600,800&display=swap" rel="stylesheet">

<main class="content">
  <section class="row no-columns text__center section-title">
      <h2>Meet The Team</h2>
      <p>Our team at Carlyle Financial is experienced, hardworking, and dedicated to helping you meet all your financing needs and goals</p>
  </section>
<!--   change column-count depending how many children 
        .column-count-3 (if 3 or 6 or 9 etc)
        .column-count-4 (if 4 or 8 or 12 etc)
        .column-count-x (if neither of the above)
-->
  <section class="row team_profiles column-count-x">
    
    <div class="column profile card">
      <div class="card__inner">
        
        <div class="profile__image">
          <img src="https://source.unsplash.com/900x900/?selfie" alt="">
        </div>
        
        <h4>Kirk Stanton</h4>
        <p class="profile__position">Managing Director</p>
        <p class="profile__details">NNSS: 839784 | DDR: 839874</p>
        
        <ul class="profile__links">
          <li><a href="">•</a></li>
          <li><a href="">•</a></li>
        </ul>
      </div>
    </div>
    
    <div class="column profile card">
      <div class="card__inner">
        
        <div class="profile__image">
          <img src="https://source.unsplash.com/900x900/?selfie,man" alt="">
        </div>
        
        <h4>Kirk Stanton</h4>
        <p class="profile__position">Managing Director</p>
        <p class="profile__details">NNSS: 839784 | DDR: 839874</p>
        
        <ul class="profile__links">
          <li><a href="">•</a></li>
          <li><a href="">•</a></li>
        </ul>
      </div>
    </div>
    
    <div class="column profile card">
      <div class="card__inner">
        
        <div class="profile__image">
          <img src="https://source.unsplash.com/900x900/?selfie,girl" alt="">
        </div>
        
        <h4>Kirk Stanton</h4>
        <p class="profile__position">Managing Director</p>
        <p class="profile__details">NNSS: 839784 | DDR: 839874</p>
        
        <ul class="profile__links">
          <li><a href="">•</a></li>
          <li><a href="">•</a></li>
        </ul>
      </div>
    </div>
    
    <div class="column profile card">
      <div class="card__inner">
        
        <div class="profile__image">
          <img src="https://source.unsplash.com/900x900/?selfie,woman" alt="">
        </div>
        
        <h4>Kirk Stanton</h4>
        <p class="profile__position">Managing Director</p>
        
        <ul class="profile__links">
          <li><a href="">•</a></li>
          <li><a href="">•</a></li>
        </ul>
      </div>
    </div>
    
    <div class="column profile card">
      <div class="card__inner">
        
        <div class="profile__image">
          <img src="https://source.unsplash.com/900x900/?selfie,female" alt="">
        </div>
        
        <h4>Kirk Stanton</h4>
        <p class="profile__position">Managing Director</p>
        
        <ul class="profile__links">
          <li><a href="">•</a></li>
          <li><a href="">•</a></li>
        </ul>
      </div>
    </div>
    
    <div class="column profile card">
      <div class="card__inner">
        
        <div class="profile__image">
          <img src="https://source.unsplash.com/900x900/?selfie,male" alt="">
        </div>
        
        <h4>Kirk Stanton</h4>
        <p class="profile__position">Managing Director</p>
        
        <ul class="profile__links">
          <li><a href="">•</a></li>
          <li><a href="">•</a></li>
        </ul>
      </div>
    </div>
    
    <div class="column profile card">
      <div class="card__inner">
        
        <div class="profile__image">
          <img src="https://source.unsplash.com/900x900/?selfie,boy" alt="">
        </div>
        
        <h4>Kirk Stanton</h4>
        <p class="profile__position">Managing Director</p>
        <p class="profile__details">NNSS: 839784 | DDR: 839874</p>
        
        <ul class="profile__links">
          <li><a href="">•</a></li>
          <li><a href="">•</a></li>
        </ul>
      </div>
    </div>
    
  </section>
</main>
$base-content : #71808f;
$base-gold : #ba996c;
$base-blue : #082344;
$light-grey : #fafafa;

$page-content-width : 1200px;

$base-font-size : 16px;
$base-line-height : 1.8em;
$base-font-weight : 400;

$base-padding : 32px;

main {
  background: $light-grey;
}

* {
  font-family: 'Poppins', sans-serif;
  font-size: $base-font-size;
  line-height: $base-line-height;
  font-weight: $base-font-weight;
  color: $base-content;
  box-sizing: border-box;
}

img {
  width: 100%;
}

h1, h2, h3, h4, h5 {
  font-weight: 600;
  color: $base-blue;
}

h2 {
  font-size: 32px;
  margin: 0;
  margin-bottom: 16px;
}

h3 {
  font-size: 24px;
  margin: 0;
  margin-bottom: 16px;
}

.content {
  padding: 0 $base-padding;
}

.row {
  display: flex;
  max-width: $page-content-width;
  margin: 0 auto;
  padding: $base-padding 0;
  flex-wrap: wrap;
  
  &.no-columns {
    display: block;
  }
  
  .column {
    flex: 1;
    flex-grow: 1;
    flex-basis: 250px;
    padding: 0 $base-padding;
  }
  
  &.reverse {
    flex-direction: row-reverse;
  }
}

.section-title {
  
  h3 {
    
  }
  
  p {
    max-width: 550px;
    margin: 0 auto;
  }
}

.card {
  overflow: hidden;
  border-radius: 32px;
  box-shadow: 0 8px 16px rgba(0,0,0,0.1);
  background: #fff;
  margin: 0 16px;
  margin-bottom: 32px;
  
  &__inner {
    padding: 32px 0px;
  }
}

.text {
  
  &__center {
    text-align: center;
  }
  
  &__left {
    text-align: left;
  }
  
  &__right {
    text-align: right;
  }
}

.team_profiles {
  
  &.column-count-x {
    
    .profile {
      
      &:nth-child(-n+3) {
        flex-basis: 350px;
      }
    }
  }
  
  &.column-count-4 {
    
    .profile {
      flex-basis: 250px;
    }
  }
  
  &.column-count-3 {
    
    .profile {
      flex-basis: 350px;
    }
  }
  
}

.profile {
  text-align: center;
  
  .card__inner {
    display: flex;
    flex-direction: column;
  }
  
  h4 {
    margin: 0;
  }
  
  &__image {
    max-width: 140px;
    overflow: hidden;
    border-radius: 70px;
    margin: 0 auto;
    margin-bottom: 24px;
    
    img {
      display: block;
      width: 100%;
    }
  }
  
  &__position {
    margin: 0;
    font-size: 14px;
    margin-bottom: 8px;
  }
  
  &__details {
    margin: 0;
    font-size: 14px;
  }
  
  //  There is a way to flex this
  //  to the bottom of the container
  //  without manually setting the height
  &__links {
    list-style: none;
    padding-left: 0;
    margin-top: 32px;
    
    li {
      display: inline-block;
    }
  }
}
View Compiled
Run Pen

External CSS

This Pen doesn't use any external CSS resources.

External JavaScript

This Pen doesn't use any external JavaScript resources.