Picture Elements card floorplan resize

Hi guys,

After much reading and research, I have finally managed to create my Floorplan with Picture Elements card. As i am looking to integrate this into my Dashboard that will be displayed on my Tablet. I find that the current picture elements card is too big.

My dashboard is on Panel mode. When i try to use card_mod to try to adjust the height of the card but i am not able to. Anyone able to point me in the right direction on how i can resize my card?

     image: /local/lovelace/floorplan/floorplan.png
      card_mod:
        style: |
          ha-card {
            height: 10%;
            border-radius: 20px;
            background: none;
            box-shadow: none;
          }
          img {
            height: 20%;

          }