<div class="wrapper">
  <header class="header">Youtube</header>
  
   <aside class="sidebar">Sidebar</aside>
    
  <article class="content">
    
     <div class="panel">
      <img class="panel-img" src="https://placeholdit.co//i/200x150?&text=VIDEO">
      <span class="panel-title">Lorem ipsum dolor sit amet, consectetur..</span>
       <br>
      <span class="panel-subtitle">346,112 views</span>
    </div>
    
    <div class="panel">
      <img class="panel-img" src="https://placeholdit.co//i/200x150?&text=VIDEO">
      <span class="panel-title">Lorem ipsum dolor sit amet, consectetur..</span>
       <br>
      <span class="panel-subtitle">346,112 views</span>
    </div>
    
     <div class="panel">
      <img class="panel-img" src="https://placeholdit.co//i/200x150?&text=VIDEO">
      <span class="panel-title">Lorem ipsum dolor sit amet, consectetur..</span>
       <br>
      <span class="panel-subtitle">346,112 views</span>
    </div>
    
     <div class="panel">
      <img class="panel-img" src="https://placeholdit.co//i/200x150?&text=VIDEO">
      <span class="panel-title">Lorem ipsum dolor sit amet, consectetur..</span>
       <br>
      <span class="panel-subtitle">346,112 views</span>
    </div>
    
     <div class="panel">
      <img class="panel-img" src="https://placeholdit.co//i/200x150?&text=VIDEO">
      <span class="panel-title">Lorem ipsum dolor sit amet, consectetur..</span>
       <br>
      <span class="panel-subtitle">346,112 views</span>
    </div>
    
     <div class="panel">
      <img class="panel-img" src="https://placeholdit.co//i/200x150?&text=VIDEO">
      <span class="panel-title">Lorem ipsum dolor sit amet, consectetur..</span>
       <br>
      <span class="panel-subtitle">346,112 views</span>
    </div>
    
    
    <div class="panel">
      <img class="panel-img" src="https://placeholdit.co//i/200x150?&text=VIDEO">
      <span class="panel-title">Lorem ipsum dolor sit amet, consectetur..</span>
       <br>
      <span class="panel-subtitle">346,112 views</span>
    </div>
    
    <div class="panel">
      <img class="panel-img" src="https://placeholdit.co//i/200x150?&text=VIDEO">
      <span class="panel-title">Lorem ipsum dolor sit amet, consectetur..</span>
       <br>
      <span class="panel-subtitle">346,112 views</span>
    </div>
    
     <div class="panel">
      <img class="panel-img" src="https://placeholdit.co//i/200x150?&text=VIDEO">
      <span class="panel-title">Lorem ipsum dolor sit amet, consectetur..</span>
       <br>
      <span class="panel-subtitle">346,112 views</span>
    </div>
    
     <div class="panel">
      <img class="panel-img" src="https://placeholdit.co//i/200x150?&text=VIDEO">
      <span class="panel-title">Lorem ipsum dolor sit amet, consectetur..</span>
       <br>
      <span class="panel-subtitle">346,112 views</span>
    </div>
    
     <div class="panel">
      <img class="panel-img" src="https://placeholdit.co//i/200x150?&text=VIDEO">
      <span class="panel-title">Lorem ipsum dolor sit amet, consectetur..</span>
       <br>
      <span class="panel-subtitle">346,112 views</span>
    </div>
    
     <div class="panel">
      <img class="panel-img" src="https://placeholdit.co//i/200x150?&text=VIDEO">
      <span class="panel-title">Lorem ipsum dolor sit amet, consectetur..</span>
       <br>
      <span class="panel-subtitle">346,112 views</span>
    </div>
   
  </article>
    
</div>
*, *:before, *:after {
  box-sizing: border-box;
}

body {
  font-family: Courier, 'sans-serif';
  background-color: #fff;
  color: #444;
}

h1, p {
  margin: 0 0 1em 0;
}


.wrapper {
  margin: 0 auto;
  display: grid;
  grid-template-columns: 15% 85%;
  grid-gap: 16px;
}

.wrapper > * {
  background-color: #fafafa;
  color: #242424;
  border-radius: 5px;
  font-size: 16px;
  margin-bottom: 10px;
}

.header {
  padding: 24px;
}

.header, .footer {
  grid-column: 1 / -1;
  clear: both;
}

.content {
  padding-right: 40px;
  padding-left: 40px;
  display: grid;
  margin: 0 auto;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  grid-auto-rows: minmax(150px, auto);
  grid-gap: 8px;
}

.panel {
  margin-left: 5px;
  margin-right: 5px;
}

.panel-img {
  width: 100%;
  height: 80%;
}

.panel-title {
  font-size: 14px;
}

.panel-subtitle {
  font-size: 12px;
  color: #8888888;
}

@media (max-width: 1200px) {
  .wrapper {
    grid-template-columns: 2fr;
  }
  
  .sidebar {
    display: none;
  } 
  
  .content {
    width: 100%;
    grid-template-columns: repeat(auto-fill, minmax(200px, 2fr));
    grid-auto-rows: minmax(150px, auto);
  }
}

@media (max-width: 768px) {
  .content {
    padding-right: 48px;
    padding-left: 48px;
    width: 100%;
    grid-template-columns: repeat(3, minmax(200px, 3fr));
    grid-auto-rows: minmax(150px, auto);
  }
}

@media (max-width: 700px) {
  .content {
    padding-right: 116px;
    padding-left: 116px;
    width: 100%;
    grid-template-columns: repeat(2, minmax(200px, 2fr));
    grid-auto-rows: minmax(150px, auto);
  }
}

@supports (display: grid) {
  .wrapper > * {
    width: auto;
    margin: 0;
  }
}

External CSS

This Pen doesn't use any external CSS resources.

External JavaScript

This Pen doesn't use any external JavaScript resources.