/* About Us Image Fix */
.elementor-element-eb445ba img {
  content: url("/assets/custom/about-architects-near-me.png");
}

/* Our Team Slider Fix */
.wright-team-grid {
  display: flex !important;
  flex-wrap: nowrap !important;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  gap: 20px;
  -ms-overflow-style: none; /* IE and Edge */
  scrollbar-width: none; /* Firefox */
  padding: 20px 0 !important;
}

.wright-team-grid::-webkit-scrollbar {
  display: none;
}

.wright-team-card {
  flex: 0 0 calc((100% - 40px) / 3) !important; /* 3 items on desktop */
  scroll-snap-align: start;
  transition: color 0.3s;
  display: flex !important;
  flex-direction: column;
  align-items: center;
}

.wright-team-card:hover h3,
.wright-team-card:focus h3,
.wright-team-card:active h3,
.wright-team-card.is-selected h3,
.wright-team-card:hover p,
.wright-team-card:focus p,
.wright-team-card:active p,
.wright-team-card.is-selected p {
  color: #8b0000 !important;
  -webkit-text-fill-color: #8b0000 !important;
}

@media (max-width: 767px) {
  .wright-team-card {
    flex: 0 0 100% !important; /* 1 item on mobile */
  }
}

/* Add slider controls */
.wright-team-slider-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.team-slider-btn {
  background: none;
  border: none;
  font-size: 24px;
  color: #8b0000;
  cursor: pointer;
  padding: 10px;
  z-index: 10;
}

@media (max-width: 767px) {
  .team-slider-btn {
    display: none !important;
  }
}

/* Social icons centered */
.ekit_social_media a {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 36px !important;
  height: 36px !important;
  border-radius: 50% !important;
  border: 1px solid #aaa;
  color: #aaa !important;
  text-decoration: none !important;
  transition: all 0.2s !important;
}

.ekit_social_media a:hover {
  color: #8b0000 !important;
  border-color: #8b0000 !important;
}

.ekit_social_media a i {
  margin: 0 !important;
  padding: 0 !important;
}

/* Disable old Hero slider elementor */
.elementor-background-slideshow {
  display: none !important;
}

.wright-hero-slider {
  display: block !important;
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
}

.wright-hero-slide {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1s ease-in-out;
  z-index: 0;
}

.wright-hero-slide.is-active {
  opacity: 1;
}


.elementor-widget-n-carousel {
  display: none !important;
}

.wright-team-grid {
  display: flex !important;
  flex-wrap: nowrap !important;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  gap: 20px;
  -ms-overflow-style: none; /* IE and Edge */
  scrollbar-width: none; /* Firefox */
  padding: 40px 0 !important;
  margin: 0 auto;
  width: 100%;
}

.wright-team-grid::-webkit-scrollbar {
  display: none;
}

.wright-team-card {
  flex: 0 0 calc(33.333% - 14px) !important; /* exactly 3 items on desktop with 20px gap */
  scroll-snap-align: start;
  transition: color 0.3s;
  display: flex !important;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
}

.wright-team-card img {
  border-radius: 50%;
  width: 250px !important;
  height: 250px !important;
  object-fit: cover;
  margin-bottom: 20px;
}

.wright-team-card h3 {
  margin: 0 0 5px 0 !important;
  font-size: 20px !important;
  font-weight: normal !important;
  color: #333;
  transition: color 0.2s;
}

.wright-team-card p {
  margin: 0 !important;
  font-size: 15px !important;
  color: #999 !important;
  font-style: italic !important;
  transition: color 0.2s;
}

.wright-team-card:hover h3,
.wright-team-card:focus h3,
.wright-team-card:active h3,
.wright-team-card.is-selected h3,
.wright-team-card:hover p,
.wright-team-card:focus p,
.wright-team-card:active p,
.wright-team-card.is-selected p {
  color: #8b0000 !important;
  -webkit-text-fill-color: #8b0000 !important;
}

.wright-team-slider-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px;
}

.team-slider-btn {
  width: 40px;
  height: 56px;
  display: grid;
  place-items: center;
  padding: 0;
  background: transparent;
  border: 0;
  color: #ed002b;
  cursor: pointer;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
}

.team-slider-btn svg {
  width: 16px;
  height: 26px;
  overflow: visible;
}

.team-slider-btn path {
  fill: none;
  stroke: currentColor;
  stroke-width: 2.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.team-slider-btn:hover,
.team-slider-btn:focus,
.team-slider-btn:focus-visible,
.team-slider-btn:active {
  background: transparent !important;
  border-color: transparent !important;
  box-shadow: none !important;
  color: #ed002b !important;
  opacity: 1 !important;
  outline: none;
  transform: translateY(-50%);
}

.team-slider-btn.prev-btn {
  left: 0;
}

.team-slider-btn.next-btn {
  right: 0;
}

@media (max-width: 767px) {
  .wright-team-card {
    flex: 0 0 100% !important; /* exactly 1 item on mobile */
  }
  .team-slider-btn {
    display: none !important;
  }
  .wright-team-slider-wrapper {
    padding: 0;
  }
}
