/* =============================================================
   barrio_npm_prototype — Video modal (#np-video-modal)
   Shared chrome — project + person detail pages + /replay-media.
   JS: js/detail-modals.js (barrioNpmVideoModal).
   (Extracted from project-detail.css.)
   ============================================================= */

/* ---------- Video modal ----------
   Dark-chrome modal showing the YouTube/Vimeo embed at 16:9 with a
   caption underneath. JS in js/detail-modals.js (barrioNpmVideoModal)
   src-swaps the iframe on show.bs.modal and CRITICALLY clears it on
   hidden.bs.modal so the player stops fetching content + audio in
   the background after the modal closes. */
.np-video-modal .modal-content {
  background: black;
  border: 0;
  box-shadow: none;
  position: relative;
  padding: 0 0 18px;
}
.np-video-modal .np-video-close {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 2;
  background-color: rgba(255, 255, 255, .9);
  border-radius: 50%;
  padding: 8px;
  width: 32px;
  height: 32px;
  opacity: 1;
}
.np-video-modal-frame {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #000;
  border-radius: 8px;
  overflow: hidden;
}
.np-video-modal-iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}
.np-video-modal-title {
  color: #fff;
  font-size: 13px;
  margin: 10px 0 0;
  padding: 0 16px;
  text-align: center;
}
.np-video-modal-summary {
  margin: 8px auto 0;
  max-width: 68ch;
  padding: 0 16px;
  color: rgba(255, 255, 255, .85);
  font-size: 14px;
  line-height: 1.5;
  text-align: center;
}
.np-video-modal-link {
  display: block;
  margin: 10px 0 2px;
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  text-align: center;
  text-decoration: underline;
}
.np-video-modal-link:hover {
  text-decoration: none;
}
.np-video-modal-link[hidden] {
  display: none;
}
