/* Selected split video gallery. Only the list grows/scrolls when videos are added. */
.video-gallery{
  --gallery-height:clamp(400px,36vw,600px);
  display:grid;
  grid-template-columns:minmax(0,1.6fr) minmax(360px,1fr);
  grid-template-rows:auto var(--gallery-height);
  gap:28px;
  height:auto;
  margin:48px 3.5vw 56px;
  border:0;
  background:var(--paper);
  overflow:visible;
  scroll-margin-top:80px;
}
.video-gallery .video-gallery-heading{
  grid-column:1/-1;
  margin:0;
  padding:34px 28px 20px;
  border-top:1px solid var(--line);
}
.video-gallery .video-stage{height:100%;min-height:0;overflow:hidden}
.video-gallery .video-stage>img{width:100%;height:100%;min-height:0;object-fit:contain;object-position:center top}
.video-gallery .video-stage::after{content:none}
.video-gallery .video-main-play{
  width:82px;height:82px;border:2px solid #fff;background:#ef7c65;
  color:#fff;font-size:26px;backdrop-filter:none;
}
.video-gallery .video-main-play:hover{background:#d66a56}
.video-gallery .video-main-play:focus-visible{outline:3px solid #fff;outline-offset:5px}
.video-gallery .video-playlist{
  position:relative;display:grid;grid-template-rows:minmax(0,1fr) auto;
  height:100%;min-height:0;min-width:0;padding:0;border:0;
}
.video-gallery .video-playlist header h2{
  margin:0 0 6px;color:var(--ink);font:700 clamp(29px,2.75vw,48px)/1.02 var(--serif);
}
.video-gallery .video-playlist header>p{
  margin:0;color:#49677c;font:500 clamp(18px,1.65vw,28px)/1.2 var(--serif);
}
.video-gallery .video-playlist>.video-count{
  position:absolute;right:8px;top:-24px;margin:0;text-align:right;font:600 12px/1.3 var(--sans);color:#49677c;
}
.video-gallery .video-list{
  display:block;min-height:0;height:100%;margin:0;padding:0 6px 0 0;list-style:none;
  overflow-x:hidden;overflow-y:auto;overscroll-behavior-y:contain;
  scrollbar-width:thin;scrollbar-color:#8dabc0 #edf3f5;scrollbar-gutter:stable;
}
.video-gallery .video-list::-webkit-scrollbar{width:6px}
.video-gallery .video-list::-webkit-scrollbar-track{background:#edf3f5;border-radius:5px}
.video-gallery .video-list::-webkit-scrollbar-thumb{background:#8dabc0;border-radius:5px}
.video-gallery .video-list>li{margin:0;padding:0;list-style:none}
.video-gallery .video-list-item{
  grid-template-columns:clamp(88px,9vw,142px) minmax(0,1fr) 42px;
  gap:16px;min-height:88px;padding:10px 10px;
  border:0;border-bottom:1px solid var(--line);border-radius:0;
  background:transparent;box-shadow:none;
  transition:background-color .2s ease,color .2s ease;
}
.video-gallery .video-list-item img{width:100%;height:auto;aspect-ratio:16/9;object-fit:cover;display:block}
.video-gallery .video-list-item span b{
  font:700 clamp(19px,1.6vw,27px)/1.12 var(--serif);overflow-wrap:break-word;
  text-decoration-thickness:1px;text-underline-offset:4px;
}
.video-gallery .video-list-item:hover,.video-gallery .video-list-item:focus-visible{background:var(--blue);color:#fff}
.video-gallery .video-list-item:hover span b,.video-gallery .video-list-item:focus-visible span b{text-decoration-line:underline}
.video-gallery .video-list-item:hover span small,.video-gallery .video-list-item:focus-visible span small{color:#fff}
.video-gallery .video-list-item:focus-visible{outline:2px solid #fff;outline-offset:-4px}
.video-gallery .video-list-item>i{
  width:42px;height:42px;border:1px solid #64859f;background:transparent;
  border-radius:50%;color:var(--blue);font-size:14px;
  transition:transform .2s ease,background-color .2s ease,border-color .2s ease,color .2s ease;
}
.video-gallery .video-list-item.is-active{background:#e9f8fa;box-shadow:none}
.video-gallery .video-list-item.is-active>i{border-color:#ef7c65;background:#ef7c65;color:#fff}
.video-gallery .video-list-item.is-active:hover,.video-gallery .video-list-item.is-active:focus-visible{background:var(--blue);color:#fff}
.video-gallery .video-list-item:hover>i,.video-gallery .video-list-item:focus-visible>i{
  border-color:#ef7c65;background:#ef7c65;color:#fff;transform:translateX(5px);
}
.video-gallery .video-credit{
  margin:12px 0 0;padding-top:12px;border-top:1px solid var(--line);
  color:#607f96;text-align:right;font:400 11px/1.5 var(--sans);
}
@media(max-width:1100px){
  .video-gallery{grid-template-columns:minmax(0,1.35fr) minmax(320px,1fr);gap:22px}
  .video-gallery .video-list-item{gap:12px;grid-template-columns:88px minmax(0,1fr) 36px;padding:10px 8px}
  .video-gallery .video-list-item>i{width:36px;height:36px;font-size:12px}
}
@media(max-width:760px){
  .video-gallery{grid-template-columns:minmax(0,1fr);grid-template-rows:auto auto auto;height:auto;gap:22px;margin:34px 18px 42px}
  .video-gallery .video-gallery-heading{padding:30px 18px 10px}
  .video-gallery .video-stage{height:auto;aspect-ratio:16/10}
  .video-gallery .video-stage>img{height:100%;min-height:0}
  .video-gallery .video-main-play{width:64px;height:64px;font-size:22px}
  .video-gallery .video-playlist{height:auto;grid-template-rows:auto auto auto;padding:0}
  .video-gallery .video-playlist header h2{font-size:32px}
  .video-gallery .video-playlist header>p{font-size:21px}
  .video-gallery .video-list{height:auto;max-height:328px}
  .video-gallery .video-list-item{grid-template-columns:100px minmax(0,1fr) 36px;min-height:86px}
  .video-gallery .video-list-item span b{font-size:21px}
  .video-gallery .video-credit{text-align:left;font-size:11px}
}
@media(max-width:380px){
  .video-gallery .video-list-item{grid-template-columns:80px minmax(0,1fr) 32px;gap:10px}
  .video-gallery .video-list-item>i{width:32px;height:32px}
  .video-gallery .video-list-item span b{font-size:19px}
}

/* YouTube thumbnails and creator credits; gallery dimensions stay unchanged. */
.video-gallery .video-stage{background:var(--ink)}
.video-gallery .video-list-item span small{display:block;margin-top:5px;font:400 12px/1.35 var(--sans);color:#49677c}
.video-gallery .video-thumbnail-fallback{position:absolute;left:20px;right:20px;top:calc(50% + 52px);margin:0;text-align:center;color:#fff;font:400 14px/1.5 var(--sans)}
.video-gallery .video-thumbnail-fallback[hidden]{display:none}

/* Video rows are native outbound links, including their play controls. */
.video-gallery a.video-list-item{text-decoration:none;color:var(--ink)}
@media(prefers-reduced-motion:reduce){
  .video-gallery .video-list-item,.video-gallery .video-list-item>i{transition:none}
  .video-gallery .video-list-item:hover>i,.video-gallery .video-list-item:focus-visible>i{transform:none}
}
