/* v2.15.1 — surgical layout fixes for The Continuity Murders integration */

/* Homepage: six collection cards must form a clean 3 + 3 grid on desktop. */
@media (min-width:761px){
  .home-collections-panel .collection-card:nth-child(4),
  .home-collections-panel .collection-card:nth-child(5),
  .home-collections-panel .collection-card:nth-child(6){
    grid-column:span 2;
    width:100%;
    justify-self:stretch;
  }
}

/* Tablet: with six items, keep an even 2 + 2 + 2 grid instead of centering item five. */
@media (min-width:461px) and (max-width:760px){
  .home-collections-panel .collection-card:nth-child(5){
    grid-column:auto;
    width:100%;
    justify-self:stretch;
  }
}

/* Collections catalogue: the seventh collection remains the same card width as the other
   horizontal catalogue cards instead of stretching across the full row. */
.editorial-v2114 .continuity-catalogue-row{
  grid-template-columns:repeat(3,minmax(0,1fr));
}
@media(max-width:880px){
  .editorial-v2114 .continuity-catalogue-row{grid-template-columns:1fr;}
}
