/* Team carousel – shortcode [team_carousel] */

.tc-section {
  background: none;
  padding: 24px 0;
  overflow: visible;
}

.tc-carousel {
  width: 100%;
}

.tc-viewport {
  position: relative;
  width: 100%;
  overflow: visible;
  padding: 8px 0;
  box-sizing: border-box;
  -webkit-mask-image: linear-gradient(
    to right,
    transparent,
    #000 48px,
    #000 calc(100% - 48px),
    transparent
  );
  mask-image: linear-gradient(
    to right,
    transparent,
    #000 48px,
    #000 calc(100% - 48px),
    transparent
  );
}

@media (min-width: 768px) {
  .tc-viewport {
    -webkit-mask-image: linear-gradient(
      to right,
      transparent,
      #000 128px,
      #000 calc(100% - 128px),
      transparent
    );
    mask-image: linear-gradient(
      to right,
      transparent,
      #000 128px,
      #000 calc(100% - 128px),
      transparent
    );
  }
}

.tc-track {
  display: flex;
  align-items: stretch;
  width: max-content;
  padding: 12px 0;
  box-sizing: border-box;
  animation: tc-scroll 70s linear infinite;
  will-change: transform;
}

.tc-section--nav .tc-track {
  animation: none;
}

.tc-section:not(.tc-section--nav):hover .tc-track {
  animation-play-state: paused;
}

@keyframes tc-scroll {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-50%);
  }
}

.tc-item {
  position: relative;
  z-index: 1;
  flex: 0 0 auto;
  display: flex;
  align-items: stretch;
  width: 288px;
  padding: 0 8px;
  box-sizing: border-box;
}

.tc-item:has(.tc-card:hover) {
  z-index: 3;
}

@media (min-width: 768px) {
  .tc-item {
    width: 384px;
    padding: 0 12px;
  }
}

.tc-card {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(35, 30, 26, 0.06);
  transition: transform 0.5s ease, box-shadow 0.5s ease;
  will-change: transform;
}

.tc-card:hover {
  z-index: 2;
  transform: translateY(-12px);
  box-shadow: 0 20px 48px rgba(35, 30, 26, 0.14);
}

.tc-photo {
  aspect-ratio: 1 / 1;
  overflow: hidden;
}

.tc-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
  display: block;
}

.tc-card:hover .tc-photo img {
  transform: scale(1.05);
}

.tc-info {
  display: flex;
  flex-direction: column;
  justify-content: center;
  flex: 1 0 auto;
  min-height: 7.75rem;
  padding: 16px;
  text-align: center;
}

@media (min-width: 768px) {
  .tc-info {
    min-height: 9.5rem;
    padding: 24px;
  }
}

.tc-info h3 {
  font-family: 'Raleway', sans-serif;
  font-weight: 700;
  color: #231e1a;
  font-size: 18px;
  line-height: 1.25;
  margin: 0 0 4px;
  min-height: calc(18px * 1.25 * 2);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.tc-info p {
  color: #8b7355;
  font-weight: 500;
  font-size: 14px;
  line-height: 1.4;
  margin: 0;
  min-height: calc(14px * 1.4 * 2);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

@media (min-width: 768px) {
  .tc-info h3 {
    font-size: 20px;
    min-height: calc(20px * 1.25 * 2);
  }

  .tc-info p {
    font-size: 16px;
    min-height: calc(16px * 1.4 * 2);
  }
}

@media (prefers-reduced-motion: reduce) {
  .tc-track {
    animation: none;
    overflow-x: auto;
  }

  .tc-section:not(.tc-section--nav):hover .tc-track {
    animation-play-state: running;
  }
}

.tc-nav-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  margin-top: 0.5rem;
}

.tc-nav {
  width: 40px;
  height: 40px;
  border: 1px solid #a77752;
  border-radius: 0;
  background: transparent;
  color: #a77752;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease,
    transform 0.15s ease;
}

.tc-nav:hover:not(:disabled) {
  background-color: #a77752;
  color: #faf8f5;
  border-color: #a77752;
  transform: translateY(-1px);
}

.tc-nav:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.tc-nav svg {
  width: 24px;
  height: 24px;
}
