/*
Block Name: Columns
Description: An extremely flexible block allowing simple and complex layouts. This block is used for images and static text purposes.
*/

body.wp-admin section.block-columns { border: 1px solid #ccc; }
body.wp-admin section .container .grid:empty:before { font-size: 2rem; color: #e88b39; font-weight: 600; content: "This is an empty *block* - add content"; padding: 2rem 0; display: block;}
body.wp-admin section .container .grid .col:empty:before { color: #e88b39; font-weight: 600; content: "This is an empty *column* - add content"; padding: 2rem 0; display: block;}
.block-columns.headings-white.has-bg :is(h1, h2, h3, h4, h5, h6) {
    color: #ffffff;
}
.background-white {
    background: #ffffff;
}
.br2 {border-radius: 2rem;}
.p2 {
    padding: 2rem;
}

/* Keep RichPlugins Google Reviews slider inside its column */
.testimonials .col {
    min-width: 0 !important;
    max-width: 100% !important;
    width: 100% !important;
    overflow: hidden;
}

.testimonials .wp-gr,
.testimonials .grw-slider,
.testimonials .grw-slider-content {
    min-width: 0 !important;
    max-width: 100% !important;
    width: 100% !important;
}

.block-columns.bg2 .button.toast-primary {
    background-color: #ffffff;
    color: #4674C1;
    border-radius: 3rem;
	padding: 1rem 4rem;
    font-weight: 600;
}

.block-columns.bg2 .button.toast-primary:hover,
.block-columns.bg2 .button.toast-primary:focus {
    background-color: #e1e4e9;
    color: #254d88;
}

.block-columns .column-icon { color: var(--brand-1); font-size: 6rem; margin-bottom: 1rem; }
.block-columns .bg2 .column-icon { color: #fff; } 
.block-columns .col-icon{max-width:100px;margin:0 auto 2rem;}
.block-columns .flex-col > .button-block { margin-top: auto; }	

.portrait-video {
    width: 100%;
    max-width: 360px;
    aspect-ratio: 9 / 16;
    position: relative;
}

.portrait-video .wp-video,
.portrait-video .mejs-container,
.portrait-video .mejs-inner,
.portrait-video .mejs-mediaelement,
.portrait-video .mejs-layers {
    width: 100% !important;
    height: 100% !important;
}

.portrait-video .wp-video,
.portrait-video .mejs-container {
    position: absolute !important;
    inset: 0;
}

.portrait-video video {
    width: 100% !important;
    height: 100% !important;
    object-fit: contain !important;
}

/* Buttons should never be underlined */
a.button,
a.toast-primary {
    text-decoration: none !important;
}

/* Buttons inside white-text sections */
.white-text a.button,
.white-text a.toast-primary {
    background-color: #fff;
    color: var(--brand-3);
    text-decoration: none !important;
}

/* Hover */
.white-text a.button:hover,
.white-text a.toast-primary:hover {
    background-color: var(--brand-1);
    color: #fff;
    text-decoration: none !important;
}

.block-columns.white-text a:not(.button) {
    color: #fff;
}

.block-columns.white-text a:not(.button):hover {
    opacity: 0.6;
}

@media (max-width: 1024px) {

	/* Hero buttons */
	.header .column-content p:has(.button) {
		display: flex;
		flex-direction: column;
		align-items: flex-start;
		gap: 0.5rem;
	}

	.header .column-content p:has(.button) .button {
		margin: 0;
	}

	/* Smart home planning cards */
	.block-columns.gg2 .column-content h4 {
		font-size: 2.5rem;
	}

	.block-columns.gg2 .column-content h4 + p {
		font-size: 90%;
	}

}

@media screen and (max-width:576px ) {
	.col-bg-img { min-height: 30vh;}
}

@media (max-width: 425px) {

	.header .column-content p:has(.button) {
		display: flex;
		flex-direction: column;
		width: 90% !important;
		max-width: none !important;
		align-items: stretch;
		gap: 0.5rem;
	}

	.header .column-content p:has(.button) .button {
		display: flex;
		width: 100% !important;
		max-width: none !important;
		min-width: 100%;
		margin: 0 !important;
		box-sizing: border-box;
		justify-content: left;
	}

}