Site URL: https://fish-nectarine-wbzr.squarespace.com/work
This question has not been resolved and many commenters experienced the same issue: The overlay works great but the videos will not play when clicked. I'm using Squarespace 7.1 and using a video embedded with Vimeo.
I've linked the site with the desired layout because I can't share my site. (I'm still in trial mode and can't share even with password.)
Here is the code:
/* Reels video overlay */
.video-caption-wrapper {
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%,-50%);
width: 100%;
text-align: center;
color: white;
font-size: 16px;
z-index: 50000;
pointer-events: none;
opacity: 0;
transition: all 0.3s;
}
.video-block .intrinsic:after {
content: "";
background-color: rgba(0,0,0,0.5);
display: block;
top: 0;
left: 0;
width: 100%;
height: 100%;
z-index: 20000;
position: absolute;
opacity: 0;
transition: all 0.3s;
}
.video-block:hover .intrinsic:after {
opacity: 1;
transition: all 0.3s;
}
.video-block:hover .video-caption-wrapper {
opacity: 1;
transition: all 0.3s;
}
/* Text behind play icon */
.sqs-video-icon {
z-index: -9999999999999999;
}
/* Fullwidth video */
body#collection-605e0f710db7707460c3429e section.Main-content {
padding-left: 0;
padding-right: 0;
}
This segment was the suggested solution but I, like others, did not find that this resolved the issue.
/* Text behind play icon */
.sqs-video-icon {
z-index: -9999999999999999;
}