/* Features Video Position Fix - Ensure video covers entire container */

@media screen and (min-width: 768px) {
  /* Reset video container */
  .feature-video-container {
    position: relative !important;
    overflow: hidden !important;
    width: 100% !important;
    height: 220px !important; /* Fixed height */
    display: block !important;
  }

  /* CRITICAL FIX: Remove transforms and use proper positioning */
  .feature-video {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100% !important;
    height: 100% !important;
    /* REMOVE the transform that's causing the quarter display */
    transform: none !important;
    -webkit-transform: none !important;
    -ms-transform: none !important;
    /* Ensure video covers entire container */
    object-fit: cover !important;
    object-position: center center !important;
    /* Reset any margins or padding */
    margin: 0 !important;
    padding: 0 !important;
  }

  /* Override any conflicting transforms */
  .feature-video,
  .feature-item .feature-video,
  .feature-video-container .feature-video {
    transform: none !important;
    transform: translate(0, 0) !important;
    transform: translate3d(0, 0, 0) !important;
  }

  /* Remove any scale transforms on hover that might affect positioning */
  .feature-item:hover .feature-video {
    transform: none !important;
  }
}

/* Specific height fixes for each breakpoint */
@media screen and (min-width: 1440px) {
  .feature-video-container {
    height: 240px !important;
  }
}

@media screen and (min-width: 1280px) and (max-width: 1439px) {
  .feature-video-container {
    height: 220px !important;
  }
}

@media screen and (min-width: 1024px) and (max-width: 1279px) {
  .feature-video-container {
    height: 200px !important;
  }
}

@media screen and (min-width: 768px) and (max-width: 1023px) {
  .feature-video-container {
    height: 180px !important;
  }
}

/* Ensure proper video display */
@media screen and (min-width: 768px) {
  .feature-video {
    /* Use min dimensions to ensure full coverage */
    min-width: 100% !important;
    min-height: 100% !important;
    /* Center the video if it's larger than container */
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
    /* But ensure it covers the container */
    width: auto !important;
    height: auto !important;
  }

  /* Alternative approach: scale to cover */
  .feature-video-container .feature-video {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    transform: none !important;
    object-fit: cover !important;
  }
}

/* High specificity override to ensure video fills container */
.interactive-features .feature-list .feature-item .feature-video-container .feature-video {
  position: absolute !important;
  inset: 0 !important; /* Shorthand for top: 0, right: 0, bottom: 0, left: 0 */
  width: 100% !important;
  height: 100% !important;
  transform: none !important;
  object-fit: cover !important;
  object-position: center !important;
}

/* Remove any clip-path or masks that might be hiding parts of the video */
@media screen and (min-width: 768px) {
  .feature-video,
  .feature-video-container {
    clip-path: none !important;
    -webkit-clip-path: none !important;
    mask: none !important;
    -webkit-mask: none !important;
  }
}

/* Debug styles - uncomment to see video boundaries */
/*
@media screen and (min-width: 768px) {
  .feature-video-container {
    background: red !important;
    border: 2px solid blue !important;
  }

  .feature-video {
    opacity: 0.8 !important;
    border: 2px solid green !important;
  }
}
*/

/* Fallback: If video still shows in quarter, try this nuclear option */
@media screen and (min-width: 768px) {
  .feature-video {
    position: fixed !important;
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    transform-origin: top left !important;
    transform: none !important;
  }
}