/* Grig SU Subpages (GeneratePress-like Cards) */
.gsp-grid{
  display:grid;
  gap: 1.5em;
  margin: 1.5em 0;
}

/* Column hint for larger screens */
@media (min-width: 900px){
  .gsp-cols-1{grid-template-columns:1fr;}
  .gsp-cols-2{grid-template-columns:repeat(2,1fr);}
  .gsp-cols-3{grid-template-columns:repeat(3,1fr);}
  .gsp-cols-4{grid-template-columns:repeat(4,1fr);}
  .gsp-cols-5{grid-template-columns:repeat(5,1fr);}
  .gsp-cols-6{grid-template-columns:repeat(6,1fr);}
}

/* Responsive fallback */
@media (max-width: 899px){
  .gsp-grid{grid-template-columns:repeat(auto-fit, minmax(240px, 1fr));}
}

/* Card wrapper uses GeneratePress classes; we only add subtle card behavior */
.gsp-card{
  margin: 0;
}

.gsp-card .inside-article{
  height: 100%;
  display: flex;
  flex-direction: column;

  /* Keep it close to GeneratePress but still “card-like” */
  background: var(--base-3, #fff);
  border: 1px solid rgba(0,0,0,.08);
  border-radius: var(--gp-border-radius, 12px);
  overflow: hidden;
  padding: 18px;

  transition: transform .12s ease, box-shadow .12s ease;
  box-shadow: 0 1px 8px rgba(0,0,0,.06);
}

.gsp-card:hover .inside-article{
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(0,0,0,.10);
}

.gsp-media{
  margin: -18px -18px 14px -18px;
  background: rgba(0,0,0,.04);
}

.gsp-media a{
  display:block;
}

.gsp-thumb{
  width: 100%;
  height: auto;
  display: block;
}

/* Title/excerpt spacing that plays nicely with GeneratePress defaults */
.gsp-card .entry-header{
  margin-bottom: .6em;
}

.gsp-card .entry-title{
  margin: 0;
  line-height: 1.25;
  font-size: 1.1em;
}

.gsp-card .entry-summary{
  margin: 0 0 1em 0;
}

.gsp-card .entry-summary p{
  margin: 0;
}

/* Push CTA to the bottom of the card */
.gsp-footer{
  margin-top: auto;
}

/* Button: rely on theme's .button styling; just ensure it doesn't stretch oddly */
.gsp-button{
  display: inline-block;
}
