How can I set the height of the image to auto so that the image adjusts to the width?
When I set the height of the image to auto the image disappears.
https://jsfiddle.net/e62La57n/ (You have to click run for the site to load)
<section>
<p>Lorem ipsum dolor sit amet, consectetur adipisicing elit. Odio consequuntur doloremque amet vitae minima natus praesentium!</p>
</section>
p {
position: relative;
max-width: 20em;
font-size: 1.3em;
line-height: 1.2;
letter-spacing: 0.05em;
color: darkgrey;
}
p::after {
content: ' ';
position: absolute;
z-index: -1;
top: 50%;
left: 50%;
width: 140%;
height: 100%;
background-image: url('https://images.unsplash.com/photo-1513279922550-250c2129b13a?ixlib=rb-1.2.1&ixid=eyJhcHBfaWQiOjEyMDd9&auto=format&fit=crop&w=1050&q=80');
background-size: cover;
background-position: center;
}