/* 1. layout + box styling
-----------------------------------------------*/

.team-listing .jet-listing-grid .jet-listing-grid__items {
    display: grid;
}

.team-listing .jet-listing-grid__items .elementor-container .employee-item_footer .elementor-row {
    height: auto;
}

.team-listing .jet-listing-grid__items .jet-listing-grid__item .card {
    border-radius: var(--border-medium-radius);
    border: 1px solid var(--primary-color);
}

/* 2. item styling
-----------------------------------------------*/

.team-listing .elementor-column.employee-item-col_content {
    width: 100%;
}

/* 5. content
-----------------------------------------------*/

.employee-item-col_content .employee-item_footer {
    margin-top: auto;
}

.team-listing .employee-item-col_content .employee-item_footer .elementor-widget-wrap {
    padding: 0;
    flex-direction: row;
}

.employee-item-col_content .employee-item-name .elementor-heading-title,
.employee-item-col_content .employee-item-position .elementor-heading-title,
.employee-item-col_content .employee-item-position ul li {
    text-transform: uppercase;
    line-height: 1;
    font-weight: var(--font-weight-thin);
}

.employee-item-col_content .employee-item-position ul {
    padding: 0;
    list-style: none;
}

.employee-item-col_content .employee-item-position .elementor-heading-title,
.employee-item-col_content .employee-item-position ul li {
    line-height: 1.6;
}

.employee-item-col_content .employee-item-desc p {
    font-size: 1rem;
    line-height: 1.6;
    color: #A9ABAE;
}

.employee-item-col_content .employee-item-desc.elementor-widget-text-editor:not(:last-child) {
    margin-bottom: 0 !important;
}


/* 6. footer (button + social links)
-----------------------------------------------*/

.team-listing .employee-item_footer .employee-item_social-links .elementor-widget-wrap>.elementor-element {
    width: auto;
}

.team-listing .employee-item_footer .employee-item_social-links .elementor-icon-wrapper {
    display: flex;
}

.team-listing .employee-item_footer .employee-item_social-links .elementor-widget-icon:not(:first-child) {
    margin-left: 20px;
}

.team-listing .employee-item_footer .employee-item_social-links a svg path,
.team-listing .employee-item_footer .employee-item_social-links a svg circle {
    transition: var(--hover-transistion);
}

.team-listing .employee-item_footer .employee-item_social-links a:hover svg path,
.team-listing .employee-item_footer .employee-item_social-links a:hover svg circle {
    fill: var(--primary-color);
}

@media (min-width: 320px) and (max-width: 1023px) {

    /*-- 5. content --*/
    .team-listing .elementor-column.employee-item-col_content {
        padding: calc((var(--gap-unit-x)) * 2)
    }
}

@media (max-width: 1139px) {

    :root {
        --employee-portrait-height: 340px;
        --employee-portrait-height-offset: -100px;
    }

    /*-- layout + box styling --*/

    .team-listing .jet-listing-grid__items {
        grid-template-columns: repeat(1, 1fr);
        row-gap: calc(1rem + ((var(--employee-portrait-height-offset) * -1)));
        grid-template-rows: auto;
    }

    .team-listing .jet-listing-grid .jet-listing-grid__items {
        margin-top: calc((var(--employee-portrait-height-offset)) * -1);
    }

    /*.team-listing .jet-listing-grid__items .jet-listing-grid__item {
        padding: calc((var(--gap-unit-x)) * 2);
        padding-top: 0;
    }*/

    /*-- potrait --*/

    .employee-item-col_img.elementor-column {
        width: 100%;
    }

    .employee-item-col_img .elementor-widget-image img {
        height: var(--employee-portrait-height);
        object-fit: contain;
        margin-top: var(--employee-portrait-height-offset);
        border-bottom: 1px solid var(--primary-color);
        /* margin-bottom: calc((var(--gap-unit-x)) * 2); */
        width: 100%;
    }

    .employee-item-col_content .employee-item-desc p {
        margin-top: calc((var(--btn-gap)) / 1.25);
    }

    /*-- portrait hover effect -> disable on mobile devices --*/

    .employee-item-col_img.elementor-column .employee-item-img.secondary{
        display: none;
    }

    /*-- 6. footer --*/

    /* e-mail button */
    .team-listing .employee-item_footer .employee-item-btn a.elementor-button {
        width: 100%;
    }

    /* social list */
    .team-listing .employee-item_footer .employee-item_social-links {
        margin-top: var(--btn-gap);
    }

    .team-listing .employee-item_footer .employee-item_social-links svg {
        width: 24px;
        height: 24px;
    }
}

@media (min-width: 768px) {
    /*-- scoial links --*/
    .team-listing .employee-item_footer .employee-item_social-links .elementor-widget-wrap {
        justify-content: flex-end;
        align-content: center;
    }
}

@media (min-width: 1024px) and (max-width: 1139px) {

    /*-- layout + box styling --*/
    .team-listing .jet-listing-grid__items {
        grid-template-columns: repeat(1, 1fr);
        row-gap: calc(((var(--hero-sub-gap)) * 2));
        grid-template-rows: auto;
        margin-top: 0;
    }

    .team-listing .jet-listing-grid__items .jet-listing-grid__item {
        padding: var(--gap-unit-x);
        padding-bottom: 0;
    }

    .team-listing .jet-listing-grid__items .jet-listing-grid__item .employee-item-col_content {
        /* padding-bottom: var(--gap-unit-x); */
        align-items: center;
    }

    .employee-item-col_img .elementor-widget-image img {
        border: none;
        margin: 0;
        height: auto;
        width: 65%;
    }

    .employee-item-col_content .elementor-widget-wrap {
        padding: 60px 30px
    }
}

@media (min-width: 1140px) {

    :root {
        --employee-portrait-height: 360px;
        --employee-portrait-height-offset: -60px;
    }

    /*-- layout + box styling --*/
    .team-listing .jet-listing-grid__items {
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: calc((var(--employee-portrait-height)) - (var(--employee-portrait-height-offset) * -1));
        row-gap: calc((var(--gap-unit-x)) * 2);
        column-gap: calc((var(--gap-unit-x)) * 2);
    }

    .team-listing .jet-listing-grid__items .elementor-container{
        height: 300px;
    }

    /*-- item styling --*/

    .team-listing .elementor-column.employee-item-col_img {
        max-width: 245px;
    }

    /*-- hide and show content --*/

    .employee-item-name h3,
    .employee-item-position,
    .employee-item-desc,
    .employee-item_social-links,
    .employee-item-img img {
        transition: var(--hover-transistion);
    }

    .employee-item-name,
    .employee-item-position {
        opacity: 1;
    }

    .employee-item-desc {
        position: absolute;
        width: calc(100% - 60px) !important;
    }

    .employee-item-desc,
    .employee-item_social-links {
        opacity: 0;
    }

    .team-listing .jet-listing-grid__items .jet-listing-grid__item:hover .employee-item-desc,
    .team-listing .jet-listing-grid__items .jet-listing-grid__item:hover .employee-item_social-links {
        opacity: 1;
    }

    .team-listing .jet-listing-grid__items .jet-listing-grid__item:hover .employee-item-name h3,
    .team-listing .jet-listing-grid__items .jet-listing-grid__item:hover .employee-item-position {
        opacity: 0;
    }

    .team-listing .jet-listing-grid__items .jet-listing-grid__item:hover img {
        transform: translateX(10px);
    }

    /*-- 4. potrait --*/
    .employee-item-col_img .elementor-widget-image {
        position: absolute;
        bottom: 0;
        left: 5px;
    }

    .team-listing .jet-listing-grid__items .jet-listing-grid__item:nth-child(-n + 2) .employee-item-col_img .elementor-widget-image {
        bottom: 2px;
    }

    .employee-item-col_img .elementor-widget-image img {
        max-height: var(--employee-portrait-height);
        object-fit: contain;
        /* background-color: red; */
    }

    /*-- 4.5 portrait effect --*/

    .employee-item-col_img.elementor-column .employee-item-img.primary{
        opacity: 1;
    }

    .employee-item-col_img.elementor-column .employee-item-img.secondary{
        opacity: 0;
    }

    .team-listing .jet-listing-grid__items .jet-listing-grid__item:hover .employee-item-col_img.elementor-column .employee-item-img.secondary {
        opacity: 1;
    }

    .team-listing .jet-listing-grid__items .jet-listing-grid__item:hover .employee-item-col_img.elementor-column .employee-item-img.primary {
        opacity: 0;
    }


    /*-- 5. content --*/
    .employee-item-col_content .elementor-widget-wrap {
        flex-direction: column;
        padding: 30px
    }

    .employee-item-col_content .employee-item-name .elementor-heading-title {
        font-size: 30px;
        margin-bottom: 15px;
    }

    .employee-item-col_content .employee-item-position .elementor-heading-title,
    .employee-item-col_content .employee-item-position ul li {
        font-size: 18px;
        font-weight: var(--font-weight-thin);
    }

    .employee-item-col_content .employee-item-desc p {
        margin-top: 0;
    }

    /*-- 6. footer --*/

    /* e-mail button */
    .team-listing .employee-item_footer .employee-item-btn a.elementor-button {
        margin-top: 0;
    }

    /*-- icons --*/
    .team-listing .employee-item_footer .employee-item_social-links .elementor-widget-wrap {
        justify-content: flex-end;
        align-content: center;
    }
    
    .team-listing .employee-item_footer .employee-item_social-links svg {
        width: 20px;
        height: 20px;
    }
}
