.house{margin:20px;display:flex;flex-wrap:wrap}.house__item{flex:1 0 33.33333%;max-width:33.33333%;padding:10px}.house__item--active .house__bg:before,.house__item:hover .house__bg:before{content:"";position:absolute;left:0;top:0;width:100%;height:100%;box-sizing:border-box;border:8px solid #c70552;z-index:2}.house__bg{display:block;position:relative;height:0;padding-bottom:100%}.house__img{position:absolute;left:0;top:0;width:100%;position:relative}.house__inp{visibility:hidden}