.projects-container {
    max-width: 1100px;
    margin: auto;
    padding: 2rem 1rem;
  }
  
  .page-title {
    text-align: center;
    font-size: 2.2rem;
    margin-bottom: 0.5rem;
  }
  
  .page-subtitle {
    text-align: center;
    color: #666;
    margin-bottom: 3rem;
  }
  
  .project-card {
    background: #fff;
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 3rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
  }
  
  .project-title {
    margin-bottom: 1rem;
  }
  
  .project-gallery {
    position: relative;
    max-width: 900px;          /* desktop limit */
    margin: 0 auto 1.5rem;     /* center */
    border-radius: 12px;
    overflow: hidden;
  }
  
  .project-gallery img {
    width: 100%;
    height: auto;
    max-height: 480px;         /* prevents huge images */
    object-fit: cover;
    display: none;
  }
  
  .project-gallery img.active {
    display: block;
  }
  
  /* Mobile adjustment */
  @media (max-width: 768px) {
    .project-gallery img {
      max-height: 300px;
    }
  }
  
  
  .project-gallery .nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.5);
    color: #fff;
    border: none;
    font-size: 1.5rem;
    padding: 0.5rem 0.8rem;
    cursor: pointer;
    border-radius: 50%;
  }
  
  .project-gallery .prev { left: 10px; }
  .project-gallery .next { right: 10px; }
  
  .project-description {
    margin-top: 1rem;
    line-height: 1.6;
  }
  
  .project-status {
    display: inline-block;
    margin-top: 0.8rem;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.85rem;
  }
  
  .project-status.ongoing {
    background: #f4c430;
    color: #000;
  }
  
  .project-status.completed {
    background: #2e7d32;
    color: #fff;
  }
  

  .project-video {
    max-width: 900px;
    margin: 0 auto 1.5rem;
  }
  
  .video-wrapper {
    width: 100%;
    background: #000;            /* YouTube-style black */
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
  }
  
  /* IMPORTANT FIX */
  .video-wrapper video {
    width: 100%;
    height: auto;
    max-height: 520px;            /* desktop limit */
    object-fit: contain;          /* key property */
    background: #000;
    display: block;
  }
  
  /* Mobile portrait tuning */
  @media (max-width: 768px) {
    .video-wrapper video {
      max-height: 420px;
    }
  }


  
  .video-wrapper iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
  }
  
  /* Mobile video size refinement */
  @media (max-width: 768px) {
    .project-video {
      margin-bottom: 1.2rem;
    }
  }
  