/* Site professors — photo grid with name caption overlay (legacy #pa-teachers / cz_image).
 *
 * Title + underline: assets/css/course-heading.css (macros/course-heading.twig)
 */

.postmba-site-professors {
	--postmba-site-professors-caption-bg: rgba(0, 0, 0, 0.5);

	margin: 0;
	padding: 100px 0;
	background: #fff;
}

.postmba-site-professors__inner {
	width: 1280px;
	max-width: 95%;
	margin-inline: auto;
}

.postmba-site-professors__placeholder {
	margin: 0;
	padding: 2rem 1.5rem;
	text-align: center;
	background: #f0f0f0;
	color: #555;
	border-radius: 3px;
	opacity: 0.65;
}

.postmba-site-professors__row {
	display: grid;
	grid-template-columns: repeat(5, minmax(0, 1fr));
	gap: 0;
	margin: 0;
	padding: 0;
	list-style: none;
	margin-top: 20px;

}

.postmba-site-professors__item {
	min-width: 0;
	padding: 0 15px;
	box-sizing: border-box;
}

.postmba-site-professors__card {
	display: block;
	width: 100%;
	color: inherit;
	text-decoration: none;
	transition: color 0.2s ease-in-out;
}

.postmba-site-professors__card:hover,
.postmba-site-professors__card:focus-visible {
	color: inherit;
	text-decoration: none;
}

.postmba-site-professors__card:focus-visible {
	outline: 2px solid #285bbb;
	outline-offset: 4px;
}

/* Legacy: #cz_* > div { position:relative; display:table; margin:0 auto } */
.postmba-site-professors__frame {
	position: relative;
	display: table;
	width: auto;
	max-width: 100%;
	margin: 0 auto;
}

/*
 * Legacy: .cz_image_in + cz_image_flip_h
 * (codevzplus.css — perspective flip; live teachers page uses cz_image_flip_h)
 */
.postmba-site-professors__media {
	position: relative;
	z-index: 1;
	display: block;
	overflow: visible;
	margin: 0 0 10px;
	border-radius: 3px;
	perspective: 2500px;
	transition: all 0.2s ease-in-out;
}

.postmba-site-professors__face {
	display: block;
	border-radius: inherit;
	backface-visibility: hidden;
	-webkit-backface-visibility: hidden;
	transition: all 0.7s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.postmba-site-professors__face--front {
	position: relative;
	z-index: 9;
	transform: rotateY(0deg);
}

.postmba-site-professors__face--back {
	position: absolute !important;
	top: 50%;
	left: 50%;
	z-index: 8;
	width: 100%;
	overflow: hidden;
	opacity: 1;
	transform: translate(-50%, -50%) rotateY(-180deg);
	transform-style: preserve-3d;
}

.postmba-site-professors__card:hover .postmba-site-professors__face--front,
.postmba-site-professors__card:focus-visible .postmba-site-professors__face--front,
.postmba-site-professors__card:focus-within .postmba-site-professors__face--front {
	z-index: 9;
	transform: rotateY(180deg);
}

.postmba-site-professors__card:hover .postmba-site-professors__face--back,
.postmba-site-professors__card:focus-visible .postmba-site-professors__face--back,
.postmba-site-professors__card:focus-within .postmba-site-professors__face--back {
	z-index: 10;
	transform: translate(-50%, -50%) rotateY(0deg);
}

.postmba-site-professors__photo {
	display: block;
	width: 100%;
	max-width: 100%;
	height: auto;
	border-radius: inherit;
	vertical-align: middle;
}

/*
 * Legacy core.rtl.css .cz_image_caption:
 * position absolute, bottom 5%, white, bold, rgba(0,0,0,.5), full width, radius 3px
 * + .mt10 margin-top: 10px; caption p padding-right: 7px
 */
.postmba-site-professors__caption {
	position: absolute !important;
	right: 0;
	bottom: 5%;
	left: 0;
	z-index: 9;
	width: 100%;
	margin-top: 10px;
	color: #fff;
	font-weight: 700;
	background: var(--postmba-site-professors-caption-bg);
	border-radius: 3px;
	box-sizing: border-box;
	transition: all 0.2s ease-in-out;
}

.postmba-site-professors__name {
	display: block;
	padding-right: 7px;
	line-height: 2;
}

/* Tablet/mobile: Codevz center_on_mobile + cz_mobile_text_center (max-width 768px). */
@media screen and (max-width: 768px) {
	.postmba-site-professors {
		padding: 50px 0;
	}

	/* Legacy #pa-teachers { flex-flow: column-reverse } per row of five. */
	.postmba-site-professors__row {
		display: flex;
		flex-flow: column-reverse;
	}

	.postmba-site-professors__item {
		width: 100%;
		padding: 0;
	}

	.postmba-site-professors__frame,
	.postmba-site-professors__photo {
		float: none;
		display: table !important;
		margin-right: auto !important;
		margin-left: auto !important;
	}

	.postmba-site-professors__card,
	.postmba-site-professors__caption,
	.postmba-site-professors__name {
		text-align: center !important;
		float: none !important;
	}

	/* Legacy @media max-width 767: .cz_image_caption { bottom: 4% } */
	.postmba-site-professors__caption {
		bottom: 4% !important;
	}
}

@media (prefers-reduced-motion: reduce) {
	.postmba-site-professors__card,
	.postmba-site-professors__media,
	.postmba-site-professors__face,
	.postmba-site-professors__caption {
		transition: none;
	}

	.postmba-site-professors__card:hover .postmba-site-professors__face--front,
	.postmba-site-professors__card:focus-visible .postmba-site-professors__face--front,
	.postmba-site-professors__card:focus-within .postmba-site-professors__face--front {
		transform: none;
	}

	.postmba-site-professors__face--back,
	.postmba-site-professors__card:hover .postmba-site-professors__face--back,
	.postmba-site-professors__card:focus-visible .postmba-site-professors__face--back,
	.postmba-site-professors__card:focus-within .postmba-site-professors__face--back {
		opacity: 0;
		transform: translate(-50%, -50%);
		pointer-events: none;
	}
}
