/**
 * Equinox Query Loop Block Styles (Team Grid Roster)
 */

/* ==========================================================================
   0. Base Query Loop Wrapper & Responsive Grids
   ========================================================================== */
.equinox-query-loop-wrap {
  width: 100%;
  margin: 32px 0;
  box-sizing: border-box;
}

.equinox-ql-empty {
  padding: 36px 24px;
  background: #f8fafc;
  border: 1px dashed #cbd5e1;
  border-radius: 6px;
  text-align: center;
  color: #64748b;
  font-family: var(--global-base-font-family, 'Montserrat', sans-serif);
}

/* ==========================================================================
   1. Team Grid Roster (.team-grid, .team-card)
   ========================================================================== */
.eq-ql-team-grid {
  display: grid;
  grid-template-columns: repeat(var(--eq-ql-cols, 3), minmax(0, 1fr));
  gap: 32px;
  width: 100%;
}

.eq-ql-team-card {
  background: #ffffff;
  border: 1px solid #DCE6EB;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0, 59, 83, 0.04);
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.22s ease, box-shadow 0.22s ease;
  cursor: pointer;
}

.eq-ql-team-card:hover {
  border-color: #027CA1;
  box-shadow: 0 4px 16px rgba(0, 59, 83, 0.08);
}

.eq-ql-team-media {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: #F0F4F7;
}

.eq-ql-team-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
  display: block;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.eq-ql-team-card:hover .eq-ql-team-photo {
  transform: scale(1.05);
}

/* Placeholder when a team member has no headshot yet */
.eq-ql-placeholder-media {
  width: 100%;
  height: 100%;
  background: #F0F4F7;
  display: flex;
  align-items: center;
  justify-content: center;
}

.eq-ql-placeholder-mark {
  width: 42%;
  height: auto;
  display: block;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), filter 0.4s ease;
}

.eq-ql-team-card:hover .eq-ql-placeholder-mark {
  transform: scale(1.05);
}

.eq-ql-placeholder-initial {
  color: #003B53;
  font-size: 32px;
  font-weight: 700;
}

/* Option "Greyscale Photos, Colour on Hover" (attribute greyHover) */
.eq-ql-grey-hover .eq-ql-team-photo,
.eq-ql-grey-hover .eq-ql-placeholder-mark {
  filter: grayscale(1);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), filter 0.4s ease;
}

.eq-ql-grey-hover .eq-ql-team-card:hover .eq-ql-team-photo,
.eq-ql-grey-hover .eq-ql-team-card:focus-visible .eq-ql-team-photo,
.eq-ql-grey-hover .eq-ql-team-card:hover .eq-ql-placeholder-mark,
.eq-ql-grey-hover .eq-ql-team-card:focus-visible .eq-ql-placeholder-mark {
  filter: grayscale(0);
}

.eq-ql-team-body {
  padding: 22px 24px 26px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.eq-ql-team-name {
  font-family: var(--global-heading-font-family, 'Montserrat', Arial, sans-serif);
  font-size: 20px;
  font-weight: 700;
  color: #003B53;
  margin: 0 0 6px 0;
  line-height: 1.3;
  transition: color 0.18s ease;
}

.eq-ql-team-card:hover .eq-ql-team-name {
  color: #027CA1;
}

.eq-ql-team-title {
  font-family: var(--global-base-font-family, 'Montserrat', Arial, sans-serif);
  font-size: 14px;
  font-weight: 500;
  color: #5D707A;
  margin: 0;
  line-height: 1.45;
}

@media (max-width: 1150px) {
  .eq-ql-team-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 768px) {
  .eq-ql-team-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}
