.wrapper { position: relative; width: 100%; height: 100%; border-radius: inherit; } .imageCount { position: absolute; bottom: var(--Space-x2); right: var(--Space-x2); } .imageCountBottom { bottom: var(--Space-x2); top: auto; } .imageCountTop { top: var(--Space-x2); bottom: auto; } .triggerArea { background-color: transparent; border-width: 0; padding: 0; position: absolute; inset: 0; cursor: pointer; border-radius: inherit; } .image { width: 100%; height: 100%; object-fit: cover; border-radius: inherit; }