/* Pop It Here v8.15.1 — Recipe library visual restoration.
   The library stays browse-first, but food photography leads each card again. */
body.pih-recipes-page.recipe-library-only .recipe-library-page{
  width:min(1520px,calc(100% - 56px))!important;
  max-width:1520px!important;
}
body.pih-recipes-page.recipe-library-only .recipe-library-grid{
  display:grid!important;
  grid-template-columns:repeat(4,minmax(0,1fr))!important;
  gap:30px 24px!important;
  align-items:start!important;
}
body.pih-recipes-page.recipe-library-only .recipe-library-grid .recipe-card{
  display:flex!important;
  flex-direction:column!important;
  align-items:stretch!important;
  gap:0!important;
  width:100%!important;
  min-width:0!important;
  padding:0!important;
  border:0!important;
  border-radius:20px!important;
  background:transparent!important;
  box-shadow:none!important;
  overflow:visible!important;
  text-decoration:none!important;
}
body.pih-recipes-page.recipe-library-only .recipe-library-grid .recipe-card .thumb,
body.pih-recipes-page.recipe-library-only .recipe-library-grid .recipe-card img.thumb{
  display:block!important;
  width:100%!important;
  max-width:none!important;
  min-width:0!important;
  height:auto!important;
  aspect-ratio:4/3!important;
  object-fit:cover!important;
  border:0!important;
  border-radius:20px!important;
  background:#ece8df!important;
  box-shadow:0 10px 26px rgba(17,36,58,.10)!important;
  transition:transform .18s ease,box-shadow .18s ease!important;
}
body.pih-recipes-page.recipe-library-only .recipe-library-grid .recipe-card:hover .thumb{
  transform:translateY(-3px) scale(1.006)!important;
  box-shadow:0 16px 34px rgba(17,36,58,.15)!important;
}
body.pih-recipes-page.recipe-library-only .recipe-library-grid .recipe-card-copy{
  display:grid!important;
  gap:6px!important;
  min-width:0!important;
  padding:12px 4px 0!important;
}
body.pih-recipes-page.recipe-library-only .recipe-library-grid .recipe-title{
  font-family:var(--pop-display,"Fredoka","Poppins",system-ui,sans-serif)!important;
  font-size:1.05rem!important;
  line-height:1.16!important;
  min-height:2.32em!important;
  -webkit-line-clamp:2!important;
}
body.pih-recipes-page.recipe-library-only .recipe-library-grid .recipe-meta{
  font-size:.82rem!important;
  line-height:1.3!important;
  white-space:normal!important;
}
body.pih-recipes-page.recipe-library-only .recipe-library-grid .rating-small{
  margin-top:0!important;
}

@media(max-width:1249px){
  body.pih-recipes-page.recipe-library-only .recipe-library-page{
    width:min(1180px,calc(100% - 40px))!important;
  }
  body.pih-recipes-page.recipe-library-only .recipe-library-grid{
    grid-template-columns:repeat(3,minmax(0,1fr))!important;
    gap:26px 20px!important;
  }
}
@media(max-width:820px){
  body.pih-recipes-page.recipe-library-only .recipe-library-page{
    width:100%!important;
    padding:18px 14px 92px!important;
  }
  body.pih-recipes-page.recipe-library-only .recipe-library-grid{
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
    gap:20px 12px!important;
  }
  body.pih-recipes-page.recipe-library-only .recipe-library-grid .recipe-card .thumb,
  body.pih-recipes-page.recipe-library-only .recipe-library-grid .recipe-card img.thumb{
    border-radius:16px!important;
  }
  body.pih-recipes-page.recipe-library-only .recipe-library-grid .recipe-card-copy{
    padding:9px 2px 0!important;
  }
  body.pih-recipes-page.recipe-library-only .recipe-library-grid .recipe-title{
    font-size:.94rem!important;
    min-height:2.32em!important;
  }
}
@media(max-width:380px){
  body.pih-recipes-page.recipe-library-only .recipe-library-grid{
    gap:18px 9px!important;
  }
  body.pih-recipes-page.recipe-library-only .recipe-library-grid .recipe-title{
    font-size:.88rem!important;
  }
}
