.media-section {
  padding: 40px 16px;
  background: #f9fafb;
}

.media-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

/* Card box */
.media-card {
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

/* Video styling */
.media-video {
  width: 100%;
  height: 300px;       /* approx 300 height */
  object-fit: cover;   /* warp / crop to fill */
  background: #000;
}

/* Image styling */
.media-image {
  width: 100%;
  height: 300px;
  object-fit: cover;
}

/* Title */
.media-title {
  padding: 10px 12px 14px;
  font-size: 16px;
  text-align: center;
}

/* Responsive breakpoints */

/* Mobile: 1 column */
@media (max-width: 600px) {
  .media-grid {
    grid-template-columns: 1fr;
  }
  .media-video,
  .media-image {
    height: 250px;
  }
}

/* Tablet: 2 columns */
@media (min-width: 601px) and (max-width: 1024px) {
  .media-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .media-video,
  .media-image {
    height: 280px;
  }
}

/* Large desktop: 4 columns */
@media (min-width: 1025px) {
  .media-grid {
    grid-template-columns: repeat(4, 1fr);
  }
  .media-video,
  .media-image {
    height: 300px; /* चाहो तो 350–400 भी कर सकते हो */
  }
}
