/* Full-width main video */
.main-video-container iframe {
  width: 100%;
  height: 500px;
  max-height: 70vh;
}

/* Responsive video grid */
.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

/* Video card styling */
.video-card {
  background: #fff;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
  padding: 1rem;
  text-align: center;
}

.video-card img {
  width: 100%;
  height: auto;
  display: block;
  margin-bottom: 1rem;
}

.sponsor-banner {
  font-size: 0.9em;
  margin: 0.5rem 0;
}

.footer-info {
  max-width: 800px;
  margin: 0 auto 2rem auto;
  text-align: center;
}
*/
/* ===== Main Video Section ===== */
#main-video-section {
  margin-bottom: 2rem;
}

.video-frame {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%; /* 16:9 */
  background: #000;
  overflow: hidden;
  border-radius: 6px;
}

.video-frame video,
.video-frame img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover; /* crop if aspect ratio doesn’t match */
}

/* ===== Grid for Additional Videos ===== */
.video-grid,
#additional-videos {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
}

/* Video card layout */
.video-card {
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  transition: transform 0.2s ease;
}
.video-card:hover {
  transform: translateY(-4px);
}

.video-card .video-frame {
  margin-bottom: 1rem;
}

/* Sponsor Banner */
.sponsor-banner {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem;
  background: rgba(34, 34, 34, 0.9);
  border-top: 1px solid #eee;
  color: #fff;
}
.sponsor-logo img {
  max-height: 50px;
  width: auto;
}

/* Headers inside cards */
.video-card header {
  padding: 0.75rem 1rem;
}
.video-card h3 {
  margin: 0;
}
/* Ensure strict 16:9 ratio for all video + images */
.video-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9; /* keeps 16:9 ratio */
  background: #000; /* fallback background */
  overflow: hidden;
}

.video-frame video,
.video-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* fills frame */
  display: block;
}

.video-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
  overflow: hidden;
  cursor: pointer;
}

.video-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.play-button-overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 3rem;
  color: white;
  opacity: 0.8;
  pointer-events: none; /* click still goes to .video-frame */
}
