/* Child theme fonts */
:root {
    --font-family--default: 'Figtree';
    --font-family--h--1: 'Figtree';
    --font-family-subheading: 'Source-Serif-4';
    --font-family--h--2: var(--font-family--h--1);
    --font-family--h--3: var(--font-family--h--1);
    --font-family--h--4: var(--font-family--h--1);
    --font-family--h--5: var(--font-family--h--1);
    --font-family--h--6: var(--font-family--h--1);
    --font-family--h--2--footer: var(--font-family--h--1);
    --font-family--h--3--footer: var(--font-family--h--1);
    --font-family--h--4--footer: var(--font-family--h--1);
    --font-family--main-navigation: var(--font-family--h--1);
    --font-family--dropdown: var(--font-family--h--1);
    --font-family--megamenu--heading: var(--font-family--h--1);
    --font-family--gallery--caption: var(--font-family--default);
    --font-family--collapsible: var(--font-family--default);
    --font-family--tab: var(--font-family--h--1);
    --font-family--button: var(--font-family--h--1);
    --font-family--h--sub-heading--0: var(--font-family-subheading);
    --font-family--h--lead-text--0: var(--font-family--default);
}

@media only screen and (max-width:1281px){
    .rpi .rpi-badge-right{
        display:none !important;
    }
}

.imt-footer .imt-section .imt-content.imt-content-width-lg{
    max-width: 1440px;
}

.imt-btn.imt-btn-text:hover{
    box-shadow:unset !important;
}

.imt-btn.imt-btn-white-outline:focus,
.imt-btn.imt-btn-white-outline:hover{
    background-color: var(--wp--custom--imt--color--palette--background--primary--active) !important;
    border-color:var(--wp--custom--imt--color--palette--background--primary--active) !important;
}

/* Gallery lightbox arrows */
/* Example from Second Nature */
/* Gallery lightbox arrows - positioning */
body figure.lightbox>a {
    padding: 0 60px !important;
}

body figure.lightbox i.fa-solid {
    top: 0 !important;
    bottom: 0 !important;
}

/* hero large subheading */
body.imt-sticky-header main>.entry-content>.imt-section:first-of-type .imt-lead-text--0{
    font-size:calc(var(--wp--custom--imt--h--lead-text--0--font-size) + 2px) !important;
}

/* secondary outline hover fix */
.imt-btn.imt-btn-secondary-outline:hover{
    background-color:#BDD9C0 !important;
}

.imt-btn.imt-btn-primary-outline:hover{
    background-color: var(--wp--custom--imt--color--palette--background--primary--active) !important;
    color:#fff !important;
}


/* Hero background animation */
@keyframes background-pan{
    from {transform:scale(2) translateX(25%) translateY(20%);}
    to {transform:scale(1) translateX(0) translateY(0);}
}

.animated-bg ~ img:first-of-type{
    animation-name:background-pan;
    animation-duration: 60s;
    animation-timing-function: ease-out;
    animation-fill-mode: forwards;
}

.blog .wp-block-query h2{
    margin:calc(var(--wp--custom--imt--spacer) * 0.75) 0 !important;
}

/* bottom align hero content */
body.imt-sticky-header main>.entry-content>.imt-section:first-of-type{
    display: flex !important;
    flex-direction: column !important;
    justify-content: flex-end !important;
}

/* Mobile Nav Button Current Menu Item Underline Fix */
nav.imt-main-nav>div ul>li.imt-link-level-1.imt-btn-1>a.imt-current-menu-item>span::after{
    display: none !important;
}

/* override section min-height from parent styles */
.imt-section {
    min-height: 30px;
}

/* Slider 2 Arrows */
.imt-slider.imt-slider-style-2 .slick-prev{
    left:calc(var(--wp--custom--imt--spacer) * -1) !important;
    top:50% !important;
}
.imt-slider.imt-slider-style-2 .slick-next{
    right:calc(var(--wp--custom--imt--spacer) * -1) !important;
    top:50% !important;
}

/* hiding the '---' in the megamenu */
.menu-item.imt-hide-label a {
    color: #fff;

}

/* specificity fix for nested sections */
.imt-card .imt-section {
    padding-top: 0 !important;
    padding-bottom: 0;
}

/* border radius specificity fix */
.imt-card.imt-border-radius-0 {
    border-radius: 0 !important;
}

/* main nav right spacer between menu and cta button */
nav.imt-main-nav {
    margin-right: calc(var(--wp--custom--imt--spacer) * 1);
}

@media only screen and (min-width: 1281px) {
    nav.imt-main-nav>div>ul>li.megamenu .submenu .megamenu-heading>a {
        text-decoration: var(--wp--custom--imt--main-navigation--megamenu--heading--font--text-decoration);
        color: #083420;
        font-weight: 700;
        text-transform: uppercase;
    }
}

@media only screen and (max-width: 1280px) {
    body figure.lightbox>a {
        padding: 0 40px !important;
    }

    body figure.lightbox i.fa-close {
        right: 10px !important;
    }

    figure.lightbox i.fa-solid:nth-child(2) {
        left: 10px !important;
    }

    body figure.lightbox i.fa-solid:last-of-type {
        right: 10px !important;
    }

    .imt-mobile-rg-sm>.acf-innerblocks-container>.imt-card-group>.acf-innerblocks-container{
        row-gap:0 !important
    }
    .imt-mobile-rg-sm>.acf-innerblocks-container>.imt-card-group>.acf-innerblocks-container>.imt-card:first-of-type{
        padding-bottom:0 !important
    }

    .imt-section .imt-media-row.imt-media-row-style-2 .imt-buttons{
        margin:var(--wp--custom--imt--media-row--style--2--margin--mobile--ctas);
    }
}

/* Mobile navigation background */
@media only screen and (max-width: 1280px) {
    nav.imt-main-nav.offcanvas #imt-offcanvas>ul>li a {
        justify-content: center !important;
        padding: calc(var(--wp--custom--imt--spacer) * 1) !important;
    }

    nav.imt-main-nav>div>ul ul {
        text-align: center !important;
    }

    nav.imt-main-nav>div ul>li .submenu {
        min-width: unset !important;

    }

    #imt-header .imt-btn-1 a {
        border: 2px solid #008045 !important;
        text-align: center;
        max-width: 270px;
        margin: 10px auto !important;
    }

    nav.imt-main-nav>div>ul>li i{
        margin-top:2px !important;
    }

    nav.imt-main-nav.offcanvas #imt-offcanvas {
        background-color: var(--wp--custom--imt--color--background--page);
    }

    /* limit header logo bg size */
    #imt-header .imt-content>.acf-innerblocks-container {
        overflow: hidden;
    }

    header .wp-block-site-logo img.custom-logo {
        position: relative;
        z-index: 10;
    }

    /* make background behind logo solid */
    header .wp-block-site-logo {
        position: relative;
        z-index: 10;
        width: 100%;
        background-color: var(--wp--custom--imt--color--background--page);
    }

    /* add solid bg behind Get A Quote button */
    /* #imt-offcanvas .acf-innerblocks-container {
        background-color: var(--wp--custom--imt--color--background--page);
        padding-top: 16px;
    } */
    /* Adjust mobile menu open / close target zone and position */
    #imt-menu-toggle {
        z-index: 10;
        height: unset !important;
        width: unset !important;
        display: block !important;
    }

    nav.imt-main-nav {
        margin-right: 0;
    }

    nav.imt-main-nav li.menu-item {
        text-align: center;
    }

    /* Request A Quote, mobile */
    .imt-main-nav .imt-btn-1 a {
        /* background-color: transparent;
        border: none; */
        margin-top: var(--wp--custom--imt--spacer) !important;
        /* max-width: 170px; */
        padding: var(--wp--custom--imt--spacer) !important;
    }

    .imt-main-nav .imt-btn-1:hover {
        background-color: transparent;
        border: none;
    }

    .imt-main-nav .imt-btn-1 a {
        box-shadow: var(--wp--custom--imt--button--default--box-shadow--default);
    }
}

/* Logo slider */
.imt-section .imt-logo-slider .imt-slide {
    height: 120px;
    display: flex !important;
    justify-content: center;
    align-items: center;
}

.imt-section .imt-logo-slider .imt-slide .imt-img-max-width-sm img {
    max-width: var(--wp--custom--imt--image--max-width--sm);
    max-height: var(--wp--custom--imt--image--max-width--sm);
    width: auto;
    margin-left: auto !important;
    margin-right: auto !important;
}

.imt-section .imt-media-row-right,
.imt-section .imt-media-row-style-2{
    background-color: var(--wp--custom--imt--media-row--style--2--content--background-color) !important;
}

.imt-section .imt-media-row p:last-of-type{
    margin-bottom: 0 !important;
}

/* Testimonial slider */
h2.imt-custom-testimonial-heading-icon:before {
    position: absolute;
    font-weight: 400;
    font-family: var(--font-family--default);
    content: "\201C";
    color: rgba(255, 255, 255, 0.25);
    font-size: 150px;
    top: 35px;
    left: 50%;
    transform: translate(-50%);
    z-index: -1;
}

/* Testimonial Bar */
.imt-testimonial .imt-paragraphs:before {
    opacity: 1;
}

#contact-col .acf-innerblocks-container .imt-card .acf-innerblocks-container .imt-content-item:not(:last-of-type){
    margin-bottom:calc(var(--wp--custom--imt--spacer) * 1) !important;
}

@media only screen and (max-width: 800px) {

    /* Footer fixes */
    #imt-footer-wrapper .imt-content>.acf-innerblocks-container>.imt-card-group>.acf-innerblocks-container>.imt-card:not(:first-of-type){
        margin-top:calc(var(--wp--custom--imt--spacer) * 1) !important;
    }

    #contact-col .acf-innerblocks-container .imt-card:not(:last-of-type) .acf-innerblocks-container .imt-content-item{
        margin-bottom:calc(var(--wp--custom--imt--spacer) * 1) !important;
    }

    /* Testimonial slider */
    .imt-slider-style-2 .slick-slide {
        padding: calc(var(--wp--custom--imt--spacer) * 2) calc(var(--wp--custom--imt--spacer) * 1) !important;
    }

    /* Slider controls */
    .imt-slider .slick-prev {
        top: calc(100% + 22px) !important;
        left: calc(50% - 115px) !important;
    }

    .imt-slider .slick-next {
        top: calc(100% + 22px) !important;
        right: calc(50% - 115px) !important;
    }

    /* Logo slider */
    .imt-logo-slider .slick-slider {
        margin-bottom: 64px;
    }

    .imt-imt-logo-slider .slick-slider .slick-slide {
        min-height: 100px;
    }

    .imt-slider.imt-logo-slider .slick-slide {
        padding: 16px !important;
        margin: 0 !important;
    }
}

/* Media row -- override width of images on mobile */
@media only screen and (max-width: 800px) {
    .imt-media-col__inner.imt-img-as-bg {
        width: calc(100% + 64px) !important;
        left: -32px;
        height: 240px !important;
    }
}

/* Gravity forms */
.gform_fields .gfield {
    margin-top: 0px;
}

.gform_fields input,
.gform_fields textarea,
.gform_fields select,
.gform_fields .chosen-choices,
.gform_fields .chosen-choices .search-choice,
.gform_fields .chosen-single {
    border-radius: 4px !important;
    border-color: var(--wp--custom--imt--color--palette--background--primary--active) !important;
    border-width: 2px !important;
    border-style: solid;
    font-family: var(--font-family--default) !important;
    color: #000 !important;
    font-size: 18px;
    box-shadow: none !important;
    background-color: #fff !important;
}

.gform_wrapper.gravity-theme .ginput_complex select{
    margin-bottom:0 !important;
    padding:calc(var(--wp--custom--imt--spacer) * 0.5) !important;
}

.gform_wrapper.gravity-theme input:not([type=radio]):not([type=checkbox]):not([type=image]):not([type=file]) {
    line-height: 24px;
}

.gform_fields select {
    padding: 2px 4px 3px !important;
    margin-bottom: 8px !important;
}

@media only screen and (max-width: 800px) {
    .gform_fields select {
        margin-bottom: unset !important;
    }
}

.gform_fields .gfield_description {
    color: var(--wp--custom--imt--color--palette--background--primary--active) !important;
    padding-top: 4px !important;
}

.gform_fields .gfield_label {
    font-weight: 500 !important;
    margin-bottom: 0px !important;
    color: var(--wp--custom--imt--color--palette--background--primary--active) !important;
    font-weight: 700 !important;
    font-family: var(--font-family--h--1);
}

.gform_fields legend.gfield_label {
    padding-top: 8px !important;
}

.gform_fields .gsection_title {
    color: var(--wp--custom--imt--color--palette--background--primary--active);
    font-weight: 700 !important;
    font-family: var(--font-family--h--1);
    font-size: 18px;
}

.gform_fields .gform-field-label--type-sub {
    font-size: 14px !important;
    color: var(--wp--custom--imt--color--palette--background--primary--active) !important;
}

.gform_required_legend {
    color: var(--wp--custom--imt--color--palette--background--primary--active);
    margin: 0 0 8px !important;
    font-size: calc(var(--wp--custom--imt--font-size) * .89);
}

@media only screen and (max-width: 800px) {
    .gform_required_legend {
        text-align: center;
        margin-bottom: 0px !important;
    }
}

.gform_fields {
    grid-row-gap: 8px !important
}

.gform_fields .gfield--type-checkbox {
    margin-top: 8px !important;
}

.gform_fields .gfield_checkbox {
    margin-bottom: 8px !important;
}

.gform_footer input.gform_button,
.gform_button_select_files,
.gform_next_button,
.gform_previous_button,
.gform_button {
    border-radius: var(--wp--custom--imt--button--default--border-radius);
    font-weight: 700;
    box-shadow: var(--wp--custom--imt--button--default--box-shadow--default);
    font-family: var(--font-family--h--1);
}

.gform_footer input.gform_button:hover,
.gform_button_select_files:hover,
.gform_next_button:hover,
.gform_previous_button:hover,
.gform_button:hover {
    cursor: pointer;
    box-shadow: var(--wp--custom--imt--button--default--box-shadow--hover);
}

.gform_footer {
    padding-top: calc(var(--wp--custom--imt--spacer) * 2) !important;
    padding-bottom: 0px !important;
    margin: 0px !important;
}

.gform_fields .ginput_complex {
    margin-bottom: 16px;
}

.gform_fields .gfield--type-address .ginput_complex {
    margin-top: -5px;
}

.gform_fields .ginput_complex label {
    margin-bottom: 0px !important;
    margin-top: 0px;
    line-height: normal;
    padding-top: 0px !important;
}

.gform_fields .gfield-choice-input+label {
    padding-bottom: 1px;
}

.gform_fields .ginput_container--name {
    margin-bottom: -2px;
}

@media only screen and (max-width: 800px) {
    .gform_footer {
        padding-bottom: 24px !important;
    }

    .gform_fields .gfield-choice-input+label {
        max-width: 100% !important;
    }

    .gform_fields .ginput_container--name {
        margin-bottom: -8px;
    }
}

/* Form step numbers */
.gform_wrapper.gravity-theme .gf_step_number {
    border-color: var(--wp--custom--imt--color--palette--background--disabled);
    color: var(--wp--custom--imt--color--palette--background--disabled);
    padding-bottom: 2px;
    opacity: .5;
}

.gform_wrapper.gravity-theme .gf_step_active .gf_step_number {
    background-color: var(--wp--custom--imt--color--palette--background--primary--active);
    color: var(--wp--custom--imt--color--text--light);
    border-color: var(--wp--custom--imt--color--palette--background--primary--active);
    opacity: 1;
}

.gform_wrapper.gravity-theme .gf_step_completed .gf_step_number {
    background-color: var(--wp--custom--imt--color--palette--background--disabled);
    color: transparent;
    border-color: var(--wp--custom--imt--color--palette--background--disabled);
    /* opacity: .75; */
    top: 2px;
}

.gform_wrapper.gravity-theme .gf_step_number::before {
    display: none !important;
}

.gform_wrapper.gravity-theme .gf_step {
    margin: 8px 32px 8px 0;
}

.gform_wrapper.gravity-theme .gf_page_steps {
    text-align: left;
}

@media only screen and (max-width: 800px) {
    .gform_wrapper.gravity-theme .gf_step {
        margin: 8px 16px;
    }

    .gform_wrapper.gravity-theme .gf_step_label {
        padding: 0;
    }

    .gform_wrapper.gravity-theme .gf_page_steps {
        text-align: center;
    }
}

.gform_wrapper .button.gform_previous_button {
    margin-right: calc(var(--wp--custom--imt--spacer) * 1) !important;
}

/* Blog */
@media only screen and (max-width: 1280px) {
    .single-post .imt-content.imt-hero {
        padding-left: calc(var(--wp--custom--imt--spacer) * 2);
        padding-right: calc(var(--wp--custom--imt--spacer) * 2);
    }

    #imt-single-meta {
        padding-left: calc(var(--wp--custom--imt--spacer) * 2) !important;
        padding-right: calc(var(--wp--custom--imt--spacer) * 2) !important;
    }
}

/* Gravity forms checkboxes & radio buttons - wpmonks.com/blog/how-to-style-checkbox-inputs-in-gravity-forms/ with adjustments */
.gform_wrapper .gchoice {
    position: relative;
    margin: calc(var(--wp--custom--imt--spacer) * .25) calc(var(--wp--custom--imt--spacer) * .5) calc(var(--wp--custom--imt--spacer) * .25) calc(var(--wp--custom--imt--spacer) * .75);
}

.gform_wrapper input[type=checkbox],
.gform_wrapper input[type=radio] {
    opacity: 0;
    position: absolute;
    line-height: 24px;
}

.gform_wrapper input[type=checkbox]+label,
.gform_wrapper input[type=radio]+label {
    position: relative;
    overflow: hidden;
    padding-left: calc(var(--wp--custom--imt--spacer) * 2.25);
    cursor: pointer;
    display: inline-block;
    color: var(--wp--custom--imt--color--palette--background--primary--active);
    font-weight: 700;
    font-family: var(--font-family--h--1);
    overflow: visible;
    width: 100%;
}

.gform_wrapper input[type=checkbox]:checked+label,
.gform_wrapper input[type=radio]:checked+label {
    color: var(--wp--custom--imt--color--palette--background--secondary--700);
}

/* Checkboxes */
.gform_wrapper input[type=checkbox]+label {
    padding-bottom: 3px;
    line-height: 30px;
}

.gform_wrapper input[type=checkbox]+label:before,
.gform_wrapper input[type=checkbox]+label:after {
    content: '';
    position: absolute;
    left: 0;
    z-index: 1;
    /* -webkit-transition: .2s;
    transition: .2s; */
    margin-top: -2px
}

.gform_wrapper input[type=checkbox]:not(:checked)+label:after {
    font-family: "Font Awesome 6 Pro" !important;
    content: "\f0c8";
    font-weight: 300;
    font-size: 28px;
    color: var(--wp--custom--imt--color--palette--background--primary--active);
    top: 0;
}

.gform_wrapper input[type=checkbox]:checked+label:after {
    font-family: "Font Awesome 6 Pro" !important;
    content: "\f14a";
    font-weight: 900;
    font-size: 28px;
    color: var(--wp--custom--imt--color--palette--background--primary--active);
    top: 0;
}

/* Radio buttons */
.gform_wrapper input[type=radio]+label:before,
.gform_wrapper input[type=radio]+label:after {
    content: '';
    font-weight: 500;
    position: absolute;
    left: 0;
    z-index: 1;
    /* -webkit-transition: .2s;
    transition: .2s; */
    margin-top: -2px;
}

.gform_wrapper input[type=radio]:not(:checked)+label:after {
    font-family: "Font Awesome 6 Pro" !important;
    content: "\f111";
    font-size: 20px;
    color: var(--wp--custom--imt--color--palette--background--primary--active);
    top: 0px;
}

.gform_wrapper input[type=radio]:checked+label:after {
    font-family: "Font Awesome 6 Pro" !important;
    content: "\f192";
    font-size: 20px;
    color: var(--wp--custom--imt--color--palette--background--secondary--active);
    top: 0px;
}

.gform_wrapper.gravity-theme .gform_validation_errors {
    outline: none;
}

.gform_wrapper.gravity-theme .gform_validation_errors>ol a {
    color: #c02b0a !important;
}

.gform_wrapper.gravity-theme .gfield_validation_message,
.gform_wrapper.gravity-theme .validation_message {
    font-weight: 500;
    background: none;
    border: none;
}

/* 404 page */
.imt-404 h1 {
    font-size: var(--wp--custom--imt--404--h--1--font-size) !important;
    animation-play-state: unset !important;
    animation-delay: unset !important;
    animation-name: unset !important;
    animation-duration: unset !important;
    animation-fill-mode: unset !important;
    display: block;
    line-height: unset !important;
    margin: 0 !important;
}

.wp-block-search__input {
    font-family: var(--font-family--default);
    font-size: var(--wp--custom--imt--font-size);
    padding: 16px;
    border-radius: 4px;
    border-style: solid;
    border-color: var(--wp--custom--imt--color--palette--background--primary--active);
    border-width: 2px;
    /* width: 80%; */
    margin-right: 16px;
}

.error404 .imt-content {
    font-size: var(--wp--custom--imt--font-size);
}

.error404 .imt-paragraphs p {
    margin: 0 !important;
}

.error404 form[role="search"],
.search form[role="search"] {
    padding: 32px 0;
}

.error404 form[role="search"] .wp-block-search__label,
.search form[role="search"] .wp-block-search__label {
    display: none;
}

/* 404 page button */
.error404 form[role="search"] button[type="submit"],
.search form[role="search"] button[type="submit"] {
    padding: var(--wp--custom--imt--button--default--padding);
    border-radius: 4px;
    text-transform: var(--wp--custom--imt--button--default--transform);
    background-color: var(--wp--custom--imt--color--palette--background--primary--active);
    font-family: var(--font-family--default);
    font-size: calc(var(--wp--custom--imt--font-size) * .89);
    font-weight: var(--wp--custom--imt--button--default--font-weight);
    box-shadow: var(--wp--custom--imt--button--default--box-shadow--default);
    border-radius: 4px;
}

.error404 form[role="search"] button[type="submit"]:hover,
.search form[role="search"] button[type="submit"]:hover {
    background-color: var(--wp--custom--imt--color--background--primary--hover--button--color);
    box-shadow: var(--wp--custom--imt--button--default--box-shadow--hover);
}

/* Search button icon */
.wp-block-search__button svg {
    filter: brightness(0) invert(1);
}

/* Repace Twitter logo with X logo */
.fa-twitter::before {
    content: "\e61b" !important;
}

/* Custom bullet positioning similar to georgian bay */
.imt-card-group.imt-bullet-cards .imt-content-item {
    text-align: center;
}

.imt-bullet-cards ul {
    display: inline-block;
}

.imt-bullet-cards ul li {
    display: inline-block;
    /* padding: 40px !important; */
    margin-right: 80px !important;
}

.imt-bullet-cards ul li .fa-li {
    font-size: 10px;
    margin-left: -10px;
}

.imt-rms-pools-bullet-cards ul li:last-of-type {
    margin-right: 0px !important;
}

@media only screen and (max-width: 800px) {
    .imt-card-group.imt-bullet-cards .acf-innerblocks-container {
        text-align: center;
    }

    .imt-card-group.imt-bullet-cards .imt-content-item {
        display: inline-block;
    }

    .imt-card-group.imt-bullet-cards .imt-content-item {
        text-align: unset;
    }

    .imt-bullet-cards ul {
        margin: 0 auto;
        display: inline-block;
    }

    .imt-bullet-cards ul li {
        text-align: left;
        display: block;
        margin-right: 0px !important;
    }
}


/* hover icon show */
.imt-hover-reveal-icon .imt-btn-icon {
    float: right;
    margin-left: 10px;
}

.imt-hover-reveal-icon .imt-btn.imt-btn-text{
    padding:0 !important;
    text-transform: none !important;
    font-weight: 500;
    border:0;
    box-shadow:unset !important;
}

.imt-hover-reveal-icon .imt-btn {
    transition: opacity 0.3s linear 0s;
    position: relative;
}

.imt-hover-reveal-icon .imt-btn span.imt-link-text {
    left: 0;
    position: relative;
    transition: all 0.2s ease-out 0s;
}

.imt-hover-reveal-icon .imt-btn span.imt-btn-icon {
    width: 18px;
    position: absolute;
    right: 0px;
    top: 50%;
    margin-top: -9px;
    line-height: 18px;
    opacity: 0;
    transition: all 0.2s ease-out 0s;
}

.imt-hover-reveal-icon article.imt-card:hover .imt-btn span.imt-link-text,
.imt-hover-reveal-icon article.imt-card:focus-within .imt-btn span.imt-link-text {
    left: 0;
}

.imt-hover-reveal-icon article.imt-card:hover .imt-btn span.imt-btn-icon,
.imt-hover-reveal-icon article.imt-card:focus-within .imt-btn span.imt-link-text {
    opacity: 1;
    right: -18px;
}

/* Footer text links */
#imt-footer-wrapper .imt-buttons .imt-btn-wrapper .imt-btn.imt-btn-text {
    font-size: calc(var(--wp--custom--imt--font-size) * .89);
    text-transform: capitalize;
    font-weight: 400;
}

/* Blog query loop support */
body.blog .imt-query-loop .imt-card .imt-paragraphs,
body.archive .imt-query-loop .imt-card .imt-paragraphs,
body.search .imt-query-loop .imt-card .imt-paragraphs {
    flex-grow: 1;
    text-align: center;
}

body.blog nav.wp-block-query-pagination,
body.archive nav.wp-block-query-pagination,
body.search nav.wp-block-query-pagination {
    justify-content: center;
    margin-top: calc(var(--wp--custom--imt--spacer) * 2);
}

/* Blog and query loop cleanup */
body.imt-sticky-header main .imt-query-loop .imt-section:first-of-type {
    margin-top: 0;
    padding-top: 0;
}

/* Mobile query loop cleanup */
@media only screen and (max-width: 800px) {
    .imt-query-loop .imt-section {
        padding: var(--wp--custom--imt--section--padding--mobile) !important;
    }

    .imt-query-loop .imt-section.imt-padding-top-0 {
        padding-top: 0 !important;
    }

    .imt-query-loop .imt-section.imt-padding-bottom-0 {
        padding-bottom: 0 !important;
    }
}

/* Support full range of card widths for query loop inside card group */
.imt-section.imt-section-query-loop-wrapper .imt-card-group>.acf-innerblocks-container {
    /* row-gap: 0;
    -moz-column-gap: 0;
    column-gap: 0; */
    display: block;
}

.imt-section.imt-section-query-loop-wrapper .imt-card-group>.acf-innerblocks-container .imt-query-loop ul.wp-block-post-template {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    row-gap: var(--wp--custom--imt--card-group--style--default--gutter--row--default);
    -moz-column-gap: var(--wp--custom--imt--card-group--style--default--gutter--column--default);
    column-gap: var(--wp--custom--imt--card-group--style--default--gutter--column--default);
}

.imt-section.imt-section-query-loop-wrapper .imt-card-group.imt-cards-per-row-1>.acf-innerblocks-container .imt-query-loop ul.wp-block-post-template li.wp-block-post {
    width: calc(100%) !important;
}

.imt-section.imt-section-query-loop-wrapper .imt-card-group.imt-cards-per-row-2>.acf-innerblocks-container .imt-query-loop ul.wp-block-post-template li.wp-block-post {
    width: calc((100% - var(--wp--custom--imt--card-group--style--default--gutter--column--default) * 1)/ 2) !important;
}

.imt-section.imt-section-query-loop-wrapper .imt-card-group.imt-cards-per-row-3>.acf-innerblocks-container .imt-query-loop ul.wp-block-post-template li.wp-block-post {
    width: calc((100% - var(--wp--custom--imt--card-group--style--default--gutter--column--default) * 2)/ 3) !important;
}

.imt-section.imt-section-query-loop-wrapper .imt-card-group.imt-cards-per-row-4>.acf-innerblocks-container .imt-query-loop ul.wp-block-post-template li.wp-block-post {
    width: calc((100% - var(--wp--custom--imt--card-group--style--default--gutter--column--default) * 3)/ 4) !important;
    ;
}

.imt-section.imt-section-query-loop-wrapper .imt-card-group.imt-cards-per-row-5>.acf-innerblocks-container .imt-query-loop ul.wp-block-post-template li.wp-block-post {
    width: calc((100% - var(--wp--custom--imt--card-group--style--default--gutter--column--default) * 4)/ 5) !important;
    ;
}

.imt-section.imt-section-query-loop-wrapper .imt-card-group.imt-cards-per-row-6>.acf-innerblocks-container .imt-query-loop ul.wp-block-post-template li.wp-block-post {
    width: calc((100% - var(--wp--custom--imt--card-group--style--default--gutter--column--default) * 5)/ 6) !important;
    ;
}

.imt-section .imt-card-group>.acf-innerblocks-container .imt-query-loop ul.wp-block-post-template li.wp-block-post .imt-card,
.imt-section .imt-card-group>.acf-innerblocks-container .imt-query-loop ul.wp-block-post-template li.wp-block-post>.wp-block-imt-card {
    width: 100% !important;
    height: 100%;
}

@media only screen and (max-width: 800px) {

    .imt-section.imt-section-query-loop-wrapper .imt-card-group.imt-cards-per-row-1>.acf-innerblocks-container .imt-query-loop ul.wp-block-post-template li.wp-block-post,
    .imt-section.imt-section-query-loop-wrapper .imt-card-group.imt-cards-per-row-2>.acf-innerblocks-container .imt-query-loop ul.wp-block-post-template li.wp-block-post,
    .imt-section.imt-section-query-loop-wrapper .imt-card-group.imt-cards-per-row-3>.acf-innerblocks-container .imt-query-loop ul.wp-block-post-template li.wp-block-post,
    .imt-section.imt-section-query-loop-wrapper .imt-card-group.imt-cards-per-row-4>.acf-innerblocks-container .imt-query-loop ul.wp-block-post-template li.wp-block-post,
    .imt-section.imt-section-query-loop-wrapper .imt-card-group.imt-cards-per-row-5>.acf-innerblocks-container .imt-query-loop ul.wp-block-post-template li.wp-block-post,
    .imt-section.imt-section-query-loop-wrapper .imt-card-group.imt-cards-per-row-6>.acf-innerblocks-container .imt-query-loop ul.wp-block-post-template li.wp-block-post,
    .imt-section .imt-card-group>.acf-innerblocks-container .imt-query-loop ul.wp-block-post-template li.wp-block-post .imt-card,
    .imt-section .imt-card-group>.acf-innerblocks-container .imt-query-loop ul.wp-block-post-template li.wp-block-post>.wp-block-imt-card {
        width: 100% !important;
        height: 100%;
    }
}

/* Fade in video embed */
.imt-section .imt-section__background-video-embed {
    animation: imtVideoFadeInAnimation ease 4s;
}

@keyframes imtVideoFadeInAnimation {
    0% {
        opacity: 0;
    }

    100% {
        opacity: 1;
    }
}

/* Custom button, breadcrumbs */
.imt-btn-icon-left .imt-btn-icon {
    margin-right: 8px;
}

/* Custom button, breadcrumbs */
.imt-btn-icon-right .imt-btn-icon {
    margin-left: 8px;
    float: right;
}

/* no gap on mobile for multi colum lists */
@media only screen and (max-width: 800px) {
    .imt-section .imt-card-group.imt-no-list-gap-mobile>.acf-innerblocks-container {
        row-gap: 0;
    }
}

/* Media Row */
/* Bar over media row heading */
.imt-media-row .imt-content-col h2.imt-heading:before {
    content: "";
    position: absolute;
    top: -12px;
    left: 0;
    /* transform: translateX(-50%); */
    width: 72px;
    height: 4px;
    background-color: var(--wp--custom--imt--color--palette--background--primary--500);
}

.imt-media-row article {
    overflow: visible !important;
}

/* Galleries */
/* Bar over heading */
.imt-h-w-bar{
    margin-top:12px !important;
}

.imt-h-w-bar:before {
    /* Make sure that the card holding this heading has padding on top to allow for this w/out the need for overflow */
    content: "";
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    width: 72px;
    height: 4px;
    background-color: var(--wp--custom--imt--color--palette--background--primary--500);
}

/* Override media row width for 50% media width */
.imt-section .imt-media-row.imt-media-row-style-1 .imt-media-col-width-50,
.imt-section .imt-media-row.imt-media-row-style-2 .imt-media-col-width-50 {
    flex-basis: calc(50% + 88px - var(--wp--custom--imt--media-row--style--1--gutter--default--column)/ 2);
    max-width: calc(50% + 88px - var(--wp--custom--imt--media-row--style--1--gutter--default--column)/ 2);
}

.imt-section .imt-media-row.imt-media-row-style-1 .imt-content-col-width-50,
.imt-section .imt-media-row.imt-media-row-style-2 .imt-content-col-width-50 {
    flex-basis: calc(50% - 88px - var(--wp--custom--imt--media-row--style--1--gutter--default--column)/ 2);
    max-width: calc(50% - 88px - var(--wp--custom--imt--media-row--style--1--gutter--default--column)/ 2);
}

/* Media row -- override width of images on mobile */
@media only screen and (max-width: 800px) {
    .imt-media-col__inner.imt-img-as-bg {
        width: calc(100% + 80px) !important;
        left: -40px;
        height: 240px !important;
    }

    .imt-section.imt-section-overflow-visible-mobile .imt-section {
        overflow: visible;
    }
}

/* contact page Gravity Forms(forms in hero) */
.imt-hero .gform_heading h2,
.imt-hero .gform_heading p {
    color: #FFF !important;
}

.imt-hero .gform_body .gfield_label,
.imt-hero .gform_body div .gform-field-label,
.imt-hero .gform_body div {
    color: #FFF !important;
}

.imt-hero .gform_button {
    background-color: var(--wp--custom--imt--color--palette--background--primary--active) !important;
}

.imt-hero .gform_button:hover {
    background-color: var(--wp--custom--imt--color--background--primary--hover--button--color) !important;
    color: var(--wp--custom--imt--color--background--primary--hover--button--text) !important;
}

.imt-hero .gform_button:focus {
    background-color: var(--wp--custom--imt--color--background--primary--focus--button--color) !important;
    color: var(--wp--custom--imt--color--background--primary--focus--button--text) !important;
}

.imt-font-family-source {
    font-family: 'Source Serif 4' !important;
}

/* Mega menu - wrap 1st section into two columns */
@media only screen and (min-width: 1281px) {

    #main-navigation-ul>li.menu-item.imt-link-level-1.imt-pointer-events-none.megamenu.has-children>ul>div>li:nth-child(1) {
        flex-grow: 1;
        flex-basis: calc(25% - var(--wp--custom--imt--main-navigation--megamenu--wrapper--column-gap) * 2 / 3);
    }

    #main-navigation-ul>li.menu-item.imt-link-level-1.imt-pointer-events-none.megamenu.has-children>ul>div>li:nth-child(2) {
        flex-grow: 2;
        flex-basis: calc(37.5% - var(--wp--custom--imt--main-navigation--megamenu--wrapper--column-gap) * 2 / 3);
    }

    #main-navigation-ul>li.menu-item.imt-link-level-1.imt-pointer-events-none.megamenu.has-children>ul>div>li:nth-child(2)>ul {
        display: flex !important;
        flex-wrap: wrap;
    }

    #main-navigation-ul>li.menu-item.imt-link-level-1.imt-pointer-events-none.megamenu.has-children>ul>div>li:nth-child(2)>ul>li {
        flex: 50%;
    }

    #main-navigation-ul>li.menu-item.imt-link-level-1.imt-pointer-events-none.megamenu.has-children>ul>div>li:nth-child(3) {
        flex-grow: 2;
        flex-basis: calc(37.5% - var(--wp--custom--imt--main-navigation--megamenu--wrapper--column-gap) * 2 / 3);
    }

    #main-navigation-ul>li.menu-item.imt-link-level-1.imt-pointer-events-none.megamenu.has-children>ul>div>li:nth-child(3)>ul {
        display: flex !important;
        flex-wrap: wrap;
    }

    #main-navigation-ul>li.menu-item.imt-link-level-1.imt-pointer-events-none.megamenu.has-children>ul>div>li:nth-child(3)>ul>li {
        flex: 50%;
    }


    /* Position and display icons */
    .imt-mm-icon a {
        position: relative;
        padding: 16px 0 24px 0 !important
    }

    .imt-mm-icon a::before {
        content: '';
        position: absolute;
        top: -8px;
        left: -60px;
        background-position: center;
        background-repeat: no-repeat;
        background-size: 48px 48px;
        width: 60px;
        height: 60px;
    }
}

/* re-order mega menu elements on tablet & mobile */
@media only screen and (max-width: 1281px) {
    .imt-mm-icon a::before {
        display: none !important;
    }

    .imt-mm-construction {
        order: 1
    }

    .imt-mm-kitchens {
        order: 5
    }

    .imt-mm-design {
        order: 2
    }

    .imt-mm-structures {
        order: 6
    }

    .imt-mm-walls {
        order: 3
    }

    .imt-mm-excavation {
        order: 7
    }

    .imt-mm-patios {
        order: 4
    }
}

#imt-footer-wrapper h3.imt-heading {
    color: #657164;

}

/* ADA-104: enlarge header logo and Mariani badge links to meet the 24x24px touch target minimum (WCAG 2.5.8) */
a.imt-image-link[aria-label="Hoffman Landscapes home"],
a.imt-image-link[href="https://www.marianipremiergroup.com/"] {
    display: inline-block;
    min-width: 24px;
    min-height: 24px;
    padding: 6px;
    box-sizing: border-box;
}

/* ADA-102: Business Reviews Bundle widget review-count text fails contrast against its photographic background.
   Give it a solid opaque chip so contrast no longer depends on the photo underneath (WCAG 1.4.3). */
.rpi-header .rpi-info .rpi-based {
    display: inline-block;
    color: #ffffff !important;
    background-color: #333333;
    padding: 2px 8px;
    border-radius: 4px;
}