.product-video-gallery {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 20px;
    padding: 15px 0;
    border-top: 1px solid #e0e0e0;
}

.video-thumbnail-container {
    position: relative;
    width: calc(33.333% - 10px);
    min-width: 150px;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    background-color: #f5f5f5;
    display: flex;
    flex-direction: column;
}

.video-thumbnail-container:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
}

.container-video-additional {
    position: relative;
}
.video-thumbnail-container .video-thumbnail {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    display: block;
    border: none;
}

.video-thumbnail-container video.video-thumbnail {
    background-color: #000;
}

.video-thumbnail-container .play-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 2rem;
    opacity: 0.8;
    transition: opacity 0.2s ease, transform 0.2s ease;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

.video-thumbnail-container:hover .play-icon {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.1);
}
.video-info {
    padding: 10px;
    background-color: #fff;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.video-title {
    font-size: 1rem;
    margin: 0 0 5px 0;
    color: #333;
    font-weight: bold;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.video-description {
    font-size: 0.85rem;
    color: #666;
    line-height: 1.4;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    flex-grow: 1;
}
.video-modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
}

.video-modal-content {
    position: relative;
    background-color: transparent;
    margin: auto;
    padding: 0;
    width: 90%;
    max-width: 1000px;
    top: 50%;
    transform: translateY(-50%);
}

.video-player-container {
    position: relative;
    width: 100%;
    padding-top: 56.25%;
    background: #000;
}

.video-player {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.video-modal-close {
    position: absolute;
    top: 15px;
    right: 30px;
    color: #fff;
    font-size: 35px;
    font-weight: bold;
    cursor: pointer;
    z-index: 10001;
    transition: color 0.2s ease;
}

.video-modal-close:hover,
.video-modal-close:focus {
    color: #ccc;
}
@media (max-width: 992px) {
    .video-thumbnail-container {
        width: calc(50% - 8px);
    }
}

@media (max-width: 576px) {
    .video-thumbnail-container {
        width: 100%;
    }
    
    .video-modal-content {
        width: 95%;
    }
    
    .video-title {
        font-size: 0.9rem;
    }
    
    .video-description {
        font-size: 0.8rem;
    }
}
