/*
Theme Name: Munchkins
Author: Chromatix <tim.malone@chromatix.com.au>
Author URI: http://chromatix.com.au
Description: A theme by Chromatix Web Design
Version: 1.0.1 (2017-05-17)
License: GNU General Public License v3 with Creative Commons proxy + exceptions for some separatable files
License URI: http://www.gnu.org/licenses/gpl-3.0.html
Text Domain: chromatix.com.au
*/

/* see LICENSE.txt for full licensing information */

/* **************************************************************************************************
Everything that is usually here can now be found in dist/styles.min.css - built from src/sass-auto/@config.sass.
- use a tool like `git grep` or a browser that supports CSS source maps to find the file location of styles you
  wish to modify
- SASS is required to rebuild CSS; see http://sass-lang.com
- a grunt workflow is used to build everything; ensure the node.js package manager is on your system then run
  `npm install -g grunt-cli` followed by `npm install` in the theme directory - you can then run `grunt` whenever
  you need to update the CSS or JS for distribution
************************************************************************************************** */

.front-page .content-main .content-post > h1:first-child:after {
    content: "";
    position: absolute;
    width: .925em;
    height: .155em;
    bottom: -.7em;
    left: 0;
    background-color: currentcolor;
}
.front-page .content-main .content-post>h1:first-child{
    width: 180px;
    margin-bottom: 40px;
    line-height: 1.4em;
    font-size: 1.475rem;
    position: relative;
}
@media screen and (min-width: 1250px) {
    .front-page .content-main .content-post>h1:first-child {
        float: left;
        width: 250px;
    }
    .front-page .content-main .content-post>h1:first-child {
        font-size: 1.475rem;
    }
}
@media screen and (min-width: 700px) and (max-width: 1249px) {
    .front-page .content-main .content-post > h1:first-child {
        font-size: 1.3333333333rem;
        float: left;
        width: 210px;
        margin-left: 0;
        margin-bottom: 70px;
    }
}


.front-page div#content {
    display: flex;
    min-height: calc(100vh - 140px) !important;
    align-items: flex-end;
}
.front-page main.content-main.chr_content {
    width: 100%;
    position: static !important;
}
@media screen and (max-width: 1249px){
    .front-page div#content {
        min-height: 100vh !important;
    }
}

/*Custom CSS*/
:is(.image_with_text,.rich_text) img {
    max-width: 100%;
    height: auto;
    background-image: none !important;
}

:is(.image_with_text,.rich_text) .wrap:before{
    display: none !important;
}
:is(.image_with_text,.rich_text) .wrap {
    padding: 60px 20px 140px !important;
}
:is(.image_with_text,.rich_text) {
    padding: 0 !important;
}

/*:is(.image_with_text,.rich_text) h2{*/
/*    font-size: 30px;*/
/*    margin: 0;*/
/*    margin-bottom: 25px;*/
/*    font-weight: 500;*/
/*}*/
/*:is(.image_with_text,.rich_text) h3{*/
/*    font-size: 24px;*/
/*    margin: 0;*/
/*    margin-bottom: 25px;*/
/*    font-weight: 500;*/
/*}*/
/*:is(.image_with_text,.rich_text) h4{*/
/*    font-size: 20px;*/
/*    margin: 0;*/
/*    margin-bottom: 25px;*/
/*    font-weight: 500;*/
/*}*/

.layout-1-1{
    --flex-image: 50%;
    --flex-text: 50%;
}
.layout-1-2{
    --flex-image: 33.33%;
    --flex-text: 66.67%;
}
.layout-2-1{
    --flex-image: 66.67%;
    --flex-text: 33.33%;
}
.image_with_text .imgtext-block .columns{
    display: flex !important;
    --gap: 80px;
    gap: var(--gap);
}
.image_with_text .imgtext-block .columns .image{
    flex: 1 0 calc(var(--flex-image) - var(--gap) / 2);
    max-width: calc(var(--flex-image) - var(--gap) / 2);
    width: 100%;
}
.image_with_text .imgtext-block .columns .content{
    flex: 1 0 calc(var(--flex-text) - var(--gap) / 2);
    max-width: calc(var(--flex-text) - var(--gap) / 2);
    width: 100%;
}
.image_with_text .imgtext-block.image-last .columns{
    flex-direction: row-reverse;
}
.image_with_text .imgtext-block.align-top .columns {
    align-items: flex-start;
}
.image_with_text .imgtext-block.align-center .columns {
    align-items: center;
}
.image_with_text .imgtext-block .columns .image img{
    width: 100%;
}
.image_with_text .imgtext-block .column h2,
.image_with_text .imgtext-block .column{
    margin-left: 0 !important;
}
:is(.image_with_text,.rich_text):first-of-type:before,
:is(.image_with_text,.rich_text):before{
    border-top: 80px transparent solid;
}
:is(.image_with_text,.rich_text):nth-child(odd):before{
    border-left: 0;
    border-right: 100vw #f7f7f7 solid;
}
:is(.image_with_text,.rich_text):nth-child(even):before{
    border-left: 100vw #ffffff solid;
}
@media screen and (max-width: 768px){
    .image_with_text .imgtext-block .columns > *{
        flex: 1 0 100% !important;
        max-width: 100%  !important;
    }
    .image_with_text .imgtext-block .columns{
        flex-direction: column !important;
        gap: 20px;
    }
    .image_with_text .imgtext-block .columns .image{
        order: 1;
    }
    .image_with_text .imgtext-block .columns .image img{
        height: 350px;
        object-fit: cover;
    }
}


/* nav menu styling */
.menu-item{
    position: relative;
}
#menu-main-menu {
    align-items:center;
    height: 140px;
}
#menu-main-menu > .menu-item > a{
    height: auto !important;
    line-height: 3 !important;
}
.menu-item.menu-item-has-children > a span:after{
   content: '';
    width: 14px;
    height: 14px;
    display: inline-block;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 512 512'%3E%3Cpath d='M233.4 406.6c12.5 12.5 32.8 12.5 45.3 0l192-192c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0L256 338.7 86.6 169.4c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3l192 192z' fill='%23ffffff'/%3E%3C/svg%3E");
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    margin-left: 10px;
}
.sub-menu{
    position: absolute;
    top: calc(100%);
    left: 0;
    width: 200px;
    border-radius: 4px;
    overflow: clip;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}
.menu-item:hover .sub-menu{
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transition: all 0.3s ease;
}
.sub-menu a{
    font-size: 16px;
    color: #333333;
    text-decoration: none;
    background-color: #FFFFFF;
    display: flex;
    padding: 5px 30px;
    transition: all 0.3s ease;
}
.sub-menu a:hover{
    background-color: #F7F7F7;
}
.sub-menu .menu-item.current-menu-item a{
    background-color: #CCCCCC;
}
.sub-menu .menu-item:first-child a{
    padding-top: 10px;
}
.sub-menu .menu-item:last-child a{
    padding-bottom: 10px;
}
#menu-main-menu{
    transition: height 0.5s ease;
}
.persistent-header #menu-main-menu {
    height: 100px;
}
.menu-item-has-children > a {
    position: relative;
}
.not-front-page .menu-item.menu-item-has-children:not(.current-menu-ancestor):not(:hover) > a span:after{
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 512 512'%3E%3Cpath d='M233.4 406.6c12.5 12.5 32.8 12.5 45.3 0l192-192c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0L256 338.7 86.6 169.4c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3l192 192z' fill='%23939393'/%3E%3C/svg%3E");
}
@media screen and (max-width: 1250px){
    .menu-item-has-children > a span:after{
        display:none !important;
    }
    .header-menu ul.menu>li>a{
        padding:0;
    }
    .menu-item-has-children ul.sub-menu{
        position: static;
        pointer-events: auto;
        opacity: 1;
        visibility: visible;
        width: 100%;
        margin-top: -10px;
        border-radius: 0;
    }
    .menu-item-has-children.active ul.sub-menu{
        display: block;
    }
    .menu-item-has-children ul.sub-menu li.current-menu-item a,
    .menu-item-has-children ul.sub-menu a{
        background-color: transparent;
        color: #939393;
        padding-inline: 20px;
        padding-block: 6px;
    }
    .menu-item-has-children ul.sub-menu li.current-menu-item a{
        color: #FFFFFF;
    }
}


/* client logo v2 styling */
.client_logos_v2{
    padding-block: 100px !important;
}
.client_logos_v2:after,
.client_logos_v2 .wrap:before{
    display: none !important;
}

.client_logos_v2 .wrap{
    padding-bottom: 0 !important;
}
.client_logos_v2 .section-head{
    margin-bottom: 60px;
}
.logo-slider{
    margin-bottom: 20px;
}
.logo-slider img{
    width: 100%;
    height: auto;
    aspect-ratio: 8/3;
    object-fit: contain;
    border-radius: 4px;
    background-color: #ffffff;
    padding: 5px;
    border: 1px solid #0000001a;
}