* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
  
body {
    font-family: system-ui, -apple-system, sans-serif;
    padding: 2rem;
    background: #f5f5f5;
}
  
.nav-links {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}
  
.nav-links a {
    background: #fff;
    color: #333;
    padding: 1rem 2rem;
    text-decoration: none;
    border-radius: 0.5rem;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.2s ease;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}
  
.nav-links a:hover {
    background: #f0f0f0;
    transform: translateY(-2px);
}
  
.nav-links a.active {
    background: #2563eb;
    color: white;
}
  
#wrapper {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 2rem;
    margin: 0 auto 3rem auto;
    max-width: 2400px;
    padding: 0 1rem;
}
  
.video-container {
    text-align: center;
    background: white;
    padding: 1.5rem;
    border-radius: 1rem;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}
  
h3 {
    margin-bottom: 1rem;
    color: #1f2937;
    font-size: 1.25rem;
}
  
video {
    width: 100%;
    height: auto;
    border-radius: 0.5rem;
    background: #000;
    object-fit: contain; /* Changed from cover to contain */
    display: block; /* Ensures no extra space below */
}
  
@media (max-width: 1500px) {
    #wrapper {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}
  
@media (max-width: 1000px) {
    #wrapper {
        grid-template-columns: minmax(0, 1fr);
    }
    
    .nav-links {
        flex-direction: column;
        align-items: stretch;
    }
    
    .nav-links a {
        text-align: center;
    }
}