/* ==========================================================================
   betta-se-plus.css: the "See it in action" video band on the Betta SE Plus page
   (products/information/betta-se-plus.njk), linked from the page's layout (products/betta-se-plus.njk).
   Two native videos side by side at one height: the 16:9 lifestyle video and the square debris-capture
   animation; stacked on phones. Colours are inherited from the page's own section styles.
   ========================================================================== */

.betta-video .betta-video-grid {
  display: grid;
  grid-template-columns: minmax(0, 16fr) minmax(0, 9fr);
  gap: clamp(14px, 2vw, 28px);
  align-items: start;
  width: 100%;
  max-width: 1120px;
  margin: clamp(1.25rem, 2.5vw, 2.25rem) auto 0;
}

.betta-video .betta-video-item {
  margin: 0;
}

.betta-video .betta-video-item video {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 18px;
  background: #000;
  object-fit: cover;
}

.betta-video .betta-video-item--wide video {
  aspect-ratio: 16 / 9;
}

.betta-video .betta-video-item--square video {
  aspect-ratio: 1 / 1;
}

.betta-video .betta-video-item figcaption {
  margin-top: 0.7rem;
  font-size: 0.9375rem;
  line-height: 1.45;
  text-align: center;
  opacity: 0.75;
}

@media screen and (max-width: 47.9375em) {
  .betta-video .betta-video-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 1.5rem;
  }

  .betta-video .betta-video-item video {
    border-radius: 14px;
  }
}

/* The seventeen-photo thumbnail strip under the buy box photo: on phones one swipeable row instead of five
   wrapped rows, so the title and price stay close to the photo. (Wider screens keep the wrapped strip.) */
@media screen and (max-width: 47.9375em) {
  .pp-stage .pp-gallery-thumbs,
  .pp-stage .pp-thumbs,
  .pp-stage .acc-thumbs {
    flex-wrap: nowrap;
    justify-content: flex-start;
    overflow-x: auto;
    padding: 2px 2px 8px;
    scroll-snap-type: x proximity;
    -webkit-overflow-scrolling: touch;
  }

  .pp-stage .pp-gallery-thumbs .pp-gallery-thumb,
  .pp-stage .pp-thumbs .pp-thumb,
  .pp-stage .acc-thumbs .acc-thumb {
    flex: 0 0 auto;
    scroll-snap-align: start;
  }
}
