Site URL: https://www.anvnguyen.com/
Hi there! I'm adding grid gallery caption on hover using the CSS below, which includes the ability to make lightbox work. The hover caption is showing perfectly, but lightbox is not working... The gallery is on https://www.anvnguyen.com/home/art. Would really appreciate your help!! 🙂
.gallery-caption {
position: absolute;
top: 0;
left: 0;
background: rgba(0, 0, 0, 0.8);
/* overlay color */
height: 100%;
max-width: unset;
padding: 0;
opacity: 0;
}
.gallery-caption-wrapper {
display: flex;
align-items: center;
/* center vertically */
justify-content: center;
/* center horizontally */
}
.gallery-caption-content {
font-size: 1.3rem !important;
/* caption font size */
color: #F7EDE4;
/*caption font color */
text-align: center;
/*padding: 16px;*/
max-width: 85%;
}
.gallery-grid-item {
position: relative;
}
.gallery-grid-item:hover .gallery-caption {
opacity: 1;
}
.gallery-caption-grid-simple {
transition-delay: 0ms;
}
.gallery-grid-lightbox-link:after {
content: '';
position: absolute;
width: 100%;
height: 100%;
top: 0;
left: 0;
z-index: 9999;
}