My inline svg is styled with the following CSS:
.img {
border-radius: 15px;
overflow: hidden;
max-width: 70vw;
margin-top: 6vh;
max-height: 50vh;
z-index: -1;
text-align: center;
}
Everything seems to work as expected, except for the border radius. Strangely, it only works when the screen width is at or below 837px. The issue appears to be related to the max height property, because once I remove it, the border radius works fine at all sizes. Is there a solution to this problem? Any assistance would be greatly appreciated. If you require additional files (such as the SVG code or HTML), please don't hesitate to ask. Thank you in advance.
Edit: Based on a request, I have included the full HTML+CSS.