.video-gallery-page .site-header { position: sticky; top: 0; }
.video-gallery-page .logo-text { color: #fff; text-decoration: none; }
.video-gallery-page :focus-visible { outline: 2px solid #00d2ff; outline-offset: 5px; }
.video-gallery { padding: 40px 10% 48px; }
.video-heading { display: flex; justify-content: space-between; align-items: end; gap: 25px; margin-bottom: 18px; }
.video-eyebrow { color: #ff3b3b !important; font-size: 14px; font-weight: bold; letter-spacing: 2px; margin-bottom: 12px; }
.video-heading h1 { font: 32px/1.2 'TSBlockBold', sans-serif; overflow-wrap: anywhere; }
.video-back, .video-source { color: #cfcfcf; text-decoration: none; white-space: nowrap; }
.video-back:hover, .video-source:hover { color: #00d2ff; }
.video-demo { max-width: 760px; margin-bottom: 28px; }
.video-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 25px; }
.video-card { min-width: 0; background: #151515; border-radius: 14px; overflow: hidden; }
.video-card:hover { outline: 1px solid #777; }
.video-open { display: block; width: 100%; border: 0; text-align: left; color: inherit; background: none; font: inherit; cursor: pointer; }
.video-open:disabled { cursor: default; }
.video-cover { display: grid; place-items: center; position: relative; width: 100%; aspect-ratio: 16/9; background: #1e1e1e; overflow: hidden; }
.video-cover img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.video-cover img[hidden] { display: none; }
.video-placeholder { color: #999; padding: 20px; text-align: center; }
.video-play { position: absolute; bottom: 16px; right: 16px; display: grid; place-items: center; width: 48px; height: 48px; padding-left: 3px; background: #e31b1b; color: white; border-radius: 8px; }
.video-open:disabled .video-play { display: none; }
.video-title { display: block; padding: 16px 20px 8px; font-size: 20px; font-weight: bold; line-height: 1.4; overflow-wrap: anywhere; }
.video-card-meta { display: flex; justify-content: space-between; gap: 16px; padding: 0 20px 16px; color: #999; font-size: 14px; }
.video-status { padding: 0 20px 16px; font-size: 14px; }
.video-empty { padding: 40px 0; }
.video-modal { position: fixed; inset: 0; margin: auto; width: min(1120px,calc(100% - 40px)); max-width: none; max-height: calc(100dvh - 32px); padding: 0; border: 0; border-radius: 14px; background: #151515; color: #fff; overflow: auto; }
.video-modal::backdrop { background: rgba(0,0,0,.88); }
.video-modal-bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 16px; }
.video-modal-bar h2 { font: bold 16px/1.4 Arial,sans-serif; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; overflow: hidden; }
.video-close { flex: 0 0 44px; height: 44px; border: 1px solid #777; border-radius: 8px; background: #202020; color: #fff; font: 30px Arial,sans-serif; cursor: pointer; }
.video-close:hover { background: #e31b1b; }
.video-player { width: 100%; aspect-ratio: 16/9; max-height: calc(100dvh - 200px); min-height: 140px; background: #000; }
.video-player iframe { display: block; width: 100%; height: 100%; border: 0; }
.video-player-help { padding: 12px 16px; font-size: 14px; color: #aaa; }
.video-player-help a { color: #00d2ff; }
@media (max-width:900px) {
  .video-gallery { padding: 24px 25px 48px; }
  .video-heading { flex-direction: column; align-items: start; gap: 16px; }
  .video-heading h1 { font-size: 24px; }
  .video-eyebrow { font-size: 11px; }
  .video-grid { grid-template-columns: 1fr; }
  .video-modal { width: calc(100% - 20px); }
  .video-title { font-size: 18px; }
}
@media (max-height:500px) and (orientation:landscape) {
  .video-modal { width: min(800px,calc(100% - 24px)); }
  .video-modal-bar { padding: 4px 12px; }
  .video-player { max-height: calc(100dvh - 130px); min-height: 100px; }
  .video-player-help { padding: 6px 12px; font-size: 12px; }
}
