/* Video testimonials (Bunny) */
#video-reviews .video-reviews__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.25rem;
  max-width: 56rem;
  margin-inline: auto;
}

#video-reviews .video-reviews__card {
  margin: 0;
  border-radius: 0.75rem;
  overflow: hidden;
  background: hsl(var(--accent) / 0.5);
  box-shadow: 0 8px 30px rgb(0 0 0 / 0.06);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

#video-reviews .video-reviews__card:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 36px rgb(0 0 0 / 0.1);
}

#video-reviews .bunny-player {
  position: relative;
  width: 100%;
  display: block;
  background: #0f172a;
}

#video-reviews .bunny-player__frame {
  position: relative;
  width: 100%;
  padding-top: 177.78%; /* 9:16 */
}

#video-reviews .bunny-player__frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

#video-reviews .bunny-player__error {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  color: #ef4444;
  font: 14px/1.4 system-ui, sans-serif;
  text-align: center;
  background: hsl(var(--accent) / 0.35);
}

@media (max-width: 1023px) {
  #video-reviews .video-reviews__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    max-width: 28rem;
    gap: 1rem;
  }
}

@media (max-width: 639px) {
  #video-reviews .video-reviews__grid {
    display: flex;
    max-width: none;
    gap: 0.875rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 0.5rem;
    margin-inline: -1rem;
    padding-inline: 1rem;
    scrollbar-width: thin;
  }

  #video-reviews .video-reviews__card {
    flex: 0 0 min(72vw, 14.5rem);
    scroll-snap-align: start;
  }
}
