.td-gallery{width:100%;max-width:1920px;color:var(--studio-foreground);margin:0 auto;padding:16px 12px}.td-gallery h2{font-size:var(--type-section);line-height:32px;font-weight:var(--weight-semibold);margin:0 0 0 8px}.td-gallery-filters{scrollbar-width:none;gap:8px;margin:16px 0;display:flex;overflow-x:auto}.td-gallery-filters::-webkit-scrollbar{display:none}.td-gallery-filters button{border:1px solid var(--studio-border);color:var(--studio-text-secondary);font:inherit;font-size:var(--type-caption);cursor:pointer;background:0 0;border-radius:999px;flex:none;padding:4px 12px;line-height:16px;transition:color .2s,border-color .2s}.td-gallery-filters button:hover{color:var(--studio-foreground);border-color:var(--studio-text-muted)}.td-gallery-filters button[aria-pressed=true]{color:var(--studio-accent-text);border-color:var(--studio-accent-text)}.td-gallery-grid{border-radius:24px 24px 0 0;align-items:flex-start;gap:4px;display:flex;overflow:hidden}.td-gallery-column{flex-direction:column;flex:1;gap:4px;min-width:0;display:flex}.td-template{background:var(--studio-palette-181818);width:100%;color:var(--studio-foreground);cursor:pointer;text-align:left;font:inherit;border:0;border-radius:4px;padding:0;display:block;position:relative;overflow:hidden}.td-template>img,.td-template>video{object-fit:cover;width:100%;height:100%;display:block}.td-template-overlay{color:var(--studio-media-foreground);background:linear-gradient(transparent 35%, var(--studio-media-scrim) 100%);opacity:0;flex-direction:column;justify-content:flex-end;padding:12px;transition:opacity .2s;display:flex;position:absolute;inset:0}.td-template-copy{flex-direction:column;gap:4px;margin-bottom:12px;transition:transform .3s;display:flex;transform:translateY(8px)}.td-template-title{font-size:var(--type-ui);line-height:20px;font-weight:var(--weight-semibold)}.td-template-description{-webkit-line-clamp:2;font-size:var(--type-caption);color:var(--studio-media-secondary);-webkit-box-orient:vertical;line-height:16px;display:-webkit-box;overflow:hidden}.td-template:hover .td-template-overlay,.td-template:focus-visible .td-template-overlay{opacity:1}.td-template:hover .td-template-copy,.td-template:focus-visible .td-template-copy{transform:translateY(0)}.td-template:focus-visible,.td-gallery-filters button:focus-visible{outline:2px solid var(--studio-accent);outline-offset:-2px}.td-gallery-sentinel{height:1px}@media (width<=767px){.td-template-overlay{opacity:1;background:linear-gradient(transparent 65%, var(--studio-palette-00000040));align-items:flex-end;padding:8px}.td-template-copy{display:none}}@media (prefers-reduced-motion:reduce){.td-template-overlay,.td-template-copy,.td-gallery-filters button{transition:none}}.td-gallery h1{font-size:var(--type-page);margin:28px 0 12px;font-weight:700;line-height:1.2}.td-library-description{color:var(--td-muted);margin:0 0 28px}.td-library-controls{flex:none;justify-content:flex-end;gap:12px;display:flex}.td-library-controls input{background:var(--td-card);border:1px solid var(--td-border);color:var(--td-text);border-radius:99px;width:280px;min-width:0;padding:10px 16px}.td-library-empty{text-align:center;color:var(--td-muted);padding:60px 20px}@media (width<=600px){.td-gallery h1{font-size:28px}.td-library-controls input{width:100%}}.td-sort-select{border-radius:99px;min-width:108px;height:42px}.td-gallery-toolbar-library{justify-content:space-between;align-items:center;gap:20px;margin:16px 0;display:flex}.td-gallery-toolbar-library .td-gallery-filters{min-width:0;margin:0}@media (width<=1050px){.td-gallery-toolbar-library{flex-wrap:wrap;gap:12px}.td-gallery-toolbar-library .td-gallery-filters,.td-gallery-toolbar-library .td-library-controls{width:100%}.td-gallery-toolbar-library .td-library-controls input{flex:1;width:auto}}.td-gallery-filter-divider{background:var(--studio-border);flex:0 0 1px;align-self:center;height:18px;margin:0 4px}.td-gallery-grid{border-radius:0;gap:24px}.td-gallery-column{gap:28px}.td-template{color:var(--td-text);background:0 0;border-radius:0;overflow:visible}.td-template-media{background:var(--td-card);border-radius:8px;display:block;overflow:hidden}.td-template-media>img,.td-template-media>video{object-fit:cover;width:100%;height:100%;transition:transform .25s;display:block}.td-template:hover .td-template-media>img{transform:scale(1.025)}.td-template .td-template-overlay{opacity:1;color:var(--td-text);background:0 0;flex-direction:row;align-items:flex-start;gap:12px;padding:12px 0 0;display:flex;position:static}.td-template .td-template-copy{flex:1;min-width:0;margin:0;display:flex;transform:none}.td-template .td-template-description{color:var(--td-muted);-webkit-line-clamp:2}@media (width<=640px){.td-gallery-grid{gap:14px}.td-gallery-column{gap:22px}.td-template-title{font-size:var(--type-small)}.td-template .td-template-description{-webkit-line-clamp:2;font-size:11px}}@media (prefers-reduced-motion:reduce){.td-template-media>img{transition:none}}
