/* Video buttons and photo corners, after rolex.com (measured 7 November 2026). Linked last in every page's <head>.
   Video button: one translucent gray pill, centred on the video, blurred background, white bold label with a solid play
   triangle; on hover it only darkens (no white or green flip). Photo corners: 10px on card images, as Rolex's media cards. */
:root{--media-radius:10px}
body :is(.play,.labs-play,.gallery-play,.pill.film,.insight-card[data-format="video"] .insight-play){
  display:inline-flex;align-items:center;justify-content:center;gap:10px;box-sizing:border-box;width:auto;height:44px;min-height:44px;padding:0 35px;
  border:0;border-radius:var(--radius-pill);background:rgba(118,118,118,.3);-webkit-backdrop-filter:blur(5px);backdrop-filter:blur(5px);color:var(--text-inverse);box-shadow:none;
  font:700 16px/1 var(--font-body);text-shadow:0 1px 6px rgba(0,0,0,.25);white-space:nowrap;transition:background-color .3s ease}
body .pill.film{padding:0 28px;max-width:calc(100% - 24px);left:50%;top:50%;right:auto;bottom:auto;transform:translate(-50%,-50%)}
body :is(.gallery-play,.pill.film,.insight-card[data-format="video"] .insight-play) svg{width:15px;height:15px;margin:0;fill:currentColor;stroke:currentColor}
body .pill.film b{display:grid;place-items:center;width:15px;height:15px;border-radius:0;background:transparent;color:var(--text-inverse)}
body .gallery-play::after,body .insight-card[data-format="video"] .insight-play::after{font:700 16px/1 var(--font-body)}
body :is(.play,.labs-play,.gallery-play,.pill.film,.insight-card[data-format="video"] .insight-play):hover,body .gallery .card.has-film:hover .pill.film,body .gallery .card.has-film .pill.film:hover,
body .insight-card[data-format="video"] a:hover .insight-play{background:rgba(84,84,84,.5);color:var(--text-inverse)}
body :is(.play,.labs-play):hover::before{border-left-color:var(--surface-page)}
body .gallery .card.has-film:hover .pill.film b{color:var(--text-inverse)}
body :is(.play,.labs-play,.gallery-play,.pill.film,.insight-card[data-format="video"] .insight-play):focus-visible{outline:2px solid var(--legacy-249a64);outline-offset:3px}
@media(max-width:600px){body :is(.play,.labs-play,.gallery-play,.pill.film,.insight-card[data-format="video"] .insight-play){height:40px;min-height:40px;padding:0 30px}}
@media(prefers-reduced-motion:reduce){body :is(.play,.labs-play,.gallery-play,.pill.film,.insight-card[data-format="video"] .insight-play){transition:none}}
/* a video button disappears once its film starts (the page hides it with .started or [hidden]) */
body .media.started .play,body :is(.play,.labs-play,.gallery-play,.pill.film,.insight-play)[hidden]{display:none}
/* while the player bar shows below the picture, a play button is centred on the picture alone */
body .hto-barred>:is(.play,.labs-play,.gallery-play){top:calc(50% - 24px)}
@media(max-width:600px){body .hto-barred>:is(.play,.labs-play,.gallery-play){top:calc(50% - 22px)}}
/* the open panel's thumbnail row shows only the picture, number and title */
body .gallery.is-open .cards .pill{display:none}
/* photo corners */
body .gallery:not(.is-open) .card .gallery-media{border-radius:var(--media-radius)}
body .insight-card>a>img:first-child,body .insight-card .insight-image img{border-radius:var(--media-radius)}
/* author row stays on one line */
body .insight-author{flex-wrap:nowrap;white-space:nowrap;min-width:0}body .insight-author strong{min-width:0;overflow:hidden;text-overflow:ellipsis}body .insight-author time,body .insight-author-dot{flex:none}
/* on a narrow picture the video button shrinks to the round icon, so it never covers the picture */
body .insight-image{container-type:inline-size}
@container (max-width:330px){body .insight-card[data-format="video"] .insight-play{width:44px;padding:0;gap:0}body .insight-card[data-format="video"] .insight-play::after{display:none}}
/* After a film opens, the other examples below it (Bzhwen, 7 November 2026): a wrapping grid of smaller cards, clearly
   smaller than the open film, never a sideways scroller. Each card is 140 to 230px wide depending on the screen. */
body .gallery.is-open .cards{display:grid;grid-template-columns:repeat(auto-fill,minmax(min(clamp(140px,18vw,230px),calc(50% - 10px)),1fr));gap:24px 20px;overflow:visible;scroll-snap-type:none;scroll-padding:0;margin-left:0;margin-right:0;padding-left:0;padding-right:0}
body .gallery.is-open .cards li{flex:none;min-width:0;max-width:260px}
body .gallery.is-open .card .gallery-media{height:auto;aspect-ratio:4/3;border-radius:var(--media-radius)}
body .gallery.is-open .ct{padding:10px 0 0;font-size:15px;line-height:1.3}
body .gallery.is-open .cn{right:8px;top:8px;padding:3px 7px;font-size:11px}
/* tablets: the film is full width, so three per row (about a third of the film); from 900px the film shares the row with its text and is narrower, so the cards stay at most 200px until 1200px */
@media(min-width:601px) and (max-width:899px){body .gallery.is-open .cards{grid-template-columns:repeat(3,minmax(0,1fr))}body .gallery.is-open .cards li{max-width:none}}
@media(min-width:900px) and (max-width:1099px){body .gallery.is-open .cards li{max-width:150px}}
@media(min-width:1100px) and (max-width:1199px){body .gallery.is-open .cards li{max-width:200px}}
@media(min-width:1440px){body .gallery.is-open .cards{grid-template-columns:repeat(auto-fill,minmax(270px,1fr))}body .gallery.is-open .cards li{max-width:290px}}
@media(max-width:600px){body .gallery.is-open .cards{gap:20px 16px;grid-template-columns:repeat(auto-fill,minmax(min(140px,calc(50% - 8px)),1fr))}body .gallery.is-open .ct{font-size:14px}}
/* the HTO Labs video rests in the film's own 16:9 box, so pressing play only adds the player bar below it, no jump */
body .labs-visual video{aspect-ratio:16/9;object-fit:cover}
