/* =========================================================
   Seifert Team – Frontend Styles
   ========================================================= */

/* Grid --------------------------------------------------- */
.seifert-team-grid {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 40px 30px;
	margin: 0 auto;
	padding: 20px 0 30px;
}

/* Single member card ------------------------------------- */
.seifert-team-member {
	flex: 0 0 260px;
	max-width: 260px;
	text-align: center;
}

/* Image wrapper – circle --------------------------------- */
.seifert-team-image-wrap {
	display: block;
	width: 200px;
	height: 200px;
	margin: 0 auto 20px;
	border-radius: 50%;
	overflow: hidden;   /* keeps zoom clipped inside the circle */
}

.seifert-team-image-wrap.has-popup {
	cursor: pointer;
}

.seifert-team-img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	/* Default: greyscale */
	filter: grayscale(100%);
	transform: scale(1);
	transition: filter 0.35s ease, transform 0.35s ease;
}

/* Hover: colour + 10 % zoom (clipped by circle) */
.seifert-team-image-wrap:hover .seifert-team-img {
	filter: grayscale(0%);
	transform: scale(1.1);
}

/* Name & text -------------------------------------------- */
.seifert-team-name {
	font-size: 16px;
	font-weight: 600;
	margin: 0 0 6px;
	color: #333;
	line-height: 1.3;
}

.seifert-team-text {
	font-size: 14px;
	line-height: 1.65;
	color: #555;
}

.seifert-team-text p {
	margin: 0 0 3px;
}

.seifert-team-text a {
	color: #c9a227;   /* gold – matching the brand colour in the screenshot */
	text-decoration: none;
}

.seifert-team-text a:hover {
	text-decoration: underline;
}

/* =========================================================
   Popup overlay
   ========================================================= */
.seifert-team-popup {
	position: fixed;
	top: 0;
	right: 0;
	bottom: 0;
	left: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	background: rgba(0, 0, 0, 0.70);
	z-index: 999999;
	/* Hidden state */
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
	transition: opacity 0.4s ease, visibility 0.4s ease;
}

.seifert-team-popup.is-visible {
	opacity: 1;
	visibility: visible;
	pointer-events: auto;
}

.seifert-team-popup-inner {
	width: 380px;
	height: 380px;
	border-radius: 50%;
	overflow: hidden;
	box-shadow: 0 8px 40px rgba(0, 0, 0, 0.5);
}

#seifert-team-popup-img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 900px) {
	.seifert-team-member {
		flex: 0 0 220px;
		max-width: 220px;
	}
	.seifert-team-image-wrap {
		width: 160px;
		height: 160px;
	}
}

@media (max-width: 600px) {
	.seifert-team-member {
		flex: 0 0 100%;
		max-width: 320px;
	}
	.seifert-team-popup-inner {
		width: 260px;
		height: 260px;
	}
}
