/* Mars HVAC Electrical Video
   The only rule that touches the original markup is gated on
   .mh-electrical-on, a class the JS adds to the Divi image module ONLY
   after the video fires "canplay" and has been inserted. Without JS, or
   if the video fails to load, no rule applies and the original photo
   stays exactly as it is. Nothing else on the page is touched. */

/* Hide the original photo once the video is in place and playing-able. */
.et_pb_image.mh-electrical-on .et_pb_image_wrap > img {
    display: none !important;
}

/* v1.0.1 colour fix: Divi styled the original photo black-and-white with
   an inline-generated rule carrying filter:saturate(0%) on the image
   module, and the swapped-in video inherited that filter, so the (full
   colour) video rendered in black and white. Force the filter off on
   the module, its wrap, and the video — but only in the .mh-electrical-on
   state, which exists only after the JS has swapped the video in, so the
   original photo's styling is never touched before or without the swap. */
.et_pb_image.mh-electrical-on,
.et_pb_image.mh-electrical-on .et_pb_image_wrap,
.et_pb_image.mh-electrical-on .mh-electrical-video {
    filter: none !important;
}

/* The video takes the photo's slot treatment: full width of the image
   wrap, height following its own (16:9) aspect — the same width:100% /
   height:auto rendering Divi gives the photo it replaces. */
.mh-electrical-video {
    display: block;
    width: 100%;
    height: auto;
    border: 0;
    margin: 0;
    padding: 0;
}
