/*!
 * PhotoStrip v1.1.0 - stylesheet
 * https://github.com/RumiCar-group/RumiCar-PhotoStrip
 * MIT License (c) 2026 RumiCar
 *
 * Photo height is set with the --ps-h custom property (default 210px,
 * 150px under 700px viewports). Item spacing uses `li + li { margin-left }`
 * rather than flex `gap` (better old-mobile support, and a gap mismatch
 * used to make the strip jump on every recycle). The 14px here MUST match
 * the `gap` option passed to PhotoStrip() - it is used for the recycling math.
 */

.ps-viewport {
  overflow: hidden;
  border-radius: 14px;
}

.ps-track {
  display: flex;
  margin: 0;
  padding: 0;
  list-style: none;
  width: max-content;
  will-change: transform;
}

.ps-track li {
  margin: 0;
  padding: 0;
  flex: 0 0 auto;
  list-style: none;
}

.ps-track li + li {
  margin-left: 14px;   /* = the `gap` option */
}

.ps-track button {
  display: block;
  padding: 0;
  border: 0;
  background: none;
  cursor: zoom-in;
  border-radius: 10px;
}

.ps-track img {
  height: var(--ps-h, 210px);
  width: auto;
  display: block;
  border-radius: 10px;
  box-shadow: 0 3px 12px rgba(0, 0, 0, .12);
}

@media (max-width: 700px) {
  .ps-track img {
    height: var(--ps-h-narrow, 150px);
  }
}

/* Pause/play button (WCAG 2.2.2). Restyle or hide via controls:false. */
.ps-toggle {
  display: inline-block;
  margin-top: 8px;
  padding: 4px 12px;
  font-size: 13px;
  color: #456;
  background: none;
  border: 1px solid #bcd;
  border-radius: 8px;
  cursor: pointer;
}
.ps-toggle:hover {
  background: rgba(0, 0, 0, .04);
}

/* Respect "reduce motion": the module does not autoplay, and the strip
   becomes an ordinary horizontal scroller instead. */
@media (prefers-reduced-motion: reduce) {
  .ps-viewport {
    overflow-x: auto;
  }
  .ps-toggle {
    display: none;
  }
}

/* ---------------- Lightbox ---------------- */

.ps-overlay {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 100000;
  background: rgba(8, 20, 23, .93);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 28px;
}

.ps-overlay[hidden] {
  display: none;
}

.ps-overlay figure {
  margin: 0;
  max-width: 96vw;
  text-align: center;
}

.ps-overlay img {
  max-width: 96vw;
  max-height: 84vh;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 8px;
}

.ps-overlay figcaption {
  color: #cfe3e6;
  font-size: 14px;
  margin-top: 10px;
  line-height: 1.6;
}

.ps-close {
  position: fixed;
  top: 12px;
  right: 16px;
  font-size: 36px;
  line-height: 1;
  background: none;
  border: 0;
  color: #fff;
  cursor: pointer;
  padding: 6px 12px;
}

body.ps-noscroll {
  overflow: hidden;
}
