
.videogallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1.5rem;
    padding: 2rem 0;
}

.videogallery-card {
    position: relative;
    background: #76bfba;
    color: #fff;
    border-radius: 10px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
    display: flex;
    flex-direction: column;
}

.videogallery-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.5);
}

.video-title {
    padding: 0.5rem 1rem 0;
    font-size: 1rem;
    font-weight: 600;
    text-align: left;
}

.video-meta {
    padding: 0 1rem 0.8rem;
    font-size: 0.85rem;
    color: #fff;
    text-align: left;
}

.video-thumbnail {
    position: relative;
}

.video-thumbnail img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    display: block;
}

.category-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: rgba(255, 255, 255, 0.9);
    color: #000;
    font-size: 0.75rem;
    font-weight: bold;
    padding: 2px 8px;
    border-radius: 12px;
    z-index: 10;
}
.videogallery-categories {
    display: flex;
    gap: 10px;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.category-label {
    padding: 6px 14px;
    border: 1px solid #ccc;
    border-radius: 20px;
    cursor: pointer;
    background: #f5f5f5;
    transition: all 0.2s ease;
    font-size: 0.9rem;
}

.category-label:hover {
    background: #ddd;
}

.category-label.active {
    background: #76bfba;
    color: white;
    border-color: #76bfba;
}
.play-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(1);
    font-size: 50px;
    color: rgba(255, 255, 255, 0.85);
    pointer-events: none;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.videogallery-card:hover .play-icon {
    transform: translate(-50%, -50%) scale(1.2);
    opacity: 1;
}

.videopopup iframe {
    width: 100%;
    height: 80vh;
}

@media screen and (max-width: 600px) {
    .videogallery-card .video-title {
        font-size: 1rem;
    }
}
.videopopup #videocontainer {
    width: 700px;
}
.videopopup .closebtn {
    position: absolute;
    top: 0px;
    right: 0px;
    background: #fff;
    color: #000;
    font-size: 24px;
    font-weight: bold;
    border-radius: 50%;
    padding: 0px 10px;
    cursor: pointer;
    z-index: 10000;
}
.videopopup {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0,0,0,0.7);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.videopopup-content {
    background: #fff;
    padding: 20px;
    border-radius: 10px;
    max-width: 740px;
    width: 90%;
    position: relative;
}

.videopopup-content input,
.videopopup-content select {
    width: 100%;
    margin-bottom: 10px;
    padding: 8px;
}

.videopopup-content .closebtn {
    position: absolute;
    top: -10px;
    right: -10px;
    background: #333;
    color: white;
    border-radius: 50%;
    font-size: 18px;
    padding: 5px 10px;
    cursor: pointer;
}
