/* ===========================
   About Carousel - Container
   Full-width carousel inside the About section
=========================== */
.about-carousel {
  grid-column: 1 / -1;
  width: 100%;
  max-width: var(--max-content-width);
  margin: clamp(16px, 4vw, 30px) auto 0;
  padding: 0 clamp(8px, 2vw, 10px);
  box-sizing: border-box;
}

/* ===========================
   Carousel Viewport
   Clips overflow and positions slides
=========================== */
.carousel-viewport {
  position: relative;
  overflow: hidden;
  width: 100%;
}

/* ===========================
   Carousel Slide
   Square card (icon holder), absolutely positioned in the carousel
=========================== */
.carousel-slide {
  position: absolute;
  top: 50%;
  left: 50%;
  width: clamp(36px, 6vw, 80px);
  aspect-ratio: 1 / 1;
  transform: translate(-50%, -50%);
  transition: none;
  pointer-events: none;
  background: none;
  overflow: hidden;
  display: grid;
  place-items: center;
}

/* ===========================
   Slide Image
   Keeps icons proportional (no cropping or stretching)
=========================== */
.carousel-slide img {
  display: block;
  width: auto !important;
  height: auto !important;
  max-width: 90% !important;
  max-height: 90% !important;
  object-fit: contain !important;
  object-position: center;
  border-radius: 0;
  padding: 0;
  box-shadow: none;
}

/* ===========================
   Responsive - Tablet
   Slightly larger cards on narrower screens
=========================== */
@media (max-width: 900px) {
  .carousel-slide {
    width: clamp(52px, 10vw, 100px);
  }
  /* Track height is dynamically set via JS */
}

/* ===========================
   Responsive - Mobile
   Larger cards on very small screens
=========================== */
@media (max-width: 480px) {
  .carousel-slide {
    width: clamp(60px, 12vw, 112px);
  }
}

/* ===========================
   Accessibility
   Disable transitions if user prefers reduced motion
=========================== */
@media (prefers-reduced-motion: reduce) {
  .carousel-slide {
    transition: none;
  }
}