.brightmind-expand {
	--bm-collapsed: 1;
	--bm-expanded: 4;
	--bm-expand-duration: 500ms;
	--bm-expand-scale: 1.03;
	display: flex;
	width: 100%;
	height: 560px;
	overflow: hidden;
}

.brightmind-expand__item {
	position: relative;
	display: block;
	min-width: 0;
	flex: var(--bm-collapsed) 1 0;
	overflow: hidden;
	color: inherit;
	text-decoration: none;
	isolation: isolate;
	transition: flex-grow var(--bm-expand-duration) cubic-bezier(.2,.7,.2,1), border-radius var(--bm-expand-duration) ease;
}

.brightmind-expand:not(:hover):not(:focus-within) .brightmind-expand__item.is-default,
.brightmind-expand__item:hover,
.brightmind-expand__item:focus,
.brightmind-expand__item:focus-within {
	flex-grow: var(--bm-expanded);
}

.brightmind-expand__image {
	position: absolute;
	inset: 0;
	display: block;
	width: 100%;
	height: 100% !important;
	max-width: none;
	object-fit: cover;
	object-position: var(--bm-image-position, center center);
	transition: transform var(--bm-expand-duration) ease;
}

.brightmind-expand__item:hover .brightmind-expand__image,
.brightmind-expand__item:focus .brightmind-expand__image,
.brightmind-expand__item:focus-within .brightmind-expand__image,
.brightmind-expand:not(:hover):not(:focus-within) .brightmind-expand__item.is-default .brightmind-expand__image {
	transform: scale(var(--bm-expand-scale));
}

.brightmind-expand__overlay {
	position: absolute;
	inset: 0;
	z-index: 1;
	background: rgba(0,0,0,.34);
	transition: background-color var(--bm-expand-duration) ease;
}

.brightmind-expand:not(:hover):not(:focus-within) .brightmind-expand__item.is-default .brightmind-expand__overlay,
.brightmind-expand__item:hover .brightmind-expand__overlay,
.brightmind-expand__item:focus .brightmind-expand__overlay,
.brightmind-expand__item:focus-within .brightmind-expand__overlay {
	background: rgba(0,69,78,.82);
}

.brightmind-expand__content {
	position: absolute;
	inset: 0;
	z-index: 2;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 32px;
	text-align: center;
}

.brightmind-expand__content-inner {
	display: flex;
	flex-direction: column;
	align-items: center;
	width: max-content;
	max-width: 92%;
}

.brightmind-expand__badge {
	order: 2;
	display: inline-block;
	margin-bottom: 28px;
	padding: 10px 20px;
	border-radius: 10px;
	background: rgba(255,255,255,.55);
	color: #fff;
	font-weight: 700;
	white-space: nowrap;
}

.brightmind-expand__title {
	order: 1;
	margin: 0 0 26px;
	color: #fff;
	font-size: clamp(1.15rem, 1.8vw, 1.75rem);
	font-weight: 700;
	line-height: 1.2;
}

.brightmind-expand__description {
	order: 3;
	max-height: 0;
	overflow: hidden;
	opacity: 0;
	color: #fff;
	font-size: clamp(1rem, 1.4vw, 1.25rem);
	line-height: 1.45;
	transform: translateY(12px);
	transition: opacity calc(var(--bm-expand-duration) * .7) ease, transform var(--bm-expand-duration) ease, max-height var(--bm-expand-duration) ease;
}

.brightmind-expand:not(:hover):not(:focus-within) .brightmind-expand__item.is-default .brightmind-expand__badge,
.brightmind-expand__item:hover .brightmind-expand__badge,
.brightmind-expand__item:focus .brightmind-expand__badge,
.brightmind-expand__item:focus-within .brightmind-expand__badge {
	order: 1;
}

.brightmind-expand:not(:hover):not(:focus-within) .brightmind-expand__item.is-default .brightmind-expand__title,
.brightmind-expand__item:hover .brightmind-expand__title,
.brightmind-expand__item:focus .brightmind-expand__title,
.brightmind-expand__item:focus-within .brightmind-expand__title {
	order: 2;
}

.brightmind-expand:not(:hover):not(:focus-within) .brightmind-expand__item.is-default .brightmind-expand__description,
.brightmind-expand__item:hover .brightmind-expand__description,
.brightmind-expand__item:focus .brightmind-expand__description,
.brightmind-expand__item:focus-within .brightmind-expand__description {
	max-height: 18em;
	opacity: 1;
	transform: translateY(0);
}

.brightmind-expand__item:focus-visible {
	z-index: 3;
	outline: 3px solid #fff;
	outline-offset: -5px;
}

@media (max-width: 767px) {
	.brightmind-expand {
		flex-direction: column;
		height: 720px;
	}

	.brightmind-expand__item {
		width: 100%;
	}
}

@media (prefers-reduced-motion: reduce) {
	.brightmind-expand__item,
	.brightmind-expand__image,
	.brightmind-expand__overlay,
	.brightmind-expand__description {
		transition: none;
	}
}
