/* ==========================================================================
   carousel.css — full-bleed collection carousel (4:5 image cards) + arrows
   Reference geometry @1440: section pad 48/48, cards 429x537 (4:5), gap 12,
   scroller pad-inline 40, peek 48px, circular 44px arrow at the right edge.
   @390: pad 33.6, cards 310x388, peek 48, pad-inline 16.
   ========================================================================== */
.section-carousel {
  --carousel-gap: 12px;
  --carousel-columns: 3;
  --carousel-mobile-columns: 1;
  --peek: 48px;
  padding-block: 48px;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.section-carousel .group-block {
  width: 100%;
  max-width: 1360px;
  margin: 0 auto;
  padding-block-end: 16px;
}
.section-carousel .force-full-width {
  width: 100%;
}
.carousel-content {
  position: relative;
}
.slideshow-arrows {
  position: absolute;
  inset: 0;
  padding-inline: 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  pointer-events: none;
  z-index: 2;
}
.slideshow-control {
  pointer-events: auto;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  color: #111;
  background: transparent;
  border-radius: 50%;
  transition: background .25s ease, transform .25s ease;
}
.slideshow-control:hover {
  background: rgba(255, 255, 255, .82);
}
.slideshow-control[disabled] {
  display: none;
}
.slideshow-control svg {
  width: 20px;
  height: 20px;
  display: block;
}
.slideshow-control--previous svg {
  transform: scaleX(-1);
}
.slideshow-slides {
  display: flex;
  gap: var(--carousel-gap);
  padding-inline: 40px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
  align-items: flex-start;
}
.slideshow-slides::-webkit-scrollbar {
  display: none;
}
.slideshow-slides > .card {
  flex: 0 0 auto;
  width: calc((100% - (var(--carousel-gap) * (var(--carousel-columns) - 1)) - var(--peek)) / var(--carousel-columns));
  scroll-snap-align: start;
  overflow: hidden;
}
.slideshow-slides > .card .image-block {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: #f2f2f2;
}
.slideshow-slides > .card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 1.1s cubic-bezier(.22,.85,.3,1);
}
.slideshow-slides > .card:hover img {
  transform: scale(1.035);
}
@media (max-width: 749.98px) {
  .section-carousel {
    padding-block: 33.6px;
  }
  .section-carousel .group-block {
    padding-block-end: 16px;
    padding-inline: 16px;
  }
  .slideshow-arrows {
    padding-inline: 16px;
  }
  .slideshow-slides {
    padding-inline: 16px;
  }
  .slideshow-slides > .card {
    width: calc((100% - var(--peek)) / var(--carousel-mobile-columns));
  }
  .slideshow-control {
    background: rgba(255, 255, 255, .82);
  }
}
@media (prefers-reduced-motion: reduce) {
  .slideshow-slides { scroll-behavior: auto; }
  .slideshow-slides > .card img { transition: none; }
}
