/* Promotional Video board template. */
.cms-board--promotional-video {
  display: flex;
  flex-direction: column;
  gap: 28px;
  width: 100%;
}

.cms-board--promotional-video > .cms-board__tools {
  display: flex;
  justify-content: flex-end;
}

.cms-board--promotional-video .cms-board__toolbar {
  width: min(100%, 520px);
}

.cms-board--promotional-video .cms-board__search {
  display: flex;
  justify-content: flex-end;
  width: 100%;
}

.cms-board--promotional-video .cms-board__video-grid {
  gap: 28px 20px;
}

.cms-board--promotional-video .cms-board__video-card {
  max-width: none;
  border-color: #d7dbe3;
}

.cms-board--promotional-video .cms-board__video-thumb {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #111827;
  color: #fff;
  overflow: hidden;
}

.cms-board--promotional-video .cms-board__video-thumb img {
  transition: transform 180ms ease;
}

.cms-board--promotional-video .cms-board__video-card:hover .cms-board__video-thumb img,
.cms-board--promotional-video .cms-board__video-card:focus-within .cms-board__video-thumb img {
  transform: scale(1.035);
}

.cms-board--promotional-video .cms-board__video-placeholder {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  padding: 18px;
  color: #d1d5db;
  font-weight: 700;
  text-align: center;
  overflow-wrap: anywhere;
}

.cms-board--promotional-video .cms-board__video-play {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 46px;
  height: 46px;
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.72);
  box-shadow: 0 10px 24px rgba(17, 24, 39, 0.28);
  transform: translate(-50%, -50%);
  backdrop-filter: blur(4px);
}

.cms-board--promotional-video .cms-board__video-play::before {
  content: "";
  position: absolute;
  left: 18px;
  top: 13px;
  border-left: 14px solid #fff;
  border-top: 9px solid transparent;
  border-bottom: 9px solid transparent;
}

.cms-board--promotional-video .cms-board__card-title {
  font-size: 17px;
  font-weight: 750;
  line-height: 1.45;
}

.cms-board--promotional-video .cms-board__card-summary {
  color: #475569;
  font-size: 14px;
  line-height: 1.6;
}

.cms-board--promotional-video .cms-board__card-meta {
  gap: 8px 14px;
  color: #64748b;
  font-size: 13px;
}

.cms-board-detail--promotional-video {
  gap: 28px;
}

.cms-board-detail--promotional-video .cms-board-detail__header {
  display: grid;
  gap: 12px;
  padding-bottom: 20px;
  border-bottom: 1px solid #d8dde6;
}

.cms-board-detail--promotional-video .cms-board-detail__video {
  display: grid;
  justify-items: center;
}

.cms-board-detail--promotional-video .cms-board-detail__video-frame {
  width: min(100%, 1080px);
  margin: 0;
  background: #111827;
}

.cms-board-detail--promotional-video .cms-board-detail__video-frame iframe,
.cms-board-detail--promotional-video .cms-board-detail__video-frame video {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 0;
  background: #111827;
}

.cms-board-detail--promotional-video .cms-board-detail__video-frame figcaption {
  padding: 12px 14px;
  background: #fff;
  color: #334155;
  font-size: 14px;
}

.cms-board-detail--promotional-video .cms-board-detail__video-empty {
  display: grid;
  place-items: center;
  width: min(100%, 1080px);
  min-height: 240px;
  padding: 24px;
  border: 1px solid #d8dde6;
  background: #f8fafc;
  color: #64748b;
}

.cms-board-detail--promotional-video .cms-board-detail__video-empty a {
  color: #243a8f;
  font-weight: 700;
}

.cms-board-detail__attachment-preview.is-video video {
  display: block;
  width: 100%;
  max-height: 48rem;
  background: #111827;
}

@media (max-width: 720px) {
  .cms-board--promotional-video > .cms-board__tools,
  .cms-board--promotional-video .cms-board__search {
    justify-content: stretch;
  }

  .cms-board--promotional-video .cms-board__toolbar {
    width: 100%;
  }

  .cms-board--promotional-video .cms-board__video-play {
    width: 42px;
    height: 42px;
  }

  .cms-board--promotional-video .cms-board__video-play::before {
    left: 17px;
    top: 12px;
  }

}
