/* Framer-style project card carousel (vanilla port of framer-normal-carousel) */

.project-carousel {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 260px;
}

.project-carousel__viewport {
  position: relative;
  overflow: hidden;
  border-radius: inherit;
  width: 100%;
  height: 260px;
  min-height: 260px;
}

.project-carousel__track {
  display: flex;
  height: 100%;
  will-change: transform;
}

.project-carousel__slide {
  flex: 0 0 100%;
  width: 100%;
  height: 100%;
  min-height: 260px;
}

.project-carousel__slide img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 260px;
  object-fit: cover;
  border-radius: inherit;
  user-select: none;
  -webkit-user-drag: none;
  pointer-events: none;
}

.project-carousel__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 4;
  width: 2.5rem;
  height: 2.5rem;
  border: none;
  border-radius: 50%;
  display: grid;
  place-items: center;
  padding: 0;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(6, 46, 54, 0.22);
  transition: transform 0.2s ease, opacity 0.2s ease;
  background: rgba(255, 255, 255, 0.92);
  color: var(--ink, #062e36);
}

.project-carousel__nav:hover:not(:disabled),
.project-carousel__nav:focus-visible:not(:disabled) {
  transform: translateY(-50%) scale(1.08);
  opacity: 1;
}

.project-carousel__nav:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.project-carousel__nav--prev {
  left: 1rem;
}

.project-carousel__nav--next {
  right: 1rem;
}

.project-carousel__nav svg {
  width: 1.35rem;
  height: 1.35rem;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.project-carousel__dots {
  position: absolute;
  left: 50%;
  top: 1rem;
  transform: translateX(-50%);
  z-index: 4;
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.project-carousel__dot {
  position: relative;
  width: 0.5rem;
  height: 0.5rem;
  padding: 0;
  border: none;
  border-radius: 999px;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.5);
  transition: width 0.25s ease, background 0.25s ease;
}

/* Invisible 24px-tall tap target; horizontal inset stays within half the dot gap. */
.project-carousel__dot::before {
  content: "";
  position: absolute;
  inset: -0.5rem -0.25rem;
}

.project-carousel__dot.is-active {
  width: 2rem;
  background: #fff;
}

.project-carousel__dot:focus-visible {
  outline: 2px solid var(--gold, #c9a962);
  outline-offset: 2px;
}

@media (max-width: 640px) {
  .project-carousel__nav {
    width: 2.25rem;
    height: 2.25rem;
  }

  .project-carousel__nav--prev {
    left: 0.5rem;
  }

  .project-carousel__nav--next {
    right: 0.5rem;
  }

  .project-carousel__dots {
    top: 0.5rem;
  }
}
