*Sorry previously I was on Mobile.
Thank you. After applying your code, it looks great. But I have added the CSS in customizer and I don’t know how to change the previous code to the new one.
Currently, for featured image, the CSS in my customizer is the following:
.featured-image amp-img {
height: auto;
}
@media (min-width:769px){
.resize-featured-image .post-image img {
width: 740px;
height: 350px;
-o-object-fit: cover;
object-fit: cover;
}
}
@media (max-width:768px){
.resize-featured-image .post-image img {
width: 100%;
height: auto;
-o-object-fit: contain;
object-fit: contain;
}
}