/* video-gallery.css */
.video-cards-container {
  max-width: 1200px;
  margin: 20px auto;
  padding: 0 16px;
}

.video-cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.video-card {
  background: #fff;
  border: 1px solid #eaeaea;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 10px rgba(0,0,0,0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.video-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 16px rgba(0,0,0,0.15);
}

.video-card a {
  display: block;
  text-decoration: none;
}

.video-card img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
}

.video-card h3 {
  font-size: 15px;
  font-weight: 600;
  margin: 12px;
  text-align: center;
  color: #222;
  line-height: 1.3;
}

/* Адаптивность */
@media (max-width: 768px) {
  .video-cards-grid {
    grid-template-columns: 1fr;
  }
}

@media (min-width: 769px) and (max-width: 1024px) {
  .video-cards-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}