 body {
    margin: 0;
    padding: 0;
    overflow-x: hidden;
} 
        .space-video-gallery-section {
    padding: 60px 0 0 0; /* Remove bottom padding */
    background: linear-gradient(45deg, #000000, #1a1a4a);
    overflow: hidden;
    /* Remove min-height to prevent extra space */
}

.space-video-gallery-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 20px 0 20px; /* Remove bottom padding */
}


        .space-video-gallery-title {
            text-align: center;
            color: #fff;
            margin-bottom: 50px;
            opacity: 0;
            transform: translateY(30px);
        }

        /* Update grid bottom spacing */
.space-video-gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    perspective: 1000px;
    margin-bottom: 0; /* Ensure no margin at bottom */
    padding-bottom: 30px; /* Add small padding to prevent content from touching footer */
}

        .space-video-card {
            position: relative;
            height: 300px;
            transform-style: preserve-3d;
            transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
            cursor: pointer;
        }

        .space-video-card:hover {
            transform: translateZ(20px) rotateX(5deg) rotateY(5deg);
        }

        .space-video-wrapper {
            position: absolute;
            width: 100%;
            height: 100%;
            border-radius: 15px;
            overflow: hidden;
            background: rgba(255, 255, 255, 0.1);
            backdrop-filter: blur(10px);
            border: 1px solid rgba(255, 255, 255, 0.2);
            box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
        }

        .space-video-iframe {
            width: 100%;
            height: 100%;
            border: none;
        }

        .space-video-overlay {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: linear-gradient(
                to bottom,
                rgba(0, 0, 0, 0.2),
                rgba(0, 0, 0, 0.6)
            );
            display: flex;
            flex-direction: column;
            justify-content: flex-end;
            padding: 20px;
            color: white;
            opacity: 0;
            transition: opacity 0.3s ease;
        }

        .space-video-card:hover .space-video-overlay {
            opacity: 1;
        }

        .space-video-title {
            font-size: 1.2rem;
            margin: 0;
            margin-bottom: 5px;
        }

        .space-video-description {
            font-size: 0.9rem;
            margin: 0;
            opacity: 0.8;
        }

        @media (max-width: 768px) {
            .space-video-gallery-grid {
                grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
                gap: 20px;
            }

            .space-video-card {
                height: 250px;
            }
        }

        @media (max-width: 480px) {
            .space-video-gallery-grid {
                grid-template-columns: 1fr;
            }
        }
        .video-thumbnail {
    position: relative;
    width: 100%;
    height: 100%;
    cursor: pointer;
}

.video-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    background-color: rgba(255, 255, 255, 0.8);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: #000;
    transition: all 0.3s ease;
}

.play-button:hover {
    background-color: rgba(255, 255, 255, 1);
    transform: translate(-50%, -50%) scale(1.1);
}

.video-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.space-video-card.playing .video-thumbnail,
.space-video-card.playing .space-video-overlay {
    display: none;
}

.space-video-card.playing .video-container {
    display: block;
}