.video-grid {
display: grid;
grid-template-columns: repeat(3, 1fr);
gap: 1rem;
}

.video-item {
display: flex;
flex-direction: column;
}

.video-text h4 {
margin-top: 20px;
font-size: 100%;
line-height: 1.4;
}

@media (max-width: 768px) {
.video-grid {
grid-template-columns: 1fr;
}
}

.video-thumb {
position: relative;
overflow: hidden;
border-radius: 8px;
line-height: 0;
cursor: pointer;
}

.video-thumb img {
display: block;
width: 100%;
transition: transform 0.4s ease;
z-index: 1;
position: relative;
}

.video-thumb::after {
content: "";
position: absolute;
inset: 0;
background: rgba(0,0,0,0.25);
opacity: 0;
transition: opacity 0.3s ease;
z-index: 2;
pointer-events: none;
}

.play-button {
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
z-index: 3;
font-size: 3rem;
color: white;
display: flex;
align-items: center;
justify-content: center;
transition: transform 0.3s ease, background 0.3s ease;
}

.video-thumb:hover img {
transform: scale(1.05);
}

.video-thumb:hover::after {
opacity: 1;
}

.video-thumb:hover .play-button {
transform: translate(-50%, -50%) scale(1.15);
}

.modal {
display: none;
position: fixed;
inset: 0;
background: rgba(0,0,0,0.8);
justify-content: center;
align-items: center;
z-index: 999;
}

.modal-content {
position: relative;
width: 90%;
max-width: 900px;
background: #000;
border-radius: 8px;
}

.close {
position: absolute;
top: -40px;
right: 0;
font-size: 2rem;
color: white;
background: none;
border: none;
cursor: pointer;
}

.video-wrapper {
position: relative;
padding-top: 56.25%;
}

.video-wrapper iframe {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
}