.bw-section {
  background: linear-gradient(180deg, #fbf8f1 0%, #fff 100%);
}

.bw-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(420px, 1fr));
  gap: 28px;
  max-width: 1100px;
  margin: 0 auto;
}

.bw-gallery:has(> :only-child) {
  grid-template-columns: minmax(0, 820px);
  justify-content: center;
}

.bw-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  margin: 0;
  border: 1px solid #e8e6e0;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 24px 60px -20px rgba(15, 30, 61, 0.18);
}

.bw-video-wrap {
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: #0f1e3d;
}

.bw-card.bw-portrait .bw-video-wrap {
  max-width: 340px;
  margin: 0 auto;
  border-radius: 14px;
  aspect-ratio: 9 / 16;
}

.bw-video-wrap video {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  background: #0f1e3d;
}

.bw-video-wrap video::cue {
  background: rgba(15, 30, 61, 0.92);
  color: #fff;
  font-size: 18px;
  line-height: 1.35;
}

.bw-card.bw-portrait .bw-video-wrap video::cue {
  font-size: 20px;
}

.bw-meta {
  padding: 22px 26px 24px;
}

.bw-row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.bw-eyebrow {
  color: #d98a08;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.bw-title {
  margin: 4px 0 8px;
  color: #0f1e3d;
  font-size: 20px;
  font-weight: 800;
  line-height: 1.2;
}

.bw-note {
  max-width: 560px;
  margin: 0;
  color: #6a7388;
  font-size: 14.5px;
  line-height: 1.55;
}

.bw-badge {
  flex-shrink: 0;
  padding: 6px 12px;
  border-radius: 999px;
  background: #fff4dc;
  color: #d98a08;
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
}

.bw-accessibility {
  padding: 0 26px 24px;
  border-top: 1px solid #efede8;
}

.bw-media-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
  padding-top: 18px;
}

.bw-caption-toggle,
.bw-vtt-link {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 700;
}

.bw-caption-toggle {
  display: none;
  padding: 9px 14px;
  border: 2px solid #0f1e3d;
  background: #0f1e3d;
  color: #fff;
  cursor: pointer;
}

.bw-card.bw-captions-ready .bw-caption-toggle {
  display: inline-flex;
}

.bw-caption-toggle[aria-pressed="false"] {
  background: #fff;
  color: #0f1e3d;
}

.bw-vtt-link {
  padding: 9px 4px;
  color: #0f4c81;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.bw-caption-toggle:focus-visible,
.bw-vtt-link:focus-visible,
.bw-transcript summary:focus-visible {
  outline: 3px solid #d98a08;
  outline-offset: 3px;
}

.bw-media-status {
  width: 100%;
  margin: 2px 0 0;
  padding: 9px 11px;
  border-left: 4px solid #b42318;
  border-radius: 4px;
  background: #fef3f2;
  color: #7a271a;
  font-size: 14px;
  line-height: 1.45;
}

.bw-media-status[hidden] {
  display: none;
}

.bw-transcript {
  margin-top: 14px;
  border: 1px solid #d8dce4;
  border-radius: 10px;
  background: #fafbfc;
}

.bw-transcript summary {
  padding: 12px 14px;
  color: #0f1e3d;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
}

.bw-transcript-body {
  max-height: 18rem;
  overflow-y: auto;
  padding: 2px 14px 14px;
  color: #313b50;
  font-size: 15px;
  line-height: 1.65;
}

.bw-transcript-body p {
  margin: 0 0 10px;
}

.bw-transcript-time {
  margin-right: 8px;
  color: #667085;
  font-variant-numeric: tabular-nums;
  font-weight: 700;
}

.bw-footnote {
  max-width: 640px;
  margin: 32px auto 0;
  color: #6a7388;
  font-size: 14px;
  text-align: center;
}

@media (max-width: 560px) {
  .bw-gallery {
    grid-template-columns: minmax(0, 1fr);
  }

  .bw-meta {
    padding: 18px 20px 22px;
  }

  .bw-accessibility {
    padding: 0 20px 22px;
  }

  .bw-caption-toggle {
    flex: 1 1 150px;
  }
}