I am having problems re-sizing and centering a lightbox image on our homepage.
At www.untamed.be - see the ‘play reel’ button, we have a video lightbox with the following code:
[image class=“home-video” src=“http://www.untamed.be/wp-content/uploads/2018/03/video-play-sm8.png” link=“true” href="//player.vimeo.com/video/258908500?autoplay=1" lightbox_video=“true” opacity=".055"]
[lightbox selector=".home-video" deeplink=“true” opacity=“0.575” orientation=“vertical”]
the lightbox works great, but the play button image is too small on mobile.
so I’ve added this custom CSS which DOES resize the video play button image… but it doesn’t keep the center alignment.
@media (max-width: 767px)
{ .home-video img
{
max-width: 250% !important;
display: block !important;
margin-left: 50% !important;
margin-right: 50% !important;
} }
So how to resize the video play button for mobile, but also keep it centered?
THANKS.