.project-image-carousel {
  max-width: 1200px;
  margin: 20px auto 0;
  display: flex;
  gap: 30px;
  justify-content: center;
  align-items: center;
}

.carousel-item {
  flex: 1;
  max-width: calc(33.333% - 20px);
}

.carousel-item .project-media {
  position: relative;
  width: 100%;
  padding-top: 100%;
  background-color: #000;
  border-radius: 20px;
  overflow: hidden;
  border-bottom: 2px solid #1f2937;
}

.carousel-item .project-media .media-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  border-radius: 20px;
}

.carousel-item .project-media img {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transform: translate(-50%, -50%);
  opacity: 0;
  transition: opacity 1.5s ease-in-out;
}

.carousel-item .project-media img.active {
  opacity: 1;
  z-index: 1;
}

@media (max-width: 768px) {
  .project-image-carousel {
    flex-direction: column;
    gap: 20px;
  }

  .carousel-item {
    max-width: 100%;
    width: 100%;
  }
}

