Hero image: crop to face, match exact text-stack height
This commit is contained in:
@@ -640,8 +640,9 @@ a {
|
|||||||
|
|
||||||
@media (min-width: 1024px) {
|
@media (min-width: 1024px) {
|
||||||
.hero__content {
|
.hero__content {
|
||||||
padding-block: var(--space-8);
|
/* No extra padding — section handles outer breathing room.
|
||||||
justify-content: center;
|
Image will be exactly the natural height of the text stack. */
|
||||||
|
justify-content: flex-start;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -694,10 +695,10 @@ a {
|
|||||||
}
|
}
|
||||||
|
|
||||||
.hero__image img {
|
.hero__image img {
|
||||||
/* Let the image fill the full height of the content column.
|
/* Fill the content column height exactly; crop from the top
|
||||||
aspect-ratio is removed so the image stretches to whatever
|
so only Diana's face and shoulders are visible. */
|
||||||
height the left (text) column naturally takes. */
|
|
||||||
height: 100%;
|
height: 100%;
|
||||||
|
object-position: center 8%;
|
||||||
aspect-ratio: unset;
|
aspect-ratio: unset;
|
||||||
border-radius: 0;
|
border-radius: 0;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user