<main>
  <aside>side bar goes here</aside>
  <div id="grid">
    <div class="cell wide">
      <div class="card">
        <div class="img">
          <img src="http://placekitten.com/400/300" alt="cat">
        </div>
        <div class="content">
          <h2 class="title">Mr. Jeffifers</h2>
        </div>
      </div>
    </div>
    <div class="cell">
      <div class="card">
        <div class="img">
          <img src="http://placekitten.com/300/500" alt="cat">
        </div>
        <div class="content">
          <h2 class="title">Prof. Meowmers</h2>
        </div>
      </div>
    </div>
  </div>
</main>
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  margin: 2rem;
}

img {
  max-width: 100%;
  height: auto;
}

main {
  display: grid;
  grid-template-columns: 200px 1fr;
}

#grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3vw;
}

.cell {
  container: inline-size;
}

.wide {
  grid-column: span 2;
}

.card {
  border: 1px solid #ccc;
  border-radius: 8px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 100%;

  @container size(min-width: 400px) {
    flex-direction: row;
    align-items: center;
    .img {
      flex-basis: 50%;
    }
  }

  .img {
    height: 100%;
    img {
      aspect-ratio: 1/1;
      height: 100%;
      object-fit: cover;
    }
  }

  .content {
    padding: 1rem;
  }

  .title {
    font-size: clamp(1rem, 1rem + 1qi, 2rem);
  }
}
View Compiled

External CSS

This Pen doesn't use any external CSS resources.

External JavaScript

This Pen doesn't use any external JavaScript resources.