/**
 * Shared 16:9 video embed layout (Addiction Treatment template standard).
 * Used on Homepage V2 and anywhere .at-video__embed is rendered.
 */

.at-video__grid-wrap {
  margin-top: 0;
  margin-bottom: 8px;
}

.at-video__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  margin: 0;
  justify-items: center;
}

.at-video__item {
  min-width: 0;
  max-width: 900px;
  width: 100%;
}

.at-video__embed {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  border-radius: 12px;
  background: #2a2d26;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
}

.at-video__embed iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
  border-radius: 12px;
  display: block;
}

@media (max-width: 768px) {
  .at-video__grid {
    gap: 20px;
  }

  .at-video__embed {
    border-radius: 10px;
  }

  .at-video__embed iframe {
    border-radius: 10px;
  }
}

/* Page builder full-width video block */
.pageBuilder .pb-full-width-video {
  padding: 48px 0;
}

/* Layout Builder – highlight video blocks (embed styling via .at-video__* above) */
section.highlight-video,
section.alt-highlight-video {
  padding: 1rem 0;
}

section.alt-highlight-video {
  padding-bottom: 4rem;
}

section.alt-highlight-video .outline {
  max-width: 800px;
}

section.highlight-video header.data-header,
section.alt-highlight-video header.data-header {
  padding: 1rem 0;
  font-size: 16px;
}

section.highlight-video header.data-header p,
section.alt-highlight-video header.data-header p {
  font-size: 16px;
}

@media (min-width: 769px) {
  section.highlight-video header.data-header {
    text-align: center;
  }
}

section.alt-highlight-video .at-video__grid-wrap {
  margin-bottom: 2rem;
}
