.imgstrip-wrap {
  width: 100%;
  overflow: hidden;
  padding: 30px 0;
}

.imgstrip-track {
  --edge-pull: 0px;
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  gap: 18px;
  overflow-x: auto !important;
  overflow-y: hidden !important;
  scroll-behavior: auto;
  padding: 10px 24px;
  scrollbar-width: none;
  align-items: center;
  width: 100%;
  cursor: grab;
  user-select: none;
  -webkit-user-select: none;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-x pan-y pinch-zoom;
  overscroll-behavior-x: auto;
  transform: translate3d(var(--edge-pull), 0, 0);
  will-change: scroll-position, transform;
}

.imgstrip-track::-webkit-scrollbar {
  display: none;
}

.imgstrip-track.dragging {
  cursor: grabbing;
}

.imgstrip-track.is-rebounding {
  transition: transform 0.28s cubic-bezier(0.22, 0.8, 0.3, 1);
}

.imgstrip-img {
  width: 100% !important;
  flex: 0 0 220px !important;
  aspect-ratio: 1 / 1.75;
  object-fit: cover !important;
  object-position: center;
  display: block;
  cursor: pointer;
  border-radius: 7px !important;
  overflow: hidden !important;
  pointer-events: auto;
  -webkit-user-drag: none;
  user-select: none;
  -webkit-user-select: none;
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease;
}

.imgstrip-img:hover {
  transform: scale(1.02);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.22);
}

.imgstrip-dots {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
}

.imgstrip-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  border: 0;
  background: #b8b8b8;
  padding: 0;
  cursor: pointer;
  transition: 0.2s;
}

.imgstrip-dot.active {
  background: #111;
  transform: scale(1.25);
}

.imgstrip-lightbox {
  --backdrop-opacity: 0.9;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, var(--backdrop-opacity));
  z-index: 99999;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 30px;
  opacity: 0;
  touch-action: pinch-zoom;
  transition: opacity 0.28s ease, background-color 0.12s linear;
}

.imgstrip-lightbox.is-open {
  opacity: 1;
}

.imgstrip-lightbox.is-closing {
  opacity: 0;
  pointer-events: none;
}

.imgstrip-lightbox.rr-hidden {
  display: none !important;
}

.imgstrip-lightbox-stage {
  display: flex;
  justify-content: center;
  align-items: center;
  max-width: 95vw;
  max-height: 90vh;
  transform: scale(0.96);
  transition: transform 0.28s cubic-bezier(0.22, 0.8, 0.3, 1), opacity 0.12s ease;
  will-change: transform, opacity;
}

.imgstrip-lightbox.is-open .imgstrip-lightbox-stage {
  transform: scale(1);
}

.imgstrip-lightbox-stage.is-rebounding {
  transition: transform 0.26s cubic-bezier(0.22, 0.8, 0.3, 1), opacity 0.12s ease;
}

.imgstrip-lightbox-stage.is-changing-left {
  transform: translate3d(-70px, 0, 0) scale(0.97);
  opacity: 0;
}

.imgstrip-lightbox-stage.is-changing-right {
  transform: translate3d(70px, 0, 0) scale(0.97);
  opacity: 0;
}

.imgstrip-lightbox-img {
  max-width: 95vw;
  max-height: 90vh;
  width: auto;
  height: auto;
  border-radius: 9px;
  object-fit: contain;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.45);
}

.imgstrip-nav {
  all:unset;
  position: fixed;
  top: 50%;
  width: 52px;
  height: 52px;
  transform: translateY(-50%);
  color: #fff;
  font-size: 42px;
  cursor: pointer;
  z-index: 100000;
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.imgstrip-nav:hover,
.imgstrip-nav:focus-visible {
  transform: translateY(-50%) scale(1.06);
}

.imgstrip-prev { left: 24px; }
.imgstrip-next { right: 24px; }

body.imgstrip-lightbox-open {
  overflow: hidden;
}

.imgstrip-close {
  position: fixed;
  top: 18px;
  right: 24px;
  background: transparent;
  border: 0;
  color: #fff;
  font-size: 46px;
  line-height: 1;
  cursor: pointer;
  padding: 0;
  z-index: 100000;
}

@media (max-width: 600px) {
  .imgstrip-track {
    gap: 14px;
    padding: 10px 18px;
  }

  .imgstrip-lightbox {
    padding: 18px;
  }

  .imgstrip-nav {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .imgstrip-track,
  .imgstrip-lightbox,
  .imgstrip-lightbox-stage,
  .imgstrip-img,
  .imgstrip-nav {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
