.projects-widget-wrapper {
  position: relative;
}

.projects-tabs {
  margin-top: 1.5rem;
}

.pjt-tab-titles {
  margin-top: 1.5rem;
  border: 1px solid var(--primary-orange);
  border-radius: 20px 20px 20px 20px;
  cursor: pointer;
  overflow: hidden;
  position: absolute;
  right: 0;
  top: 0;
}

.pjt-tab-link {
  color: var(--pure-black);
  display: inline-block;
  font-size: 20px;
  padding: 5px 10px;
  transition: all .3s ease-in-out;
}

.pjt-tab-link.active {
  background: var(--primary-orange);
  color: var(--white);
}

.pjt-tab {
  display: none;
}

.pjt-tab.pjt-active {
  display: block;
}

.projects-grid {
  /* animation: rotateSlider 30s linear infinite; */
  animation-play-state: running; 
  height: 250px;
  margin: 50px auto;
  position: relative;
  transform-style: preserve-3d;
  width: 500px;
}

.projects-grid:hover {
  animation-play-state: paused;
  cursor: grab;
}

.project-item { 
  padding: 1rem;
  background: white;
  transition: box-shadow 0.3s ease;
  backface-visibility: hidden;
  left: 0;
  /* position: absolute; */
  top: 8px;
  /* transform: rotateY(calc(var(--item-number) * 45deg)) translateY(0%) translateZ(100vw); */
  transform-origin: center;
  transform-style: preserve-3d;
  width: 250px;
  height: 300px;
}
.home-page-container>section .projects-grid .project-item > *{
  color:  #000 !important;
}
.project-item a {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
}
.project-item:hover {
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.project-thumb img {
width: auto;
    height: 150px;
    display: block; 
    margin: auto auto 20px;
}

.project-info h4 {
  margin-top: 0;
  margin-bottom: 0.5rem;
}

@keyframes rotateSlider {
  0% {
    transform: perspective(1500px) rotateY(0);
  }

  100% {
    transform: perspective(1500px) rotateY(360deg);
  }
}

@media screen and (max-width: 767px) {
  .pjt-tab-titles {
    display: flex;
    justify-content: space-between;
    position: relative;
  }

  .pjt-tab-link {
    flex: 1;
    text-align: center;
    padding: 10px 0;
    font-size: 16px;
  }

  .pjt-tab-content {
    margin-top: 50px;
  }

  @keyframes rotateSlider {
    0% {
      transform: perspective(2500px) rotateY(0);
    }

    100% {
      transform: perspective(2500px) rotateY(360deg);
    }
  }
}