Dodaj granicę na zawisie Div
.photo{
/*2 rem outside border */
outline-offset:2rem;
&:hover{
outline:1.5rem solid green;
}
Shirshak kandel
.photo{
/*2 rem outside border */
outline-offset:2rem;
&:hover{
outline:1.5rem solid green;
}