/* Base styles for the shared viewer and video embeds; each design sets the --viewer-* tokens. */
.viewer { position: fixed; inset: 0; z-index: 1000; display: grid; place-items: center; padding: 56px 16px 72px;
  background: var(--viewer-bg, rgba(8, 8, 9, .96)); color: var(--viewer-fg, #eee); }
.viewer[hidden] { display: none; }
.viewer-img { max-width: 100%; max-height: 100%; object-fit: contain; }
.viewer-bar { position: absolute; left: 0; right: 0; bottom: 0; display: flex; align-items: center; gap: 8px; padding: 14px 16px;
  font: 500 13px/1 var(--viewer-font, system-ui, sans-serif); letter-spacing: .04em; }
.viewer-count { margin-right: auto; opacity: .7; font-variant-numeric: tabular-nums; }
.viewer-bar button { min-width: 44px; height: 44px; border: 1px solid currentColor; background: transparent; color: inherit;
  font-size: 18px; cursor: pointer; border-radius: var(--viewer-radius, 0); }
.viewer-bar button:hover, .viewer-bar button:focus-visible { background: var(--viewer-fg, #eee); color: var(--viewer-bg-solid, #000); }
html.viewer-open { overflow: hidden; }
.m-video { position: relative; aspect-ratio: 16 / 9; background: #000; margin: 0; }
.m-video iframe, .yt { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; padding: 0; background: #000; cursor: pointer; }
.yt img { width: 100%; height: 100%; object-fit: cover; opacity: .8; transition: opacity .2s; }
.yt:hover img, .yt:focus-visible img { opacity: 1; }
.yt-play { position: absolute; left: 50%; top: 50%; width: 76px; height: 76px; margin: -38px 0 0 -38px; border-radius: 50%;
  background: var(--accent, #fff); }
.yt-play::after { content: ''; position: absolute; left: 31px; top: 24px; border-style: solid; border-width: 14px 0 14px 22px;
  border-color: transparent transparent transparent var(--viewer-bg-solid, #000); }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; scroll-behavior: auto !important; } }
