/* Optional collection layouts; compact widget selectors remain untouched. */
.vsw-wp .vswGallery{container:vsw-gallery / inline-size;min-width:0;color:var(--i-color_root)}
.vsw-wp .vswGalleryBody{display:grid;gap:var(--vsw-gallery-gap,16px);grid-template-columns:minmax(0,1fr)}
.vsw-wp .vswGallery :is(.vswGalleryPlayer,.vswGalleryBrowser){min-width:0}
.vsw-wp .vswGalleryCollection{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(var(--vsw-gallery-columns-desktop,3),minmax(0,1fr));gap:var(--vsw-gallery-gap,16px);align-items:start;min-width:0}
.vsw-wp .vswGalleryItem{list-style:none;margin:0;padding:0;min-width:0}
.vsw-wp .vswGalleryCard{display:flex;flex-direction:column;min-height:44px;border:1px solid var(--i-background_4);border-radius:8px;overflow:hidden;color:var(--i-color_root);background:var(--i-background_1);text-decoration:none;outline-offset:3px}
.vsw-wp .vswGalleryCard:hover{background:var(--i-background_2)}
.vsw-wp .vswGalleryCard[aria-current="true"]{border-color:var(--i-color_root);box-shadow:inset 0 0 0 1px currentColor}
.vsw-wp :is(.vswGalleryCard,.vswGalleryNav):focus-visible{outline:3px solid var(--i-color_root);outline-offset:3px}
.vsw-wp .vswGalleryThumbnail{display:grid;place-items:center;aspect-ratio:16/9;min-width:0;overflow:hidden;background:var(--i-background_2)}
.vsw-wp .vswGalleryThumbnail[data-vsw-gallery-ratio="portrait"]{aspect-ratio:9/16}
.vsw-wp .vswGalleryThumbnail[data-vsw-gallery-ratio="square"]{aspect-ratio:1}
.vsw-wp .vswGalleryThumbnail img{width:100%;height:100%;min-height:0;object-fit:contain}
.vsw-wp .vswGalleryThumbnail[data-vsw-gallery-fit="cover"] img{object-fit:cover}
.vsw-wp .vswGalleryCaption{display:flex;flex-direction:column;gap:4px;padding:12px;min-width:0;overflow-wrap:anywhere}
.vsw-wp .vswGalleryTitle{font-size:16px;font-weight:600;line-height:1.4}
.vsw-wp .vswGalleryMeta{font-size:12px;color:var(--i-color_soft);line-height:1.5}
.vsw-wp .vswGalleryStatus{font-size:12px;font-weight:600;padding-block-start:4px}
.vsw-wp .vswGalleryNavigation{display:flex;justify-content:flex-end;gap:8px;margin-block-start:12px}
.vsw-wp .vswGalleryNav{display:inline-flex;align-items:center;justify-content:center;min-width:44px;min-height:44px;padding:4px 12px;border:1px solid var(--i-background_4);border-radius:8px;background:var(--i-background_1);color:var(--i-color_root);font-size:28px;cursor:pointer}
.vsw-wp .vswGalleryNav:hover{background:var(--i-background_2)}
.vsw-wp .vswGalleryNav:disabled{opacity:.45;cursor:default}
.vsw-wp .vswGallery[data-vsw-gallery="list"] .vswGalleryCollection{grid-template-columns:minmax(0,1fr)}
.vsw-wp .vswGallery[data-vsw-gallery="list"] .vswGalleryCard{display:grid;grid-template-columns:minmax(0,30%) minmax(0,1fr);align-items:center}
.vsw-wp .vswGallery[data-vsw-gallery="list"] .vswGalleryThumbnail{max-height:240px;width:100%}
.vsw-wp .vswGallery:is([data-vsw-gallery="carousel"],[data-vsw-gallery="showcase"]) .vswGalleryCollection{display:grid;grid-auto-flow:column;grid-template-columns:none;grid-auto-columns:calc((100% - (var(--vsw-gallery-columns-desktop,3) - 1)*var(--vsw-gallery-gap,16px))/var(--vsw-gallery-columns-desktop,3));overflow-x:auto;scroll-snap-type:x proximity;scroll-padding:4px;padding:4px;overscroll-behavior-inline:contain}
.vsw-wp .vswGallery:is([data-vsw-gallery="carousel"],[data-vsw-gallery="showcase"]) .vswGalleryItem{scroll-snap-align:start}
@container vsw-gallery (min-width:850px){
 .vswGallery[data-vsw-gallery="player"]>.vswGalleryBody{grid-template-columns:minmax(0,2fr) minmax(0,1fr)}
 .vswGallery[data-vsw-gallery="player"] .vswGalleryBrowser{contain:size;min-height:0;overflow:auto}
 .vswGallery[data-vsw-gallery="player"] .vswGalleryCollection{grid-template-columns:minmax(0,1fr)}
 .vswGallery[data-vsw-gallery="player"] .vswGalleryCard{display:grid;grid-template-columns:40% minmax(0,1fr);align-items:center}
 .vswGallery[data-vsw-gallery="showcase"]>.vswGalleryBody{grid-template-columns:minmax(0,1fr) minmax(0,2fr)}
}
@container vsw-gallery (max-width:1024px){.vsw-wp .vswGalleryCollection{grid-template-columns:repeat(var(--vsw-gallery-columns-tablet,2),minmax(0,1fr))}.vsw-wp .vswGallery:is([data-vsw-gallery="carousel"],[data-vsw-gallery="showcase"]) .vswGalleryCollection{grid-auto-columns:calc((100% - (var(--vsw-gallery-columns-tablet,2) - 1)*var(--vsw-gallery-gap,16px))/var(--vsw-gallery-columns-tablet,2))}}
@container vsw-gallery (max-width:767px){.vsw-wp .vswGalleryCollection{grid-template-columns:repeat(var(--vsw-gallery-columns-mobile,1),minmax(0,1fr))}.vsw-wp .vswGallery:is([data-vsw-gallery="carousel"],[data-vsw-gallery="showcase"]) .vswGalleryCollection{grid-auto-columns:calc((100% - (var(--vsw-gallery-columns-mobile,1) - 1)*var(--vsw-gallery-gap,16px))/var(--vsw-gallery-columns-mobile,1))}}
.vsw-wp .vswGalleryToolbar{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,140px),1fr));gap:12px;align-items:end;margin:0 0 12px}
.vsw-wp .vswGallery[data-vsw-gallery-browse] .vswGalleryBrowser{box-sizing:border-box;padding:12px;background:var(--i-background_1);color:var(--i-color_root);border:1px solid var(--i-background_4);border-radius:8px}
.vsw-wp .vswGalleryField{display:grid;gap:4px;min-width:0;margin:0}
.vsw-wp .vswGalleryLabel,.vsw-wp .vswGalleryCount,.vsw-wp .vswGalleryCoverage,.vsw-wp .vswGalleryEmpty{font-family:inherit;font-size:14px;line-height:1.5;color:var(--i-color_root)}
.vsw-wp .vswGalleryInput,.vsw-wp .vswGalleryPageButton{box-sizing:border-box;min-width:0;min-height:44px;max-width:100%;margin:0;padding:8px 10px;font:inherit;color:var(--i-color_root);background:var(--i-background_1);border:1px solid var(--i-background_4);border-radius:8px}
.vsw-wp .vswGalleryInput{width:100%}
.vsw-wp .vswGalleryPageButton{cursor:pointer;white-space:normal}
.vsw-wp .vswGalleryPageButton:disabled{cursor:default;opacity:.55}
.vsw-wp :is(.vswGalleryInput,.vswGalleryPageButton):focus-visible{outline:3px solid var(--i-primary);outline-offset:3px}
.vsw-wp .vswGalleryPagination{display:flex;flex-wrap:wrap;gap:12px;align-items:center;justify-content:space-between;margin-top:12px}
.vsw-wp .vswGalleryCoverage{color:var(--i-color_soft);margin:0 0 12px}
.vsw-wp :is(.vswGalleryToolbar,.vswGalleryPagination,.vswGalleryCoverage,.vswGalleryEmpty,.vswGalleryItem)[hidden]{display:none}
