
/* Mentoring directory */

.wp-grid-builder .wpgb-card div.mentoring-avatar img {
	max-width: 155px;
	object-fit: cover;
	border-radius: 100%;
}

.wp-grid-builder .wpgb-card div.mentoring-name {
	margin-top: 5px;
    margin-bottom: 5px;
	font-size: 18px;
	font-weight: 700;
}

.wp-grid-builder .wpgb-card div.mentoring-job-title {
	margin-top: 5px;
    margin-bottom: 5px;
}

.wp-grid-builder .wpgb-card .mentoring-card {
    white-space: normal;
}

.wp-grid-builder .wpgb-card .mentoring-card-content {
    padding: 20px 20px 0;
}

.card-link {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
}

.card-link:hover {
    background: none !important;
}

.card-link:focus {
    outline: 2px solid #97be09 !important;
}

.modal {
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 99999;
    overflow-y: auto;
    position: fixed;
}

.modal-overlay {
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    position: fixed;
    background-color: rgb(0 0 0 / 0.5);
}

.modal-content {
    padding: 20px;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    display: flex;
    position: relative;
    font-size: 16px;
}

.modal-panel {
    padding: 25px 20px 15px;
    background-color: white;
    overflow-y: auto;
    max-height: 90vh;
    max-width: 76rem;
    width: 100%;
    position: relative;
}

@media (min-width: 768px) {
    .modal-panel {
        padding: 50px 40px 35px;
    }
}

.modal-panel-body > :first-child {
    margin-top: 0;
}

.modal-panel-body p,
.modal-panel-body div {
    line-height: 1.45;
}

.modal-panel-body h2 {
    color: #1A1A1A !important;
    margin-bottom: 0;
    padding-right: 50px;
    font-size: 24px;
    line-height: 1.2;
}

.directory-job-title-and-organisation {
    font-weight: 500;
    margin-bottom: 15px;
    line-height: 1.2 !important;
}

.directory-profile-body {
    margin-bottom: 15px;
}

.modal-panel-body hr {
    margin: 25px 0 !important;
    background-color: rgba(0,0,0,.1) !important;
}

.modal-close {
    padding-top: 15px;
    padding-right: 15px;
    top: 0;
    right: 0;
    position: absolute;
}

.modal-close button {
    width: 55px;
    height: 55px;
    background-color: #fff;
    background-image: url("../img/close.svg");
    background-repeat: no-repeat;
    background-size: 28px;
    background-position: center;
    border-width: 0;
    padding: 0;
    border-radius: 50%;
    outline: 1px solid #ddd;
    cursor: pointer;
    line-height: 0;
    transition: background-color var(--duration) linear !important;
}

.modal-close button:hover,
.modal-close button:focus,
.modal-close button:focus-visible {
    outline: 1px solid #555;
    background-color: #fff;
}

[x-cloak] {
    display: none !important;
}