/*=========================
	SINGLE EVENT
=========================*/

main.single-events {
	padding: 0 0 var(--space-9);
}
main.single-events > .container {
	max-width: 1250px;
}

.single-events__breadcrumb {
	margin-bottom: var(--space-6);
}

/* --- Layout: main + sidebar --- */
.single-events__layout {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 370px;
	gap: var(--space-5);
	align-items: start;
}

/* --- Main column --- */
.single-events__main {
	border-right: 1px solid #f1f1f3;
	padding-right: var(--space-3);
}
.single-events__eyebrow {
	display: block;
	margin-bottom: var(--space-2);
	font-size: 22px !important;
	font-weight: 600 !important;
}
.single-events__title {
	margin: 0 0 var(--space-5);
}

/* Mobile-only "More events" shortcut */
.single-events__more-btn-mobile {
	display: none;
	margin-bottom: var(--space-4);
}

/* --- Event info box --- */
.single-events__info {
	background: #f1f1f3;
	padding: 40px 32px;
	margin: 0 0 var(--space-5);
}
.single-events__info-cols {
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
	gap: 24px;
	flex-wrap: wrap;
}
.single-events__info-cta {
	flex: 0 0 auto;
}
.single-events__info-cta .c-btn {
	font-size: 20px;
	padding: 14px 32px;
}
.single-events__dl {
	margin: 0;
	flex: 1 1 0;
	min-width: 260px;
	display: grid;
	grid-template-columns: 140px 1fr;
	row-gap: 16px;
	align-items: start;
	font-size: 20px;
}
.single-events__dl dt {
	font-weight: 600;
	font-size: 20px;
	margin: 0;
}
.single-events__dl dd {
	margin: 0;
	font-weight: 500;
	line-height: 1.75;
}
.single-events__dl dt:not(:first-child),
.single-events__dl dt:not(:first-child) + dd {
	border-top: 1px solid #e2dedd;
	padding-top: 16px;
}
.single-events__map-link {
	color: var(--color-n-black, #282829);
	font-weight: 600;
	text-decoration: underline;
	text-underline-offset: 3px;
}
.single-events__map-link:hover {
	text-decoration: none;
}

.single-events__about-title {
	margin: 0 0 var(--space-4);
}

.single-events__image {
	margin: 0 0 var(--space-5);
	padding-right: var(--space-8);
}
.single-events__image img {
	width: 100%;
	height: auto;
	display: block;
}

.single-events__content {
	color: var(--color-n-black);
	padding-right: var(--space-8);
}
.single-events__content p {
	margin: 0 0 var(--space-4);
}
.single-events__content img {
	max-width: 100%;
	height: auto;
}
.single-events__content a {
	color: var(--color-n-black, #282829);
	text-decoration: underline;
	text-underline-offset: 3px;
}
.single-events__content a:hover {
	background: rgba(255,110,51,.25);
	box-shadow: 0 0 0 3px rgba(255,110,51,.25);
	color: #282829;
	text-decoration: none;
}

/* --- Share --- */
.single-events__share-label {
	font-weight: 700;
	margin: var(--space-5) 0 12px;
}
.single-events__share {
	display: flex;
	gap: 30px;
	margin-bottom: var(--space-5);
}
.single-events__share-link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	border-radius: 50%;
	background: #f1f1f3;
	color: var(--color-n-black);
	transition: background .2s cubic-bezier(.4,0,0,1), color .2s cubic-bezier(.4,0,0,1);
}
.single-events__share-link svg {
	width: 18px;
	height: 18px;
}
.single-events__share-link:hover {
	background: var(--color-n-black);
	color: var(--color-n-white);
}

/* --- Map --- */
.single-events__map {
	width: 100%;
	height: 0;
	padding-bottom: 56.25%;
	position: relative;
	margin: 0 0 var(--space-5);
	background: #f1f1f3;
}
.single-events__map > div {
	position: absolute !important;
	inset: 0;
}

/* --- Prev / Next --- */
/* icon-left variant (mirrors the global c-btn--icon-right) */
.c-btn--icon-left .c-btn__icon {
	margin-right: .8em;
	margin-left: 1rem;
	order: 0;
	display: inline-flex;
	align-items: center;
}
.c-btn--icon-left .c-btn__icon svg {
	transform: scaleX(-1);
}
.c-btn--icon-left:hover:not([disabled]) .c-btn__icon svg,
.c-btn--icon-left:focus:not([disabled]) .c-btn__icon svg {
	transform: scaleX(-1) translateX(8px);
}

.single-events__nav {
	display: flex;
	justify-content: flex-start;
	gap: var(--space-5);
	margin-top: var(--space-7);
}

/* --- Sidebar ---
   Live (article-detail__list-inner) absolutely positions the list and clips it
   to the main article's height (overflow hidden), so only the first ~2-3 cards
   are visible and the page ends right after the article content. */
.single-events__layout {
	position: relative;
}
.single-events__sidebar {
	position: absolute;
	top: 0;
	bottom: 0;
	right: 0;
	width: 370px;
	overflow: hidden;
}
.single-events__more-title {
	margin: 0 0 var(--space-5);
}
.single-events__more-list {
	display: flex;
	flex-direction: column;
	gap: var(--space-6);
	margin-bottom: var(--space-6);
}
.single-events__more-card {
	display: block;
	color: var(--color-n-black);
	text-decoration: none;
}
.single-events__more-image {
	position: relative;
	padding-bottom: 100%;
	overflow: hidden;
	margin-bottom: 12px;
	background: #f1f1f3;
}
.single-events__more-image img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform .3s cubic-bezier(.4,0,0,1);
}
.single-events__more-card:hover .single-events__more-image img {
	transform: scale(1.04);
}
.single-events__more-date {
	display: block;
	font-weight: 500;
	margin-bottom: 5px;
	font-size: 18px !important;
}
.single-events__more-head {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 12px;
}
.single-events__more-card-title {
	margin: 0;
	font-size: 28px !important;
	font-weight: 500 !important;
}
.single-events__more-card:hover .single-events__more-card-title {
	text-decoration: underline;
	text-underline-offset: 3px;
}
.single-events__more-arrow {
	flex: 0 0 auto;
	margin-top: 4px;
}
.single-events__more-arrow svg {
	width: 19px;
	height: 19px;
}
.single-events__more-btn {
	width: 100%;
	justify-content: center;
}

/* --- Responsive --- */
@media (max-width: 991px) {
	.single-events__layout {
		grid-template-columns: 1fr;
	}
	.single-events__main {
		border-right: 0;
		padding-right: 0;
	}
	.single-events__info,
	.single-events__image,
	.single-events__content,
	.single-events__map {
		margin-right: 0;
		padding-right: 0;
	}
	.single-events__info {
		padding: 24px;
	}
	.single-events__dl {
		grid-template-columns: 1fr;
		row-gap: 4px;
	}
	.single-events__dl dd {
		margin-bottom: 12px;
	}
	.single-events__more-btn-mobile {
		display: inline-flex;
	}
	.single-events__sidebar {
		/* live hides the list on mobile behind the "More events" toggle;
		   the mobile More-events button above the article covers this */
		display: none;
	}
}

/* =========================================================
   VIC events rework (ported Aug 2026)
   ========================================================= */

/* --- "When": multi-date list inside the info box (VIC markup/classes,
       scoped to QLD's dl) --- */
.single-events__dl .article-detail__date-list {
	list-style: none;
	margin: 0;
	padding: 0;
}
.single-events__dl .article-detail__date {
	padding: 0 0 16px;
	margin: 0 0 16px;
	border-bottom: 1px solid #e2dedd;
}
.single-events__dl .article-detail__date:last-child {
	margin-bottom: 0;
	padding-bottom: 0;
	border-bottom: 0;
}
.single-events__dl .article-detail__date-label {
	font-weight: 700;
	text-transform: uppercase;
	font-size: 16px;
	line-height: 1;
	letter-spacing: .02em;
	margin-bottom: 6px;
}
.single-events__dl .article-detail__divider {
	display: inline-block;
	width: 1px;
	height: 14px;
	background: #a5a5ab;
	margin: 0 10px;
	vertical-align: middle;
}

/* --- Stack card layout: details full-width, button below (card_layout=stack) --- */
.single-events__info-cols--stack {
	flex-direction: column;
	align-items: stretch;
}
.single-events__info-cols--stack .single-events__info-cta {
	align-self: flex-end;
}
