/**
 * =============================================================================
 * FEATURED CONTENT — GRID VARIATION — SHARED STYLES (style.css)
 * =============================================================================
 *
 * Loaded on editor AND front end. Targets .pcg-query--featured-content-grid on
 * core/query (set by pcgVariation via block-attributes.js + extend-core-query.php).
 *
 * LAYOUT:
 *   CSS grid auto-fit for responsive card columns (min 350px per card)
 *   Orange border on linked featured images (on <a>, not <img>, to avoid grayscale conflict)
 */
 .pcg-query--featured-content-grid.wp-block-query:last-child {
  margin-bottom: var(--xlg-gap);
}
.pcg-query--featured-content-grid.wp-block-query ul {
  --min-grid-width:min(100%, 350px);
  display: grid;
  gap: var(--sm-gap);
  grid-template-columns: repeat(auto-fit, minmax(min(var(--min-grid-width)), 1fr));
  width: 100%;
  max-width: 100%;
  align-items: start;
  list-style: none;  
}
.pcg-query--featured-content-grid.wp-block-query ul li {
  max-width: min(100%, 580px);
}
.pcg-query--featured-content-grid.wp-block-query .wp-block-post-featured-image {
  margin:0 0 var(--min-gap);
}
.pcg-query--featured-content-grid.wp-block-query a:has( > img) {
  border:7px solid var(--white);
}
.pcg-query--featured-content-grid.wp-block-query a:hover:has( > img) {
  border-color:var(--orange);
}
.pcg-query--featured-content-grid.wp-block-query .wp-block-post-title {
  padding:0 7px;
}
:where(.wp-child-theme-pc-ex-theme-child-for-pcgalleries-2026) #primary .entry-content .pcg-query--featured-content-grid.wp-block-query {
  font-size:0.8em;
}
:where(.wp-child-theme-pc-ex-theme-child-for-pcgalleries-2026) #primary .entry-content .pcg-query--featured-content-grid.wp-block-query h3.wp-block-post-title {
  font-size:1.5em;
}
