/* Tags */
.gen-tags {
	display: flex;
	flex-wrap: wrap;
	column-gap: 1rem;
	row-gap: 1rem;
	margin-bottom: 4rem;
}

.gen-tags a {
	display: block;
	padding: .75rem 1.5rem;
	background: #f5f4f0;
	color: #535250;
	border: 1px solid #535250;
	font-weight: 600;
	font-family: 'Open Sans';
	font-size: 13px;
}

.gen-tags a:hover {
	cursor: pointer;
}

/* Related Content */
.td-more-articles-box {
	display: none !important;
}

.post-related-content {
	display: block;
/* 	grid-template-columns: repeat(2, 50%); */
	border-bottom: 1px solid #ededed;
}

.post-related-content .aoi,
.post-related-content .related-content {
/* 	border-right: 1px solid #ededed; */
	padding-right: 22px;
	margin-bottom: 25px;
}

.post-related-content .rm,
.post-related-content .related-media {
	padding-left: 3rem;
}

.post-related-content .aoi,
.post-related-content .rm {
	font-size: 2.7rem;
	font-weight: 500;
	font-family: 'Merriweather' !important;
	color: #00596a;
	padding-top: 27px;
	padding-bottom: 50px;
	margin-bottom: -1rem;
}

.post-related-content .rm {
	text-align: left;
}

.related-content .gen-related-article a.title, 
.related-media .gen-related-media a.title,
h4.none-found {
	color: #00596a;
}

.none-found {
	margin-top: 0;
	font-family: 'Open Sans';
	font-size: 1.5rem;
}

.gen-related-article,
.gen-related-media {
    margin-bottom: 15px;
    line-height: 24px;
    position: relative;
    padding-bottom: 15px;
	font-family: 'Montserrat';
    font-size: 1.5rem;
	font-weight: 400;
}

.gen-related-media {
	margin-right: 25px;
}

.gen-related-article:last-of-type ,
.gen-related-media:last-of-type {
	margin-bottom: 4rem;
}

.gen-related-media ul,
.gen-related-article ul {
	display: none;
}

/* This is due to the border not extending to the full width of the div in the design, this is my solution */
.gen-related-media:not(:last-child)::after,
.gen-related-article:not(:last-child)::after {
    content: '';
    position: absolute;
    margin: auto;
    bottom: 0;
    left: 0px;
    width: 100%;
    height: 1px;
    border-bottom: 1px dashed #d1d1d1;
}

@media only screen and (max-width: 800px) {
	
	.gen-related-media {
		margin-right: 0px;
	}

	.post-related-content {
		grid-template-columns: 1fr;
		display: grid;
		position: static;
		grid-template-rows: .2fr 1fr .2fr 1fr;
		width: 100%;
		align-items: center;
	}
	.post-related-content .aoi {
		grid-column: 1/3;
		grid-row: 1/2;
		padding: 25px 0;
		margin-bottom: 0;
		align-self: center;
	}
	.post-related-content .rm {
		grid-column: 1/3;
		grid-row: 3/4;
		padding: 25px 0;
		margin-bottom: 0;
		align-self: center;
	}
	.post-related-content .related-content {
		grid-column: 1/3;	
		grid-row: 2/2;
		padding: 0px;
		border-right: none;
		margin-bottom: 0;
		align-self: start;
	}
	.post-related-content .related-media {
		grid-column: 1/3;
		grid-row: 4/5;
		padding: 0px;
		align-self: start;
	}
	.gen-related-article:last-of-type, .gen-related-media:last-of-type {
		margin-bottom: 0;
	}
}