/* Карточка объекта: стабилизация галереи и блока под фото */
.gallery{
  position:relative;
  overflow:hidden;
  align-items:stretch;
  min-width:0;
}
.gallery-main,
.gallery-side{
  min-width:0;
  min-height:0;
  height:520px;
}
.gallery-main{
  position:relative;
}
.gallery-side{
  overflow:hidden;
}
.gallery-side>button{
  min-width:0;
  min-height:0;
  height:100%;
  overflow:hidden;
}
.gallery-main img,
.gallery-side>button img{
  display:block;
  width:100%;
  height:100%;
  min-width:0;
  min-height:0;
  object-fit:cover;
}
.title-block{
  position:relative;
  z-index:2;
  clear:both;
  margin-top:0;
}
.facts{
  position:relative;
  z-index:2;
  grid-template-columns:repeat(5,minmax(0,1fr));
}
.fact{
  min-width:0;
}
.fact strong,
.fact span{
  overflow-wrap:anywhere;
}
@media(max-width:850px){
  .gallery{height:auto;overflow:hidden}
  .gallery-main{height:340px}
  .gallery-side{display:none;height:auto}
  .facts{grid-template-columns:repeat(3,minmax(0,1fr))}
}
@media(max-width:520px){
  .gallery-main{height:270px}
  .facts{grid-template-columns:repeat(2,minmax(0,1fr))}
}
