.ttj-gallery{margin:2rem 0;min-width:0}.ttj-gallery-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,230px),1fr));gap:1rem}.ttj-gallery figure{margin:0;min-width:0}.ttj-gallery a{display:block;border-radius:12px;overflow:hidden;background:#e6eeea}.ttj-gallery img{display:block;width:100%;height:auto;aspect-ratio:3/2;object-fit:cover}.ttj-gallery figcaption{font-size:.9rem;line-height:1.5;margin-top:.6rem;overflow-wrap:anywhere}.ttj-gallery-help{font-size:.9rem;color:#495f55}.ttj-gallery a:focus-visible,.ttj-lightbox button:focus-visible{outline:3px solid #dcaa42;outline-offset:4px}.ttj-lightbox{box-sizing:border-box;max-width:1100px;width:94vw;max-height:94dvh;border:0;border-radius:14px;padding:16px;background:#122a27;color:white;overflow:auto}.ttj-lightbox::backdrop{background:rgba(0,0,0,.88)}.ttj-lightbox img{display:block;max-width:100%;max-height:70dvh;object-fit:contain;margin:auto}.ttj-lightbox-controls{display:flex;justify-content:space-between;gap:8px;margin-bottom:12px}.ttj-lightbox button{min-height:44px;background:#fff;color:#173c33;border:0;border-radius:6px;padding:8px 12px;font:inherit;cursor:pointer}.ttj-lightbox-caption{margin:12px 0 0;line-height:1.5;overflow-wrap:anywhere}@media(max-width:440px){.ttj-lightbox{padding:10px}.ttj-lightbox button{font-size:13px;padding:8px}.ttj-gallery-grid{grid-template-columns:1fr}}

/* Uniform small players for TTJ and native WordPress videos. Fullscreen remains available. */
.ttj-video-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(min(100%,260px),300px));gap:16px;align-items:start;margin:24px 0}
.ttj-video-grid>figure,.ttj-story-content .wp-block-video,.ttj-gallery-grid>figure:has(>video){width:100%;max-width:300px;margin-inline:0;min-width:0}
.ttj-video-grid video,.ttj-story-content .wp-block-video video,.ttj-gallery-grid>figure>video{display:block;width:100%!important;height:200px!important;max-width:300px!important;max-height:200px;aspect-ratio:3/2!important;object-fit:contain;background:#14231d;border-radius:8px}
.ttj-gallery-grid:has(>figure>video):not(:has(>figure img)){grid-template-columns:repeat(auto-fill,minmax(min(100%,260px),300px))}
