/* V39: responsive native-aspect embedded video frames. */
iframe[src*="player.vimeo.com"],iframe[src*="tiktok.com/player"]{display:block;border:0;max-width:100%;}
/* Landscape videos */
.google-video,.tt-media.tt-wide,.v30-player:not(.v30-portrait),.moment-grid .v30-player{position:relative;aspect-ratio:16/9;width:100%;height:auto;min-height:0;overflow:hidden;background:#050505;}
.google-video iframe,.tt-media.tt-wide iframe,.v30-player iframe{position:absolute;inset:0;width:100%;height:100%;}
/* Portrait videos: use a constrained, centered player rather than a stretched column. */
.tt-media.tt-vertical,.v30-player.v30-portrait{position:relative;aspect-ratio:9/16;width:100%;height:auto;min-height:0;max-width:360px;margin-inline:auto;overflow:hidden;background:#050505;}
.tt-media.tt-vertical iframe{position:absolute;inset:0;width:100%;height:100%;}
/* Prevent tall portrait frames from expanding neighboring cards. */
.tt-panel,.v30-media-wrap,.bb-showcase-grid>*,.moment-grid>*{min-width:0;}
/* Black Bear videos are currently supplied as landscape assets. Keep them native 16:9. */
.bb-media--video:has(iframe){min-width:0;overflow:hidden;}
.bb-media--video>iframe,.bb-showcase-grid .bb-media--video>iframe{display:block;width:100%;height:auto;aspect-ratio:16/9;border:0;}
/* Instagram reels in Dune are portrait embeds; avoid filling an entire wide column. */
.stop .embed-wrap{width:100%;min-width:0;min-height:0;box-sizing:border-box;align-self:start;}
.stop .embed-wrap blockquote.instagram-media{width:100%!important;max-width:420px!important;min-width:0!important;margin:0 auto!important;}
@media(max-width:650px){
 .tt-media.tt-vertical,.v30-player.v30-portrait{max-width:min(100%,340px);}
 .stop .embed-wrap{padding:10px;}
 .stop .embed-wrap blockquote.instagram-media{max-width:100%!important;}
}
