File: /www/wwwroot/nasuhang.com/wp-content/plugins/comment-image-lightbox/css/lightbox.css
.wp-block-comment-content img,
.comment-content img,
.wp-block-post-comments .commentlist img {
cursor: zoom-in;
transition: transform 0.2s ease;
max-width: 100%;
height: auto;
}
.wp-block-comment-content img:hover,
.comment-content img:hover,
.wp-block-post-comments .commentlist img:hover {
transform: scale(1.02);
}
#comment-image-lightbox-overlay {
position: fixed;
inset: 0;
z-index: 999999;
background: rgba(0, 0, 0, 0.85);
display: flex;
align-items: center;
justify-content: center;
opacity: 0;
visibility: hidden;
transition: opacity 0.3s ease, visibility 0.3s ease;
cursor: zoom-out;
}
#comment-image-lightbox-overlay.active {
opacity: 1;
visibility: visible;
}
#comment-image-lightbox-overlay img {
max-width: 90vw;
max-height: 90vh;
object-fit: contain;
border-radius: 4px;
box-shadow: 0 0 40px rgba(0, 0, 0, 0.5);
transform: scale(0.9);
transition: transform 0.3s ease;
}
#comment-image-lightbox-overlay.active img {
transform: scale(1);
}
#comment-image-lightbox-close {
position: fixed;
top: 20px;
right: 24px;
z-index: 9999999;
width: 40px;
height: 40px;
background: rgba(255, 255, 255, 0.15);
border: none;
border-radius: 50%;
color: #fff;
font-size: 24px;
line-height: 1;
cursor: pointer;
display: flex;
align-items: center;
justify-content: center;
opacity: 0;
visibility: hidden;
transition: opacity 0.3s ease, visibility 0.3s ease, background 0.2s ease;
}
#comment-image-lightbox-close.active {
opacity: 1;
visibility: visible;
}
#comment-image-lightbox-close:hover {
background: rgba(255, 255, 255, 0.3);
}