diff --git a/src/components/ref-img.webc b/src/components/ref-img.webc index 640b6f4..d88da06 100644 --- a/src/components/ref-img.webc +++ b/src/components/ref-img.webc @@ -56,11 +56,15 @@ :host :where(picture, img) { grid-area: image; + display: grid; + grid-template-columns: subgrid; + justify-items: center; + max-width: 100%; } :host .image { display: block; - width: 100%; + width: auto; height: 100%; max-height: 35rem; object-fit: contain;