/* HR-метавселенная Сбера: только локальная галерея и видео. */
.x-gallery.x-hr-gallery{
 display:grid;grid-template-columns:repeat(12,minmax(0,1fr));
 gap:clamp(12px,1.6vw,26px);align-items:start
}
.x-gallery.x-hr-gallery>figure,
.x-gallery.x-hr-gallery>figure:nth-child(5n+1){
 grid-column:span 6!important;min-width:0;width:100%;margin:0
}
/* Широкие кадры 01 и 06 сохраняют полноширинный формат. */
.x-gallery.x-hr-gallery>figure:nth-child(1),
.x-gallery.x-hr-gallery>figure:nth-child(6){grid-column:span 12!important}
/* Только квадратные кадры 07–18: три в строке. */
.x-gallery.x-hr-gallery>figure:nth-child(n+7){grid-column:span 4!important}
.x-gallery.x-hr-gallery>figure a{display:block;line-height:0;overflow:hidden}
.x-gallery.x-hr-gallery>figure img{
 display:block;width:100%;height:auto!important;max-height:none!important;
 min-height:0!important;aspect-ratio:auto!important;
 object-fit:contain!important;transform:none;background:#111
}
.x-gallery.x-hr-gallery>figure figcaption{line-height:1.4}
.x-hr-video{padding:clamp(40px,6vw,90px) 0}
.x-hr-video-frame{width:100%;max-width:1200px;margin:24px auto 0;background:#0b0b0b;aspect-ratio:16/9}
.x-hr-video-frame video{display:block;width:100%;height:100%;object-fit:contain;background:#0b0b0b}
@media(max-width:800px){
 .x-gallery.x-hr-gallery>figure:nth-child(n+7){grid-column:span 6!important}
}
@media(max-width:560px){
 .x-gallery.x-hr-gallery>figure,
 .x-gallery.x-hr-gallery>figure:nth-child(5n+1),
 .x-gallery.x-hr-gallery>figure:nth-child(n+7){grid-column:span 12!important}
 .x-hr-video-frame{margin-top:16px}
}
