/**
 * Responsive video styles for video resources
 */

/* Video container */
.video-wrapper {
  margin-bottom: 2rem;
  width: 100%;
}

/* Responsive video wrapper with aspect ratio */
.video-responsive-wrapper {
  width: 100%;
  height: 0;
  padding-bottom: 56.25%; /* 16:9 aspect ratio */
  position: relative;
  overflow: hidden;
  margin-bottom: 1rem;
  background-color: #000; /* Dark background while loading */
}

/* Make iframe fill the container */
.video-responsive-wrapper iframe {
  width: 100%;
  height: 100%;
  border: none;
  position: absolute;
  top: 0;
  left: 0;
}

/* Content layout */
.video-content {
  width: 100%;
}

/* Video-specific styles */
.video-description {
  background: transparent;
  padding: 0;
  margin: 0;
  border-radius: 0;
  box-shadow: none;
}

.transcript {
  padding: 0;
  margin: 0;
  background: transparent;
  border-radius: 0;
  box-shadow: none;
}

.video-right-column h2 {
  margin-top: 0;
  color: #333;
  margin-bottom: 1.5rem;
}

/* Two-column layout */
.video-columns {
  display: flex;
  flex-wrap: nowrap;
  gap: 30px;
  margin-top: 2rem;
}

.video-left-column {
  flex: auto;
  min-width: calc(33.33% - 15px);
}

.video-right-column {
  flex: auto;
  max-width: 25%;
  min-width: 0;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .video-responsive-wrapper {
    height: 0;
    padding-bottom: 56.25%; /* Maintain 16:9 aspect ratio */
  }
  
  .video-columns {
    flex-direction: column;
  }
  
  .video-left-column,
  .video-right-column {
    flex: 1 1 100%;
    width: 100%;
    min-width: 100%;
  }
}

/* Fix for CLS */
.video-wrapper {
  min-height: 200px; /* Minimum height to reduce CLS */
}

/* Video-specific styles have been moved to core.css */
