/* modal pictures */ .image-selector-content{ display: grid; grid-template-columns: 1fr 1fr 1fr; } .image-selector-content .image-element{ width: 150px; height: 150px; } .image-selector-content .image-element img{ width: 100%; height: 100%; object-fit: contain; overflow: hidden; } .image-selector-content .image-element img:hover{ border:2px solid gray; } .image-element{ position: relative; } .image-element span{ position: absolute; bottom:5px; left:5px; z-index: 10; font-weight: bold; text-shadow:white 0px 0px 3px, white 0px 0px 2px; }