.share-welcome-film {
  box-sizing:border-box;
  min-width:0;
  width:100%;
  margin:0 0 1.25rem;
  overflow:hidden;
  border:1px solid #becbd4;
  border-radius:8px;
  background:white;
  color:#14385b;
}
.share-welcome-film > video {
  display:block;
  width:100%;
  height:auto;
  aspect-ratio:16/9;
  object-fit:contain;
  background:#102f50;
}
.share-welcome-film[data-format="portrait"] {
  width:min(100%, 34vh);
  width:min(100%, 34svh);
  margin-inline:auto;
}
.share-welcome-film[data-format="portrait"] > video {aspect-ratio:9/16;}
.share-welcome-tools {
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  gap:.1rem .5rem;
  padding:.2rem .7rem;
  background:white;
  color:#14385b;
  font:600 14px/1.3 system-ui,sans-serif;
}
.share-welcome-tools > span {flex:1 1 auto;}
.share-welcome-film .share-welcome-tools > button {
  appearance:none;
  width:auto;
  min-width:0;
  min-height:40px;
  margin:0;
  padding:.3rem .5rem;
  border:0;
  border-radius:4px;
  background:transparent;
  color:#123e68;
  font:inherit;
  text-transform:none;
  letter-spacing:normal;
  cursor:pointer;
}
.share-welcome-tools > button:hover {text-decoration:underline;}
.share-welcome-tools > button:focus-visible {outline:2px solid #a3192a;outline-offset:-2px;}
.share-welcome-film > video:fullscreen {width:100%;height:100%;max-height:none;background:#000;}
.share-welcome-film[data-format="portrait"] .share-welcome-tools > span {flex-basis:100%;padding-top:.3rem;}
body.wr-page .hh-hero-photo.has-share-welcome-film {
  position:relative;display:grid;height:auto;aspect-ratio:auto;overflow:visible;background:transparent;
}
body.wr-page .hh-hero-photo.has-share-welcome-film > img {display:none;}
.hh-hero-photo .share-welcome-film {margin-bottom:0;border-radius:5px 5px 0 0;}
/* Use the existing photo column for the overview and keep its caption and link. */
@media (max-width:767px) {
  body.wr-page .hh-hero:has(.share-welcome-film) {display:flex;flex-direction:column;align-items:stretch;gap:1.4rem;}
  .hh-hero:has(.share-welcome-film) > .hh-hero-figure {order:-1;}
  .hh-hero:has(.share-welcome-film[data-format="portrait"]) > .hh-hero-figure {width:min(100%,34svh);margin-inline:auto;}
}
@media (min-width:800px) {
  html body main .share-entry.has-share-welcome-film {
    display:grid!important;grid-template-columns:minmax(0,1fr) minmax(0,1.08fr);column-gap:clamp(20px,3vw,48px);align-items:start;
  }
  html body main .share-entry.has-share-welcome-film > * {grid-column:1;min-width:0;}
  html body main .share-entry.has-share-welcome-film > .share-welcome-film {
    grid-column:2;grid-row:1/span 5;align-self:start;margin:0;
  }
  html body main .share-entry.has-share-welcome-film > :is(.sbp-proof,.share-entry-actions,.share-entry-benefits) {grid-column:1/-1;}
}
.share-welcome-film[data-placement="inline"] {max-width:740px;}
.member-gate:has(.share-welcome-film) {overflow-y:auto;align-items:safe center;}
.member-gate section.has-share-welcome-film {box-sizing:border-box;max-height:100%;overflow-y:auto;}
.member-gate .share-welcome-film {max-width:520px;margin-inline:auto;}
@media print {.share-welcome-film {display:none!important;}}

.share-welcome-tools > select {
  flex:1 1 10rem;min-width:0;max-width:100%;width:auto;font:inherit;
  color:#14385b;border:1px solid #b8c6d3;border-radius:4px;padding:.35rem;
  background:white;min-height:36px;
}
.share-welcome-film[data-format="portrait"] .share-welcome-tools > select {flex-basis:100%;}
/* Native builders have several hero layouts; retain their working buttons beneath the film. */
main .has-share-welcome-film:has(> .share-welcome-film[data-placement="inline"]) {display:flow-root!important;}
@media (min-width:800px) {
  .share-welcome-film[data-placement="inline"] {float:right;width:48%;margin:0 0 1rem 1.6rem;}
}
@media print {
  body.wr-page .hh-hero-photo.has-share-welcome-film > img {display:block;}
  body.wr-page .hh-hero-photo.has-share-welcome-film {aspect-ratio:1.16;}
}
