/* Child theme fonts */
:root {
    --font-family--default: 'DM Sans';
    --font-family--h--1: 'futura-pt';
    --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--default);
    --font-family--dropdown: var(--font-family--default);
    --font-family--megamenu--heading: var(--font-family--default);
    --font-family--gallery--caption: var(--font-family--default);
    --font-family--collapsible: var(--font-family--h--1);
    --font-family--tab: var(--font-family--h--1);
    --font-family--button: var(--font-family--default);
    --font-family--h--sub-heading--0: var(--font-family--h--1);
    --font-family--h--lead-text--0: var(--font-family--default);
}

body .gform_wrapper .button{
    background-color: var(--wp--custom--imt--gravity-forms--submit--button--background)!important;
}

body .gform_wrapper .button:hover, body .gform_wrapper .button:hover{
    background-color: var(--wp--custom--imt--gravity-forms--submit--button--background)!important;  
}

/* bottom border styles similar to kerr + kerr */


section#imt-header nav.imt-main-nav>div>ul>li.imt-link-level-1:hover>a:not(.imt-current-menu-item) {
    border-bottom: 4px solid var(--wp--custom--imt--color--palette--background--primary--active) !important;
}

/* Orage Banner Call Out Home Page */
#imt-banner-callout .imt-card-group .imt-card.imt-card-link-color-override-light a:hover {
    color: var(--wp--custom--imt--color--palette--background--primary--active) !important;
}

/* menu-item imt-link-level-1 imt-pointer-events-none megamenu has-children */


/* 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;
}

/* override section min-height from parent styles */
.imt-section {
    min-height: 30px;
}

/* 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 (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;
    }
}

/* Mobile navigation background */
@media only screen and (max-width: 1280px) {
    section#imt-header {
        height: var(--wp--custom--imt--header--height--mobile--max) !important;
    }


    nav.imt-main-nav.offcanvas #imt-offcanvas {
        background-color: var(--wp--custom--imt--color--background--page);
    }

    nav.imt-main-nav.offcanvas #imt-offcanvas>ul>li a {
        justify-content: center !important;

    }

    nav.imt-main-nav.offcanvas #imt-offcanvas>ul>li li a {
        padding-left: 0 !important;
    }

    nav.imt-main-nav.offcanvas #imt-offcanvas>ul>li .submenu,
    nav.imt-main-nav.offcanvas #imt-offcanvas>ul>li+li {
        margin: 0 auto;
    }

    #imt-header .imt-btn-1 a {
        border: 2px solid #000 !important;
        text-align: center;
        max-width: 170px;
        margin: 10px auto !important;
    }

    /* #imt-offcanvas {
        margin-top: 20px;
    } */

    #imt-offcanvas .submenu.imt-menu-level-3 {
        padding-left: 0;
    }

    /* 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);
    }

    .wp-block-site-logo a::after {
        content: "";
        position: absolute;
        top: -16px;
        left: -16px;
        height: 105px;
        width: 100vw;
        margin-right: -70px;
        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;
    }

    #imt-menu-toggle i {
        transition: opacity .25s ease-out, transform .25s ease-out !important;
        min-height: 24px;
        min-width: 24px;
        text-align: center;
        padding: 30px;
    }

    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;
}

/* 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;
}

@media only screen and (max-width: 1280px) and (min-width: 601px) {
    #imt-offcanvas {
        height: fit-content !important;
    }
}

@media only screen and (max-width: 600px) {

    /* 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% - 146px) !important;
    }

    .imt-slider .slick-next {
        top: calc(100% + 22px) !important;
        right: calc(50% - 146px) !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: 600px) {
    .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: var(--wp--custom--imt--gravity-forms--input--color) !important;
    font-size: 18px;
    box-shadow: none !important;
    background-color: #fff !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: 600px) {
    .gform_fields select {
        margin-bottom: unset !important;
    }
}

.gform_fields .gfield_description {
    color: var(--wp--custom--imt--color--palette--background--white) !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--white) !important;
    font-weight: 500 !important;
    font-family: var(--font-family--default);
}

.gform_fields legend.gfield_label {
    padding-top: 8px !important;
}

.gform_fields .gsection_title {
    color: var(--wp--custom--imt--color--palette--background--white);
    font-weight: 500 !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--white) !important;
}

.gform_required_legend {
    color: var(--wp--custom--imt--color--palette--background--white);
    margin: 0 0 8px !important;
    font-size: calc(var(--wp--custom--imt--font-size) * .89);
}

.gform_wrapper.gravity-theme .gfield_required {
    color: #fff;
}

@media only screen and (max-width: 600px) {
    .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: 450;
    box-shadow: var(--wp--custom--imt--button--default--box-shadow--default);
    font-family: var(--font-family--default);
}

.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: 600px) {
    .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: 600px) {
    .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--white);
    font-weight: 700;
    font-family: var(--font-family--default);
    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--primary--active);
}

/* 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--white);
    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 .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);
    color: var(--wp--custom--imt--color--text--dark);
    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: 600px) {
    .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 {
    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: 30px;
    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 {
    left: -18px;
}

.imt-hover-reveal-icon article.imt-card:hover .imt-btn span.imt-btn-icon {
    opacity: 1;
    right: 24px;
}

/* 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);
}

/* 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: 600px) {
    .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: 600px) {

    .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: 600px) {
    .imt-section .imt-card-group.imt-no-list-gap-mobile>.acf-innerblocks-container {
        row-gap: 0;
    }
}

/* vertically center icon on mobile menu items */
@media only screen and (max-width: 1280px) {
    .menu-item i {
        display: flex;
        align-items: center;
    }
}

/* white outline button hover */
.imt-btn-white-outline:hover {
    box-shadow: none !important;
    background-color: rgba(255, 255, 255, .25);
}

/* removes text button box shadow */
.imt-btn.imt-btn-text {
    box-shadow: none !important;
}

/* h2 custom size */
.imt-h2-stat {
    font-size: 54px !important;
}

/* Makes card group style 1 border orange */
.imt-section .imt-card-group.imt-card-style-1.imt-card-borders-bottom>.acf-innerblocks-container .imt-card {
    border-bottom-color: var(--wp--custom--imt--color--palette--background--secondary--300);
}

/* Makes card group style 6 border bottom color orange & top color purple */
.imt-section .imt-card-group.imt-card-color-white .imt-card {
    border-bottom-color: var(--wp--custom--imt--color--palette--background--secondary--300);
    border-top-color: var(--wp--custom--imt--color--palette--background--primary--300);
}

.imt-section .imt-card-group.imt-card-color-white .imt-card:hover {
    border-bottom-color: var(--wp--custom--imt--color--palette--background--secondary--300);
    border-top-color: var(--wp--custom--imt--color--palette--background--primary--300);
}

/* .imt-section .imt-card-group.imt-card-style-6.imt-card-borders-bottom>.acf-innerblocks-container .imt-card {
    border-bottom-color: var(--wp--custom--imt--color--palette--background--secondary--300);
    border-top-color: var(--wp--custom--imt--color--palette--background--primary--300);
} */


/* button customizations */

.imt-btn.imt-btn-primary-outline:hover {
    background-color: #2f106e;
    color: #fff !important;
    border-color: #2f106e;

}

.imt-btn.imt-btn-black-outline {
    margin-bottom: 10px !important;
}

.imt-btn.imt-btn-black-outline:hover {
    background-color: #2f106e30;
}

.imt-btn.imt-btn-secondary-outline:hover {
    background-color: #f3702110;
}


/* adjust media row background width on mobile */
.imt-content-col__inner .imt-content-col__background {
    box-sizing: border-box;
}

@media only screen and (max-width: 800px) {
    .imt-content-col__inner .imt-content-col__background {
        width: calc(100% + 112px) !important;
        height: calc(100% + 80px) !important;
        left: -56px !important;
        top: -42px !important;
        padding-bottom: 112px;
    }

}

/* Lower top bar overrides */
body #imt-top-bar-1 {
    /* min-height: var(--wp--custom--imt--header--top-bar--min-height); */
    /* color: var(--wp--custom--imt--header--top-bar--color--text); */
    /* font-size: var(--wp--custom--imt--header--top-bar--font-size--default); */
    /* display: var(--wp--custom--imt--header--top-bar--display--default); */
    padding: var(--wp--custom--imt--header--top-bar--padding--section--default);
    margin: var(--wp--custom--imt--header--top-bar--margin--section--default);
    /* z-index: 8; */
}

/* body #imt-top-bar-1 .imt-card {
     min-height: 0 !important;
}  */

@media only screen and (max-width: 800px) {
    body #imt-top-bar-1 {
        padding: var(--wp--custom--imt--header--top-bar--padding--section--mobile) !important;
        display: var(--wp--custom--imt--header--top-bar--display--mobile);
        font-size: var(--wp--custom--imt--header--top-bar--font-size--mobile);
    }
}

ul.slick-dots {
    display: flex;
    justify-content: center;

}

body header .imt-social-links a i {
    color: #ffffff;
}

body header .imt-social-links.imt-social-horizontal {
    justify-content: flex-end;
}

#imt-top-bar .imt-btn {
    font-family: 'DM Sans';
}

header .imt-social-links.imt-social-horizontal {
    padding-top: 8px;
}

.imt-pipe:after {
    content: "|";
    color: #ffffff;
    position: relative;
    top: 8px;
    right: 8px;
}

/* pre-scroll header box shadow, desktop */
@media only screen and (min-width: 1280px) {
    section#imt-header:not(.imt-header-sm) {
        box-shadow: none;
    }
}

/* mobile header - solid */
@media only screen and (max-width: 800px) {
    section#imt-header {
        background-color: rgba(255, 255, 255, 1);
    }
}

/* card group 1 */
.imt-card-group.imt-card-style-1 h3 {
    font-size: 32px;
    padding-bottom: 24px !important;
    line-height: 1.2em;
}

.imt-card-group.imt-card-style-1 h3::after {
    /*content: "\f219  \f219  \f219" !important;*/
    /* diamonds */
    content: "\f111  \f111  \f111" !important;
    /* circles */
    font-family: "Font Awesome 6 Pro" !important;
    font-weight: 900 !important;
    font-size: calc(var(--wp--custom--imt--font-size)* .5);
    position: absolute !important;
    top: calc(100% - calc(var(--wp--custom--imt--font-size)* 1) - 10px) !important;
    left: calc(50% + calc(var(--wp--custom--imt--font-size) * .75)) !important;
    /* white-space: pre; */
    color: var(--wp--custom--imt--color--palette--background--secondary--active) !important;
}

/* card group 6 */
.imt-card-group.imt-card-style-6 h3 {
    font-size: 32px;
    padding-bottom: 24px !important;
    line-height: 1.2em;
}

.imt-card-group.imt-card-style-6 h3::after {
    /*content: "\f219  \f219  \f219" !important;*/
    /* diamonds */
    content: "\f111  \f111  \f111" !important;
    /* circles */
    font-family: "Font Awesome 6 Pro" !important;
    font-weight: 900 !important;
    font-size: calc(var(--wp--custom--imt--font-size)* .5);
    position: absolute !important;
    top: calc(100% - calc(var(--wp--custom--imt--font-size)* 1) - 10px) !important;
    left: calc(50% + calc(var(--wp--custom--imt--font-size) * .75)) !important;
    /* white-space: pre; */
    color: var(--wp--custom--imt--color--palette--background--secondary--active) !important;
}

.imt-card-group.imt-card-group-4-3-images.imt-card-style-1 .imt-card {
    padding-top: 0 !important;
}

@media only screen and (min-width: 800px) {

    .imt-section .imt-card-group.imt-card-group-4-3-images.imt-card-style-1>.acf-innerblocks-container {
        row-gap: 0px !important;
    }

    .imt-section .imt-card-group.imt-card-group-4-3-images.imt-card-style-1>.acf-innerblocks-container>.imt-card {
        margin-bottom: -50px !important;
    }

    /* card group images */
    .imt-card-group.imt-card-group-4-3-images.imt-card-style-1 .imt-img-wrapper.imt-image-crop-1-1 {
        position: relative;
        width: 100%;
        height: 0;
        padding-top: 130%;
    }
}

/* media row 2 circle accent */
/* .imt-section .imt-media-row.imt-media-row-style-2 .imt-content-col-width-50 .imt-content-col__inner .imt-content-col__background::after {
    position: absolute !important;
    content: "" !important;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(650px circle at 100% 140%, rgba(244, 119, 49, 1) 40%, rgba(35, 26, 96, 1) 65%, transparent 15%);
}

@media only screen and (max-width: 800px) {
    .imt-section .imt-media-row.imt-media-row-style-2 .imt-content-col-width-50 .imt-content-col__inner .imt-content-col__background::after {
        background-image: radial-gradient(650px circle at 110% 140%, rgba(244, 119, 49, 1) 40%, rgba(35, 26, 96, 1) 65%, transparent 15%);
    }
} */

/* .imt-section .imt-media-row.imt-media-row-style-2 .imt-content-col-width-50 .imt-content-col__inner {
    overflow: hidden;
} */

/* .imt-section .imt-media-row.imt-media-row-style-2 .imt-media-col {
    z-index: 2;
} */

@media only screen and (min-width: 800px) {
    .imt-section .imt-media-row.imt-media-row-style-2 .imt-content-col__inner .imt-content-col__background {
        background: linear-gradient(to right, var(--wp--custom--imt--media-row--style--2--content--background-color), var(--wp--custom--imt--media-row--style--2--content--background-color)), var(--wp--custom--imt--color--background--gradient--2--color);
        background-clip: padding-box, border-box;
        background-origin: padding-box, border-box;
    }

    /* .imt-section .imt-media-row.imt-media-row-style-2.imt-media-col-right .imt-media-col .imt-media-row__background-image {
        box-shadow: 0 0 2px 5px white;
    } */
}

.imt-section .imt-media-row.imt-media-row-style-2 h2 {
    color: var(--wp--custom--imt--color--palette--background--primary--active);
}

/* media row style 3 background gradient */
.imt-section .imt-media-row.imt-media-row-style-3.imt-media-col-left .imt-content-col-width-50 .imt-content-col__inner .imt-content-col__background {
    background-image: var(--wp--custom--imt--color--background--gradient--2--color);
}

@media only screen and (min-width: 1281px) {

    /* header box shadow after scroll, when header has solid bg */
    section#imt-header.imt-header-sm {
        box-shadow: var(--wp--custom--imt--box-shadow--default);
    }

    /* top navigation styles before scroll */
    section#imt-header:not(.imt-header-sm) nav.imt-main-nav>div ul>li.imt-link-level-1:not(.imt-link-level-2, .imt-link-level-3)>a {
        color: #fff;
    }

    section#imt-header:not(.imt-header-sm) nav.imt-main-nav>div>ul>li.imt-link-level-1:hover,
    section#imt-header:not(.imt-header-sm) nav.imt-main-nav>div>ul>li.imt-link-level-1 a:hover {
        background-color: transparent !important;
    }

    /* header cta button color before scroll */
    section#imt-header:not(.imt-header-sm) a.imt-btn-secondary {
        color: #fff !important;
        border-color: #fff;
        background-color: transparent;
    }

    section#imt-header:not(.imt-header-sm) a.imt-btn-secondary:hover {
        background-color: rgba(255, 255, 255, 0.1);
    }

    /* Replace logo on scroll */
    section#imt-header.imt-header-sm .wp-block-site-logo {
        display: none;
    }

    /* dark header logo */
    #imt-header.imt-header-sm .imt-hide-on-desktop.imt-show-on-mobile.imt-logo-dark {
        display: block !important;
        max-height: var(--wp--custom--imt--header--logo--on-scroll--max-height);
        max-width: var(--wp--custom--imt--header--logo--on-scroll--max-width);
    }

    #imt-header.imt-header-sm a.imt-image-link {
        display: flex;
        justify-content: flex-start;
        align-items: center;
    }

}

@media only screen and (max-width: 1281px) {

    /* header box shadow after scroll, when header has solid bg */
    section#imt-header {
        box-shadow: var(--wp--custom--imt--box-shadow--default);
    }

    /* hide white logo */
    section#imt-header .wp-block-site-logo {
        display: none;
    }

    /* dark logo */
    #imt-header .imt-hide-on-desktop.imt-show-on-mobile.imt-logo-dark {
        display: block !important;
        max-height: var(--wp--custom--imt--header--logo--on-scroll--max-height-mobile);
        max-width: var(--wp--custom--imt--header--logo--on-scroll--max-width-mobile);
    }

    #imt-header .imt-section__background {
        background-color: var(--wp--custom--imt--header--background-color--on-scroll) !important;
        opacity: 1 !important;
    }

    #imt-header .imt-img-container {
        display: flex;
        justify-content: flex-start;
        align-items: center;
    }

    #imt-header.imt-section .imt-card-group.imt-card-style-default .imt-card .imt-img-container.imt-img-max-width-md {
        max-width: unset;
    }

    nav.imt-main-nav>div ul>li .submenu {
        min-width: 100% !important;
        max-width: 100% !important;
        padding: 0 !important;
    }

}

/* Place media row background above content section */
.imt-section .imt-media-row .imt-media-col {
    z-index: 3;
}

/* Adjusting default card group's padding top */
.imt-section .imt-card-group.imt-card-style-default .imt-card>.acf-innerblocks-container {
    padding-top: 20px !important;
}

/* Reset for header */
.imt-section#imt-header .imt-card-group.imt-card-style-default .imt-card>.acf-innerblocks-container {
    padding-top: 0px !important;
}

/* Adjusting style 2 card group's padding top */
.imt-section .imt-card-group.imt-card-style-2 .imt-card>.acf-innerblocks-container {
    padding-top: 20px !important;
}

/* makes homepage fonts bigger */
.imt-details {
    font-size: 25px !important;
}

/* custom text class colour */
.imt-bold-color {
    color: var(--wp--custom--imt--color--palette--background--secondary--active);
}

/* customer footer line height */
footer a {
    line-height: 1em;
}

footer .imt-btn-text {
    padding: 5px !important;
}

/* video row border radius */
.imt-media-row-video-wrapper iframe {
    border-radius: 0px 25px 0px 25px;
}