/**
 * Staff directory -- Spokane Falls Staff Pages.
 *
 * Department-grouped cards with an anchor nav above them, styled to match the
 * Ultimate VC buttons and manual card layout they replace: 250x50 steel-blue
 * buttons in Playfair Display, 240x300 portraits, name in #47678c caps.
 *
 * Group headings inherit The7 typography -- no font-family is set for them.
 */

.sfrc-staff-nav {
	display: grid;
	grid-auto-flow: column;
	grid-auto-columns: minmax(0, 1fr);
	margin-bottom: 35px;
}

/* The originals are 250px buttons in fifth-width builder columns, so they shrink
   to fit -- 141px in an 825px content column. Equal columns plus a 250px cap
   reproduces that at any column count or content width. */
.sfrc-staff-nav__btn {
	box-sizing: border-box;
	width: calc(100% - 24px); /* the 12px gutters a builder column would add */
	max-width: 250px;
	min-height: 50px;
	margin: 0 auto;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 0 10px;
	background: #7f98a5;
	color: #fff;
	font-family: "Playfair Display", Georgia, "Times New Roman", serif;
	font-size: 15px;
	font-weight: 700;
	line-height: 1.2;
	text-align: center;
	text-decoration: none;
	transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.sfrc-staff-nav__btn:hover,
.sfrc-staff-nav__btn:focus {
	background: #47678c;
	color: #fff;
	text-decoration: none;
	transform: scale(1.05); /* "grow" animation from the original buttons */
}

.sfrc-staff-group {
	margin-bottom: 40px;
}

.sfrc-staff-group__rule {
	margin-bottom: 25px;
}

.sfrc-staff-group__heading {
	margin-bottom: 25px;
}

.sfrc-staff-grid {
	display: grid;
	grid-template-columns: repeat(var(--sfrc-columns, 3), minmax(0, 1fr));
	gap: 35px 30px;
	align-items: start;
}

.sfrc-staff-card {
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	text-decoration: none;
	color: inherit;
}

.sfrc-staff-card:hover,
.sfrc-staff-card:focus {
	text-decoration: none;
}

.sfrc-staff-card__photo {
	display: block;
	width: 240px;
	max-width: 100%;
	margin-bottom: 10px;
}

/* Two classes on purpose: The7's main.min.css carries
   img[class*="attachment-"] { height: auto } at the same specificity a single
   class would have, and loads later -- a one-class rule loses and portraits
   render uncropped, breaking card alignment. */
.sfrc-staff-grid .sfrc-staff-card__photo img {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 240 / 300;
	object-fit: cover;
	object-position: center top;
}

.sfrc-staff-card__name {
	display: block;
	color: #47678c;
	font-weight: 700;
	text-transform: uppercase;
	line-height: 1.3;
}

.sfrc-staff-card__title {
	display: block;
	margin-top: 4px;
	font-size: 13px;
	line-height: 1.4;
}

.sfrc-staff-card__more {
	display: block;
	margin-top: 8px;
	color: #7f98a5;
	font-size: 12px;
}

.sfrc-staff-card:hover .sfrc-staff-card__more,
.sfrc-staff-card:focus .sfrc-staff-card__more {
	color: #47678c;
	text-decoration: underline;
}

@media screen and (max-width: 991px) {

	.sfrc-staff-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.sfrc-staff-nav {
		grid-auto-flow: row;
		grid-template-columns: repeat(2, minmax(0, 1fr));
		row-gap: 10px;
	}
}

@media screen and (max-width: 600px) {

	.sfrc-staff-grid {
		grid-template-columns: 1fr;
	}

	.sfrc-staff-nav {
		grid-template-columns: 1fr;
	}
}
