.video-grid {
  max-width: 1600px;
  margin: 0 auto;
padding: 10px;
background: none;
}

/* Masonry items */
.grid-item {

  margin-bottom: 16px;
}

/* Video container */
.video-item {
  max-width: 400px;
  height: auto;
  position: relative;
  overflow: hidden;
  border-radius: 8px;
}

/* Video style */
.video-item video {
  max-width: 400px;


  display: block;
  border-radius: 8px;
}

/* Overlay */
.overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  padding: 1rem;
  color: white;
  background: linear-gradient(to bottom, rgba(0,0,0,0.8), rgba(0,0,0,0));
  pointer-events: none;
  border-radius: 0 0 8px 8px;
}

/* Optional: hover fade-in */
.overlay {
  opacity: 1;
  transition: opacity 0.3s ease;
}

.overlay img {
  width: fit-content;
  max-width: 100px;
}

.video-item:hover .overlay {
  opacity: 0;
}

.overlay h3 {
  color: white;
margin-top: 0;
  padding: 0;
margin-bottom: 0.1rem;
  font-size: 1.5rem;
}

.overlay p {
  margin: 0;
  font-size: 0.9rem;
  padding: 0;
  line-height: 0.9rem;
  opacity: 0.9;
}


@media (max-width: 768px) {
  .grid-item {
    width: 100%;
    max-width: 98%;
  }
  .video-item video {
    width: 100%;
    max-width: 98%;
  }
  .video-item {
    width: 100%;
    max-width: 98%;
  }
}