/*
Theme Name: DoIT Communications child theme
Text Domain: doit-communications-child-theme
Template: uw-theme-gutenberg
Theme URI: https://it.wisc.edu
Version: 0.5.1
*/

/* FacetWP Grid *//* FacetWP results as a responsive, stretching grid */
/* === FacetWP "services" listing: equal-height cards === */
/* === FacetWP "services" listing — equal height only; no column changes === */
/* Scope to this listing by data-name so nothing else is affected */
.facetwp-template[data-name="services"] .fwpl-result,
.facetwp-template[data-name="services"] .fwpl-row,
.facetwp-template[data-name="services"] .fwpl-col,
.facetwp-template[data-name="services"] .fwpl-item {
  display: flex;            /* let each wrapper stretch its child */
  align-items: stretch;
  /* no width/column changes here */
}

/* The card fills the available height and stacks its contents vertically */
.facetwp-template[data-name="services"] .fwpl-item > .fwp-card {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;           /* fill the column’s height */
  min-height: 100%;         /* guard against odd min-height constraints */
  background: #ffffff;
  border-radius: .5rem;
  overflow: hidden;
  box-shadow: 0 1px 2px rgba(0,0,0,.06), 0 4px 12px rgba(0,0,0,.05);
}

/* Inner layout: let content absorb vertical space so cards equalize cleanly */
.facetwp-template[data-name="services"] .fwp-card-inner {
  padding: 1rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: .5rem;
  flex: 1;
}

/* Images shouldn't distort the height math */
.facetwp-template[data-name="services"] .fwp-card img {
  max-width: 100%;
  height: auto;
  display: block;
}