/* A quiet, image-only gallery. Names remain on accessible playback links. */
/* Match the existing 800px pages and their shared sub-tab navigation. */
.main.video-main { max-width: 1152px; width: 100%; min-width: 0; } /* 1080px of content, like /books */
.video-gallery-page [hidden] { display: none !important; }
.video-gallery-header h1 { font-family: 'EB Garamond', serif; font-size: 1.6rem; font-weight: 400; margin: 0 0 20px; }
.video-filter { display: inline-flex; align-items: center; }
.video-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; align-items: start; }
.video-card { min-width: 0; }
.video-frame { position: relative; aspect-ratio: 16 / 9; background: var(--paper); border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.video-poster { position: relative; display: block; width: 100%; height: 100%; color: white; }
.video-poster img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: var(--poster-position, 50% 50%); transition: transform 240ms ease; }
.video-play { position: absolute; left: 10px; bottom: 10px; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: rgba(12,24,33,0.62); color: #fff; font: 1.1rem Georgia, serif; opacity: 0; transition: opacity 150ms ease; }
.video-play svg { width: 16px; height: 16px; fill: currentColor; margin-left: -2px; }
.video-poster:hover .video-play, .video-poster:focus-visible .video-play { opacity: 1; }
.video-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; background: #000; }
.video-resources { margin-top: 28px; color: var(--warm-gray); font-size: 0.68rem; }
.video-resources summary { display: list-item; cursor: pointer; width: fit-content; padding: 8px 0; font-family: 'JetBrains Mono', monospace; font-size: 0.6rem; }
.video-resources ul { list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 24px; margin-top: 12px; }
.video-resources li { font-size: 0.72rem; line-height: 1.5; }
.video-resources a { text-decoration: none; }
.video-resources a:hover { text-decoration: underline; }
.video-resource-credit { display: block; color: var(--warm-gray); font-size: 0.65rem; }
.video-filter:focus-visible, .video-resources a:focus-visible, .video-resources summary:focus-visible { outline: 2px solid var(--navy); outline-offset: 3px; }
.video-poster:focus-visible { outline: 3px solid var(--gold); outline-offset: -4px; }
@media (min-width: 1260px) { .video-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 900px) { .video-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; } }
@media (max-width: 768px) { .video-filter { min-height: 38px; } .video-grid { gap: 10px; } }
@media (max-width: 560px) { .video-card.is-playing { grid-column: 1 / -1; } .video-resources ul { grid-template-columns: minmax(0, 1fr); } }
@media (hover: none) { .video-play { opacity: 0.7; width: 23px; height: 23px; left: 7px; bottom: 7px; } .video-play svg { width: 13px; height: 13px; } }
@media (prefers-reduced-motion: reduce) { .video-poster img, .video-play, .video-filter { transition: none; } .video-poster:hover img { transform: none; } }
