/**
 * Restores click/tap access to YouTube iframe controls for testimonial + founder videos.
 * Scoped to video sections only — does not affect cookie banner or other pages.
 */

/* --- Testimonial grid: stacking context --- */
.program2-video-testimonials .video-testimonial-media,
.program2-video-testimonials .testimonial-card-media {
  position: relative;
  isolation: isolate;
}

.program2-video-testimonials .video-testimonial-video-wrap,
.program2-video-testimonials .testimonial-video-box {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  overflow: hidden;
  background: #000;
  pointer-events: none;
}

.program2-video-testimonials .testimonial-video-box {
  display: none;
}

.program2-video-testimonials .video-testimonial-poster {
  z-index: 2;
  pointer-events: none;
}

.program2-video-testimonials .video-testimonial-play {
  z-index: 4;
  pointer-events: auto;
}

.program2-video-testimonials .video-testimonial-card.is-playing .video-testimonial-poster,
.program2-video-testimonials .video-testimonial-card.is-playing .video-testimonial-play {
  display: none !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

.program2-video-testimonials .video-testimonial-card.is-playing .video-testimonial-video-wrap,
.program2-video-testimonials .video-testimonial-card.is-playing .testimonial-video-box {
  display: block !important;
  z-index: 5;
  pointer-events: auto;
}

.program2-video-testimonials .video-testimonial-video,
.program2-video-testimonials .testimonial-card-media iframe.video-testimonial-video {
  position: absolute;
  inset: 0;
  width: 100% !important;
  height: 100% !important;
  max-width: 100%;
  z-index: 6;
  pointer-events: auto;
  border: 0;
}

.program2-video-testimonials .video-testimonial-card.is-playing .video-testimonial-video {
  display: block !important;
}

.program2-video-testimonials .video-testimonial-youtube {
  z-index: 7;
  pointer-events: auto;
}

/* --- Founder introduction modal --- */
.program2-video-modal.is-open .program2-video-modal__backdrop {
  z-index: 0;
  pointer-events: auto;
}

.program2-video-modal.is-open .program2-video-modal__content {
  position: relative;
  z-index: 1;
  pointer-events: auto;
  isolation: isolate;
}

.program2-video-modal.is-open .program2-video-modal__player,
.program2-video-modal.is-open .founder-popup-player {
  position: relative;
  z-index: 5;
  pointer-events: auto;
}

.program2-video-modal.is-open .program2-video-modal__close,
.program2-video-modal.is-open .founder-youtube-link--modal {
  pointer-events: auto;
}

/* Preview card: decorative play chrome must not steal clicks from the card */
.founder-video-card .video-box-inner,
.founder-video-card .video-play-button {
  pointer-events: none;
}

.founder-video-card {
  pointer-events: auto;
}

/* Home mobile layout: keep embeds filling the media frame */
.page-home .program2-video-testimonials iframe,
.page-home .program2-video-testimonials video {
  height: 100% !important;
  max-height: 100%;
}
