/* RMKB Services Videos
   The two "photos" in the homepage "Our Services" section are the
   background images of the hidden divider modules .et_pb_divider_0
   (Kitchen Remodels column) and .et_pb_divider_1 (Bathroom Remodels
   column), per Divi's generated CSS:
     background-image: url(...photo...);
     background-color: rgba(255,255,255,0.48);
     background-blend-mode: overlay;
     min-height: 43vh;
   The rgba(255,255,255,0.48) overlay blend is a white wash — it is why
   the photos look faded.
   Rules below are gated on classes the JS adds: .rmkb-svc-armed when a
   video is inserted into a divider, .rmkb-svc-on only after that video
   fires "canplay". Without JS, or if a video fails to load, no rule
   applies and the photos stay exactly as they are today. */

/* Armed: the divider becomes the video's positioning context and clips
   it to the photo slot's box (the divider keeps its Divi min-height of
   43vh, so the slot's size cannot change). The 10px radius matches the
   fleet's card styling and is clipped by the same overflow rule. */
.et_pb_section_3 .et_pb_divider_0.rmkb-svc-armed,
.et_pb_section_3 .et_pb_divider_1.rmkb-svc-armed {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
}

/* On: remove the photo AND its white blend wash so nothing lightens
   the video — it renders at full colour. */
.et_pb_section_3 .et_pb_divider_0.rmkb-svc-on,
.et_pb_section_3 .et_pb_divider_1.rmkb-svc-on {
    background-image: none !important;
    background-color: transparent !important;
    background-blend-mode: normal;
    opacity: 1 !important;
    filter: none !important;
}

/* The video fills the divider's box exactly like background-size: cover
   filled it, so the slot's dimensions and crop behaviour match the
   photo's. Full colour is forced in case any inherited rule lightens it. */
.rmkb-svc-video {
    position: absolute;
    inset: 0;
    z-index: 1;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    display: block;
    border: 0;
    margin: 0;
    padding: 0;
    pointer-events: none;
    opacity: 1 !important;
    filter: none !important;
}
