/**
 * Editorial promo card (sidebar widget).
 */

/* Stick the promo within the sidebar while the article scrolls (clears the sticky header). */
.sidebar-promo {
	position: sticky;
	top: calc(var(--header-height, 95px) + 20px);
}

.sidebar-promo .widget + .widget {
	margin-top: 30px;
}

.promo-card {
	position: relative;
	overflow: hidden;
	border: 1px solid var(--color-pink);
	border-radius: var(--radius-md);
	background: #f3f3f3b2;
}

.promo-card__link {
	position: absolute;
	inset: 0;
	z-index: 2;
}

.promo-card__media {
	overflow: hidden;
}

.promo-card__image {
	display: block;
	width: 100%;
	height: auto;
	object-fit: cover;
	transition: transform 0.45s ease;
}

.promo-card:hover .promo-card__image,
.promo-card:focus-within .promo-card__image {
	transform: scale(1.05);
}

.promo-card__body {
	display: flex;
	flex-direction: column;
	padding: 15px 15px 25px;
}

.promo-card__label {
	margin-bottom: 12px;
	font-size: 12px;
	font-weight: var(--font-weight-regular);
	line-height: 1;
	color: var(--color-gray-text);
}

.promo-card__title {
	margin: 0 0 25px;
	font-family: var(--font-family-display);
	font-size: 16px;
	font-weight: var(--font-weight-medium);
	line-height: 1;
}

.promo-card__btn {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	min-height: 26px;
	padding: 4px 20px;
	border-radius: var(--radius-pill);
	background: var(--color-pink);
	color: var(--color-white);
	font-size: 15px;
	font-weight: var(--font-weight-medium);
	line-height: 1;
	text-transform: lowercase;
}

@media (prefers-reduced-motion: reduce) {
	.promo-card__image {
		transition: none;
	}
}
