/* === Walker — Related People: Clean, centered, 350px cards (Flex layout) === */

/* 1) CARD GRID — center everything and allow multiple columns */
.wprp-grid{
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;   /* centers rows when odd count */
  align-items: stretch;
  width: 100%;
  margin-left: auto;
  margin-right: auto;
}

/* 2) CARDS — let them wrap and cap width at 350px */
.wprp-grid > .wprp-card{
  flex: 1 1 300px;          /* grow/shrink; aim for ~300px */
  max-width: 350px;         /* never exceed 350 */
  width: 100%;              /* fill the flex-basis column */
  margin: 0;
}

/* 3) VERTICAL CARD LOOK (image on top) */
.wprp-card{
  background: #fff;
  border: 1px solid #e6e6e6;
  border-radius: 0;         /* flush corners */
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  overflow: hidden;
}

/* 4) IMAGE — full width, centered crop */
.wprp-photo{ margin:0; display:block; }
.wprp-photo img{
  display:block;
  width:100%;
  height:auto;              /* image controls height */
  object-fit: cover;
  object-position: center center;
}

/* (If you still output the legacy overlay) hide it */
.wprp-overlay{ display:none !important; }

/* 5) BODY + CONTACT BUTTONS (stacked, wrap long emails) */
.wprp-body{
  padding: 14px 16px 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
}

.wprp-contact{
  display: grid;
  grid-template-columns: 1fr; /* stack vertically */
  gap: 10px;
  margin-top: 6px;
}

.wprp-cta{
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  padding: 12px 14px;
  min-height: 44px;
  width: 100%;
  border: 1px solid #d9d9d9;
  border-radius: 6px;
  background: #fafafa;
  color: #111;
  text-decoration: none;
  font-size: 0.95rem;
  line-height: 1.3;
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: break-word;
  text-overflow: clip;
  transition: transform .12s ease, background-color .12s ease, border-color .12s ease;
}
.wprp-cta:hover{
  background:#f4f4f4;
  border-color:#cfcfcf;
  transform: translateY(-1px);
}

/* Icon wrapper: fixed, small, never stretches */
.wprp-icon{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  line-height: 0;
}

/* Optional: name/title styles */
.wprp-name{
  font-size: 1.05rem;
  font-weight: 700;
  color: #111;
  letter-spacing: .2px;
  margin: 0;
}
.wprp-title{
  font-size: .95rem;
  font-weight: 500;
  color: #00A5B1;
  margin: 0;
}
