/* Carrusel de imágenes dentro de cada tarjeta de proyecto */
.project-carousel {
  position: relative;
  overflow: hidden;
}

.carousel-track {
  display: flex;
  height: 100%;
  transition: transform .4s ease;
}

.carousel-track img {
  flex: 0 0 100%;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(.78);
}

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  background: rgba(16, 33, 41, .38);
  color: #fff;
  border: none;
  padding: 0;
  cursor: pointer;
  font-size: 19px;
  line-height: 1;
  transition: background .2s;
}

.carousel-btn:hover {
  background: rgba(16, 33, 41, .65);
}

.carousel-prev {
  left: 12px;
}

.carousel-next {
  right: 12px;
}

.carousel-dots {
  position: absolute;
  z-index: 2;
  bottom: 14px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 7px;
}

.carousel-dot {
  width: 6px;
  height: 6px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, .5);
  cursor: pointer;
}

.carousel-dot.active {
  background: #fff;
}

@media (max-width: 480px) {
  .carousel-btn {
    width: 28px;
    height: 28px;
    font-size: 16px;
  }
}
