llhd/wwwroot/webnew/css/Galeri.css

105 lines
1.6 KiB
CSS

.galeri-card {
overflow: hidden;
border-radius: 20px;
transition: 0.3s;
cursor: pointer;
}
.galeri-card img {
width: 100%;
height: 260px;
object-fit: cover;
border-radius: 20px;
transition: 0.3s;
}
.galeri-card:hover img {
transform: scale(1.05);
}
.lightbox {
display: none;
position: fixed;
z-index: 9999;
padding-top: 80px;
left: 0;
top: 0;
width: 100%;
height: 100%;
background: rgba(0,0,0,0.85);
backdrop-filter: blur(6px);
}
.lightbox-content {
display: block;
margin: auto;
max-width: 80%;
max-height: 80%;
border-radius: 12px;
animation: zoomIn 0.3s ease;
}
.lightbox .close {
position: absolute;
top: 30px;
right: 40px;
color: #fff;
font-size: 32px;
cursor: pointer;
}
@keyframes zoomIn {
from {
transform: scale(0.8);
opacity: 0;
}
to {
transform: scale(1);
opacity: 1;
}
}
.lightbox {
display: none;
position: fixed;
z-index: 999;
padding-top: 60px;
left: 0;
top: 0;
width: 100%;
height: 100%;
background-color: rgba(0,0,0,0.85);
}
.lightbox-content {
display: block;
margin: auto;
max-width: 80%;
border-radius: 10px;
margin-top: 50px;
}
.lightbox-text {
text-align: center;
margin-top: 15px;
}
#lightbox-title {
color: #fff;
font-weight: bold;
}
#lightbox-description {
color: #ccc;
font-size: 14px;
}
.lightbox .close {
position: absolute;
top: 20px;
right: 35px;
color: white;
font-size: 30px;
cursor: pointer;
}