/* ==========================================================================
   Media List Component
   BEM Block: .media-list
   Description: A reusable list where each item pairs a visual element
                (icon, image, avatar) with a title and description.
   Usage: ACF WYSIWYG snippet — works in both TinyMCE editor and frontend.
   ========================================================================== */

.media-list {
	list-style: none;
	margin: 0;
	padding: 0;
}

.media-list__item {
	display: flex;
	align-items: flex-start;
	gap: 20px;
	padding: 20px 0;
}

.media-list__item:last-child {
	border-bottom: none;
}

/* --- Media (icon, image, avatar) --- */

.media-list__media {
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	width: 56px;
	height: 56px;
	overflow: hidden;
}

.media-list__media i {
	font-size: 20px;
	color: #333333;
	line-height: 1;
}

.media-list__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

/* --- Body (title + text) --- */

.media-list__body {
	display: flex;
	flex-direction: column;
	gap: 4px;
	padding-top: 4px;
}

.media-list__title {
	margin: 0 !important;
	padding: 0;
	font-size: 20px;
	font-weight: 500;
	line-height: 1.4;
	color: #000;
}

.media-list__text {
	margin: 0;
	font-size: 16px;
	line-height: 1.5;
	color: #000;
}

a.media-list__text {
	text-decoration: none;
	transition: color 0.2s ease;
}

a.media-list__text:hover,
a.media-list__text:focus {
	color: #111111;
	text-decoration: underline;
}
