@charset "UTF-8";
/* ==========================================================================
   team.css  |  Delta Balustrades  |  version 1.0.4
   "Meet the Team" feature stylesheet.

   Loaded by delta_enqueue_team_css() in functions.php ONLY on:
     - the "Meet the Team" trunk template  (page-team.php)
     - the branch pages                    (single team_member)
   Dependency: 'main-stylesheet' (dist/assets/css/app.css), so everything here
   is an override of the shared page rules.

   CONTENTS
     1.  Trunk - page wrapper overrides
     2.  Trunk - intro heading + passage
     3.  Trunk - grid section spacing
     4.  Trunk - grid
     5.  Trunk - card shell + link reset
     6.  Trunk - headshot (fixed portrait crop, no border)
     7.  Trunk - name + role
     8.  Trunk - hover overlay, excerpt, READ MORE   [hover-capable only]
     9.  Trunk - responsive column counts
     10. Branch - single team member
     11. Branch - "Back to Meet the Team" button
   ========================================================================== */


/* 1. Trunk - page wrapper overrides
   ------------------------------------------------------------------------
   The shared .aboutWrapper is a two-column flex row (text left, image right).
   The team page has no right-hand image column, so it runs full width. */

.page-template-page-team .aboutWrapper.teamWrapper {
	display: block;
	padding-bottom: 0;
}

.page-template-page-team .teamWrapper .leftGrey {
	width: 100%;
	max-width: none;
	float: none;
}


/* 2. Trunk - intro heading + passage
   ------------------------------------------------------------------------
   Matches the standard inner-page heading: Montserrat-Bold, uppercase,
   Delta grey #434345. */

.page-template-page-team .teamIntro h1 {
	color: #434345;
	text-transform: uppercase;
}

.page-template-page-team .teamIntro p {
	color: #434345;
}
/* The shared .mainContent is right-aligned inside the About-page left column
   (margin-left: auto, max-width 570px). The team intro has no image column
   beside it, so it is re-flowed to read from the left and to line up with the
   grid container below. */

.page-template-page-team .teamIntro {
	max-width: 1400px;
	margin: 0 auto;
	padding: 0 20px 30px;
}

.page-template-page-team .teamIntro h1,
.page-template-page-team .teamIntro p {
	max-width: 700px;
}



/* 3. Trunk - grid section spacing
   ------------------------------------------------------------------------
   Departments are no longer displayed - the page is one continuous grid - so
   the breathing room that used to sit above each department heading now sits
   once, on the grid section itself, under the grey intro band. */

.teamGridSection {
	padding: 25px 20px 40px;
}


/* 4. Trunk - grid
   ------------------------------------------------------------------------
   Gutters widen with the viewport (16 / 20 / 24px between cards) so profiles
   are not tightly packed; single column by default, column counts in section 9. */

.teamGrid {
	display: -webkit-flex;
	display: -ms-flexbox;
	display: flex;
	-webkit-flex-wrap: wrap;
	-ms-flex-wrap: wrap;
	flex-wrap: wrap;
	margin: 0 -8px;
	padding: 0;
	list-style: none;
}

.teamGrid > .teamGridItem {
	width: 100%;
	padding: 0 8px;
	margin-bottom: 22px;
	list-style: none;
}


/* 5. Trunk - card shell + link reset
   ------------------------------------------------------------------------
   The whole card is one <a>, so touch devices navigate on a single tap and
   never need the hover state. */

.teamCard {
	display: block;
	text-align: center;
	text-decoration: none;
	color: #434345;
}

.teamCard:hover,
.teamCard:focus {
	text-decoration: none;
	color: #434345;
}


/* 6. Trunk - headshot (fixed portrait crop, no border)
   ------------------------------------------------------------------------
   padding-top holds a 4:5 portrait box whatever the source image size, and
   object-fit crops to it, so mixed uploads stay uniform. */

.teamCardMedia {
	position: relative;
	overflow: hidden;
	padding-top: 125%;
	background-color: #e6e6e6;
}

.teamCardMedia img {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	display: block;
	-o-object-fit: cover;
	object-fit: cover;
	-o-object-position: center top;
	object-position: center top;
}

.teamCardMediaEmpty {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	display: block;
	background-color: #e6e6e6;
}


/* 7. Trunk - name + role
   ------------------------------------------------------------------------ */

.teamCardName {
	display: block;
	margin-top: 10px;
	color: #434345;
	font-family: Montserrat-Bold, sans-serif;
	font-weight: 700;
	font-size: 16px;
	line-height: 1.25;
}

.teamCardRole {
	display: block;
	margin-top: 3px;
	color: #434345;
	font-family: Montserrat-Light, sans-serif;
	font-size: 14px;
	line-height: 1.3;
}


/* 8. Trunk - hover overlay, excerpt, READ MORE
   ------------------------------------------------------------------------
   Wrapped in @media (hover: hover) so the overlay simply does not exist on
   touch devices - there the card is a plain tappable link. */

.teamCardOverlay {
	display: none;
}

@media (hover: hover) {

	.teamCardOverlay {
		position: absolute;
		top: 0;
		left: 0;
		right: 0;
		bottom: 0;
		display: -webkit-flex;
		display: -ms-flexbox;
		display: flex;
		-webkit-flex-direction: column;
		-ms-flex-direction: column;
		flex-direction: column;
		-webkit-align-items: center;
		-ms-flex-align: center;
		align-items: center;
		-webkit-justify-content: center;
		-ms-flex-pack: center;
		justify-content: center;
		padding: 15px;
		background-color: rgba(230, 230, 230, 0.88);
		opacity: 0;
		visibility: hidden;
		-webkit-transition: opacity 0.25s ease, visibility 0.25s ease;
		transition: opacity 0.25s ease, visibility 0.25s ease;
	}

	.teamCard:hover .teamCardOverlay,
	/* :focus-visible, not :focus (v1.0.4). A mouse click leaves the clicked card
	   focused; Back then restores the page from the back/forward cache with that
	   focus intact, so a plain :focus rule left the overlay stuck on. Keyboard
	   focus still shows the overlay; mouse-click focus no longer does. */
	.teamCard:focus-visible .teamCardOverlay {
		opacity: 1;
		visibility: visible;
	}

	.teamCardExcerpt {
		display: -webkit-box;
		-webkit-line-clamp: 6;
		-webkit-box-orient: vertical;
		overflow: hidden;
		text-overflow: ellipsis;
		margin: 0 0 15px;
		color: #434345;
		font-family: Montserrat-Light, sans-serif;
		font-size: 14px;
		line-height: 1.4;
	}

	.teamCardButton {
		display: inline-block;
		padding: 10px 18px;
		background-color: #5f6062;
		border-radius: 0;
		color: #FFF;
		font-family: Montserrat-Light, sans-serif;
		font-weight: 400;
		font-size: 12px;
		line-height: 1;
		letter-spacing: 1px;
		text-transform: uppercase;
		white-space: nowrap;
	}
}


/* 9. Trunk - responsive column counts
   ------------------------------------------------------------------------
   Site (Foundation) breakpoints: 40em / 48em / 64em.
     < 30em   1 column   (stacked)
     30em+    2 columns  (mobile 2-up)
     48em+    3 columns  (tablet)
     64em+    4 columns  (desktop - the trunk mock-up) */

@media screen and (min-width: 30em) {

	.teamGrid > .teamGridItem {
		width: 50%;
	}
}

@media print, screen and (min-width: 40em) {

	.page-template-page-team .teamIntro {
		padding: 0 30px 35px;
	}

	.teamGridSection {
		padding: 35px 30px 50px;
	}

	.teamGrid {
		margin: 0 -10px;
	}

	.teamGrid > .teamGridItem {
		width: 50%;
		padding: 0 10px;
		margin-bottom: 28px;
	}
}

@media print, screen and (min-width: 48em) {

	.teamGrid > .teamGridItem {
		width: 33.3333%;
	}
}

@media print, screen and (min-width: 64em) {

	.page-template-page-team .teamIntro {
		padding: 0 40px 45px;
	}

	.teamGridSection {
		max-width: 1400px;
		margin: 0 auto;
		padding: 45px 40px 90px;
	}

	.teamGrid {
		margin: 0 -12px;
	}

	.teamGrid > .teamGridItem {
		width: 25%;
		padding: 0 12px;
		margin-bottom: 34px;
	}
}


/* 10. Branch - single team member
   ------------------------------------------------------------------------
   Inherits the case-study single layout (.fullWidthTitle + .aboutWrapper >
   .leftGrey.leftProduct + .rightImage); only the extras are styled here. */

.single-team_member .fullWidthTitle .headers h1 {
	text-transform: uppercase;
}

.single-team_member .teamMemberRole {
	margin: 5px 0 0;
	color: #434345;
	font-family: Montserrat-Light, sans-serif;
	font-size: 18px;
	line-height: 1.3;
}

/* single-productsindiv leaves .rightImage as a full-height flex column of
   .imageWrapper images. A headshot at that size overpowers the biography, so
   on team_member singles only the column becomes a left-aligned, lightly
   padded holder and the photo is capped to a modest portrait, cropped 4:5 like
   the trunk cards. The photo is pulled up and left: its top edge sits level
   with the top of the grey biography panel and it hugs the text column instead
   of floating centred in white space. */

.single-team_member .rightImage {
	display: -webkit-flex;
	display: -ms-flexbox;
	display: flex;
	-webkit-justify-content: flex-start;
	-ms-flex-pack: start;
	justify-content: flex-start;
	-webkit-align-items: flex-start;
	-ms-flex-align: start;
	align-items: flex-start;
	padding: 30px 20px;
}

/* margin: 0 (not auto) - auto side margins would re-centre the photo inside
   the flex column and defeat justify-content. */
.single-team_member .rightImage .teamMemberPhoto {
	width: 100%;
	max-width: 260px;
	margin: 0;
	padding: 0;
}

.single-team_member .rightImage .teamMemberPhoto img {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 4 / 5;
	-o-object-fit: cover;
	object-fit: cover;
	-o-object-position: center top;
	object-position: center top;
}

@media print, screen and (min-width: 40em) {

	.single-team_member .rightImage {
		padding: 0 25px 40px 15px;
	}

	.single-team_member .rightImage .teamMemberPhoto {
		max-width: 340px;
	}
}

@media print, screen and (min-width: 64em) {

	.single-team_member .rightImage {
		padding: 0 40px 50px 20px;
	}

	.single-team_member .rightImage .teamMemberPhoto {
		max-width: 420px;
	}
}


/* 11. Branch - "Back to Meet the Team" button
   ------------------------------------------------------------------------
   Sits under the biography in single-team_member.php. Same flat-box treatment
   as the trunk READ MORE button, in Delta grey #434345 with white uppercase
   Montserrat-Light. Selector carries .mainContent a so it outranks the shared
   text-column link colours. */

.single-team_member .teamBackLink {
	margin: 30px 0 10px;
}

.single-team_member .mainContent a.teamBackButton {
	display: inline-block;
	padding: 12px 22px;
	background-color: #434345;
	border: 0;
	border-radius: 0;
	color: #FFF;
	font-family: Montserrat-Light, sans-serif;
	font-weight: 400;
	font-size: 13px;
	line-height: 1;
	letter-spacing: 1px;
	text-decoration: none;
	text-transform: uppercase;
	white-space: nowrap;
	-webkit-transition: background-color 0.2s ease;
	transition: background-color 0.2s ease;
}

.single-team_member .mainContent a.teamBackButton:hover,
.single-team_member .mainContent a.teamBackButton:focus {
	background-color: #5f6062;
	color: #FFF;
	text-decoration: none;
}
