/* EasyCrocht share buttons (inc/share-buttons.php): single posts only. */

.ec-share {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 17.5rem), 1fr));
	gap: 10px;
	margin: var(--global-md-spacing, 2rem) 0 0;
}
/* Kadence spaces the content from the image with .post-thumbnail + .single-content. */
.ec-share + .single-content { margin-top: var(--global-md-spacing, 2rem); }
/* Fallback position at the top of the content (no featured image shown). */
.single-content > .ec-share:first-child { margin-top: 0; }
.ec-share--1 { grid-template-columns: 1fr; }

.ec-share__btn {
	display: flex;
	align-items: center;
	gap: 12px;
	min-height: 45px;
	padding: 6px 16px;
	font-family: var(--ec-sans);
	font-size: 15px;
	font-weight: 700;
	line-height: 1.25;
	transition: filter .2s, box-shadow .2s;
}
.ec-share__btn,
.ec-share__btn:hover,
.ec-share__btn:focus-visible,
.single-content .ec-share__btn,
.single-content .ec-share__btn:hover {
	color: #fff !important;
	text-decoration: none !important;
}
.ec-share__btn--facebook { background-color: #3d5b99; }
.ec-share__btn--pinterest { background-color: #bd001c; }
.ec-share__btn:hover,
.ec-share__btn:focus-visible {
	filter: brightness(1.12);
	box-shadow: 0 2px 8px rgb(0 0 0 / 18%);
}
.ec-share__icon { flex: 0 0 22px; width: 22px; height: 22px; }

@media (prefers-reduced-motion: reduce) {
	.ec-share__btn { transition: none; }
}
