.single-post-hero {
position: relative;
display: flex;
align-items: flex-end;
width: 100%;
min-height: clamp(28rem, 72vh, 42rem);
margin: 0;
overflow: hidden;
color: var(--wp--preset--color--custom-white);
}
.single-post-hero.alignfull {
max-width: none;
}
.single-post-hero__media {
position: absolute;
inset: 0;
z-index: 0;
}
.single-post-hero__image {
width: 100%;
height: 100%;
object-fit: cover;
object-position: center;
display: block;
}
.single-post-hero__overlay {
position: absolute;
inset: 0;
z-index: 1;
background: rgba(0, 0, 0, 0.6);
}
.single-post-hero__inner {
position: relative;
z-index: 2;
display: flex;
flex-direction: column;
justify-content: flex-end;
align-items: flex-start;
width: 100%;
max-width: var(--wp--style--global--wide-size, 1456px);
margin-inline: auto;
padding:
calc(var(--wp--preset--spacing--7) + 5rem)
var(--wp--preset--spacing--3)
var(--wp--preset--spacing--6);
box-sizing: border-box;
}
.single-post-hero__date {
margin: var(--wp--preset--spacing--4) 0 var(--wp--preset--spacing--3);
font-size: var(--wp--preset--font-size--1);
font-weight: 500;
letter-spacing: 0.06em;
text-transform: uppercase;
}
.single-post-hero__title {
margin: 0;
max-width: 52rem;
font-family: var(--wp--preset--font-family--outfit);
font-size: var(--wp--preset--font-size--8);
font-weight: 500;
line-height: 1.12;
}
.single-post-hero__excerpt {
max-width: 42rem;
margin: var(--wp--preset--spacing--3) 0 0;
font-size: var(--wp--preset--font-size--4);
line-height: 1.5;
opacity: 0.92;
}
.single-post-hero__excerpt p {
margin: 0;
}
.single-post-hero.is-editor {
min-height: clamp(18rem, 50vh, 28rem);
}
@media (max-width: 767px) {
.single-post-hero__inner {
padding-top: calc(var(--wp--preset--spacing--6) + 4.5rem);
}
.single-post-hero__title {
font-size: var(--wp--preset--font-size--7);
}
}