/* Clips page only. The clip cards, play button and lazy YouTube swap are the
   shared .clip rules in site.css and clips.js; this file lays them out as
   grouped grids. */
.page-head{padding-top:clamp(28px,5vw,60px);padding-bottom:clamp(8px,2vw,16px)}
.page-head h1{font-size:var(--fs-h1)}
.clips-follow{margin:16px 0 0;color:var(--muted)}
.clips-follow a{color:var(--blue);font-weight:600}

.clips-page{padding-bottom:var(--space-section)}
.clip-group{margin-top:var(--space-sub)}
.clip-group h2{
  font-stretch:125%;font-weight:900;font-size:var(--fs-h2);
  line-height:.92;margin:0 0 16px;padding-bottom:12px;border-bottom:2px solid var(--ink);
}

/* On the home page .clips is three across and becomes a swipe row on
   phones. Here every clip should be visible at once, so it stays a grid:
   four across, three on tablets, two on phones. */
.clips.clips-grid{grid-template-columns:repeat(4,minmax(0,1fr))}
@media (max-width:900px){
  .clips.clips-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
}
@media (max-width:700px){
  .clips.clips-grid{
    display:grid;grid-template-columns:repeat(2,minmax(0,1fr));
    overflow:visible;scroll-snap-type:none;
    margin-inline:0;padding-inline:0;gap:12px;
  }
  .clips.clips-grid > li{flex:none}
  .clips-grid .clip-btn{border-radius:14px}
  .clips-grid .clip figcaption{font-size:var(--fs-small)}
}
