/* Keep archive and single Event pages on the same Foxiz content grid. */
.tribe-events .tribe-events-l-container,
body #tribe-events-pg-template {
	box-sizing: border-box;
	width: 100%;
	max-width: var(--rb-width, 1340px);
	margin-right: auto;
	margin-left: auto;
	padding-right: 20px;
	padding-left: 20px;
}

.tribe-events .tribe-events-l-container {
	min-height: 0;
	padding-top: 20px;
	padding-bottom: 10px;
}

.tribe-common--breakpoint-medium.tribe-events .tribe-events-l-container {
	min-height: 0;
	max-width: var(--rb-width, 1340px);
	padding: 20px 20px 10px;
}

body #tribe-events-pg-template {
	padding-top: 20px;
	padding-bottom: 10px;
}

.tribe-events .tribe-events-header__content-title .tec-a11y-title-hidden {
	position: static !important;
	width: auto !important;
	height: auto !important;
	margin: 0 0 clamp(1.5rem, 3vw, 2.5rem) !important;
	padding: 0 !important;
	overflow: visible !important;
	clip: auto !important;
	clip-path: none !important;
	white-space: normal !important;
	border: 0 !important;
	color: var(--h1-fcolor);
	font-family: var(--h1-family);
	font-size: var(--h1-fsize);
	font-weight: var(--h1-fweight);
	font-style: var(--h1-fstyle);
	line-height: var(--h1-fheight, 1.2);
	letter-spacing: var(--h1-fspace);
	text-transform: var(--h1-transform);
}

.single-tribe_events .tribe-events-single,
.single-tribe_events .tribe-events-single-event-description,
.single-tribe_events .tribe-events-event-meta {
	color: var(--body-fcolor);
	font-family: var(--body-family);
	font-size: var(--body-fsize);
	font-weight: var(--body-fweight);
	font-style: var(--body-fstyle);
	line-height: max(var(--body-fheight, 1.7), 1.4);
	letter-spacing: var(--body-fspace);
}

.single-tribe_events .tribe-events-single-event-title,
.single-tribe_events .tribe-events-content h1 {
	color: var(--h1-fcolor);
	font-family: var(--h1-family);
	font-size: var(--h1-fsize);
	font-weight: var(--h1-fweight);
	font-style: var(--h1-fstyle);
	line-height: var(--h1-fheight, 1.2);
	letter-spacing: var(--h1-fspace);
	text-transform: var(--h1-transform);
}

.single-tribe_events .tribe-events-single-section-title,
.single-tribe_events .tribe-events-content h2 {
	color: var(--h2-fcolor);
	font-family: var(--h2-family);
	font-size: var(--h2-fsize);
	font-weight: var(--h2-fweight);
	font-style: var(--h2-fstyle);
	line-height: var(--h2-fheight, 1.25);
	letter-spacing: var(--h2-fspace);
	text-transform: var(--h2-transform);
}

.single-tribe_events .tribe-events-content h3 {
	color: var(--h3-fcolor);
	font-family: var(--h3-family);
	font-size: var(--h3-fsize);
	font-weight: var(--h3-fweight);
	font-style: var(--h3-fstyle);
	line-height: var(--h3-fheight, 1.3);
	letter-spacing: var(--h3-fspace);
	text-transform: var(--h3-transform);
}

.single-tribe_events .tribe-events-content h4 {
	color: var(--h4-fcolor);
	font-family: var(--h4-family);
	font-size: var(--h4-fsize);
	font-weight: var(--h4-fweight);
	font-style: var(--h4-fstyle);
	line-height: var(--h4-fheight, 1.35);
	letter-spacing: var(--h4-fspace);
	text-transform: var(--h4-transform);
}

.single-tribe_events .tribe-events-content h5 {
	color: var(--h5-fcolor);
	font-family: var(--h5-family);
	font-size: var(--h5-fsize);
	font-weight: var(--h5-fweight);
	font-style: var(--h5-fstyle);
	line-height: var(--h5-fheight, 1.4);
	letter-spacing: var(--h5-fspace);
	text-transform: var(--h5-transform);
}

.vmml-event-related-posts {
	width: 100%;
	margin-block-start: clamp(2.5rem, 5vw, 4rem);
}

.single-tribe_events .tribe-events-single > .tribe_events > .vmml-event-related-posts {
	order: 3 !important;
}

.vmml-event-related-posts__title {
	margin: 0 0 1.25rem;
	color: var(--h2-fcolor);
	font-family: var(--h2-family);
	font-size: var(--h2-fsize);
	font-weight: var(--h2-fweight);
	font-style: var(--h2-fstyle);
	line-height: var(--h2-fheight, 1.25);
	letter-spacing: var(--h2-fspace);
	text-transform: var(--h2-transform);
}

.vmml-event-related-posts__grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 2px;
}

.vmml-event-related-posts__card {
	margin: 0;
	display: flex;
	min-width: 0;
	flex-direction: column;
	align-items: stretch;
	overflow: hidden;
	background: #dcebed;
	color: #1a1a1a;
}

.vmml-event-related-posts__image-link,
.vmml-event-related-posts__image {
	display: block;
	width: 100%;
	margin: 0;
	padding: 0;
}

.vmml-event-related-posts__image img {
	display: block;
	width: 100%;
	max-width: none;
	height: auto;
	margin: 0;
	padding: 0;
	aspect-ratio: 1 / 1;
	object-fit: cover;
}

.vmml-event-related-posts__content {
	display: flex;
	flex: 1;
	flex-direction: column;
	align-items: stretch;
	gap: 8px;
	box-sizing: border-box;
	width: 100%;
	padding: 16px;
	background: #dcebed;
}

.vmml-event-related-posts__categories {
	position: relative;
	z-index: 1;
	display: flex;
	flex-wrap: wrap;
	gap: 4px;
	margin: -40px 0 0;
	min-height: 24px;
	align-items: flex-end;
}

.vmml-event-related-posts__categories a {
	display: inline-block;
	padding: 0.3rem 0.5rem;
	background: #0f5f69;
	color: #fff;
	font-family: Montserrat, Arial, sans-serif;
	font-size: 0.68rem;
	font-weight: 700;
	line-height: 1.1;
	text-decoration: none;
	text-transform: uppercase;
	letter-spacing: 0.02em;
}

.vmml-event-related-posts__categories a:hover {
	background: #e17d5a;
	color: #1a1a1a;
}

.vmml-event-related-posts__post-title {
	margin: 0;
	font-family: var(--h3-family);
	font-size: var(--h3-fsize);
	font-weight: var(--h3-fweight);
	font-style: var(--h3-fstyle);
	line-height: var(--h3-fheight, 1.3);
	letter-spacing: var(--h3-fspace);
	text-transform: var(--h3-transform);
}

.vmml-event-related-posts__post-title a {
	color: inherit;
	text-decoration: none;
}

.vmml-event-related-posts__post-title a:hover {
	color: #0f5f69;
}

.vmml-event-related-posts__date {
	margin-top: auto;
	color: #666;
	font-family: Montserrat, Arial, sans-serif;
	font-size: 0.875rem;
	line-height: 1.4;
}

.vmml-event-related-posts a:focus-visible {
	outline: 3px solid #e17d5a;
	outline-offset: 2px;
}

@media (max-width: 1024px) {
	.vmml-event-related-posts__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 767px) {
	.vmml-event-related-posts__grid {
		grid-template-columns: minmax(0, 1fr);
	}

	.vmml-event-related-posts__card,
	.vmml-event-related-posts__image-link,
	.vmml-event-related-posts__image,
	.vmml-event-related-posts__image img {
		margin: 0;
		padding: 0;
	}
}
