.skipstone-posts-wrapper {
	display: block;
	width: 100%;
	margin: 0 auto;
}

.skipstone-posts-header {
	background: #0D253F;
	padding: 6rem 2rem 2rem;
	text-align: center;
	position: relative;
}

.skipstone-posts-header__shape {
	position: absolute;
	bottom: -10px;
	left: 0;
	right: 0;
	height: 30px;
	width: 100%;
	z-index: 1;
}

.skipstone-posts-header__shape svg {
	position: absolute;
	bottom: 0;
	left: 0;
	width: 100%;
	height: 30px;
	display: block;
}

.skipstone-posts-header__shape .elementor-shape-fill {
	fill: #ffffff;
}

.skipstone-posts-header__title {
	font-family: "Times New Roman", Sans-serif;
	font-size: 55px;
	font-weight: 700;
	letter-spacing: 2.6px;
	text-shadow: -3px 0px 0px rgba(255, 255, 255, 0.9);
	color: #F0F0F0;
	margin: 0;
	position: relative;
	z-index: 1;
}

@media (max-width: 768px) {
	.skipstone-posts-header {
		padding: 4rem 1rem 1rem;
	}
	
	.skipstone-posts-header__title {
		font-size: 35px;
		letter-spacing: 1.8px;
	}
	
	.skipstone-posts-header__shape {
		height: 20px;
		bottom: -5px;
	}
	
	.skipstone-posts-header__shape svg {
		height: 20px;
	}
}

.skipstone-posts {
	display: block;
	max-width: 920px;
	margin: 0 auto;
	padding: 2rem 1rem 0;
}

.skipstone-posts__list {
	display: grid;
	grid-template-columns: 1fr;
	gap: 2rem;
}

.skipstone-post {
	border: 1px solid #e5e7eb;
	border-radius: 0.75rem;
	padding: 1.25rem;
	background: #fff;
	box-shadow: 0 1px 2px rgba(0,0,0,0.04), 0 4px 12px rgba(0,0,0,0.04);
}

.skipstone-post__thumb {
	display: block;
	margin-bottom: 1rem;
	text-decoration: none;
}

.skipstone-post__thumb img {
	display: block;
	width: 100%;
	height: auto;
	border-radius: 0.5rem;
	transition: opacity 0.2s ease;
}

/* Hover effect for linked images */
.skipstone-post__thumb:hover img {
	opacity: 0.9;
}

.skipstone-post__excerpt {
	font-size: 1rem;
	line-height: 1.625rem;
	color: #374151;
}

.skipstone-post__excerpt-title {
	font-size: 1.5rem;
	line-height: 1.4;
	font-weight: 600;
	color: #111827;
	margin: 0 0 1rem 0;
	font-family: "Times New Roman", serif;
}

.skipstone-post__meta-content {
	font-size: 1rem;
	line-height: 1.625rem;
	color: #374151;
}

.skipstone-post__meta-content p {
	margin: 0 0 1rem 0;
}

.skipstone-post__meta-content p:last-child {
	margin-bottom: 0;
}

.skipstone-post__content {
	font-size: 1rem;
	line-height: 1.625rem;
	color: #374151;
}

/* Style content elements within post content */
.skipstone-post__content p {
	margin: 0 0 1rem 0;
}

.skipstone-post__content p:last-child {
	margin-bottom: 0;
}

.skipstone-post__content h1,
.skipstone-post__content h2,
.skipstone-post__content h3,
.skipstone-post__content h4,
.skipstone-post__content h5,
.skipstone-post__content h6 {
	margin: 1.5rem 0 0.75rem 0;
	color: #111827;
}

.skipstone-post__content h1:first-child,
.skipstone-post__content h2:first-child,
.skipstone-post__content h3:first-child,
.skipstone-post__content h4:first-child,
.skipstone-post__content h5:first-child,
.skipstone-post__content h6:first-child {
	margin-top: 0;
}

.skipstone-post__content ul,
.skipstone-post__content ol {
	margin: 1rem 0;
	padding-left: 1.5rem;
}

.skipstone-post__content li {
	margin-bottom: 0.25rem;
}

.skipstone-post__content blockquote {
	margin: 1.5rem 0;
	padding: 1rem 1.5rem;
	border-left: 4px solid #d1d5db;
	background-color: #f9fafb;
	font-style: italic;
}

.skipstone-post__content img {
	max-width: 100%;
	height: auto;
	border-radius: 0.5rem;
	margin: 1rem 0;
}

.skipstone-post__content a {
	color: #2563eb;
	text-decoration: underline;
}

.skipstone-post__content a:hover {
	color: #1d4ed8;
}

/* Different styling for image-only posts */
.skipstone-post--image-only .skipstone-post__excerpt {
	font-style: italic;
	color: #6b7280;
}

.skipstone-post--image-only .skipstone-post__meta-content {
	font-style: italic;
	color: #6b7280;
}

/* Adjust spacing for posts without titles */
.skipstone-post--image-only .skipstone-post__thumb {
	margin-bottom: 0.75rem;
}

.skipstone-posts__scroll-trigger {
	height: 1px;
	width: 100%;
	margin-top: 2rem;
}

.skipstone-posts__loading {
	display: flex;
	align-items: center;
	justify-content: center;
	margin-top: 1rem;
	padding: 1rem;
	color: #6b7280;
	font-style: italic;
	text-align: center;
}

.skipstone-posts__loading::before {
	content: '';
	display: inline-block;
	width: 16px;
	height: 16px;
	margin-right: 0.5rem;
	border: 2px solid #d1d5db;
	border-top: 2px solid #6b7280;
	border-radius: 50%;
	animation: spin 1s linear infinite;
}

@keyframes spin {
	0% { transform: rotate(0deg); }
	100% { transform: rotate(360deg); }
}

.skipstone-posts__noscript {
	margin-top: 2rem;
	text-align: center;
}

.skipstone-posts__noscript a {
	display: inline-block;
	margin: 0 0.5rem;
	padding: 0.5rem 1rem;
	border: 1px solid #d1d5db;
	border-radius: 0.375rem;
	background-color: #f9fafb;
	color: #374151;
	text-decoration: none;
	transition: background-color 0.2s ease;
}

.skipstone-posts__noscript a:hover {
	background-color: #f3f4f6;
}
