/* [otmzm_videos] - customer video reviews: a swipeable row of 9:16 cards. */
.otmzm-vr {
  --vr-ink: #2b2140;
  --vr-star: #ffb400;
  --vr-gap: 12px;
  position: relative;
  width: 100%;
  font-size: 16px;
  line-height: 1.4;
  color: var(--vr-ink);
  box-sizing: border-box;
}
.otmzm-vr *, .otmzm-vr *::before, .otmzm-vr *::after { box-sizing: border-box; }
/* Oxygen shrinks a shortcode element to its content; the row needs the column's width. */
.ct-shortcode:has(> .otmzm-vr) { align-self: stretch; width: 100%; }

.otmzm-vr__track {
  display: flex;
  gap: var(--vr-gap);
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
  padding: 4px 2px 8px;
}
.otmzm-vr__track::-webkit-scrollbar { display: none; }

/* Phone: one card and the edge of the next, so it reads as swipeable. */
.otmzm-vr__card {
  position: relative;
  flex: 0 0 74%;
  max-width: 300px;
  aspect-ratio: 9 / 16;
  margin: 0;
  border-radius: 16px;
  overflow: hidden;
  background: #1d1726;
  scroll-snap-align: center;
  box-shadow: 0 6px 18px rgba(43, 33, 64, .14);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
@media (min-width: 768px) {
  .otmzm-vr__card { flex-basis: calc((100% - 3 * var(--vr-gap)) / 4); max-width: none; scroll-snap-align: start; }
}

.otmzm-vr__video { display: block; width: 100%; height: 100%; object-fit: cover; background: #1d1726; }

.otmzm-vr__play {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 60px;
  height: 60px;
  margin: -30px 0 0 -30px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, .92);
  box-shadow: 0 4px 14px rgba(0, 0, 0, .25);
  cursor: pointer;
  transition: transform .15s, opacity .2s;
}
.otmzm-vr__play::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  margin: -10px 0 0 -6px;
  border-style: solid;
  border-width: 10px 0 10px 17px;
  border-color: transparent transparent transparent var(--vr-ink);
}
.otmzm-vr__card:hover .otmzm-vr__play { transform: scale(1.06); }
.otmzm-vr__play:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }

.otmzm-vr__caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 48px 14px 14px;
  background: linear-gradient(to bottom, rgba(20, 14, 28, 0), rgba(20, 14, 28, .82) 55%);
  color: #fff;
  text-align: left;
  pointer-events: none;
  transition: opacity .25s;
}
.otmzm-vr__stars { color: var(--vr-star); font-size: 14px; letter-spacing: 2px; line-height: 1; }
.otmzm-vr__quote { font-size: 14px; font-weight: 400; line-height: 1.35; }
.otmzm-vr__name { font-size: 13px; font-weight: 600; opacity: .9; }

/* Playing: the picture is the point - the words and the button step aside. */
.otmzm-vr__progress { position: absolute; top: 8px; left: 10px; right: 10px; height: 3px; border-radius: 2px; background: rgba(255, 255, 255, .35); opacity: 0; transition: opacity .2s; pointer-events: none; }
.otmzm-vr__progress > span { display: block; height: 100%; width: 0; border-radius: 2px; background: #fff; }
.otmzm-vr__card.is-playing .otmzm-vr__progress { opacity: 1; }
.otmzm-vr__card.is-playing .otmzm-vr__play,
.otmzm-vr__card.is-playing .otmzm-vr__caption { opacity: 0; }
.otmzm-vr__card.is-playing .otmzm-vr__play { pointer-events: none; }
.otmzm-vr__card.is-paused .otmzm-vr__caption { opacity: 0; }

.otmzm-vr__arrow {
  position: absolute;
  top: calc(50% - 26px);
  width: 40px;
  height: 40px;
  padding: 0;
  border: 1px solid #e6e1ef;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 2px 8px rgba(43, 33, 64, .15);
  cursor: pointer;
  z-index: 2;
}
.otmzm-vr__arrow::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 9px;
  height: 9px;
  margin: -5px 0 0 -6px;
  border: solid var(--vr-ink);
  border-width: 0 2px 2px 0;
  transform: rotate(-45deg);
}
.otmzm-vr__arrow--prev { left: -8px; }
.otmzm-vr__arrow--prev::after { margin-left: -3px; transform: rotate(135deg); }
.otmzm-vr__arrow--next { right: -8px; }
@media (max-width: 767px) { .otmzm-vr__arrow { display: none; } }

.otmzm-vr__dots { display: flex; justify-content: center; gap: 6px; margin-top: 10px; }
.otmzm-vr__dot { width: 6px; height: 6px; padding: 0; border: 0; border-radius: 3px; background: #d6d0e0; cursor: pointer; transition: width .2s, background .2s; }
.otmzm-vr__dot.is-active { width: 18px; background: var(--vr-ink); }

@media (prefers-reduced-motion: reduce) {
  .otmzm-vr__track { scroll-behavior: auto; }
  .otmzm-vr__play, .otmzm-vr__caption, .otmzm-vr__dot { transition: none; }
}
