/**
 * Upcoming activities near the current member.
 */
.sms-nearby-events,
.sms-nearby-events * {
	box-sizing: border-box;
}

.sms-nearby-events {
	--sms-nearby-ink: #111827;
	--sms-nearby-muted: #929bad;
	--sms-nearby-line: #e7e9ee;
	width: 100%;
	max-width: 1180px;
	margin: 0 auto;
	padding: 26px 16px 34px;
	color: var(--sms-nearby-ink);
}

.sms-nearby-events__header {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 28px;
	margin-bottom: 26px;
}

.sms-nearby-events__header > div {
	min-width: 0;
}

.sms-nearby-events__header h2 {
	margin: 0;
	color: var(--sms-nearby-ink);
	font-size: clamp(34px, 4.3vw, 54px);
	font-weight: 900;
	line-height: 1.05;
	letter-spacing: -.045em;
}

.sms-nearby-events__header p {
	max-width: 850px;
	margin: 14px 0 0;
	color: #9aa3b3;
	font-weight: 430;
	font-size: clamp(16px, 1.75vw, 20px);
	line-height: 1.6;
}

.sms-nearby-events__all {
	color: #7439f2 !important;
	font-weight: 800;
	text-decoration: none !important;
	transition: color .18s ease, border-color .18s ease, background-color .18s ease;
}

.sms-nearby-events__all.is-top {
	flex: 0 0 auto;
	margin-top: 5px;
	font-size: clamp(18px, 2vw, 26px);
	white-space: nowrap;
}

.sms-nearby-events__all:hover,
.sms-nearby-events__all:focus-visible {
	color: #5620d4 !important;
	outline: none;
}

.sms-nearby-events__grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 24px;
}

.sms-nearby-event {
	min-width: 0;
	overflow: hidden;
	border: 1.5px solid var(--sms-nearby-line);
	border-radius: 24px;
	background: #fff;
	box-shadow: 0 1px 2px rgba(16, 24, 40, .04);
	transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}

.sms-nearby-event:hover {
	border-color: #d9d3f8;
	box-shadow: 0 12px 28px rgba(50, 35, 105, .1);
	transform: translateY(-3px);
}

.sms-nearby-event > a {
	display: block;
	height: 100%;
	color: var(--sms-nearby-ink) !important;
	text-decoration: none !important;
}

.sms-nearby-event > a:focus-visible {
	outline: 4px solid rgba(111, 44, 255, .18);
	outline-offset: -4px;
}

.sms-nearby-event__media {
	position: relative;
	display: block;
	overflow: hidden;
	width: 100%;
	aspect-ratio: 1.52 / 1;
	background: linear-gradient(135deg, #dff9f5, #e9e3ff);
}

.sms-nearby-event__media img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform .35s ease;
}

.sms-nearby-event:hover .sms-nearby-event__media img {
	transform: scale(1.035);
}

.sms-nearby-event__placeholder {
	display: grid;
	width: 100%;
	height: 100%;
	place-items: center;
	color: #7541f3;
	font-size: 48px;
}

.sms-nearby-event__category {
	position: absolute;
	bottom: 16px;
	left: 16px;
	display: inline-flex;
	align-items: center;
	max-width: calc(100% - 32px);
	min-height: 36px;
	padding: 7px 15px;
	overflow: hidden;
	border-radius: 999px;
	color: var(--sms-nearby-category-text, #fff);
	background: var(--sms-nearby-category, #10cbb5);
	font-size: 15px;
	font-weight: 800;
	line-height: 1;
	text-overflow: ellipsis;
	white-space: nowrap;
	box-shadow: 0 3px 9px rgba(16, 24, 40, .13);
}

.sms-nearby-event__body {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	min-height: 154px;
	padding: 24px 24px 25px;
}

.sms-nearby-event__meta {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	width: 100%;
	margin-bottom: 9px;
}

.sms-nearby-event__meta > strong {
	color: #08c8b1;
	font-size: 17px;
	font-weight: 900;
	line-height: 1;
	letter-spacing: .025em;
}

.sms-nearby-event__meta > small {
	flex: 0 0 auto;
	color: #7d8799;
	font-size: 13px;
	font-weight: 700;
}

.sms-nearby-event__title {
	display: -webkit-box;
	overflow: hidden;
	color: var(--sms-nearby-ink);
	font-size: clamp(21px, 2.1vw, 27px);
	font-weight: 850;
	line-height: 1.18;
	letter-spacing: -.03em;
	hyphens: auto;
	overflow-wrap: normal;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 3;
}

.sms-nearby-event__city {
	display: block;
	margin-top: auto;
	padding-top: 10px;
	color: var(--sms-nearby-muted);
	font-size: 14px;
	font-weight: 550;
}

.sms-nearby-events__all.is-bottom {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	min-height: 76px;
	margin-top: 32px;
	padding: 17px 24px;
	border: 4px solid #7439f2;
	border-radius: 24px;
	font-size: clamp(20px, 2.5vw, 28px);
	text-align: center;
}

.sms-nearby-events__all.is-bottom:hover,
.sms-nearby-events__all.is-bottom:focus-visible {
	background: #faf8ff;
	border-color: #5620d4;
}

.sms-nearby-events__empty {
	padding: 30px;
	border: 1.5px solid var(--sms-nearby-line);
	border-radius: 20px;
	color: #70798c;
	background: #fff;
	font-size: 17px;
	text-align: center;
}

@media (max-width: 1000px) {
	.sms-nearby-events__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 18px;
	}
}

@media (max-width: 620px) {
	.sms-nearby-events {
		padding: 20px 12px 28px;
	}

	.sms-nearby-events__header {
		gap: 14px;
		margin-bottom: 20px;
	}

	.sms-nearby-events__header h2 {
		font-size: 32px;
	}

	.sms-nearby-events__header p {
		margin-top: 10px;
		font-size: 17px;
		line-height: 1.55;
	}

	.sms-nearby-events__all.is-top {
		font-size: 17px;
	}

	.sms-nearby-events__grid {
		gap: 14px;
	}

	.sms-nearby-event {
		border-radius: 20px;
	}

	.sms-nearby-event__category {
		bottom: 10px;
		left: 10px;
		max-width: calc(100% - 20px);
		min-height: 29px;
		padding: 6px 11px;
		font-size: 12px;
	}

	.sms-nearby-event__body {
		min-height: 130px;
		padding: 16px 14px 17px;
	}

	.sms-nearby-event__meta {
		margin-bottom: 7px;
	}

	.sms-nearby-event__meta > strong {
		font-size: 14px;
	}

	.sms-nearby-event__meta > small {
		font-size: 11px;
	}

	.sms-nearby-event__title {
		font-size: 15.5px;
	}

	.sms-nearby-event__city {
		padding-top: 7px;
		font-size: 12px;
	}

	.sms-nearby-events__all.is-bottom {
		min-height: 62px;
		margin-top: 24px;
		border-width: 3px;
		border-radius: 20px;
		font-size: 19px;
	}
}

@media (max-width: 430px) {
	.sms-nearby-events__header {
		display: block;
	}

	.sms-nearby-events__all.is-top {
		display: none;
	}

	.sms-nearby-events__grid {
		grid-template-columns: 1fr;
	}

	.sms-nearby-event__media {
		aspect-ratio: 1.75 / 1;
	}
}

@media (prefers-reduced-motion: reduce) {
	.sms-nearby-event,
	.sms-nearby-event__media img {
		transition: none;
	}
}
