I have a dynamic CSS grid using a repeater in Oxygen Builder that displays a mix of images and videos from an ACF repeater.
I have used the following CSS which works fine up to 992px.
.embed-container {
position: relative;
padding-bottom: 56.25%;
height: 0;
overflow: hidden;
max-width: 100%;
}
.embed-container iframe, .embed-container object, .embed-container embed {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
}
This works great for both Vimeo and YouTube videos.
But then at 991px or below, the video elements in the grid disappear.
The image and video divs have conditions set to display based on media type which is selected in the ACF Repeater.
I'm pulling my hair out trying to figure out what's going on.
https://early.rubberduckdigital.com/our-work/accedian/
I've tried different div positioning, checked the display conditions and all looks fine until below 991.