Is it possible to amend the size of the detail view pop up on this style of directory for web and tablet view?

I have a directory and want the images to be smaller on the mobile and tablet view.
Is this possible?

Use the following CSS to adjust the width:

Set the max width to the size you want.

@media screen and (min-width: 640px){
    .small-card-detail-overlay .small-card-detail-overlay-panel {
        max-width: 500px

Perfect! Thanks