/* Shared pastel players for news, galleries and archives. */
html.site-story-frame body.home-mobile-branding .site-shell #main .has-player-trial{display:flex!important;flex-direction:column;align-items:stretch;gap:12px;margin-block:0 20px}
html.site-story-frame body.home-mobile-branding .site-shell #main .has-player-trial>.news-stamp{display:none}
html.site-story-frame body.home-mobile-branding .site-shell #main details.video-player-trial{
 grid-column:1/-1;order:1;width:100%;max-width:480px;box-sizing:border-box;margin:0 auto;padding:0;
 border:1px solid #cfdee3;border-radius:15px;overflow:hidden;
 background:var(--player-pastel,#e1f0ed);box-shadow:0 5px 16px #24485b16;
}
html.site-story-frame body.home-mobile-branding .site-shell #main details.first-news-player{order:1}
html.site-story-frame body.home-mobile-branding .site-shell #main [data-player-pastel="0"]{--player-pastel:#dcecf8;--player-pastel-end:#e5f0fa}
html.site-story-frame body.home-mobile-branding .site-shell #main [data-player-pastel="1"]{--player-pastel:#f5dfdc;--player-pastel-end:#f6e9cf}
html.site-story-frame body.home-mobile-branding .site-shell #main [data-player-pastel="2"]{--player-pastel:#e8dff2;--player-pastel-end:#dce8f5}
html.site-story-frame body.home-mobile-branding .site-shell #main [data-player-pastel="3"]{--player-pastel:#f3e8cb;--player-pastel-end:#dfeeda}
html.site-story-frame body.home-mobile-branding .site-shell #main .has-player-trial{background:var(--player-pastel);border:1px solid #c8d5d1;border-radius:14px;padding:12px}
html.site-story-frame body.home-mobile-branding .site-shell #main .has-player-trial:last-child{margin-bottom:0}
html.site-story-frame body.home-mobile-branding .site-shell #main details.video-player-trial>summary{display:none}
html.site-story-frame body.home-mobile-branding .site-shell #main .video-player-trial [data-video-placeholder]:not([hidden]){
 display:flex;flex-direction:column;align-items:center;justify-content:center;
 gap:12px;aspect-ratio:16/9;box-sizing:border-box;padding:18px;
 background:linear-gradient(135deg,var(--player-pastel,#deefea),var(--player-pastel-end,#d6e9f3));
 color:#294b5c;text-align:center;
}
html.site-story-frame body.home-mobile-branding .site-shell #main .video-player-trial .player-trial-label{font-size:15px;line-height:1.35;color:#294b5c}
html.site-story-frame body.home-mobile-branding .site-shell #main .video-player-trial [data-video-preferences]{
 display:grid;place-items:center;flex:none;width:58px;height:58px;min-height:44px;
 padding:0!important;border:1px solid #cf9bac;border-radius:50%!important;background:#efc8d2;
 color:#772641;box-shadow:0 3px 12px #526a7326;font-size:24px!important;cursor:pointer;min-height:58px!important;
}
html.site-story-frame body.home-mobile-branding .site-shell #main .video-player-trial [data-video-preferences]:hover{background:#e9b9c6;box-shadow:0 4px 18px #526a7333}
html.site-story-frame body.home-mobile-branding .site-shell #main .video-player-trial [data-video-preferences]:focus-visible{outline:3px solid #ffcf72;outline-offset:4px}
html.site-story-frame body.home-mobile-branding .site-shell #main .video-player-trial [data-video-placeholder]>p{margin:0!important;text-align:center!important;color:#405b68;font-size:12px;line-height:1.4}
html.site-story-frame body.home-mobile-branding .site-shell #main .video-player-trial video{display:block;width:100%;height:auto;aspect-ratio:16/9;background:var(--player-pastel);object-fit:contain}
html.site-story-frame body.home-mobile-branding .site-shell #main .video-player-trial iframe:not([hidden]){display:block;width:100%;height:auto;aspect-ratio:16/9;min-height:0;border:0;background:#142c40}
html.site-story-frame body.home-mobile-branding .site-shell #main .video-player-trial iframe[hidden]{display:none!important}
/* A vertical Reel must retain its tall format instead of a landscape crop. */
html.site-story-frame body.home-mobile-branding .site-shell #main details.video-player-trial.portrait{max-width:300px!important;align-self:center;justify-self:center}
html.site-story-frame body.home-mobile-branding .site-shell #main details.video-player-trial.portrait iframe:not([hidden]),
html.site-story-frame body.home-mobile-branding .site-shell #main details.video-player-trial.portrait [data-video-placeholder]:not([hidden]){aspect-ratio:9/16}
html.site-story-frame body.home-mobile-branding .site-shell #main .video-player-trial .video-direct-link{margin:0!important;padding:9px 12px;text-align:right!important;font-size:11px;line-height:1.4}
html.site-story-frame body.home-mobile-branding .site-shell #main .video-player-trial .video-direct-link a{background:transparent!important;border:0!important;box-shadow:none!important;font-size:11px!important;padding:0!important;min-height:24px!important;color:#365969!important}
@media(max-width:700px){html.site-story-frame body.home-mobile-branding .site-shell #main .video-player-trial [data-video-placeholder]:not([hidden]){gap:9px;padding:14px}html.site-story-frame body.home-mobile-branding .site-shell #main .video-player-trial .player-trial-label{font-size:13px}}

/* Keep descriptions above grouped recordings and separate events. */
#main .news-card.has-player-trial{min-width:0}
#main .news-card.has-player-trial>h2,#main .news-card.has-player-trial>h3,#main .news-card.has-player-trial>.video-description{margin-block:0}
#main .news-card.has-player-trial>.button,#main .news-card.has-player-trial>.text-link{order:2;align-self:flex-start}

/* Home: center each wrapped row of recordings within its own activity.
   Support both original nested markup and direct players without moving iframes. */
html.site-story-frame body.home-mobile-branding .site-shell #main .home-panels .story-news.has-player-trial,
html.site-story-frame body.home-mobile-branding .site-shell #main .home-panels .story-news.has-player-trial>div:has(>details.video-player-trial){
 display:flex!important;flex-direction:row!important;flex-wrap:wrap;
 justify-content:center;align-items:flex-start;gap:16px;min-width:0;
}
html.site-story-frame body.home-mobile-branding .site-shell #main .home-panels .story-news.has-player-trial>div,
html.site-story-frame body.home-mobile-branding .site-shell #main .home-panels .story-news.has-player-trial>div:has(>details.video-player-trial)>:not(details.video-player-trial){
 flex:0 0 100%;width:100%;min-width:0;box-sizing:border-box;order:0;
}
html.site-story-frame body.home-mobile-branding .site-shell #main .home-panels .story-news.has-player-trial details.video-player-trial{
 flex:0 0 auto;margin:0!important;align-self:flex-start!important;order:1;
}
@media(max-width:700px){
 html.site-story-frame body.home-mobile-branding .site-shell #main .home-panels .story-news.has-player-trial,
 html.site-story-frame body.home-mobile-branding .site-shell #main .home-panels .story-news.has-player-trial>div:has(>details.video-player-trial){
  flex-direction:column!important;align-items:center;
 }
 html.site-story-frame body.home-mobile-branding .site-shell #main .home-panels .story-news.has-player-trial>div,
 html.site-story-frame body.home-mobile-branding .site-shell #main .home-panels .story-news.has-player-trial>div:has(>details.video-player-trial)>:not(details.video-player-trial){flex-basis:auto}
 html.site-story-frame body.home-mobile-branding .site-shell #main .home-panels .story-news.has-player-trial details.video-player-trial{align-self:center!important}
}

/* Equal breathing room between activity cards in both homepage feeds. */
html.site-story-frame body.home-mobile-branding .site-shell #main .home-panels .story-news{
 margin-block-end:16px!important;
}
html.site-story-frame body.home-mobile-branding .site-shell #main .home-panels .story-news:last-child{
 margin-block-end:0!important;
}
