/* Emirates Elements: EG Post Navigation. Colors, sizes and spacing are set by the widget's style controls. */

.ee-pn {
	box-sizing: border-box;
	display: flex;
	align-items: center;
	justify-content: space-between;
	width: 100%;
}

/* Each side takes at most half the row, so long titles are cut off instead of pushing the other side. */
.ee-pn__item,
.ee-pn__spacer {
	flex: 0 1 auto;
	min-width: 0;
}

.ee-pn__spacer {
	flex-basis: 50%;
}

.ee-pn__item {
	display: flex;
	align-items: center;
	max-width: 50%;
	text-decoration: none;
}

/* The next link mirrors the previous one: thumbnail on the right, text aligned right. */
.ee-pn__item--next {
	flex-direction: row-reverse;
	margin-left: auto;
	text-align: right;
}

.ee-pn__thumb {
	display: block;
	flex: 0 0 auto;
	overflow: hidden;
}

.ee-pn__thumb--placeholder {
	background: rgba(72, 21, 30, 0.15);
}

/* Doubled class beats the theme's generic "img { height: auto }". */
.ee-pn .ee-pn__thumb .ee-pn__img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.ee-pn__text {
	display: flex;
	flex: 1 1 auto;
	flex-direction: column;
	min-width: 0;
}

.ee-pn__label,
.ee-pn__title {
	display: block;
}

.ee-pn__title {
	overflow: hidden;
	display: -webkit-box;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 1;
	text-overflow: ellipsis;
	overflow-wrap: anywhere;
	transition: color 0.2s ease;
}

.ee-pn__item:focus-visible {
	outline: 2px solid currentColor;
	outline-offset: 4px;
}

.ee-pn__item--next .ee-pn__text {
	align-items: flex-end;
}
