/* Substack Sync — minimal styles. Override freely in your theme. */

.ssync-post img,
.ssync-post picture,
.ssync-post iframe,
.ssync-post video {
	max-width: 100%;
	height: auto;
}
.ssync-post iframe {
	aspect-ratio: 16 / 9;
	width: 100%;
}
.ssync-post figure {
	margin: 1.75em 0;
}
.ssync-post figcaption {
	font-size: 0.875em;
	opacity: 0.75;
	text-align: center;
	margin-top: 0.5em;
}
.ssync-post .captioned-image-container,
.ssync-post .image2-inset {
	position: relative;
}
.ssync-post blockquote {
	border-left: 3px solid currentColor;
	padding-left: 1em;
	margin-left: 0;
	opacity: 0.9;
}
.ssync-post .footnote,
.ssync-post .footnotes {
	font-size: 0.9em;
}
.ssync-post .button-wrapper {
	text-align: center;
}
.ssync-post .button-wrapper a.button {
	display: inline-block;
	padding: 0.7em 1.4em;
	border-radius: 999px;
	background: #ff6719; /* change to your brand color */
	color: #fff !important;
	font-weight: 600;
	text-decoration: none !important;
}

/* CTA box */
.ssync-cta {
	margin: 2.5em 0 1em;
	padding: 1.25em 1.5em;
	border: 1px solid rgba(127, 127, 127, 0.3);
	border-radius: 12px;
	text-align: center;
}
.ssync-cta__text {
	margin: 0 0 0.9em;
}
.ssync-cta__actions {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 0.6em;
	margin: 0;
}

.ssync-btn {
	display: inline-block;
	padding: 0.65em 1.3em;
	border-radius: 999px;
	background: #ff6719; /* Substack orange — change to your brand color */
	color: #fff !important;
	font-weight: 600;
	text-decoration: none !important;
	line-height: 1.2;
}
.ssync-btn:hover,
.ssync-btn:focus {
	filter: brightness(0.92);
}
.ssync-btn--ghost {
	background: transparent;
	color: inherit !important;
	border: 1px solid currentColor;
}

/* [substack_posts] grid */
.ssync-grid {
	display: grid;
	grid-template-columns: repeat(var(--ssync-cols, 3), minmax(0, 1fr));
	gap: 1.5em;
}
@media (max-width: 900px) {
	.ssync-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
	.ssync-grid { grid-template-columns: 1fr; }
}
.ssync-card__img img {
	display: block;
	width: 100%;
	aspect-ratio: 16 / 9;
	object-fit: cover;
	border-radius: 8px;
}
.ssync-card__date {
	display: block;
	color: #000000;
	font-size: 0.8em;
	opacity: 0.7;
	margin-top: 0.75em;
}
.ssync-card__title {
	margin: 0.25em 0 0.4em;
	color: #000000;
	font-size: 1.15em;
	line-height: 1.3;
}
.ssync-card__title a {
	text-decoration: none;
	color: inherit;
}
.ssync-card__excerpt {
	margin: 0;
	color: #000000;
	font-size: 0.95em;
	opacity: 0.85;
}
