.wp-block-themeisle-blocks-posts-grid {
	display: flex;
	flex-wrap: wrap;

	&.is-grid {

		&.posts-grid-columns-2 {
			.posts-grid-post-blog {
				flex: 0 0 50%;
				max-width: 50%;
			}
		}
	
		&.posts-grid-columns-3 {
			.posts-grid-post-blog {
				flex: 0 0 33%;
				max-width: 33%;
			}
		}
	
		&.posts-grid-columns-4 {
			.posts-grid-post-blog {
				flex: 0 0 25%;
				max-width: 25%;
			}
		}
	
		&.posts-grid-columns-5 {
			.posts-grid-post-blog {
				flex: 0 0 20%;
				max-width: 20%;
			}
		}
	}

	&.is-list {
		.posts-grid-post {
			display: flex;
	
			.posts-grid-post-image {
				flex-basis: 33.33%;
				padding: 20px;
			}
	
			.posts-grid-post-body {
				flex-basis: 66.66%;
				padding-top: 20px;
			}
		}
	}

	.posts-grid-post-blog {
		width: 100%;
		position: relative;
		margin-bottom: 30px;
		padding: 10px 20px;
		display: inline-block;
		border: 0;
		position: relative;
		word-wrap: break-word;
		background-color: #fff;
		background-clip: border-box;

		.posts-grid-post {
			margin-bottom: 10px;

			.posts-grid-post-image {
				position: relative;
	
				img {
					box-shadow: 0 10px 25px 0 rgba( 0, 0, 0, .2 );
					max-width: 100%;
					border-radius: 5px;
				}
			}

			.posts-grid-post-body {

				&.is-full {
					flex-basis: 100%;
				}
	
				.posts-grid-post-category {
					font-size: 12px;
					text-transform: capitalize;
					font-weight: 700;
					margin: 5px 0;
				}
		
				.posts-grid-post-title {
					font-size: 18px;
					margin: 10px 0;
					line-height: 1.25em;
		
					a {
						text-decoration: none;
						transition: all .15s ease 0s;
		
						&:hover {
							text-decoration: underline;
						}
					}
				}
		
				.posts-grid-post-meta {
					font-size: 14px;
					margin: 10px 0;
				}
		
				.posts-grid-post-description {
					font-size: 16px;
					margin: 10px 0;
				}}
		}
	}
}

@media ( min-width: 600px ) and ( max-width: 960px )  {
	.wp-block-themeisle-blocks-posts-grid {
		display: flex;
		flex-wrap: wrap;
	
		&.is-grid {
			.posts-grid-post-blog {
				min-width: 33%;
			}
		}
	}
}

@media ( max-width: 600px )  {
	.wp-block-themeisle-blocks-posts-grid {
		display: flex;
		flex-wrap: wrap;
	
		&.is-grid {
			.posts-grid-post-blog {
				min-width: 100%;
			}
		}
	
		&.is-list {
			.posts-grid-post {
				flex-direction: column;
				padding: 10px;

				.posts-grid-post-image {
					flex-basis: 100%;
					padding: 0;
				}
	
				.posts-grid-post-body {
					flex-basis: 100%;
					padding: 0;
				}
			}
		}
	}
}
