Update texts and add clickable enlarged image lightbox

This commit is contained in:
Kaya Samat
2026-08-07 22:06:27 +03:00
parent a16a1e0f6b
commit 2e81f0f465
4 changed files with 79 additions and 4 deletions
+36
View File
@@ -180,6 +180,42 @@ a:hover { text-decoration: underline; }
transition: opacity 0.7s ease;
}
.slides img.active { opacity: 1; }
.slides img.clickable { cursor: zoom-in; }
/* ---------------- Lightbox ---------------- */
.lightbox {
position: fixed;
inset: 0;
z-index: 100;
background: rgba(0, 0, 0, 0.85);
display: flex;
align-items: center;
justify-content: center;
padding: 24px;
opacity: 0;
visibility: hidden;
transition: opacity 0.25s ease, visibility 0.25s ease;
}
.lightbox.open { opacity: 1; visibility: visible; }
.lightbox img {
max-width: 92vw;
max-height: 88vh;
border-radius: 10px;
box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6);
}
.lightbox-close {
position: absolute;
top: 18px;
right: 24px;
background: none;
border: none;
color: #fff;
font-size: 2.2rem;
line-height: 1;
cursor: pointer;
opacity: 0.85;
}
.lightbox-close:hover { opacity: 1; }
.slider-btn {
position: absolute;