/* Investigation Post: video library and home-page video. Nothing here loads from YouTube until a reader presses play. */
.ipv-library { margin: 0 0 40px; }
.ipv-library__title { margin: 0 0 20px; padding-top: 12px; border-top: 4px solid #111; font-size: 26px; line-height: 1.15; }
.ipv-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(200px, 100%), 1fr)); gap: 28px 20px; align-items: start; }
.ipv[hidden] { display: none; }
.ipv__play { position: relative; display: block; width: 100%; padding: 0; border: 0; background: #111; cursor: pointer; overflow: hidden; }
.ipv--short .ipv__play, .ipv--short .ipv__frame { aspect-ratio: 9 / 16; }
.ipv--wide .ipv__play, .ipv--wide .ipv__frame { aspect-ratio: 16 / 9; }
.ipv--wide { grid-column: span 2; }
.ipv__play img, .ipv__blank { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ipv__blank { background: #333; }
.ipv__play::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(0, 0, 0, 0.45), rgba(0, 0, 0, 0) 45%); }
.ipv__icon { position: absolute; z-index: 1; left: 50%; top: 50%; width: 56px; height: 56px; margin: -28px 0 0 -28px; border-radius: 50%; background: #b80106; box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4); }
.ipv__icon::before { content: ""; position: absolute; left: 22px; top: 16px; border-style: solid; border-width: 12px 0 12px 19px; border-color: transparent transparent transparent #fff; }
.ipv__play:hover .ipv__icon, .ipv__play:focus-visible .ipv__icon { background: #8e0005; }
.ipv__play:focus-visible { outline: 3px solid #b80106; outline-offset: 2px; }
.ipv__frame { position: relative; width: 100%; background: #000; }
.ipv__frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.ipv__title { margin: 10px 0 2px; font-size: 16px; line-height: 1.3; font-weight: 700; }
.ipv__date { display: block; font-size: 12px; color: #555; }
.ipv-more, .ipv-channel { margin: 24px 0 0; text-align: center; }
.ipv-channel a { font-weight: 700; }
.ipv-home__body { display: flex; justify-content: center; }
.ipv-home__body .ipv { width: min(100%, 320px); grid-column: auto; }
.ipv-home__body .ipv--wide { width: min(100%, 640px); }
@media (max-width: 520px) { .ipv--wide { grid-column: 1 / -1; } .ipv-grid { grid-template-columns: repeat(2, 1fr); } .ipv--wide .ipv__play { aspect-ratio: 16 / 9; } }
