/* Team Members shortcode — Knight-inspired layout, Letizia brand colours */

.lp-team {
	--lp-navy: #122f4a;
	--lp-blue: #4d7192;
	--lp-sky: #b0cbe3;
	--lp-name-bar: rgba(77, 113, 146, 0.92);
	margin: 0 0 40px;
}

.lp-team__grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 12px;
}

.lp-team[data-columns="3"] .lp-team__grid {
	grid-template-columns: repeat(3, minmax(0, 1fr));
}

.lp-team[data-columns="4"] .lp-team__grid {
	grid-template-columns: repeat(4, minmax(0, 1fr));
}

.lp-team__card {
	margin: 0;
}

.lp-team__trigger {
	display: block;
	width: 100%;
	padding: 0;
	border: 0;
	background: transparent;
	cursor: pointer;
	position: relative;
	overflow: hidden;
	text-align: left;
	appearance: none;
	-webkit-appearance: none;
	height: 470px;
}

.lp-team__trigger:focus {
	outline: 2px solid var(--lp-sky);
	outline-offset: 3px;
}

.lp-team__photo {
	display: block;
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	padding-top: 0;
	background-color: var(--lp-navy);
	background-position: center center;
	background-size: cover;
	background-repeat: no-repeat;
	transition: transform 0.35s ease;
}

.lp-team__trigger:hover .lp-team__photo,
.lp-team__trigger:focus .lp-team__photo {
	transform: scale(1.03);
}

.lp-team__photo-placeholder {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 72px;
	font-weight: 200;
	color: var(--lp-sky);
}

.lp-team__name-bar {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 42px;
	background: var(--lp-name-bar);
	padding: 10px 18px;
	z-index: 2;
}

.lp-team__name {
	display: block;
	color: #fff;
	font-size: 28px;
	font-weight: 600;
	line-height: 1.15;
	text-align: right;
	font-family: 'Roboto', sans-serif;
}

.lp-team__role {
	position: absolute;
	right: 0;
	bottom: 12px;
	z-index: 2;
	background: var(--lp-navy);
	color: #fff;
	font-size: 14px;
	font-weight: 400;
	line-height: 1.3;
	padding: 6px 14px;
	max-width: 90%;
	text-align: right;
}

/* Modal */
.lp-team-modal .modal-dialog {
	max-width: 1180px;
	width: calc(100% - 32px);
	margin: 16px auto;
}

.lp-team-modal .modal-content {
	border: 0;
	border-radius: 0;
	overflow: hidden;
	max-height: calc(100vh - 32px);
}

.lp-team-modal__close {
	position: absolute;
	top: 8px;
	right: 14px;
	z-index: 5;
	opacity: 1;
	font-size: 40px;
	font-weight: 300;
	color: var(--lp-navy);
	text-shadow: none;
	line-height: 1;
}

.lp-team-modal__body {
	display: flex;
	flex-wrap: nowrap;
	align-items: stretch;
	max-height: calc(100vh - 32px);
}

.lp-team-modal__media {
	flex: 0 0 46%;
	max-width: 46%;
	background: var(--lp-navy);
}

.lp-team-modal__img,
.entry-content .lp-team-modal__img.size-full {
	display: block;
	width: 100%;
	max-width: none;
	height: 100%;
	margin: 0;
	border-radius: 0;
	object-fit: cover;
	object-position: center center;
	min-height: 620px;
}

.lp-team-modal__content {
	flex: 1 1 54%;
	max-width: 54%;
	padding: 48px 48px 40px;
	overflow-y: auto;
	max-height: calc(100vh - 32px);
	scrollbar-width: thin;
	scrollbar-color: #4d7192 #e7eef4;
}

.lp-team-modal__content::-webkit-scrollbar {
	width: 8px;
}

.lp-team-modal__content::-webkit-scrollbar-track {
	background: #e7eef4;
}

.lp-team-modal__content::-webkit-scrollbar-thumb {
	background: #4d7192;
	border-radius: 8px;
}

.lp-team-modal__content::-webkit-scrollbar-thumb:hover {
	background: #122f4a;
}

.lp-team-modal__title {
	margin: 0 0 8px;
	font-size: 40px;
	font-weight: 500;
	color: var(--lp-navy);
	line-height: 1.15;
}

.lp-team-modal__role {
	margin: 0 0 6px;
	font-size: 20px;
	font-weight: 500;
	color: var(--lp-blue);
	text-transform: uppercase;
	letter-spacing: 0.04em;
}

.lp-team-modal__quals {
	margin: 0 0 10px;
	font-size: 18px;
	color: #444;
}

.lp-team-modal__bio {
	font-size: 16px;
	font-weight: 400;
	line-height: 1.65;
	color: #4d7192;
}

.lp-team-modal__bio p {
	margin-bottom: 16px;
}

.lp-team-modal__bio p:last-child {
	margin-bottom: 0;
}

.lp-team-modal__linkedin {
	margin: 0 0 22px;
}

.lp-team-modal__linkedin a {
	display: inline-block;
	color: #0077b5;
	font-size: 32px;
	line-height: 1;
	text-decoration: none;
}

.lp-team-modal__linkedin a:hover {
	color: var(--lp-navy);
}

.lp-team-empty {
	padding: 20px;
	background: #f5f7fa;
	color: var(--lp-navy);
}

@media (max-width: 1199px) {
	.lp-team[data-columns="4"] .lp-team__grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

@media (max-width: 991px) {
	.lp-team__grid,
	.lp-team[data-columns="3"] .lp-team__grid,
	.lp-team[data-columns="4"] .lp-team__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.lp-team__trigger {
		height: auto;
		aspect-ratio: 3 / 4;
	}

	.lp-team__photo {
		background-position: center top;
	}

	.lp-team__name {
		font-size: 20px;
	}

	.lp-team__name-bar {
		bottom: 40px;
		padding: 8px 12px;
	}

	.lp-team-modal .modal-dialog {
		width: calc(100% - 24px);
		max-height: calc(100vh - 24px);
		height: calc(100vh - 24px);
		margin: 12px auto;
	}

	.lp-team-modal .modal-content {
		display: flex;
		flex-direction: column;
		max-height: 100%;
		height: 100%;
	}

	.lp-team-modal__body {
		flex-direction: column;
		flex-wrap: nowrap;
		flex: 1 1 auto;
		max-height: 100%;
		min-height: 0;
		overflow: hidden;
	}

	.lp-team-modal__media {
		flex: 0 0 auto;
		width: 100%;
		max-width: 100%;
	}

	.lp-team-modal__img,
	.entry-content .lp-team-modal__img.size-full {
		width: 100%;
		height: 42vh;
		min-height: 240px;
		max-height: 380px;
		object-fit: cover;
		object-position: center top;
	}

	.lp-team-modal__content {
		flex: 1 1 auto;
		width: 100%;
		max-width: 100%;
		min-height: 0;
		max-height: none;
		overflow-y: auto;
		padding: 28px 22px 32px;
	}

	.lp-team-modal__close {
		color: #fff;
		text-shadow: 0 1px 4px rgba(0, 0, 0, 0.45);
	}

	.lp-team-modal__title {
		font-size: 32px;
	}

	.lp-team-modal__bio {
		font-size: 18px;
	}
}

@media (max-width: 767px) {
	.lp-team__grid,
	.lp-team[data-columns="3"] .lp-team__grid,
	.lp-team[data-columns="4"] .lp-team__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.lp-team__name {
		font-size: 16px;
	}

	.lp-team__name-bar {
		bottom: 36px;
		padding: 6px 8px;
	}

	.lp-team__role {
		font-size: 12px;
		bottom: 8px;
		padding: 4px 8px;
	}
}

@media (min-width: 1200px){
	.lp-team__grid {
		gap: 20px;
	}
}