I am working with a simple grid layout:
.container{
display:grid;
gap:20px;
grid-template-columns: repeat (12, 1fr)
}
.container >*{
grid-column-start: span 12
}
@media(min-width:768px){
.item{
grid-column-start:span 6
}
}
<div class="container">
<div class="item"><img src="..."></div>
<div class="item"><p>Text</p></div>
<div class="item"><img src="..."></div>
<div class="item"><p>Text</p></div>
<div class="item"><img src="..."></div>
<div class="item"><p>Text</p></div>
</div>
How do I position the image in the second row to the right on screens larger than 768px, and have the text on the left side?