/* Override Elementor's forced 16:9 crop on testimonial videos */
.dojoscale-testimonial-video .elementor-wrapper,
.dojoscale-testimonial-video .e-hosted-video {
  --video-aspect-ratio: auto !important;
  aspect-ratio: auto !important;
  height: auto !important;
  max-width: 100%;
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  background: #111827;
}

.dojoscale-testimonial-video .elementor-custom-embed-image-overlay {
  cursor: pointer;
  position: relative;
  display: grid;
  width: 100%;
  place-items: center;
}

.dojoscale-testimonial-video .elementor-custom-embed-image-overlay img {
  grid-area: 1 / 1;
  width: 100%;
  height: auto;
  max-height: none;
  aspect-ratio: auto !important;
  object-fit: contain !important;
  object-position: center center !important;
  display: block;
  border-radius: 12px;
  background: #111827;
}

/* Original Elementor play icon — stacked and centered on preview */
.dojoscale-testimonial-video .elementor-custom-embed-play {
  grid-area: 1 / 1;
  position: relative !important;
  top: auto !important;
  left: auto !important;
  right: auto !important;
  bottom: auto !important;
  inset: unset !important;
  transform: none !important;
  place-self: center;
  z-index: 2;
  pointer-events: none;
  margin: 0 !important;
}

.dojoscale-testimonial-video .elementor-custom-embed-play svg {
  width: 80px;
  height: 80px;
}

.dojoscale-testimonial-video.is-loading .elementor-custom-embed-play svg {
  opacity: 0.35;
}

.dojoscale-testimonial-video__player {
  display: none;
  width: 100%;
  border-radius: 12px;
  overflow: hidden;
  background: #000;
}

.dojoscale-testimonial-video.is-playing .dojoscale-testimonial-video__player {
  display: block;
}

.dojoscale-testimonial-video.is-playing .elementor-custom-embed-image-overlay {
  display: none;
}

.dojoscale-testimonial-video__player video {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain !important;
  background: #000;
}

@media (max-width: 767px) {
  .dojoscale-testimonial-video .elementor-custom-embed-play svg {
    width: 64px;
    height: 64px;
  }
}
