.video-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 400px), 1fr));
    gap: 2rem;
    padding: 1rem;
    width: 100%;
}

.video-card {
    position: relative;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s ease-in-out;
    cursor: pointer;
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
}

.video-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.video-container {
    position: relative;
    width: 100%;
    padding-top: 56.25%; /* 16:9 aspect ratio */
    background: #000;
    overflow: hidden;
}

.video-thumbnail,
.video-placeholder img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.play-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.2);
    display: flex;
    justify-content: center;
    align-items: center;
    transition: background-color 0.2s ease-in-out;
}

.video-card:hover .play-overlay {
    background: rgba(0, 0, 0, 0.4);
}

.play-button {
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 20px 0 20px 40px;
    border-color: transparent transparent transparent #ffffff;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
    transition: transform 0.2s ease-in-out;
}

.video-card:hover .play-button {
    transform: scale(1.1);
}

.video-info {
    padding: 0.5rem;
    background: #fff;
}

.video-info h3 {
    margin: 0;
    font-size: 1rem;
    color: #333;
    text-align: center;
}

@media (max-width: 800px) {
    .video-gallery {
        grid-template-columns: 1fr;
    }
    
    .video-card {
        max-width: 400px;
    }
}

@media (max-width: 500px) {
    .video-card {
        max-width: 100%;
    }
    
    .video-info h3 {
        font-size: 0.9rem;
    }
}
