/* Optimized Video Gallery Styles */
.project-detail .video-gallery {
  max-width: 800px;
  margin: 0 auto 40px auto;
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: space-between;
  padding: 0 20px;
  box-sizing: border-box;
  width: 100%;
}

.project-detail .video-section {
  flex: 1;
  min-width: 360px;
  margin-bottom: 20px;
  max-width: 100%;
  box-sizing: border-box;
  width: 100%;
}

.project-detail .video-section video {
  width: 640px;
  height: 360px;
  border-radius: 5px;
  background: var(--background-dark, #222);
  object-fit: contain;
  margin: 0 auto;
  display: block;
  max-width: 100%;
  padding: 0;
}

.project-detail .video-caption {
  text-align: center;
  margin-top: 10px;
  color: var(--text-secondary);
  width: 100%;
}

/* Ensure proper box-sizing */
.project-detail .video-gallery,
.project-detail .video-gallery * {
  box-sizing: border-box;
}

@media (max-width: 768px) {
  .project-detail .video-gallery {
    padding: 0 10px;
    max-width: 100%;
  }
  
  .project-detail .video-section {
    min-width: 100%;
  }
  
  .project-detail .video-section video {
    width: 100%;
    height: auto;
    max-width: 100%;
    aspect-ratio: 16 / 9; /* Maintain aspect ratio */
  }
} 