/*
Front-End styles
*/
/*
.block-loading { 
	opacity: 1; 
	pointer-events:visible; 
}
*/
.block__custom-hero {
    position:relative;
    display:flex;
    flex-direction:column;
    /*justify-content: center;*/
    text-align:center;

    min-height:var(--custom-hero-min-height-mobile, var(--custom-hero-min-height-desktop, 150px));
    background-color:#000000;
    color:#FFFFFF;
}
.block__custom-hero.ct-pos-top { justify-content: flex-start; }
.block__custom-hero.ct-pos-center { justify-content: center; }
.block__custom-hero.ct-pos-bottom { justify-content: flex-end; }

.block__custom-hero .container {
    width:80%; /* on mobile, content gets overlapped by the "email-us" button floating on the left edge. */
    z-index:100;
}
.block__custom-hero .background-image {
    position:absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-repeat: no-repeat;
    background-size: cover;
    background-position-x:50%;
    background-image:var(--custom-hero-bg-mobile, var(--custom-hero-bg-desktop));
    /*background-position-y:center;*/
}
.block__custom-hero .background-image.overlay { opacity:.5; }
.block__custom-hero .background-image.bg-pos-top { background-position-y:top; }
.block__custom-hero .background-image.bg-pos-center { background-position-y:center; }
.block__custom-hero .background-image.bg-pos-bottom { background-position-y:bottom; }

.block__custom-hero .wrapper {
    display:flex;
    flex-direction:column;
    justify-content: center;
    align-items: center;
    margin-top:100px;
}
.block__custom-hero.narrow .wrapper { 
    max-width:800px; 
    margin:0 auto; 
}


/* background */
/*
.block__custom-hero.grey { background-color:#f2f2f2; }
.block__custom-hero.blue { background-color:#1991e0; }
.block__custom-hero.orange { background-color:orange; }
.block__custom-hero.charcoal { background-color:#2e2a2b; }
.block__custom-hero.black { background-color:#000000; }
*/

/* padding */
.block__custom-hero.padding-none { padding: 0 0 0 0; }
.block__custom-hero.padding-small { padding: 25px 0 25px 0; }
.block__custom-hero.padding-medium { padding: 50px 0 50px 0; }
.block__custom-hero.padding-large { padding: 100px 0 100px 0; }
.block__custom-hero.padding-extra { padding: 200px 0 200px 0; }


/* Common
*/
.block__custom-hero h1,
.block__custom-hero.preview h1 {
    font-size:2.0rem;
    line-height:1.3;
    font-weight:700;
    text-transform:uppercase;
    margin:0 auto 10px;
}
.block__custom-hero h1::after,
.block__custom-hero.preview h1::after {
    content:"";
    display:block;
    border:2px solid rgba(204,204,204,.5);
    width:100px;
    margin:15px auto 15px;
}
.block__custom-hero h2,
.block__custom-hero.preview h2 {
    font-size:1.5rem;
    line-height:1.3;
    font-weight:500;
    text-transform:uppercase;
    margin: 0 auto 20px;
    width:fit-content;
}
.block__custom-hero p {
    font-size:1.1rem;
    line-height:1.3;
    font-weight:500;
    max-width:800px;
    margin:0 auto 10px;
}

/* More Button */
.block__custom-hero a.btn {
    display:flex;
    padding: 10px 20px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.0rem;
    letter-spacing: 1px;;
    text-transform: uppercase;
    width: fit-content;
    margin:20px auto;
    border-radius:0;
    border:none;
    color:#000000 !important;
    background:#f7941d !important;
}
.block__custom-hero a.btn:hover { 
    background:#c9751b !important; 
}


@media screen and (min-width: 641px) {

    .block__custom-hero {
        min-height:var(--custom-hero-min-height-desktop, 150px);
    }
    .block__custom-hero .background-image {
        background-image:var(--custom-hero-bg-desktop);
    }

}

@media screen and (min-width: 992px) {

	.block__custom-hero {
		padding: 60px 0;
    }
    .block__custom-hero.hero {
        padding: 140px 0 80px;
        height:auto !important;
	}
    .block__custom-hero .container {
        width:100%; /* on desktop, content does not get overlapped by the "email-us" button floating on the left edge. */
    }
    .block__custom-hero h1,
    .block__custom-hero.preview h1 {
        font-size:3.0rem;
    }
	.block__custom-hero h2 {
		font-size: 2.0rem;
	}
    .block__custom-hero p {
		font-size: 1.3rem;
	}
    
}



/* 
Editor styles
*/
.block__custom-hero.preview {
    width:100% !important; /* Required for previewing on editor */
    position:relative;
    border:1px dotted grey;
}
.block__custom-hero.preview::before {
    content:"CUSTOM HERO";
    display:block;
    position:absolute;
    left:0;
    top:0;
    padding:2px;
    background-color:blue;
    color:#FFFFFF;
    font-size:10px;
    line-height:1em;
    font-weight:800;
    z-index:999;
}

.block__custom-hero.preview .wrapper {
    padding:10px;
}

.block__custom-hero.preview h1 {
    font-size:2.5rem !important;
    font-weight:500 !important;
}
.block__custom-hero.preview h2 {
    margin: 0 auto 10px;
    font-weight:500 !important;
}
.block__custom-hero.preview p {
    font-size:18px !important;
    max-width:800px !important;
}
.block__custom-hero.preview a {
    pointer-events: none;
}


.custom-hero.preview .wrapper .block-editor-inner-blocks {
    width:100%;
}
.custom-hero.preview .block-editor-block-list__layout .wp-block {
    margin:0;
}


