I created a hero section where the content overlaps the border. Here's what it looks like:

I want to remove this gray area to make it transparent and make the background visible. But, as you can see, it overlaps at the border. Therefore, I do not want to see how the border makes its way. The content and image are dynamic, so the width can change.
Live Demo: On Codepen
HTML
<div class="wrap"> <div class="border"> <h1 class="hero-title">We make your website beautiyul & usable </h1> <span class="attr">— Citation, ABC Inc</span> </div> </div>
CSS
@import url(https://fonts.googleapis.com/css?family=Playfair+Display:400,700,900); body { background: url('https://source.unsplash.com/category/nature') no-repeat center center #333; color:#FFF; font-family: "Playfair Display", Georgia, serif; background-size:cover; } .wrap { max-width:1200px; margin:0 auto; padding:130px 20px; } .border { border:solid 10px #FFF; text-align:center; } .attr { position:relative; top:-45px; font-size:20px; display:block; } .hero-title { font-weight:700; font-size:90px; text-align:center; margin:0 50px; padding:0; position:relative; top:-75px; background:#8b8b8b; display:inline-block; }
Live Demo: On Codepen
Looking for a CSS-only solution. Any help would be greatly appreciated. Thanks in advance.
source share