.blog-bg {
	max-width: 100%!important;
	width: 100%!important;
}

.blog-posts {
    display:flex;
    flex-wrap: wrap;
    gap: 20px;
}

.blog-post {
    background: var(--base);
    box-shadow: var(--shadow);
    display: flex;
}

.blog-post img {
    object-fit: cover;
}

.blogs-vertical .blog-posts {
    flex-direction: column;
    align-items: center;
}

.blogs-vertical .blog-post {
    width: 100%;
    display: flex;
    gap: 20px;
    max-width: 900px;
	color: var(--contrast);
}

.blogs-vertical .blog-post img {
    width: 300px;
    height: 100%;
}

.blogs-vertical .blog-post-content {
    flex-grow: 1;
    text-align: center;
    width: 50%;
}


/* title */

.blog-post-content {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
	padding: 15px;
}

.wp-block-blogs .blog-title {
    font-size: var(--fs-xsm);
	color: var(--contrast);
    line-height: 1.3;
    font-weight: bold;
	margin-top: 0px;
    margin-bottom: 10px;
    text-transform: capitalize;
}

.blog-date {
    font-size: var(--wp--preset--font-size--small);
    text-align: center;
}

.blog-excerpt {
    font-size: 16px;
    margin-bottom: 20px;
    flex-grow: 1;
	color: var(--contrast);
}

.wp-block-blogs .wp-block-buttons {
	width: 100%;
}

.wp-block-blogs .wp-block-button__link {
	text-align: right;
	background-color: transparent !important;
	padding: 0 !important;
	color: var(--contrast);
	&:hover {
		transform: unset;
		box-shadow: unset;
	}	
}


/* horizontal */

.blogs-horizontal .blog-posts {
    justify-content: center;
}

.blogs-horizontal .blog-post {
    color: black;
    flex-direction: column;
    flex: 1 0 32%;
}

.blogs-horizontal .blog-post img {
    width: 100%;
    height: auto;
    aspect-ratio: 5 / 3;
    margin-bottom: 10px;
}

@media (max-width: 1150px) {
	.blogs-horizontal .blog-post {
		flex: 1 0 31%;
	}	
}

@media(max-width: 1024px) {
    .blogs-horizontal .blog-post, .blogs-vertical .blog-post {
        display: flex;
        flex-direction: column;
		flex: 1 0 100%;
    }

    .blogs-horizontal .blog-post img, .blogs-vertical .blog-post img {
        width: 100%;
        height: 300px;
        object-fit: cover;
    }

    .blogs-vertical .blog-post-content {
        width: 100%;
    }
}

@media (max-width: 782px) {
    .blogs-horizontal .blog-post img, .blogs-vertical .blog-post img {
        height: 200px;
    }	

	.wp-block-blogs .wp-block-button__link {
		text-align: center;
	}	
}