.single-header-image { -webkit-background-size: cover; -moz-background-size: cover; -o-background-size: cover; background-size: cover; background-repeat: no-repeat; background-color: #ccc; position: relative; &:not(.no-bg) { position: relative; height: 800px; padding-top: 465px; &:not(.single-header-image--no-title) { &:after { content: " "; display: block; position: absolute; top: 0; left: 0; width: 100%; height: 100%; z-index: 10; background-color: rgba(0, 0, 0, 0.6); } } &.single-image--no-title { .post-title { display: none; } } .single-header-image__data { position: relative; z-index: 100; } } .post-meta { color: #fff; font-size: 12px; margin-bottom: 16px; } .post-title { color: #fff; font-size: 40px; line-height: 52px; font-weight: 700; margin-top: 0; text-shadow: 1px 1px 0 rgba(60,60,60,0.3); } } .single-header-image--h700:not(.no-bg) { height: 700px; padding-top: 0; .single-header-image__data { position: absolute; left: 0; top: 50%; width: 100%; transform: translateY(-50%) } }