901position: relative;902flex: 0 0 auto;903width: var(--t-zero-gallery-thumb-scaled-width);904height: var(--t-zero-gallery-thumb-scaled-height);905margin: 0;906padding: 0;907overflow: hidden;908border: 0;909border-radius: calc(var(--t-zero-gallery-thumb-radius, 0px) * var(--zoom, 1));910background: none;911cursor: pointer;912pointer-events: auto;
/* Обводка поверх картинки: толщина не уменьшает изображение */ &::after { content: ''; position: absolute; top: 0; right: 0; bottom: 0; left: 0; border: calc(var(--t-zero-gallery-thumb-border-width, 0px) * var(--zoom, 1)) solid var(--t-zero-gallery-thumb-border-color, transparent); border-radius: inherit; pointer-events: none; } &:focus-visible { outline-offset: -1px; }}/* Активная: пустые поля — как у обычной */.t-zero-gallery__thumb_active { &::after { border-width: calc( var(--t-zero-gallery-thumb-active-border-width, var(--t-zero-gallery-thumb-border-width, 0px)) * var(--zoom, 1) ); border-color: var( --t-zero-gallery-thumb-active-border-color, var(--t-zero-gallery-thumb-border-color, transparent) ); }}.t-zero-gallery__thumb-media { display: block; width: 100%; height: 100%; background-repeat: no-repeat; background-position: center center; background-size: cover;}.t-zero-gallery__thumb_video .t-zero-gallery__thumb-media:not([style*='background-image']) { background-color: #000;}/* Выравнивание через margin: auto — justify-content: center обрезал бы начало прокручиваемой полосы */.t-zero-gallery__thumbs_top .t-zero-gallery__thumb + .t-zero-gallery__thumb,.t-zero-gallery__thumbs_bottom .t-zero-gallery__thumb + .t-zero-gallery__thumb { margin-left: var(--t-zero-gallery-thumb-scaled-gap);}.t-zero-gallery__thumbs_left .t-zero-gallery__thumb + .t-zero-gallery__thumb,.t-zero-gallery__thumbs_right .t-zero-gallery__thumb + .t-zero-gallery__thumb { margin-top: var(--t-zero-gallery-thumb-scaled-gap);}.t-zero-gallery__thumbs_top.t-zero-gallery__thumbs_align_center .t-zero-gallery__thumb:first-child,.t-zero-gallery__thumbs_top.t-zero-gallery__thumbs_align_end .t-zero-gallery__thumb:first-child,.t-zero-gallery__thumbs_bottom.t-zero-gallery__thumbs_align_center .t-zero-gallery__thumb:first-child,.t-zero-gallery__thumbs_bottom.t-zero-gallery__thumbs_align_end .t-zero-gallery__thumb:first-child { margin-left: auto;}.t-zero-gallery__thumbs_top.t-zero-gallery__thumbs_align_center .t-zero-gallery__thumb:last-child,.t-zero-gallery__thumbs_bottom.t-zero-gallery__thumbs_align_center .t-zero-gallery__thumb:last-child { margin-right: auto;}.t-zero-gallery__thumbs_left.t-zero-gallery__thumbs_align_center .t-zero-gallery__thumb:first-child,.t-zero-gallery__thumbs_left.t-zero-gallery__thumbs_align_end .t-zero-gallery__thumb:first-child,.t-zero-gallery__thumbs_right.t-zero-gallery__thumbs_align_center .t-zero-gallery__thumb:first-child,.t-zero-gallery__thumbs_right.t-zero-gallery__thumbs_align_end .t-zero-gallery__thumb:first-child { margin-top: auto;}.t-zero-gallery__thumbs_left.t-zero-gallery__thumbs_align_center .t-zero-gallery__thumb:last-child,.t-zero-gallery__thumbs_right.t-zero-gallery__thumbs_align_center .t-zero-gallery__thumb:last-child { margin-bottom: auto;}