/**
 * Last Posts Block Component Styles
 *
 * Displays recent blog posts in a responsive grid layout
 * with section header and action button
 */

/* Component wrapper */
.ws-last-posts-block-wrap {

}

/* Header section */
.ws-last-posts-block-header {
}
.ws-last-posts-block-title-section .ws-block-title {
	max-width: 100%
}

/* Action button */
.ws-last-posts-block-button {
	flex-shrink: 0;
}

/* Posts grid */
.ws-last-posts-block-posts {
}

.ws-last-posts-block-post {
	margin-bottom: 2rem;
}

/* Post card */
.ws-last-posts-block-card {
	height: 100%;
	display: flex;
	flex-direction: column;
}

.ws-last-posts-block-image-container {
	position: relative;
	overflow: hidden;
	aspect-ratio: 1.48;
	margin-bottom: 1.5rem;
}

.ws-last-posts-block-image-container img {
	position: absolute;
	top:0; left: 0;
	width: 100%;
	height: 100%;
	display: block;
	object-fit: cover;
	object-position: center;
	transition: transform 0.5s ease;
}

.ws-last-posts-block-post:hover img {
	transform: scale(1.03);
}

/* Post content */
.ws-last-posts-block-content {
	flex: 1;
	display: flex;
	flex-direction: column;
}

.ws-last-posts-block-date {
	font-size: 0.875rem;
	line-height: 1.5;
	font-weight: 500;
	color: var(--text);
	margin-bottom: 0.5rem;
}

.ws-last-posts-block-post-title {
	color: var(--text);
	margin: 0 0 0.75rem!important;
	transition: color .3s
}

.ws-last-posts-block-post a:hover .ws-last-posts-block-post-title {
	color: var(--heading);
}

.ws-last-posts-block-excerpt {
	font-size: 1rem;
	color: var(--text);
	height: 3rem;
    overflow: hidden;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

/* Responsive adjustments */

@media (min-width: 768px) {
	.ws-last-posts-block-title-section {
		width: 70%;
	}
}
