/*
 * Video guide card desktop layout refinement.
 * Desktop: compact 16:9 media column with actions directly below it.
 * Mobile: preserve the existing stacked card flow and button placement.
 */
.video-guides-page .video-guide-card {
  display: grid !important;
  grid-template-columns: clamp(300px, 30vw, 420px) minmax(0, 1fr) !important;
  align-items: start !important;
  overflow: hidden !important;
}

.video-guides-page .video-guide-card-left {
  width: 100% !important;
  max-width: 420px !important;
  min-width: 0 !important;
  align-self: start !important;
}

.video-guides-page .video-guide-card-media {
  position: relative !important;
  display: block !important;
  width: 100% !important;
  max-width: 420px !important;
  aspect-ratio: 16 / 9 !important;
  height: auto !important;
  min-height: 0 !important;
  overflow: hidden !important;
}

.video-guides-page .video-guide-card-media img {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  max-width: 100% !important;
  aspect-ratio: 16 / 9 !important;
  object-fit: contain !important;
  object-position: center center !important;
}

.video-guides-page .video-guide-card-body {
  min-width: 0 !important;
  width: 100% !important;
}

/* Slightly reduce card titles on desktop so long titles stay balanced. */
.video-guides-page .video-guide-card-body h2 {
  font-size: clamp(1.75rem, 2.05vw, 2.2rem) !important;
  line-height: 1.16 !important;
}

/* Desktop actions live below the thumbnail, using the otherwise empty media column. */
.video-guides-page .video-guide-card-actions-desktop {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 10px !important;
  margin-top: 14px !important;
  padding: 0 !important;
}

.video-guides-page .video-guide-card-actions-desktop .btn {
  flex: 1 1 auto !important;
  min-width: 0 !important;
  white-space: nowrap !important;
}

/* Hide the original body actions only on desktop; they remain untouched on mobile. */
@media (min-width: 768px) {
  .video-guides-page .video-guide-card-body > .video-guide-card-actions {
    display: none !important;
  }
}

/* Preserve the existing mobile UI/UX. */
@media (max-width: 767.98px) {
  .video-guides-page .video-guide-card {
    grid-template-columns: minmax(0, 1fr) !important;
  }

  .video-guides-page .video-guide-card-left,
  .video-guides-page .video-guide-card-media {
    width: 100% !important;
    max-width: none !important;
  }

  .video-guides-page .video-guide-card-actions-desktop {
    display: none !important;
  }

  /* Let the site's existing mobile title sizing continue to control the card. */
  .video-guides-page .video-guide-card-body h2 {
    font-size: revert !important;
    line-height: revert !important;
  }
}
