/* affairs-sections: category cards look like object cards (same rules as affairs/style.css) */

@media (min-width: 768px) {
	.our-team .our-team-item__img {
		width: 100%;
		height: auto;
		aspect-ratio: 1 / 1;
		-o-object-fit: cover;
		object-fit: cover;
	}
}

.our-team .our-team-item__img,
.our-team .our-team-item__top-info {
	border-radius: 5.5%;
}

@media (min-width: 768px) {
	.our-team__item:hover .our-team-item__top-info,
	.our-team__item:focus .our-team-item__top-info {
		-webkit-box-pack: safe center;
		-ms-flex-pack: safe center;
		justify-content: safe center;
		overflow: hidden auto;
	}
}

@media (max-width: 767px) {
	section.our-team {
		grid-gap: 48px;
		padding-bottom: 64px;
	}

	.our-team .our-team-item {
		display: flex;
		flex-direction: column;
	}

	.our-team .our-team-item__top {
		display: contents;
	}

	.our-team .our-team-item__img {
		display: block;
		width: 100%;
		height: auto;
		aspect-ratio: 1 / 1;
	}

	.our-team .our-team-item__name {
		order: 1;
		font-size: 1rem;
		font-weight: 500;
		margin: 16px 0 4px;
	}

	.our-team .our-team-item__info {
		order: 2;
	}

	.our-team .our-team-item__top-info {
		order: 3;
		margin: 12px 0 0;
	}

	.our-team .our-team-item__top-text {
		font-size: .875rem;
		display: -webkit-box;
		-webkit-line-clamp: 4;
		-webkit-box-orient: vertical;
		overflow: hidden;
	}

	.our-team .our-team-item__more {
		color: var(--color_black);
	}

	.our-team .our-team__item {
		pointer-events: auto;
	}
}

.our-team a.our-team__item {
	color: inherit;
	text-decoration: none;
	-webkit-transition: opacity .25s ease;
	transition: opacity .25s ease;
}

.our-team a.our-team__item:hover {
	opacity: .85;
}

/* categories: 4 per row, smaller centred pictures, centred text in the title font */
.our-team.our-team_sections .our-team-item {
	text-align: center;
}

.our-team.our-team_sections .our-team-item__top {
	display: inline-block;
	width: 100%;
	max-width: 240px;
	vertical-align: top;
	margin-bottom: 20px;
}

.our-team.our-team_sections .our-team-item__img {
	width: 100%;
}

.our-team.our-team_sections .our-team-item__name {
	font-family: var(--font_secondary);
	font-size: 1.25rem;
	font-weight: 600;
	line-height: 1.3;
	text-align: center;
	margin: 0 0 6px;
}

.our-team.our-team_sections .our-team-item__info {
	text-align: center;
}

@media (min-width: 768px) {
	.our-team.our-team_sections {
		grid-template-columns: repeat(2, 1fr);
		grid-gap: 32px;
	}
}

@media (min-width: 992px) {
	.our-team.our-team_sections {
		grid-template-columns: repeat(4, 1fr);
		grid-gap: 32px 24px;
	}
}

@media (max-width: 767px) {
	.our-team.our-team_sections .our-team-item {
		display: block;
	}

	.our-team.our-team_sections .our-team-item__top {
		display: inline-block;
		margin-bottom: 16px;
	}

	.our-team.our-team_sections .our-team-item__name {
		order: 0;
		font-size: 1.125rem;
		margin: 0 0 4px;
	}

	.our-team.our-team_sections .our-team-item__info {
		order: 0;
	}
}
