201.t-zero-gallery__grid {202display: grid;203grid-template-columns: repeat(var(--t-zero-gallery-columns, 3), minmax(0, 1fr));204/* Тот же масштаб — в layouts/grid/layout.ts при расчёте высоты ячейки */205gap: calc(var(--t-zero-gallery-gap, 0px) * var(--zoom, 1));206width: 100%;207208& > .t-zero-gallery__item {209display: flex;210flex-direction: column;211}212
& .t-zero-gallery__content { flex: 0 0 auto; height: var(--t-zero-gallery-cell-height, auto); }}/* * Carousel: лента на transform, слайд = ширина stage. Порядок и свайп всегда LTR, как в 1.0. * Неактивные слайды скрыты, пока лента не движется (их фокус и a11y — только у активного) */.t-zero-gallery__carousel { position: relative; width: 100%; height: 100%; overflow: hidden; direction: ltr; cursor: auto; touch-action: pan-y;}/* slds_cursorcontrol: on — курсор элемента Zero Block */.t-zero-gallery__carousel_cursor { cursor: inherit;}.t-zero-gallery__track { display: flex; width: 100%; height: 100%;}.t-zero-gallery__slide { flex: 0 0 100%; width: 100%; height: 100%; overflow: hidden; & > .t-zero-gallery__item { width: 100%; height: 100%; }}.t-zero-gallery__carousel:not(.t-zero-gallery__carousel_moving) .t-zero-gallery__slide:not(.t-zero-gallery__slide_active) { visibility: hidden;}/* gallery_transition: fade — смена слайда через fade, без ленты */.t-zero-gallery__carousel_fade { & .t-zero-gallery__track { position: relative; } & .t-zero-gallery__slide { position: absolute; top: 0; left: 0; opacity: 0; transition: opacity var(--t-zero-gallery-transition-duration, 0.3s) ease-in-out; } & .t-zero-gallery__slide_active { position: relative; opacity: 1; }}@media (prefers-reduced-motion: reduce) { .t-zero-gallery__carousel_fade .t-zero-gallery__slide { transition: none; }}/* gallery_imghover: switch — смена слайда по зонам без анимации */.t-zero-gallery__carousel_instant .t-zero-gallery__slide { transition: none;}/* Видео-слайд запускается кликом в любом месте (items/video.ts) */.t-zero-gallery_imghover_switch .t-zero-gallery__item_video:not(.t-zero-gallery__item_video-open) { cursor: pointer;}/* * Контролы. Все px-размеры из настроек умножаются на --zoom (её ставит Zero Block при autoscale) — * 1.0 зумировал (t396__zoomifyValue) только часть из них. Внутри скейлящейся группы галерею увеличивает CSS-зум группы: