/* Templates page library: section head + the Template gallery (the same cards as on the home page) with a sticky
   filter row. */
.gd-lib{--gd-lib-z-bar:2;padding-top:var(--s-8)}
.gd-lib__head{display:grid;gap:var(--gap-text);max-width:var(--measure);margin:0 0 var(--gap-head)}
.gd-lib__head > *{margin:0}
.gd-lib__head h2{font-size:var(--t-2xl)}
.gd-lib__head h2 strong{font-weight:inherit;color:var(--accent)}
.gd-lib__head p{font-size:var(--t-m);color:var(--ink-2)}
.gd-lib .wp-block-digotech-template-gallery{margin:0}

/* the filter row stays under the floating header while the gallery scrolls */
.gd-lib .hm-templates__bar{position:sticky;top:calc(var(--admin-h) + var(--nav-h) + var(--s-5));z-index:var(--gd-lib-z-bar);margin-bottom:var(--gap-grid);padding-block:var(--s-2);transition:background-color var(--dur) var(--ease-press)}
.gd-lib .hm-templates__bar.is-stuck{background:var(--paper)}

@media (max-width: 767px){
  .gd-lib .hm-templates__bar{position:static;flex-wrap:wrap}
  .gd-lib .hm-templates__hs{flex-basis:100%}
}
