/* ==========================================================================
   Event Video Manager — Shortcode Grid Layout
   ========================================================================== */

.evm-video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
  gap: 20px;
  width: 100%;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Card — matches .container-single-post in the theme */
.evm-video-item {
  box-shadow: 0px 0px 5px 0px rgba(50, 50, 50, 0.3);
  margin-bottom: 0;
}

/* 16:9 aspect-ratio box — self-contained, does not rely on the theme.
   Red border matches .post-thumbanail in the theme. */
.evm-video-wrapper {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  border-bottom: 4px solid #ed1c24;
  line-height: 0;
}

.evm-video-wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* Title — matches .title-post in the theme */
.evm-video-title {
  padding: 10px 30px;
  margin: 0;
  font-weight: bold;
  font-size: 0.875rem;
  line-height: 1.4;
}

.evm-no-videos {
  font-style: italic;
  opacity: 0.7;
}

@media (max-width: 768px) {
  .evm-video-grid {
    grid-template-columns: 1fr;
    gap: 15px;
  }
}
