/* Paces Cards — frontend grid, card, and popup styles.
   Brand tokens redeclared locally so the plugin doesn't depend on the
   active theme's CSS variables existing. */
.paces-cards {
	--paces-pink: #e92593;
	--paces-blue: #5b62a4;
	--paces-text: #4a4a4a;
	--paces-font: "Lexend", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	--paces-maxw: 1600px;

	max-width: var(--paces-maxw);
	margin: 0 auto;
	padding: 0 20px;
	box-sizing: border-box;
	font-family: var(--paces-font);
}

.paces-cards *,
.paces-cards *::before,
.paces-cards *::after {
	box-sizing: border-box;
}

.paces-cards__heading {
	color: var(--paces-pink);
	font-family: var(--paces-font);
	margin: 0 0 24px;
}

.paces-cards__grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 32px 24px;
}

@media (max-width: 900px) {
	.paces-cards__grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (max-width: 600px) {
	.paces-cards__grid {
		grid-template-columns: 1fr;
	}
}

.paces-cards__item {
	background: #fff;
	border-radius: 8px;
	box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
	overflow: hidden;
}

.paces-cards__photo {
	aspect-ratio: 1 / 1;
	background: #fde9f4;
}

.paces-cards__photo img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.paces-cards__body {
	padding: 20px 20px 24px;
}

.paces-cards__name {
	color: var(--paces-pink);
	font-family: var(--paces-font);
	font-weight: 700;
	font-size: 1.15rem;
	margin: 0 0 4px;
}

.paces-cards__subtitle {
	color: var(--paces-pink);
	font-family: var(--paces-font);
	font-weight: 400;
	font-size: 0.9rem;
	margin: 0 0 16px;
}

.paces-cards__button {
	display: block;
	width: 100%;
	padding: 10px 16px;
	background: #fff;
	border: 2px solid var(--paces-pink);
	border-radius: 6px;
	color: var(--paces-pink);
	font-family: var(--paces-font);
	font-weight: 600;
	font-size: 1rem;
	text-align: center;
	text-decoration: none;
	cursor: pointer;
	transition: background-color 0.15s ease, color 0.15s ease;
	box-sizing: border-box;
}

.paces-cards__button:hover,
.paces-cards__button:focus-visible {
	background: var(--paces-pink);
	color: #fff;
}

/* ---------------------------------------------------------
   Popup / modal
   The modal is printed in wp_footer as a sibling of .paces-cards
   (not a descendant), so its own copy of the brand tokens is
   redeclared here rather than relying on inheritance from .paces-cards.
   --------------------------------------------------------- */
.paces-cards-modal-overlay {
	--paces-pink: #e92593;
	--paces-blue: #5b62a4;
	--paces-text: #4a4a4a;
	--paces-font: "Lexend", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

	position: fixed;
	inset: 0;
	z-index: 100000;
	display: flex;
	align-items: center;
	justify-content: center;
	background: rgba(233, 37, 147, 0.35);
	-webkit-backdrop-filter: blur(6px);
	backdrop-filter: blur(6px);
	padding: 20px;
	opacity: 0;
	transition: opacity 0.2s ease;
}

.paces-cards-modal-overlay.is-visible {
	opacity: 1;
}

.paces-cards-modal-overlay[hidden] {
	display: none;
}

.paces-cards-modal {
	position: relative;
	display: flex;
	gap: 32px;
	width: 100%;
	max-width: 900px;
	max-height: 90vh;
	overflow-y: auto;
	padding: 32px;
	background: #fff;
	border-radius: 8px;
	font-family: var(--paces-font);
	transform: translateY(16px) scale(0.98);
	transition: transform 0.2s ease;
}

.paces-cards-modal-overlay.is-visible .paces-cards-modal {
	transform: translateY(0) scale(1);
}

@media (prefers-reduced-motion: reduce) {
	.paces-cards-modal-overlay,
	.paces-cards-modal {
		transition: none;
	}
}

@media (max-width: 700px) {
	.paces-cards-modal {
		flex-direction: column;
		padding: 24px;
	}
}

.paces-cards-modal__close,
.paces-cards-modal__close:hover,
.paces-cards-modal__close:focus,
.paces-cards-modal__close:active {
	position: absolute;
	top: 16px;
	right: 16px;
	width: 40px;
	height: 40px;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 0;
	background: transparent !important;
	color: var(--paces-pink) !important;
	box-shadow: none !important;
	-webkit-appearance: none;
	appearance: none;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
}

.paces-cards-modal__close svg {
	width: 24px;
	height: 24px;
}

.paces-cards-modal__media {
	flex: 0 0 220px;
}

.paces-cards-modal__photo {
	width: 220px;
	max-width: 100%;
	aspect-ratio: 1 / 1;
	border: 1px solid var(--paces-pink);
	border-radius: 8px;
	overflow: hidden;
	background: #fde9f4;
}

.paces-cards-modal__photo img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.paces-cards-modal__name {
	color: var(--paces-pink);
	font-weight: 700;
	font-size: 1.4rem;
	margin: 16px 0 4px;
}

.paces-cards-modal__subtitle {
	color: var(--paces-blue);
	font-weight: 500;
	font-size: 1rem;
	margin: 0 0 12px;
}

.paces-cards-modal__email {
	color: var(--paces-text);
	font-size: 0.95rem;
	margin: 0;
}

.paces-cards-modal__email a {
	color: var(--paces-blue);
	text-decoration: underline;
}

.paces-cards-modal__email[hidden] {
	display: none;
}

.paces-cards-modal__description {
	flex: 1 1 auto;
	color: var(--paces-text);
	line-height: 1.6;
}

.paces-cards-modal__description p:first-child {
	margin-top: 0;
}

body.paces-cards-modal-open {
	overflow: hidden;
}
