/* [list_media]. Enqueued only when that shortcode is in the page content. */

.tp-about-media {
	display: grid;
	gap: 16px;
	margin: 0 0 1.5rem;
}

.tp-about-media__item {
	display: grid;
	grid-template-columns: 148px minmax(0, 1fr);
	gap: 18px;
	align-items: center;
	padding: 18px;
	background: #fff;
	border: 1px solid var( --tp-color-line );
	border-left: 4px solid var( --tp-color-primary );
	border-radius: 12px;
	transition: box-shadow 0.15s ease;
}

.tp-about-media__item:hover {
	box-shadow: 0 4px 16px rgba( var( --tp-color-primary-rgb ), 0.08 );
}

.tp-about-media__logo {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 72px;
	padding: 12px;
	background: var( --tp-color-surface );
	border-radius: 10px;
}

.tp-about-media__logo-img {
	display: block;
	width: auto;
	max-width: 100%;
	height: auto;
	max-height: 48px;
	object-fit: contain;
}

.tp-about-media__body:only-child {
	grid-column: 1 / -1;
}

.tp-about-media__title {
	margin: 0 0 4px;
	font-size: 20px;
	line-height: 1.3;
}

.tp-about-media__meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 4px 10px;
	margin: 0 0 8px;
	color: var( --tp-color-muted );
	font-size: 14px;
}

.tp-about-media__sep {
	width: 1px;
	height: 12px;
	background: var( --tp-color-primary );
}

.tp-about-media__description > :last-child {
	margin-bottom: 0;
}

.entry-content .tp-about-media__meta,
.entry-content .tp-about-media__description,
.entry-content .tp-about-media__description p {
	text-align: left;
}

@media (max-width: 640px) {
	.tp-about-media__item {
		grid-template-columns: 1fr;
	}
}
