/**
 * Estilos do shortcode [posts_relacionados]
 * Layout: 3 por linha, imagem à esquerda, chapéu + título à direita
 */
.posts-relacionados-listing {
	width: 100%;
}

.posts-relacionados-grid {
	display: grid;
	grid-template-columns: 1fr;
	grid-auto-rows: 120px;
	gap: 1.5rem;
}

@media (min-width: 600px) {
	.posts-relacionados-grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (min-width: 900px) {
	.posts-relacionados-grid {
		grid-template-columns: repeat(3, 1fr);
	}
}

.posts-relacionados-item {
	position: relative;
	display: flex;
}

.posts-relacionados-link {
	display: flex;
	flex: 1;
	text-decoration: none;
	color: inherit;
	min-height: 0;
}

.posts-relacionados-link:hover {
	text-decoration: none;
	color: inherit;
}

.posts-relacionados-inner {
	display: flex;
	flex-direction: row;
	align-items: stretch;
	gap: 1rem;
	flex: 1;
	width: 100%;
	height: 120px;
	min-height: 120px;
	border-bottom: 1px solid #e0e0e0;
	overflow: hidden;
}

.posts-relacionados-imagem {
	margin: 0;
	flex-shrink: 0;
	width: 120px;
	height: 90px;
	min-width: 120px;
	min-height: 90px;
	align-self: center;
	background: #f0f0f0;
	overflow: hidden;
	position: relative;
}

.posts-relacionados-imagem img {
	position: absolute;
	top: 0;
	left: 0;
	width: 120px !important;
	height: 90px !important;
	min-width: 120px !important;
	min-height: 90px !important;
	object-fit: cover;
	object-position: top center;
	display: block;
}

.posts-relacionados-placeholder {
	display: block;
	width: 120px;
	height: 90px;
	min-height: 90px;
	background: #e8e8e8;
}

.posts-relacionados-texto {
	flex: 1;
	display: flex;
	flex-direction: column;
	justify-content: flex-start;
	align-self: stretch;
	padding: 0.75rem 0.75rem 0.75rem 0;
	min-width: 0;
}

.posts-relacionados-chapeu {
	display: block;
	color: #1f5894;
    padding-top: 0.25rem;
    padding-bottom: 0;
    font-size: 12px;
    font-weight: 600;
    text-align: left;
    text-transform: uppercase;
    font-family: "Droid Sans", sans-serif;
    display: block;
}

.posts-relacionados-titulo {
	margin: 0;
	color: #122f4d;
	font-size: 15px;
	line-height: 1em;
	font-weight: 600;
	margin-bottom: 4px;
	width: 95%;
}
