.team-showcase {
  padding: 5rem 1.5rem;
  background: var(--wp--preset--color--background);
}
.team-showcase__inner {
  max-width: var(--wp--style--global--content-size, 1152px);
  margin-inline: auto;
}
.team-showcase__banner {
  position: relative;
  overflow: hidden;
  margin-bottom: 3.5rem;
  border-radius: var(--wp--custom--radius--xl);
  border-bottom: 3px solid var(--wp--preset--color--primary);
}
.team-showcase__banner-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 80%;
}
.team-showcase__banner-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, #2D2F31 45%, rgba(45, 47, 49, 0.7) 70%, rgba(45, 47, 49, 0.3) 100%);
}
.team-showcase__banner-content {
  position: relative;
  max-width: 28rem;
  padding: 2.5rem;
}
.team-showcase__banner-heading {
  margin: 0 0 1rem;
  color: var(--wp--preset--color--white);
  font-weight: 700;
  text-transform: uppercase;
  line-height: 1.25;
  font-size: var(--wp--preset--font-size--2-xl);
}
@media (min-width: 768px) {
  .team-showcase__banner-heading {
    font-size: var(--wp--preset--font-size--3-xl);
  }
}
.team-showcase__banner-description {
  margin: 0;
  color: color-mix(in srgb, var(--wp--preset--color--white) 70%, transparent);
  line-height: 1.625;
  font-size: var(--wp--preset--font-size--sm);
}
.team-showcase__selector {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  padding-bottom: 1rem;
  margin-bottom: 2rem;
  scrollbar-width: none;
  cursor: grab;
}
.team-showcase__selector::-webkit-scrollbar {
  display: none;
}
.team-showcase__selector.is-dragging {
  cursor: grabbing;
  user-select: none;
}

.team-thumb {
  flex-shrink: 0;
  width: 110px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  text-align: center;
  background: transparent;
  border: none;
}
.team-thumb__media {
  position: relative;
  width: 100%;
  height: 130px;
  overflow: hidden;
  border-radius: var(--wp--custom--radius--xl);
  outline: 2px solid transparent;
  outline-offset: 2px;
  transition: outline-color var(--wp--custom--transition--fast);
}
.team-thumb.is-active .team-thumb__media {
  outline-color: var(--wp--preset--color--primary);
}
.team-thumb__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  transition: transform var(--wp--custom--transition--slow);
  -webkit-user-drag: none;
  user-select: none;
}
.team-thumb:hover .team-thumb__image {
  transform: scale(1.05);
}
.team-thumb__scrim {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.2);
  transition: background-color var(--wp--custom--transition--fast);
}
.team-thumb.is-active .team-thumb__scrim, .team-thumb:hover .team-thumb__scrim {
  background: transparent;
}
.team-thumb__name {
  color: var(--wp--preset--color--muted-foreground);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: var(--wp--custom--tracking--wide);
  line-height: 1.25;
  font-size: var(--wp--preset--font-size--xs);
  transition: color var(--wp--custom--transition--fast);
}
.team-thumb:hover .team-thumb__name {
  color: var(--wp--preset--color--foreground);
}
.team-thumb.is-active .team-thumb__name {
  color: var(--wp--preset--color--primary);
}

.team-panel {
  display: none;
  grid-template-columns: 1fr;
  overflow: hidden;
  border-radius: var(--wp--custom--radius--xl);
  border: 1px solid var(--wp--preset--color--border);
}
@media (min-width: 768px) {
  .team-panel {
    grid-template-columns: repeat(2, 1fr);
  }
}
.team-panel.is-active {
  display: grid;
}
.team-panel__media {
  position: relative;
  min-height: 320px;
  overflow: hidden;
}
@media (min-width: 768px) {
  .team-panel__media {
    min-height: 560px;
  }
}
.team-panel__image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
}
.team-panel__body {
  padding: 2.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: var(--wp--preset--color--card);
}
.team-panel__accent {
  display: block;
  width: 2rem;
  height: 2px;
  margin-bottom: 1rem;
  background: var(--wp--preset--color--primary);
}
.team-panel__name {
  margin: 0 0 0.25rem;
  color: var(--wp--preset--color--foreground);
  font-weight: 700;
  text-transform: uppercase;
  font-size: var(--wp--preset--font-size--xl);
}
.team-panel__role {
  margin: 0 0 1.5rem;
  color: var(--wp--preset--color--primary);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: var(--wp--custom--tracking--widest);
  font-size: var(--wp--preset--font-size--xs);
}
.team-panel__paragraph {
  margin: 0 0 1rem;
  color: var(--wp--preset--color--muted-foreground);
  line-height: 1.625;
  font-size: var(--wp--preset--font-size--sm);
}
.team-panel__paragraph:last-child {
  margin-bottom: 0;
}
