.team-modal {
    width: min(95%, 1264px);
    position: relative;
    background: transparent;
    top: 0;
    padding: 0;
    display: none;
}

.team-modal-dialog {
    width: 100%;
    max-width: 1264px;
    margin: 0 auto;
    position: relative;
    background: #ffffff;
    overflow: hidden;
    border-radius: 10px;
    padding: 32px 22px 30px;
    box-shadow: 0 3px 20px rgb(0, 0, 0, 0.16);
    text-align: left;
    z-index: 1;
}

.team-modal-dismiss {
    color: #6c899e;
    font-size: 16px;
    display: inline-block;
    position: absolute;
    top: 16px;
    cursor: pointer;
    right: 16px;
    transition: all 0.4s ease-in-out;
}

.team-modal-dismiss:hover {
    color: #f6862a;
}

.fancybox-slide--html .team-modal .fancybox-close-small {
    padding: 5px;
    right: 21px;
    top: 14px;
    width: 30px;
    opacity: 1;
}

.team-modal__image {
    /* max-width: 341px; */
    width: 100%;
    height: 210px;
    box-shadow: 0 3px 20px rgba(0, 0, 0, 0.16);
    margin: 0 0 25px;
    border-radius: 20px;
}

@media (min-width: 600px) {
    .team-modal__image {
        height: 324px;
    }
}

.team-modal__image img {
    border-radius: 20px;
}

.team-modal__image-info {
    padding: 15px 0;
}

.team-modal__image-info__col {
    border: 1px solid #b5b5b5;
    border-radius: 20px;
    padding: 17px 15px;
    display: flex;
    gap: 15px;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
    text-decoration: none;
}

.info-icon {
    width: 30px;
}

.info-text {
    width: calc(100% - 30px);
    padding-left: 15px;
}

.info-text {
    display: block;
    padding: 0 0 2px;
    color: var(--font-color);
    font-weight: 400;
    font-size: 16px;
    line-height: 1.375em;
    text-transform: uppercase;
}

.info-text span {
    color: var(--font-color);
    display: block;
}

.info-text a {
    padding: 0 0;
    color: var(--header-font-color);
    font-weight: 400;
    font-size: 18px;
    line-height: 1.375em;
    text-decoration: none;
}

.info-text a i {
    font-size: 22px;
    display: inline-block;
    vertical-align: middle;
    padding: 0 0 3px 3px;
}

.team-info-bar {
    background: rgba(255, 247, 224, 0.54);
    border-radius: 10px;
    padding: 15px 25px;
    margin-top: 25px;
}

.team-info-bar__col {
    padding: 10px 0;
}

.team-info-bar__col span {
    display: block;
    padding: 0 0 5px;
    color: var(--sub-header-font-color);
    font-weight: 400;
    font-size: 16px;
    line-height: 1.375em;
    text-transform: uppercase;
}

.team-info-bar__col p {
    margin: 0;
    color: var(--font-color);
    font-size: 18px;
    line-height: 1.33em;
}

.team-modal__info-label {
    text-transform: none !important;
    font-weight: bold;
}

@media (min-width: 768px) {
    .team-modal {
        padding: 0;
    }

    .team-modal-dialog {
        border-radius: 20px;
        padding: 30px 30px 30px;
    }

    .team-modal__image-info {
        padding: 15px 0 25px;
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        justify-content: center;
        gap: 15px;
    }

    .team-modal__image-info__col {
        padding: 17px 23px;
        margin-bottom: 0;
    }

    .info-icon {
        width: 49px;
    }

    .info-text {
        width: calc(100% - 49px);
        padding-left: 0;
    }

    .fancybox-slide--html .team-modal .fancybox-close-small {
        padding: 0;
        right: 50px;
        top: 40px;
        opacity: 1;
    }
}

@media (min-width: 1200px) {
    .team-modal-dialog {
        padding: 64px 55px;
    }

    .team-modal-content {
        display: flex;
        flex-wrap: wrap;
        align-items: flex-start;
    }

    .team-modal__image-col {
        width: 341px;
    }

    .team-modal__infomation {
        width: calc(100% - 341px);
        padding-left: 32px;
    }

    .team-modal__image-info {
        padding: 0;
        display: block;
        gap: 0;
    }

    .team-modal__image-info__col {
        min-width: 340px;
        margin-top: 15px;
    }

    .team-modal__image {
        margin-bottom: 30px;
    }

    .team-modal__image-info__col:hover {
        border-color: transparent;
        box-shadow: 0 3px 20px rgba(0, 0, 0, 0.16);

        .team-modal__info-label {
            color: var(--primary-color);
        }
    }

    .team-modal__info-label {
        color: var(--primary-color);
    }

    .team-modal__image-info__col:hover .info-text a {
        color: var(--primary-color);
    }

    .team-modal__infomation h2 {
        font-size: 55px;
    }

    .team-info-heading {
        padding-bottom: 30px;
    }

    .team-modal-dialog::after {
        content: "";
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 182px;
        background: #ededed;
        z-index: -1;
    }

    .team-info-bar {
        border-radius: 20px;
        padding: 30px;
        display: flex;
        flex-wrap: nowrap;
        align-items: flex-start;
        gap: 20px 55px;
        margin-top: 40px;
    }

    .team-info-bar__col {
        padding: 0 0;
        max-width: 366px;
    }

    .team-info-bar__col:last-child {
        flex-shrink: 0;
    }

    .team-modal__infomation .sub-heading {
        margin-bottom: 0;
    }

    .fancybox-slide--html .team-modal .fancybox-close-small {
        right: 50%;
        top: 55px;
        margin-right: -550px;
        width: 31px;
    }

    .team-modal .fancybox-button svg:hover path {
        fill: var(--sub-header-font-color);
    }
}

@media (min-width: 1300px) {
    .fancybox-slide--html .team-modal .fancybox-close-small {
        margin-right: -594px;
    }
}
