<img src="https://picsum.photos/1240/?random=11" alt="">
@import url("https://fonts.googleapis.com/css2?family=Exo:wght@600&display=swap");

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  width: 100vw;
  min-height: 100vh;
  font-family: "Exo", Arial, sans-serif;
  background-color: #557;
  color: #fff;
  display: grid;
  gap: 20px;
  place-content: center;
  font-size: clamp(1.5rem, 2vw + 1rem, 2.25rem);
  line-height: 1.5;
}

:where(img) {
  max-height: 100vh;
  width: auto;
  object-fit: cover;
  object-position: center;
}

:where(article img:not(:first-child)) {
  border: 5px solid red;
}

:where(article) img {
  border: 5px solid green;
}

img {
  border: 5px solid orange;
}

External CSS

This Pen doesn't use any external CSS resources.

External JavaScript

This Pen doesn't use any external JavaScript resources.