.vlg-gallery {
display: grid;
grid-template-columns: repeat(var(--vlg-columns, 3), 1fr);
gap: 24px;
}
.vlg-card {
background: #fff;
border: 1px solid #e0e0e0;
border-radius: 12px;
overflow: hidden;
transition: box-shadow 0.3s ease, transform 0.2s ease;
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}
.vlg-card:hover {
box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
transform: translateY(-3px);
}
.vlg-card a {
text-decoration: none;
display: block;
}
.vlg-thumb-wrap {
position: relative;
overflow: hidden;
}
.vlg-thumb-wrap img {
width: 100%;
height: auto;
display: block;
aspect-ratio: 16 / 9;
object-fit: cover;
transition: transform 0.3s ease;
}
.vlg-card:hover .vlg-thumb-wrap img {
transform: scale(1.05);
}
.vlg-play-btn {
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
width: 60px;
height: 60px;
background: rgba(0, 0, 0, 0.55);
border-radius: 50%;
display: flex;
align-items: center;
justify-content: center;
font-size: 24px;
color: #fff;
pointer-events: none;
transition: background 0.3s ease, transform 0.3s ease;
}
.vlg-card:hover .vlg-play-btn {
background: rgba(255, 0, 0, 0.8);
transform: translate(-50%, -50%) scale(1.1);
}
.vlg-title {
padding: 14px 16px;
font-weight: 600;
font-size: 24px;
line-height: normal;
color: #1a1a1a;
text-align: center;
border-top: 1px solid #f0f0f0;
} @media (max-width: 900px) {
.vlg-gallery {
grid-template-columns: repeat(2, 1fr);
gap: 16px;
}
} @media (max-width: 560px) {
.vlg-gallery {
grid-template-columns: 1fr;
gap: 14px;
}
.vlg-title {
padding: 10px 12px;
font-size: 14px;
}
}