.penci-inline-related-posts {
	border: 1px solid $color__border;
	overflow: hidden;
	margin-top: 1em;
	margin-bottom: 1em;
	padding: 20px 20px 0;

	.penci_post-meta {
		@include font-size(1);
		margin-top: 7px;
	}

	ul {
		overflow: hidden;
	}

	.penci-irp-heading {
		margin-top: -7px;
		margin-bottom: 6px;
		font-weight: 600;
		color: #111111;
	}

	&.penci-irp-align-none {
		width: 100%;
	}

	&.penci-irp-align-left {
		width: 50%;
		float: left;
		margin: 5px 20px 20px 0;
	}

	&.penci-irp-align-right {
		width: 50%;
		float: right;
		margin: 5px 0 20px 20px;
	}

	.penci-posted-on + p {
		display: none;
	}

	&.penci-irp-type-grid {

		ul{
			margin-bottom: 0;
		}

		.penci-post-item {
			list-style: none;
			margin-left: 0;
			width: 100%;
			float: left;
			line-height: 1.3;
			margin-bottom: 0;
		}

		.penci-irp-heading {
			margin-bottom: 10px;

		}

		&.penci-irp-align-none:not( .penci-irp-one-item ) {
			.penci-post-item {
				width: 50%;
				float: left;
				padding-left: 10px;

				&:nth-child( 2n + 1 ) {
					padding-left: 0;
					padding-right: 10px;
					clear: both;
				}
			}
		}

		.penci__post-title-wrapper {
			margin-top: -2px;
		}

		.penci__post-title {
			line-height: 1.3;
			@include font-size( 1.3 );
			font-weight: 600;
			color: inherit;
			transition: all 0.3s;
			display: block;

			&:hover {
				color: $color__blue;
				text-decoration: none;
			}
		}

		.penci__post-title + .penci_post-meta {
			margin-top: 10px;
			@include font-size( 1.1 );
		}

		.penci_mobj__img {
			width: 90px;
		}

		.penci-image-holder {
			max-width: 90px;
			margin-right: 10px;
		}

		.penci_mobj-image-right {
			.penci-image-holder {
				margin-right: 0;
				margin-left: 10px;
			}
		}
	}
}

@media screen and ( max-width: 768px ) {
	.penci-inline-related-posts {

		&.penci-irp-align-left,
		&.penci-irp-align-right {
			width: 100%;
		}

		&.penci-irp-type-grid {
			padding-bottom: 20px;

			&.penci-irp-align-none:not(.penci-irp-one-item) .penci-post-item,
			&.penci-irp-align-none .penci-post-item {
				width: 100%;
				padding-right: 0;

				&:nth-child( 2n ) {
					padding-left: 0;
				}

				p{
					display: none !important;
				}
			}
			.penci-post-item {
				list-style: square;
				line-height: 1.7;
				margin-left: 21px;

			}


			.penci_post-meta {
				display: none;
			}

			.penci_media_object {
				margin-bottom: 0;
				display: inline-block;
			}


			.penci_mobj__img,
			.penci-image-holder {
				display: none !important;
			}
		}
	}
}

#content .wpb_text_column .penci_media_object:last-child,
.wpb_text_column .penci_media_object:last-child {
	margin-bottom: 20px;
}

@media screen and ( max-width: 480px ) {
	.penci-inline-related-posts.penci-irp-type-grid .penci_media_object {
		display: inherit;
	}
}