
/* Compact video shelf, shared by the desktop and phone layouts. */
.junior-video-gallery{
 --video-panel:#fffdf4;--video-text:#123b2f;--video-muted:#526e5d;--video-line:#acc9ac;
 margin:27px 0 31px;padding:18px;border:1px solid #b5caa4;border-radius:20px;
 background:linear-gradient(120deg,#f8f8e7,#e9f0dc);box-shadow:inset 0 1px #fff,0 5px #adbc98;
}
.video-section-heading{display:flex;justify-content:space-between;gap:12px;align-items:center;margin-bottom:14px}
.market-main .video-section-heading h2{margin:0;color:#123b2f;font:700 29px/1.15 TIHeading,Georgia,serif;letter-spacing:-.025em}
.market-main .video-section-heading p{margin:5px 0 0;color:#526e5d;font-size:12px}
.video-controls{display:flex;gap:7px;flex:none}
.video-controls button{
 display:grid;place-items:center;width:38px;height:38px;padding:8px;color:#fff1c7;border:1px solid #cda95b;
 border-radius:11px;background:linear-gradient(#236b50,#0b3c2e);box-shadow:inset 0 1px #d8f5b333,0 3px #05271f;
}
.video-controls button:disabled{opacity:.4;cursor:default}
.video-controls svg,.video-caption svg{width:17px;height:17px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linejoin:round}
.video-track{
 display:grid;grid-auto-flow:column;grid-auto-columns:calc((100% - 60px)/6);gap:12px;overflow-x:auto;
 overscroll-behavior-x:contain;scroll-snap-type:x mandatory;padding:0 0 9px;
 scrollbar-width:thin;scrollbar-color:#ae9155 transparent;
}
.market-main .junior-video{
 display:block;min-width:0;color:var(--video-text);border:1px solid var(--video-line);border-radius:12px;overflow:hidden;
 background:var(--video-panel);box-shadow:0 4px #a8bd9b,0 10px 13px #00291b20;scroll-snap-align:start;text-decoration:none;
}
.video-image{position:relative;isolation:isolate;overflow:hidden;height:132px;background:#154e3c}
.video-image img{position:relative;z-index:-1;display:block;width:100%;height:100%;object-fit:contain}
.video-image::before{content:"";position:absolute;z-index:-2;inset:-15px;background:var(--poster) center/cover;filter:blur(15px);opacity:.7}
.video-image::after{content:"";position:absolute;inset:0;background:linear-gradient(0deg,#03261cc9,transparent 45%);pointer-events:none}
.video-play{
 display:grid;place-items:center;position:absolute;z-index:1;left:50%;top:50%;width:36px;height:36px;transform:translate(-50%,-50%);
 border:1px solid #ffe6ad;border-radius:50%;background:linear-gradient(#ffe7aa,#d6aa5d);color:#174433;
 box-shadow:inset 0 1px #fff9d3,0 3px #69491e80,0 4px 20px #00281f63;
}
.junior-video-gallery .video-play svg{width:21px;height:21px;fill:currentColor;stroke:none;transform:translateX(2px)}
.video-time{position:absolute;z-index:1;right:8px;bottom:8px;padding:2px 6px;border-radius:5px;background:#082f25d9;color:#fff6dd;font-size:10px;font-weight:800;border:1px solid #abd9b154}
.video-caption{display:flex;flex-direction:column;gap:4px;align-items:start;padding:9px}
.video-caption>span{font-size:14px;font-weight:800}
.video-caption small{display:flex;align-items:center;gap:3px;font-size:10px;font-weight:700;color:var(--video-muted)}
.video-swipe-note{display:none}
body.junior-video-open{overflow:hidden}
.junior-video-dialog{
 width:min(480px,calc(100% - 30px));max-height:90dvh;padding:12px;border-radius:17px;border:1px solid #d3b36b;
 background:#062e24;color:#fff4d7;box-shadow:0 20px 70px #00190dd9;
}
.junior-video-dialog::backdrop{background:#001910d6}
.junior-video-dialog-header{display:flex;align-items:center;justify-content:space-between;gap:8px;margin:0 0 10px}
.junior-video-dialog h2{font:700 19px/1.3 TIHeading,Georgia,serif;margin:0}
.junior-video-dialog button{width:40px;height:40px;font-size:25px;background:#1b5942;color:#fff0cd;border:1px solid #8ab899;border-radius:8px;cursor:pointer}
.junior-video-dialog video{display:block;width:100%;max-height:72dvh;background:#000}
.junior-video-error{font:13px/1.6 TIMobile,system-ui,sans-serif;color:#fff4d7}
.junior-video-error[hidden]{display:none}
.junior-video-error a{color:#ffdf8a;text-underline-offset:3px}
.junior-video-gallery :is(a,button):focus-visible,.video-track:focus-visible,.junior-video-dialog :is(a,button):focus-visible{outline:3px solid #d8ae55;outline-offset:3px}
@media(max-width:900px){
 .junior-video-gallery{margin:23px 0;padding:13px;border-radius:16px;background:linear-gradient(140deg,#12523e,#092e24);border-color:#74916b;box-shadow:0 4px #073021}
 .video-section-heading{margin-bottom:12px}
 .market-main .video-section-heading h2{color:#fff1d2;font-size:24px}
 .market-main .video-section-heading p{color:#bfdbc7;font-size:11px;max-width:210px}
 .video-controls{gap:5px}
 .video-controls button{width:33px;height:33px;border-radius:9px;padding:7px}
 .video-track{grid-auto-columns:41%;gap:10px}
 .market-main .junior-video{background:linear-gradient(#fffbee,#eaf1de)}
 .video-image{height:131px}
 .video-caption{flex-direction:row;align-items:center}
 .video-caption>span{font-size:13px}
 .video-caption small{font-size:0;color:#1d674b}
 .video-caption svg{width:15px;height:15px}
 .market-main .video-swipe-note{display:block;color:#bfdbc7;font-size:10px;text-align:right;margin:5px 0 0}
}
@media(prefers-reduced-motion:reduce){.video-track{scroll-behavior:auto}}


/* Representative stills sampled from each corresponding video. */
.junior-video-gallery .video-image{height:auto;aspect-ratio:3/2}.junior-video-gallery .video-image img{object-fit:cover;transition:transform .25s ease}.junior-video-gallery .junior-video:hover .video-image img{transform:scale(1.035)}.video-number{position:absolute;z-index:1;top:7px;left:7px;padding:2px 6px;background:#0a4b3ee8;color:#fff0bd;border:1px solid #e6c779;border-radius:5px;font-size:10px;font-weight:800}.junior-video-gallery .video-caption{display:flex;flex-direction:column;align-items:start;gap:7px;padding:10px}.junior-video-gallery .video-caption>span{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;min-height:32px;font-size:12px;line-height:1.35}.junior-video-gallery .video-caption small{display:flex;align-items:center;font-size:10px;color:#36715a}.junior-video-gallery .video-caption svg{width:13px;height:13px}
@media(max-width:900px){.junior-video-gallery .video-caption{padding:9px}.junior-video-gallery .video-caption>span{font-size:11px;min-height:30px}.junior-video-gallery .video-caption small{font-size:10px}.video-number{top:6px;left:6px;font-size:9px}.junior-video-gallery .video-play{width:32px;height:32px}}
@media(prefers-reduced-motion:reduce){.junior-video-gallery .video-image img{transition:none}.junior-video-gallery .junior-video:hover .video-image img{transform:none}}
