/* Flex layout: 3 per row desktop, 2 per row tablet & mobile, 20px gap */
.acfmg-grid{
  display:flex;
  flex-wrap:wrap;
  gap:20px;
  box-sizing:border-box;
}

.acfmg-card{
  flex: 0 0 calc((100% - 40px) / 3);
  box-sizing:border-box;
  background:#fff;
  border:none;
  border-radius:0;
  padding:0;
  text-align:right;
  box-shadow:none;
}

@media (max-width: 1024px){
  .acfmg-card{
    flex: 0 0 calc((100% - 20px) / 2);
  }
}

/* Mobile: also 2 per row */
@media (max-width: 767px){
  .acfmg-card{
    flex: 0 0 calc((100% - 20px) / 2);
  }
}

/* Photo styling */
.acfmg-photo-wrap{
  position:relative;
  width:100%;
  height:150px;
  margin:0 0 8px 0;
  border-radius:0;
  overflow:hidden;
}
.acfmg-photo{
  width:100%;
  height:100%;
  object-fit:cover;
  object-position:50% 0%;
  display:block;
  border-radius:0;
}

/* LinkedIn icon: white only, no hover color */
.acfmg-linkedin-icon{
  position:absolute;
  top:8px;
  left:8px;
  width:22px;
  height:22px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  color:#fff;
  text-decoration:none;
  filter: drop-shadow(0 1px 2px rgba(0,0,0,0.6));
}
.acfmg-linkedin-icon svg{
  width:18px;
  height:18px;
  display:block;
}
.acfmg-linkedin-icon:hover,
.acfmg-linkedin-icon:focus{
  color:#fff;
}

/* Typography */
.acfmg-name{
  margin:0;
  font-size:0.95rem;
  font-weight:700;
  text-align:right;
}
.acfmg-title{
  margin-top:4px;
  margin-bottom:0;
  font-size:0.85rem;
  color:#666;
  text-align:right;
}
