:root { --glow-color: rgba(102, 102, 102, 0.1); } .eel-video-popup-overlay { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0, 0, 0, 0.8); justify-content: center; align-items: center; z-index: 99999999; } .eel-normal-video { width: 100%; max-width: 800px; margin-bottom: 20px; display: block; } .eel-video-popup-overlay.active { display: flex; } .eel-video-popup-content { position: relative; width: 100%; max-width: 1100px; background: #000; margin: 0 20px; } .eel-video-popup-iframe-wrapper { position: relative; height: 700px; overflow: hidden; } .eel-video-popup-iframe-wrapper iframe, .eel-video-popup-iframe-wrapper video { position: absolute; width: 100%; height: 100%; top: 0; left: 0; } .eel-video-popup-close { position: absolute; top: -15px; right: -18px; font-size: 30px; color: #fff; cursor: pointer; z-index: 1; background: red; border-radius: 50%; width: 36px; height: 36px; display: grid; place-content: center; } .eel-video-popup-btn { border: none; background: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 8px; cursor: pointer; } .eel-video-popup-btn svg, .eel-video-popup-btn i { height: 1em; font-size: 20px; } .eel-video-popup-btn .eel-icon-wrap { display: grid; } .eel-vicon-hide-show .eel-video-popup-btn { opacity: 0; visibility: hidden; transition: all ease-in-out 0.4s; transform: scale(1.2); } .eel-vicon-hide-show:hover .eel-video-popup-btn { opacity: 1; visibility: visible; transform: scale(1); } .eel-glow-active .eel-icon-wrap { border-radius: 100%; box-sizing: border-box; animation: glow-shadow 0.6s linear infinite; overflow: hidden; } @keyframes glow-shadow { 0% { box-shadow: 0 4px 10px var(--glow-color), 0 0 0 0 var(--glow-color), 0 0 0 5px var(--glow-color), 0 0 0 10px var(--glow-color); } 100% { box-shadow: 0 4px 10px var(--glow-color), 0 0 0 5px var(--glow-color), 0 0 0 10px var(--glow-color), 0 0 0 20px rgba(102, 102, 102, 0); /* fading out */ } } .eel-icon-wrap { overflow: hidden; position: relative; } .eel-icon-wrap .eel-overlay-play { position: absolute; top: 60px; left: 0; width: 100%; height: 100%; background: #121212; color: #fff; font-size: 14px; display: flex; align-items: center; justify-content: center; opacity: 0; transition: all 0.3s ease; } .eel-icon-wrap:hover .eel-overlay-play { opacity: 1; top: 0; } /* Video Wrapper */ .eel-video-popup-wrapper { position: relative; } /* Overlay Image */ .eel-video-overlay { position: absolute; width: 100%; height: 100%; background-position: center; background-repeat: no-repeat; cursor: pointer; display: grid; place-content: center; z-index: 99; } /* Overlay Icon */ .eel-overlay-play-icon { font-size: 25px; /* icon size */ color: #fff; /* icon color */ border: 4px solid #fff; border-radius: 50%; width: 90px; height: 90px; display: grid; place-content: center; } /* Hide overlay when video is playing */ .eel-video-popup-wrapper video.playing + .eel-overlay-play-icon { display: none; } @media only screen and (max-width: 768px) { .eel-video-popup-close { top: 30px; right: 10px; } .eel-video-popup-content { margin: 0 10px; } }