/*
Theme Name: Avada Child
Description: Child theme for Avada theme
Author: ThemeFusion
Author URI: https://theme-fusion.com
Template: Avada
Version: 1.0.0
Text Domain:  Avada
*/



/* Header */

.fusion-main-menu > ul > li > a {
    border-top: 0px solid transparent !important;
border-bottom: 4px solid transparent;
  transition: all 0.3s ease-out;}

.fusion-button {font-family: 'Merriweather' !important;}

.fusion-header .fusion-row {background-color: rgba(255, 255, 255, .95); padding-left:30px !important; padding-right:30px !important; margin-top:30px !important;}


.fusion-page-title-captions {background-color: rgba(0, 0, 0, .55);
    position: absolute;
    bottom: 0;
    padding: 15px 0;
    width:100%;}

.fusion-page-title-bar .fusion-page-title-row {max-width: 100%;}

.fusion-page-title-bar {padding-left:0px !important; padding-right:0px !important;}

.fusion-page-title-bar h1 {max-width:1050px; margin:auto; padding-left:10px;}

.modal-left h1 {font-family: 'Merriweather' !important;}


/* Footer */

.fusion-copyright-notice {
    text-align: center;
}

.fusion-footer-widget-column {
    margin-bottom: 10px;
}

.footer-menu {text-align:center; letter-spacing:1px;}

.name {color:#f79226 !important;}


/* Rev Slider Changes */

.tp-loader.spinner5 {
 
    background-image: url('https://krekura.com/build/envest/wp-content/uploads/2017/06/arrows.gif') !important;
    width: 120px !important;
    height: 40px !important;
 
}

/* General Styles */

.fusion-meta-info {display:none;}

.sidebar .widget .heading h4, .sidebar .widget h4 {

}

.sidebar .widget .heading h4, .sidebar .widget h4 {
font-size
}

.button-envest {padding-left:0px;}

.fusion-button i {color: #f79226 !important;}

.fusion-page-title-captions {
    -webkit-animation-name: fadeInUp;
    animation-name: fadeInUp;
    -webkit-animation-duration: 1s;
    animation-duration: 1s;
    -webkit-animation-fill-mode: both;
    animation-fill-mode: both;
}

.home .fusion-logo {
    -webkit-animation-name: fadeInLeft;
    animation-name: fadeInLeft;
    -webkit-animation-duration: 1s;
    animation-duration: 1s;
    -webkit-animation-fill-mode: both;
    animation-fill-mode: both;
}

.my-box-layer {
    border-left: none !important;
}

.my-box-layer:before {
    content: "";
    position: absolute;
    right: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.85);
    border: 3px solid rgba(255, 255, 255, 0.5);
    width: 9999px;
    top: -3px;
    border-right: none; 
}
.rpwe-block a {
    display: block!important;
    text-decoration: none;
}

.sidebar .widget h3, .rpwe-title a {color:#f79226 !important;}

.fusion-content-widget-area .widget li {padding:10px;}


.rpwe-summary a {display:block !important;}


#content .entry-title {display:none;}

/* Contact modal styling */

/*      Clearfix        */

.clearfix:before,
.clearfix:after {
    content: " "; 
    display: table;
}

.clearfix:after {
    clear: both;
}
.clearfix {
    *zoom: 1;
}
/*      /clearfix       */

.no-scroll {
    height: 100%;
    overflow: hidden;
}

.modal-right {
    max-width: 461px;
    max-height: 350px;
    overflow: hidden;
}
.modal-right iframe {
    position: relative;
    left: 50%;
    transform: translateX(-50%);
    -webkit-transform: translateX(-50%);
    -moz-transform: translateX(-50%);
    -ms-transform: translateX(-50%);
    -o-transform: translateX(-50%);


}
.contact-modal-wrapper {
    opacity: 0;
    position: fixed;    
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    height: 100%;
    padding: 0 50px;
    z-index: -1;
    transition: 0.5s all;
    -webkit-transition: 0.5s all;
    -moz-transition: 0.5s all;
    -ms-transition: 0.5s all;
    -o-transition: 0.5s all;
}
.contact-modal-wrapper.active {
    z-index: 99999;
    opacity: 1;
}
.contact-modal {
   background: #ffffff;
   max-width: 1060px;
   margin: 0 auto;
   position: relative;
   top: 50%; 
   transform: translateY(-50%);
   -webkit-transform: translateY(-50%);   
   -moz-transform: translateY(-50%);
   -ms-transform: translateY(-50%);
   -o-transform: translateY(-50%);
   z-index: 9999;
   padding: 70px 65px 75px 50px;
   -webkit-box-shadow: 0px 0px 25px 20px rgba(0,0,0,0.1);
   -moz-box-shadow: 0px 0px 25px 20px rgba(0,0,0,0.1);
   box-shadow: 0px 0px 25px 20px rgba(0,0,0,0.1);
}
.contact-modal-overlay{	
    background: rgba(0,0,0,0.6);
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
	width: 100%;
    z-index: 1;
    cursor: pointer;
}
.modal-left {
    float: left;
    width: 50%;
    padding-right: 70px;
}
.modal-right {
    float: right;
    width: 50%;
    padding-left: 70px;
}
a.modal-close {
    position: absolute;
    right: 20px;
    top: 20px;
}
.contact-modal-body p {
    font-size: 15px;
    color: #404042;
    line-height: 1.5;
    margin-bottom: 10px;
    margin-top: 0;
}
.contact-modal-body p.modal-intro {
    margin-bottom: 25px;
}
/* .esg-overflowtrick {
    height: 100% !important;
}
.esg-grid ul.mainul {
    height: 100% !important;
}
.esg-grid .mainul li.eg-cleveland-wrapper {
    height: 100% !important;
} 

.esg-entry-content.eg-cleveland-content.esg-notalone {
    position: relative !important;
    display: block !important;
    z-index: 9;
}
*/


.fusion-page-title-bar.fusion-page-title-bar-breadcrumbs {}

.avada-page-titlebar-wrapper:before {
    content: '';
    display: block;
    width: 100%;
    height: 100%;
    position: absolute;
    left: 0;
    top: 0;
    background: #00000036;
    z-index: 1;
}

.avada-page-titlebar-wrapper {
    position: relative;
}

.avada-page-titlebar-wrapper .fusion-page-title-captions {
    position: relative;
    z-index: 1;
}
.fusion-page-title-wrapper {
    align-items: flex-end !important;
}
.esg-entry-content.eg-cleveland-content  {
    min-height: 210px !important;
}

.eg-cleveland-element-0 {
    min-height: 45px;
}


/* Logo Grid */
.logo-card .content-box-wrapper {
    position: relative;
    overflow: hidden;
}

.logo-card .content-box-wrapper .content-container {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 15px;
    background: rgb(0 0 0 / 80%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;

    transition:
        opacity 0.35s ease,
        visibility 0.35s ease;
}

.logo-card .content-boxes {
    margin-bottom: 0;
}

.logo-card .content-box-wrapper .heading-with-icon img {
   width: 100%;
    margin: 0 !important;
    aspect-ratio: 16 / 9;
    object-fit: contain;
    transition: transform 0.6s ease;
}

.logo-card .content-box-wrapper .content-container h2 {
	margin: 0 0 10px;
    color: #fff;
    font-size: 17px;
    font-weight: 800;
    text-transform: uppercase;
    opacity: 0;
    transform: translateX(-80px) scale(0.65);
    transform-origin: left center;
    transition:
        opacity 0.45s ease,
        transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);

    transition-delay: 0.20s;
}

.d-none {
    display: none !important;
}
/* =========================================
   P - START FROM RIGHT
========================================= */

.logo-card .content-box-wrapper .content-container p {
    margin: 0;
    color: #fff;
    font-size: 13px;
    text-transform: uppercase;

    opacity: 0;
    transform: translateX(80px) scale(0.65);
    transform-origin: right center;

    transition:
        opacity 0.45s ease,
        transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);

    /* P starts slightly after H2 */
    transition-delay: 0.35s;
}


/* =========================================
   HOVER
========================================= */

.logo-card .content-box-wrapper:hover .content-container {
    opacity: 1;
    visibility: visible;
}

.logo-card .content-box-wrapper:hover .content-container h2 {
    opacity: 1;
    transform: translateX(0) scale(1);
}

.logo-card .content-box-wrapper:hover .content-container p {
    opacity: 1;
    transform: translateX(0) scale(1);
}


/* =========================================
   OPTIONAL: SLIGHT LOGO ZOOM ON HOVER
========================================= */

.logo-card .content-box-wrapper:hover .heading-with-icon img {
    transform: scale(1.06);
}




@media  (min-width: 768px) and (max-width: 991px) {
.fusion-main-menu>ul>li{
    padding-right: 13px !important;
}
	rs-layer#slider-2-slide-2-layer-1 {
    top: 5px  !important;
}
}
/* Responsive Views */

@media only screen and (max-width: 767px) {
    
.rev-subtitle{
	font-size: 15px !important;
	line-height: 22.5px !important;
}
}

@media screen and (max-width: 1060px) {
    .rev_slider_wrapper,
    .revslider-initialised {
        height: 450px !important;
    }
    .my-box-layer {
        font-size: 18px !important;
        min-height: 230px !important;
        min-width: 480px !important;
        max-width: 480px !important;
        max-height: 230px !important;
    }
    .my-box-layer-title {
        font-size: 22px !important;;
        min-width: 380px !important;
        max-width: 380px !important;
    }
    .my-box-layer-text {
        font-size: 16px !important;
        font-weight: 300 !important;
        min-width: 380px !important;
        max-width: 380px !important;
        max-height: 100px !important;
        line-height: 1.25 !important;
    }
    .my-box-layer-button {
        font-size: 16px !important; 
    }
    .my-box-layer-button i {
        font-size: 18px !important;
    }
    .my-box-layer-wrapper {
        top: 170px !important;

    }
    .my-box-layer-title-wrapper {
        top: 195px !important;
    }
    .my-box-layer-text-wrapper {
        top: 230px !important;
    }    
    .my-box-layer-button-wrapper {
        top: 340px !important;
    }
}


@media screen and (max-width: 1024px) {
    #sliders-container {
        display: block !important;
    }
    #fallback-slide {
        display: none !important;
    }
    body .fusion-header .fusion-row, 
    body .fusion-secondary-header .fusion-row {
        padding-left: 10px !important;
        padding-right: 10px !important;
    }
    .fusion-mobile-menu-design-modern .fusion-header > .fusion-row {
        padding-left: 10px !important;
        padding-right: 10px !important;
    }
}


@media screen and (max-width: 893px) {
    #sliders-container {
        display: block !important;
    }
    #fallback-slide {
        display: none !important;
    }
    .my-box-layer::before {
        display: none;
    }
}

@media only screen and (max-width: 800px) {
    .fusion-page-title-bar-left .fusion-page-title-captions {background-color: rgba(0, 0, 0, 0);
        position: relative;
        top: 0;
        padding: 0;
        width:100%;
text-align:center;
}

    .fusion-page-title-bar h1 {padding-left:10px;}

    /*.my-box-layer-wrapper {
        top: 30px !important;
    }
    .my-box-layer-title-wrapper {
        top: 60px !important;
    }*/
	
	.my-box-layer {
        min-height: 300px !important;
        min-width: 100% !important;
        max-width: 100% !important;
        max-height: 350px !important;        
    }
    .my-box-layer-title {
        font-size: 22px !important;;
        min-width: 100% !important;
        max-width: 100% !important;
        text-align: center !important;
        line-height: 30px !important;
        padding-bottom: 20px !important;
        position: relative !important;
    }
    .my-box-layer-title:after {
        content: "";
        width: 25px;
        height: 4px;
        background-color: #f89d2a;
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
        -webkit-transform: translateX(-50%);
        -moz-transform: translateX(-50%);
        -ms-transform: translateX(-50%);
        -o-transform: translateX(-50%);
        bottom: 5px;
    }
    .my-box-layer-text {
        min-width: 100% !important;
        max-width: 100% !important;
        max-height: 120px !important;
        overflow: hidden !important;
        text-align:center;
    }    
    .my-box-layer-wrapper {
        top: 40px !important;
        left: 30px !important;
        right: 30px !important;
    }
    .my-box-layer-wrapper div,
    .my-box-layer-title-wrapper div,
    .my-box-layer-text-wrapper div,
    .my-box-layer-button-wrapper div
    {
        width: 100% !important;
    }
    .my-box-layer-button-wrapper .my-box-layer-button {
        width: auto !important;
        display: inline-block !important;
        line-height: 28px !important;
    }
    .my-box-layer-title-wrapper {
        top: 80px !important;
        left:65px !important;
        right:65px !important;
    }
    .my-box-layer-text-wrapper {
        top: 145px !important;
        left:65px !important;
        right:65px !important;
    }    
    .my-box-layer-button-wrapper {
        top: 260px !important;
        left:65px !important;
        right:65px !important;
        text-align: center;        
    }
	.fusion-header .fusion-row { margin-top:0px !important; }
	.fusion-mobile-menu-icons a { font-size:36px !important; color:#f79226 !important; }
	.post-content .fusion-title { margin-bottom: 0px !important; }
	.fusion-header-wrapper { position: relative !important; }
	.home.page-template .fusion-column-content-centered, .home.page-template .fusion-column-wrapper { min-height: 0px !important; }
}

@media screen and (max-width: 767px) {
    .my-box-layer-button-wrapper {
        top: 280px !important;
    }
    .my-box-layer-text {
        max-height: 140px !important;
    }
    .contact-modal-wrapper.active {
        padding: 20px;
        top: 46px;
    }
    .contact-modal {
        top: 0;
        transform: none;
        -webkit-transform: none;
        -moz-transform: none;
        -ms-transform: none;
        -o-transform: none;
        padding: 10px 20px 40px;
        max-height: 85vh;
        overflow: auto;
    }
    .modal-left,
    .modal-right {
        float: none;
        width: 100%;
        padding: 0;
        margin-bottom: 30px;
    }
    .contact-modal h1 {
        padding-right: 50px;
    }
}
@media screen and (max-width: 479px) {
	.my-box-layer {
        min-height: 350px !important;
	}
    .my-box-layer-title {
        white-space: initial !important;
    }
    .my-box-layer-title-wrapper {
        top: 60px !important;
        left: 45px !important;
        right: 45px !important;
    }
    .my-box-layer-text-wrapper,
    .my-box-layer-button-wrapper {
        left: 45px !important;
        right: 45px !important;
    }
    .my-box-layer-button-wrapper {
        top :330px !important;
    }
    .my-box-layer-text {
        max-height: 170px !important;
        text-align:center !important;
    }
}



@media screen and (max-width: 390px) {
	rs-layer#slider-2-slide-2-layer-1 {
		height: 355px !important;
	}

	a#slider-2-slide-2-layer-5 {
		top: 20px;
	}

	rs-layer#slider-2-slide-2-layer-4 {
		top: 10px;
	}

	rs-layer#slider-2-slide-2-layer-2 {
		top: -10px;
	}

	rs-layer#slider-2-slide-2-layer-0 {
		top: -10px;
	}
}



/* =========================================
   TEAM GRID
========================================= */

.custom-team-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 3px;
    width: 100%;
}


/* =========================================
   TEAM CARD
========================================= */

.custom-team-card {
    min-width: 0;
}


/* =========================================
   IMAGE
========================================= */

.custom-team-card__image-wrap {
    position: relative;
    overflow: hidden;
    aspect-ratio:1/1.4;
    cursor: pointer;
}

.custom-team-card__image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.custom-team-card__image-wrap:hover .custom-team-card__image {
    transform: scale(1.03);
}


/* =========================================
   IMAGE OVERLAY
========================================= */

.custom-team-card__overlay {
    position: absolute;
    inset: 0;

    display: flex;
    align-items: center;
    justify-content: center;

    background: rgba(0, 0, 0, 0.55);

    opacity: 0;
    visibility: hidden;

    transition:
        opacity 0.3s ease,
        visibility 0.3s ease;
}

.custom-team-card__image-wrap:hover .custom-team-card__overlay,
.custom-team-card__image-wrap:focus .custom-team-card__overlay {
    opacity: 1;
    visibility: visible;
}


/* =========================================
   VIEW FULL BIO
========================================= */

.custom-team-card__overlay-button {
    display: inline-block;

    padding: 9px 13px;

    background: #000;
    color: #fff;

    font-size: 13px;
    line-height: 1;
    font-weight: 700;

    cursor: pointer;
}


/* =========================================
   CARD CONTENT
========================================= */

.custom-team-card__content {
    padding: 30px;
    text-align: center;
}


/* =========================================
   NAME
========================================= */

.custom-team-card .custom-team-card__name {
    margin: 0 0 26px;

    color: #f7941d;

    font-size: 21px;
    line-height: 1.2;
    font-weight: 400;
}


/* =========================================
   POSITION
========================================= */

.custom-team-card__job {
    display: flex;
    align-items: center;
    justify-content: center;

    min-height: 31px;

    margin-bottom: 20px;
    padding: 7px 10px;

    background: rgba(255, 255, 255, 0.07);

    color: #fff;

    font-size: 13px;
    line-height: 1.2;
    font-weight: 700;

    text-transform: uppercase;
}


/* =========================================
   READ FULL BIO BUTTON
========================================= */

.custom-team-card__bio-link {
    display: inline-flex;
    align-items: center;
    gap: 7px;

    border: 0;
    padding: 0;

    background: transparent;
    color: #fff;

    font-size: 13px;
    line-height: 1.3;
    
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    font-family: var(--h3_typography-font-family);
    transition: transform 0.2s ease;
    
}

.custom-team-card__bio-link .custom-team-card__arrow {
    color: #f7941d;

    transition: transform 0.2s ease;
}

.custom-team-card__bio-link:hover span {
    transform: translateX(4px);
}
/* =========================================
   TEAM BIO MODAL
========================================= */

.team-bio-modal {
    position: fixed;
    inset: 0;
    display: flex;
    z-index: -99999;
    align-items: center;
    justify-content: center;
    padding: 20px;
	opacity: 0;
	visibility: hidden;
	transition: all 0.5s ease-in-out;
	
}

.team-bio-modal.is-open {
	opacity: 1;
	visibility: visible;
    z-index: 99999;
}


/* =========================================
   OVERLAY
========================================= */

.team-bio-modal__overlay {
    position: absolute;
    inset: 0;

    background: rgba(0,0,0,.6);

    cursor: pointer;
}


/* =========================================
   MODAL
========================================= */

.team-bio-modal__dialog {
    position: relative;
    z-index: 2;

    width: 100%;
    max-width: 1060px;
     max-height: calc(60vh - 60px);
    overflow: hidden;


    background: #fff;

    box-shadow: 0 15px 60px rgba(0, 0, 0, 0.3);

    overflow: hidden;

    animation: teamModalIn 0.3s ease;
	transition: all 0.5s ease-in-out;
}


/* =========================================
   MODAL INNER
   FLEX - IMAGE LEFT / CONTENT RIGHT
========================================= */

.team-bio-modal__inner {
    display: flex;
    align-items: flex-start;
}


/* =========================================
   LEFT IMAGE
========================================= */

.team-bio-modal__image {
    flex: 0 0 42%;
    width: 42%;
}

.team-bio-modal__image img {
    display: block;
    width: 100%;
    aspect-ratio: 1 / 1.15;
    object-fit: cover;
}


/* =========================================
   RIGHT CONTENT
========================================= */

.team-bio-modal__content {
    flex: 1 1 58%;
    min-width: 0;

    padding: 50px;
    min-height: 0;
    max-height: calc(57vh - 60px);
    overflow-y: auto;

    color: #1a1a1a;
}


/* =========================================
   NAME
========================================= */

.team-bio-modal__name {
    margin: 0 0 10px;
    line-height: 1.2;
}


/* =========================================
   POSITION
========================================= */

.team-bio-modal__job {
    margin-bottom: 30px;

    font-size: 14px;
    line-height: 1.3;
    font-weight: 700;

    text-transform: uppercase;
}


/* =========================================
   BIO
========================================= */

.team-bio-modal__bio {
    font-size: 16px;
    line-height: 1.7;
}

.team-bio-modal__bio p {
    margin: 0 0 18px;
}

.team-bio-modal__bio ul,
.team-bio-modal__bio ol {
    margin-bottom: 20px;
}


/* =========================================
   CONTACT
========================================= */

.team-bio-modal__contact {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;

    margin-top: 30px;
    padding-top: 25px;

    border-top: 1px solid #ddd;
}

.team-bio-modal__contact a {
    color: #1a1a1a;

    font-size: 14px;
    font-weight: 700;

    text-decoration: none;

    cursor: pointer;
}

.team-bio-modal__contact a:hover {
    color: #f7941d;
}



.team-bio-modal__close {
    position: absolute;
    top: 15px;
    right: 18px;
    z-index: 5;

    width: 40px;
    height: 40px;

    padding: 0;

    border: 0;

    background: transparent;
    color: #222;

    font-size: 32px;
    line-height: 1;

    cursor: pointer;
}

.team-bio-modal__close:hover {
    color: #f7941d;
}



@keyframes teamModalIn {

    from {
        opacity: 0;
/*         transform: translateY(25px); */
    }

    to {
        opacity: 1;
/*         transform: translateY(0); */
    }

}

/* =========================================
   CLOSE BUTTON
========================================= */

.team-bio-modal__close {
    position: absolute;

    top: 15px;
    right: 18px;

    width: 40px;
    height: 40px;

    padding: 0;

    border: 0;

    background: transparent;
    color: #222;

    font-size: 32px;
    line-height: 1;

    cursor: pointer;
}

.team-bio-modal__close:hover {
    color: #f7941d;
}


/* =========================================
   MODAL BIO
========================================= */


.team-bio-modal__bio p {
    font-size: 15px;
    color: #404042;
    line-height: 1.5;
    margin-bottom: 10px;
    margin-top: 0;
}

.team-bio-modal__bio ul,
.team-bio-modal__bio ol {
    margin-bottom: 20px;
}


/* =========================================
   CONTACT
========================================= */

.team-bio-modal__contact {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;

    margin-top: 30px;
    padding-top: 25px;

    border-top: 1px solid #ddd;
}

.team-bio-modal__contact a {
    color: #1a1a1a;

    font-size: 14px;
    font-weight: 700;

    text-decoration: none;

    cursor: pointer;
}

.team-bio-modal__contact a:hover {
    color: #f7941d;
}


/* =========================================
   BODY LOCK
========================================= */

body.team-modal-open {
    overflow: hidden;
}


/* =========================================
   TABLET
========================================= */

@media (max-width: 1024px) {

    .custom-team-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }
    .custom-team-card__content {
        padding: 20px 10px;
    }
    .custom-team-card .custom-team-card__name {
        font-size: 18px;
    }

}


/* =========================================
   MOBILE
========================================= */

@media (max-width: 600px) {

    .custom-team-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .custom-team-card__content {
        padding-top: 20px;
    }

    .custom-team-card__name {
        margin-bottom: 18px;
    }

}

/* =========================================
   TEAM MODAL - RESPONSIVE ONLY
========================================= */

/* Desktop */
@media (min-width: 992px) {

    .team-bio-modal__dialog {
        width: 100%;
        max-height: calc(100vh - 60px);
    }

    .team-bio-modal__inner {
        display: flex;
        align-items: flex-start;
    }

    .team-bio-modal__image {
        flex: 0 0 42%;
        width: 42%;
        align-self: flex-start;
    }

    .team-bio-modal__image img {
        display: block;
        width: 100%;
        height: auto;
        aspect-ratio: 4/5.5;
        object-fit: cover;
    }

    .team-bio-modal__content {
        flex: 1 1 58%;
        min-width: 0;
        min-height: 0;

        max-height: calc(100vh - 60px);

        overflow-y: auto;
        overflow-x: hidden;

        padding: 60px 50px;
    }
}


/* =========================================
   TABLET
========================================= */

@media (min-width: 768px) and (max-width: 991px) {

    .team-bio-modal {
        padding: 20px;
    }

    .team-bio-modal__dialog {
        width: 100%;
        max-width: 850px;

        max-height: calc(100vh - 50px);
    }

    .team-bio-modal__inner {
        display: flex;
        align-items: flex-start;
    }

    .team-bio-modal__image {
        flex: 0 0 40%;
        width: 40%;

        align-self: flex-start;
    }

    .team-bio-modal__image img {
        display: block;

        width: 100%;
        height: auto;

        aspect-ratio: 1 / 1.15;

        object-fit: cover;
    }

    .team-bio-modal__content {
        flex: 1 1 60%;

        min-width: 0;
        min-height: 0;

        max-height: calc(100vh - 50px);

        overflow-y: auto;
        overflow-x: hidden;

        padding: 45px 35px;
    }
}


/* =========================================
   MOBILE
========================================= */

@media (max-width: 767px) {

    .team-bio-modal {
        align-items: center;	
        padding: 50px;
    }
	.team-bio-modal.is-open{		
        padding: 20px;
	}
    .team-bio-modal__dialog {
        width: 100%;
        max-width: 600px;

        max-height: calc(100vh - 30px);

        overflow: hidden;
    }

    /*
     * Stack image + content
     */
    .team-bio-modal__inner {
        display: flex;
        flex-direction: column;

        width: 100%;
    }


    /* IMAGE */

    .team-bio-modal__image {
        flex: none;

        width: 100%;

        align-self: auto;
    }

    .team-bio-modal__image img {
        display: block;

        width: 100%;
        height: auto;

        aspect-ratio: 16 / 9;

        object-fit: cover;
    }


    /* CONTENT */

    .team-bio-modal__content {
        flex: none;

        width: 100%;
        min-width: 0;
        min-height: 0;

        max-height: calc(100vh - 45vh);

        overflow-y: auto;
        overflow-x: hidden;

        padding: 35px 25px 30px;
    }

    .team-bio-modal__job {
        margin-bottom: 20px;
    }

    .team-bio-modal__bio {
        font-size: 15px;
        line-height: 1.6;
    }

    .team-bio-modal__close {
        top: 10px;
        right: 10px;

        width: 36px;
        height: 36px;

        font-size: 28px;
    }
	.logo-card .content-box-wrapper .content-container h2 {
		font-size: 14px;
	}

	.logo-card .content-box-wrapper .content-container p {
		font-size: 12px;
	}

	.logo-card .content-box-wrapper .content-container {
		word-break: break-word;
	}
	.logo-card > div {
		margin-bottom: 0 !important;
	}
}


/* =========================================
   SMALL MOBILE
========================================= */

@media (max-width: 480px) {


    .team-bio-modal__dialog {
        max-height: calc(100vh - 20px);
    }

    .team-bio-modal__image img {
        aspect-ratio: 4 / 3;
        object-position: 50% 5%;
    }

    .team-bio-modal__content {
        max-height: calc(100vh - 40vh);

        padding: 35px 20px 25px;
    }


    .team-bio-modal__bio {
        font-size: 15px;
    }
}

