.me-videos,
.x-col .me-videos,
.x-row .me-videos {
  display: block;
  width: 100%;
}

.me-videos .me-video-grid,
.x-col .me-videos .me-video-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  width: 100%;
}

.me-videos .me-video-card,
.x-col .me-videos .me-video-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 0;
  padding: 0;
  background: transparent;
  border: 0;
  min-width: 0;
}

.me-videos .me-video-embed,
.x-col .me-videos .me-video-embed {
  position: relative;
  width: 100%;
  padding-top: 56.25%;
  overflow: hidden;
  background: #000;
}

.me-videos .me-video-embed iframe,
.x-col .me-videos .me-video-embed iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.me-videos .me-video-title,
.x-col .me-videos .me-video-title {
  margin: 0;
  padding: 0;
  color: var(--me-grey);
  font-family: "Quicksand", "Poppins", Arial, sans-serif;
  font-weight: 700;
  font-size: 1.125rem;
  line-height: 1.3;
  text-align: center;
}

.me-videos .me-video-description,
.x-col .me-videos .me-video-description {
  margin: 0;
  padding: 0;
  color: var(--me-grey);
  font-family: "Open Sans", "Poppins", Arial, sans-serif;
  font-size: 14px;
  line-height: 1.5;
  text-align: center;
}

/* PERF-12: this stylesheet no longer depends on me-shared.css, so the one rule
   it borrowed from it comes along. render_videos_shortcode() emits the generic
   .me-resource-empty box for "no videos yet"; without this the empty state would
   render unstyled on the only page that can show it. Kept byte-identical to the
   shared rule so the two directories and the video grid still look the same. */
.me-resource-empty,
.x-col .me-resource-empty {
  border: 1px dashed var(--me-grey-light);
  border-radius: 0;
  color: var(--me-grey);
  padding: 12px;
  font-family: "Open Sans", "Poppins", Arial, sans-serif;
}

@media (max-width: 767px) {
  .me-videos .me-video-grid,
  .x-col .me-videos .me-video-grid {
    grid-template-columns: 1fr;
  }
}
