/* ==========================================================================
   gallery-carousel.component.css — <gallery-carousel>
   ========================================================================== */

.gallery-carousel {
  position: relative;
}

.gallery-carousel__viewport {
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}

.gallery-carousel__viewport::-webkit-scrollbar {
  display: none;
}

.gallery-carousel__track {
  display: flex;
  gap: 16px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.gallery-carousel__slide {
  flex: 0 0 calc((100% - 2 * 16px) / 3);
  aspect-ratio: 1;
  border-radius: var(--radius-sm);
  background: var(--color-cream-dark);
  overflow: hidden;
  scroll-snap-align: start;
}

.gallery-carousel__slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.gallery-carousel__slide:hover img {
  transform: scale(1.05);
}

.gallery-carousel__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--color-white);
  color: var(--color-orange-dark);
  box-shadow: var(--shadow-md);
  transition: background 0.15s ease, opacity 0.15s ease;
}

.gallery-carousel__nav:hover {
  background: var(--color-orange);
  color: var(--color-white);
}

.gallery-carousel__nav svg {
  width: 20px;
  height: 20px;
}

.gallery-carousel__nav--prev {
  left: -18px;
}

.gallery-carousel__nav--next {
  right: -18px;
}

.gallery-carousel__nav.is-disabled {
  opacity: 0;
  pointer-events: none;
}

.gallery-carousel__dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 20px;
}

.gallery-carousel__dot {
  width: 8px;
  height: 8px;
  padding: 0;
  border-radius: 999px;
  background: var(--color-border);
  transition: background 0.2s ease, width 0.2s ease;
}

.gallery-carousel__dot.is-active {
  width: 22px;
  background: var(--color-orange);
}

@media (max-width: 960px) {
  .gallery-carousel__nav--prev {
    left: 8px;
  }

  .gallery-carousel__nav--next {
    right: 8px;
  }
}

@media (max-width: 760px) {
  .gallery-carousel__slide {
    flex-basis: calc((100% - 16px) / 2);
  }
}

@media (max-width: 520px) {
  .gallery-carousel__slide {
    flex-basis: 100%;
  }

  .gallery-carousel__nav {
    width: 36px;
    height: 36px;
  }
}
