/**
 * All of the CSS for your public-facing functionality should be
 * included in this file.
 */

.custom-popup-overlay {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	min-height: 100vh;
	box-sizing: border-box;
	padding: 16px;
	background: #000;
	z-index: 600000;
	display: flex;
	align-items: flex-start;
	justify-content: center;
	overflow-y: auto;
	-webkit-overflow-scrolling: touch;
}

.custom-popup-wrapper {
	position: relative;
	width: min(1200px, calc(100vw - 32px - 60px));
	max-width: calc(100vw - 32px);
	max-height: calc(100vh - 32px);
	display: block;
	margin: 0 auto;
}

.custom-popup-content {
	position: relative;
	display: flex;
	flex-direction: column;
	width: 100%;
	max-height: calc(100vh - 32px);
	overflow: hidden;
	border-radius: 0;
	box-shadow: 0 8px 40px rgba(0, 0, 0, 0.45);
	background: #fff;
}

.custom-popup-inner-scroll {
	flex: 1 1 auto;
	min-height: 0;
	overflow-y: auto;
	-webkit-overflow-scrolling: touch;
}

.custom-popup-close {
	position: absolute;
	left: 100%;
	top: 16px;
	margin-left: 12px;
	z-index: 20;
	width: 44px;
	height: 44px;
	padding: 0;
	border: 0;
	border-radius: 9999px;
	background: #fff;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	line-height: 1;
	color: #355e3b;
}

.custom-popup-close:hover,
.custom-popup-close:focus-visible {
	filter: brightness(0.98);
	outline: none;
}

.custom-popup-close__icon {
	font-size: 28px;
	font-weight: 300;
	line-height: 1;
	display: block;
	margin-top: -2px;
}

@media (max-width: 782px) {
	.custom-popup-wrapper {
		width: calc(100vw - 32px);
		max-width: 100%;
	}

	.custom-popup-close {
		position: fixed;
		right: 16px;
		top: 16px;
		left: auto;
		margin-left: 0;
	}
}

.custom-popup-content h2,
.custom-popup-content h3,
.custom-popup-content h4,
.custom-popup-content h5,
.custom-popup-content h6{
	/*font-family: 'roc-grotesk' !important;*/
    color: #355E3B;
}

.custom-popup-content .popup-intro {
    padding: 48px;
    background: white;
}

.custom-popup-content .popup-intro{
    color: black;
}

@media (max-width: 767px) {
	.custom-popup-content .popup-intro {
		padding: 24px;
    	background: white;
	}
}

.custom-popup-content .popup-intro .popup-title {
    margin-top: 0;
}
@media (max-width: 767px) {
	.custom-popup-content .popup-intro .popup-title {
		font-size: 40px !important;
		line-height: 1 !important;
        margin-bottom: 16px;
	}
}

.custom-popup-content .popup-intro ul li{
	margin-bottom: 8px;
}

.custom-popup-content .flickity-carousel {
	margin-bottom: 0;
}

.custom-popup-inner-scroll > .flickity-carousel:first-child .flickity-viewport {
	border-radius: 0;
	height: 300px !important;
}

@media (max-width: 767px) {
	.custom-popup-inner-scroll > .flickity-carousel:first-child .flickity-viewport {
		height: 200px !important;
	}
}

.custom-popup-content .carousel-cell {
    width: 100%;
    margin-right: 10px;
}

.custom-popup-content .carousel-cell img {
    display: block;
    max-width: 100%;
    width: 100%;
    object-fit: cover;
    height: 300px;
}

.flickity-prev-next-button {
    width: 44px;
    height: 44px;
    background: #333; /* Change color as needed */
    opacity: 0.75;
    color: #fff;
}

.flickity-prev-next-button:hover {
    background: #000;
}

.flickity-prev-next-button:disabled {
    opacity: 0.3;
}

.flickity-button-icon {
    fill: #fff;
}

/*event data*/
.popup-post-content{
    display: flex;
    gap: 16px;
}
/*main*/
.custom-popup-content .main{
    width: 75%;
}

@media (max-width: 767px) {
	.custom-popup-content .main{
		width: 100%;
	}
}
/*sidebar*/
.custom-popup-content aside{
    width: 25%;
}

@media (max-width: 767px) {
    .popup-post-content{
        flex-wrap: wrap;
    }
    .custom-popup-content .main {
        width: 100%;
    }
    .custom-popup-content aside{
        width: 100%;
    }
}
.custom-popup-content .event-data{
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.custom-popup-content .event-data span{
    font-family: "Jost", sans-serif;
    font-weight: bold;
    font-size: 18px;
}
.custom-popup-content .event-data{
    font-family: "Steelworks", Sans-serif;
    font-size: 20px;
}

.custom-popup-content .event-data .event_time{
    display: flex;
    gap: 8px;
}

/* suggested events*/
.suggested-events{
    background: #355E3B;
    padding: 48px;
    border-radius: 0;
}

.suggested-events .event-container{
    margin-top: 16px;
    display: flex;
    justify-content: space-between;
}

.suggested-events .event-card{
    width: 32%;
    cursor: pointer;
}

/*full width on mobile*/
@media (max-width: 767px) {
    .suggested-events .event-container{
        flex-wrap: wrap;
    }
    .suggested-events .event-card{
        width: 100%;
    }
}

.suggested-events .title{
    color: white;
    font-family: "Steelworks", Sans-serif;
    font-size: 36px;
}

.suggested-events .event-container .event-thumb img{
    width: 100%;
    max-height: 250px;
    object-fit: cover;
    border-radius: 0;
}
.suggested-events .event-container .event-title{
    color: white;
    font-size: 28px;
}

.event_ticket{
    margin-bottom: 16px;
}
.event_ticket a{
    padding: 12px 24px;
    background: #355E3B;
    color: white;
}

.event_ticket a:hover{
    background: #b2ac88;
}

/* -------------------------------------------------------------------------
 * Sticky “next event” strip (site-wide, wp_footer)
 * ------------------------------------------------------------------------- */
.wf-sticky-agenda {
	position: fixed;
	top: 50%;
	right: 0;
	z-index: 500000;
	transform: translateY(-50%);
	font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	line-height: 1.35;
	pointer-events: none;
	isolation: isolate;
}

.wf-sticky-agenda__inner {
	pointer-events: auto;
	display: flex;
	flex-direction: row-reverse;
	align-items: flex-start;
}

.wf-sticky-agenda.is-expanded .wf-sticky-agenda__inner {
	align-items: stretch;
}

.wf-sticky-agenda__tab {
	display: none;
	padding: 0;
	margin: 0;
	background: #fff;
	border: 1px solid #dcdcde;
	border-right: 0;
	border-radius: 0;
	box-shadow: -4px 4px 24px rgba(0, 0, 0, 0.12);
	cursor: pointer;
	color: #1d2327;
	text-align: center;
}

.wf-sticky-agenda__tab-inner {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 8px;
}

.wf-sticky-agenda__tab-icon {
	display: flex;
	align-items: center;
	justify-content: center;
	color: #1d2327;
}

.wf-sticky-agenda__tab-icon svg {
	display: block;
	width: 24px;
	height: 24px;
}

.wf-sticky-agenda__tab-label {
	display: block;
	font-size: 12px;
	font-weight: 600;
	line-height: 1.2;
}

.wf-sticky-agenda.is-collapsed .wf-sticky-agenda__tab {
	display: block;
	width: max-content;
	max-width: 100%;
	animation: wfStickyTabReveal 0.38s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.wf-sticky-agenda.is-expanding .wf-sticky-agenda__tab {
	display: none;
}

.wf-sticky-agenda__panel-outer {
	overflow: hidden;
	width: 0;
	max-width: min(300px, calc(100vw - 20px));
	min-width: 0;
	flex-shrink: 0;
	box-sizing: border-box;
	transition: width 600ms ease;
}

.wf-sticky-agenda.is-expanded .wf-sticky-agenda__panel-outer {
	width: min(300px, calc(100vw - 20px));
}

.wf-sticky-agenda__panel {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 0;
	position: relative;
	width: min(300px, calc(100vw - 20px));
	box-sizing: border-box;
	padding: 0;
	margin: 0;
	background: none;
	border: none;
	box-shadow: none;
	border-radius: 0;
	overflow: visible;
	text-align: left;
}

.wf-sticky-agenda.is-expanded .wf-sticky-agenda__tab {
	display: none;
}

.wf-sticky-agenda__toggle {
	position: relative;
	top: 1px;
	flex: 0 0 auto;
	align-self: flex-start;
	width: 64px;
	min-width: 64px;
	max-width: 64px;
	height: 32px;
	margin: 0;
	padding: 0;
	box-sizing: border-box;
	border: none;
	box-shadow: none;
	border-radius: 0;
	background: #fff;
	cursor: pointer;
	color: #1d2327;
	display: flex;
	align-items: center;
	justify-content: center;
	user-select: none;
	-webkit-user-select: none;
}

.wf-sticky-agenda__toggle:hover,
.wf-sticky-agenda__toggle:focus,
.wf-sticky-agenda__toggle:focus-visible,
.wf-sticky-agenda__toggle:active {
	background: #fff;
	color: #1d2327;
	border: none;
	outline: none;
	box-shadow: none;
	filter: none;
}

.wf-sticky-agenda__toggle-icon {
	display: flex;
	align-items: center;
	justify-content: center;
	line-height: 0;
}

.wf-sticky-agenda__toggle-icon svg {
	display: block;
}

.wf-sticky-agenda__content {
	align-self: stretch;
	width: 100%;
	max-width: 100%;
	box-sizing: border-box;
	padding: 16px;
	margin: 0;
	background: #fff;
	border: none;
	display: flex;
	flex-direction: column;
	align-items: stretch;
	gap: 8px;
}

.wf-sticky-agenda__kicker {
	margin: 0;
	font-size: 0.8125rem;
	font-weight: 600;
	color: #1d2327;
	line-height: 1.3;
}

.wf-sticky-agenda__media {
	display: block;
	width: 100%;
	padding: 0;
	margin: 0;
	border: 0;
	background: #f0f0f1;
	cursor: pointer;
	line-height: 0;
}

.wf-sticky-agenda__media img {
	display: block;
	width: 100%;
	height: auto;
	max-height: 200px;
	object-fit: cover;
}

.wf-sticky-agenda__title {
	margin: 0;
	font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	font-size: 32px;
	font-weight: 700;
	font-style: normal;
	text-transform: none;
	letter-spacing: normal;
	color: #1d2327;
	line-height: 1.2;
}

.wf-sticky-agenda__date {
	margin: 0;
	font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	font-size: 0.8125rem;
	font-weight: 400;
	color: #1d2327;
	line-height: 1.35;
}

.wf-sticky-agenda__cta {
	display: block;
	width: 100%;
	box-sizing: border-box;
	padding: 12px 16px;
	background: #355e3b;
	color: #fff;
	border: 0;
	border-radius: 0;
	font-family: inherit;
	font-size: 0.875rem;
	font-weight: 600;
	cursor: pointer;
	text-align: center;
}

.wf-sticky-agenda__cta:hover,
.wf-sticky-agenda__cta:focus-visible {
	filter: brightness(1.06);
	outline: none;
}

@keyframes wfStickyTabReveal {
	from {
		opacity: 0;
		transform: translate3d(22px, 0, 0);
	}
	to {
		opacity: 1;
		transform: translate3d(0, 0, 0);
	}
}

@media (prefers-reduced-motion: reduce) {
	.wf-sticky-agenda.is-collapsed .wf-sticky-agenda__tab {
		animation: none;
	}
}

@media (max-width: 782px), (pointer: coarse) and (max-width: 1024px) {
	.wf-sticky-agenda {
		position: fixed !important;
		top: 50%;
		right: 0px;
		bottom: auto;
		left: auto;
		transform: translateY(-50%);
		width: auto;
	}

	/* Icon-only idle: only the tab receives taps; zero-width panel must not block. */
	.wf-sticky-agenda.is-collapsed .wf-sticky-agenda__inner {
		pointer-events: none;
	}

	.wf-sticky-agenda.is-collapsed .wf-sticky-agenda__tab {
		pointer-events: auto;
	}

	.wf-sticky-agenda__inner {
		flex-direction: row-reverse;
		align-items: center;
	}

	.wf-sticky-agenda.is-expanded .wf-sticky-agenda__inner {
		align-items: flex-start;
	}

	.wf-sticky-agenda__panel-outer {
		max-width: min(360px, calc(100vw - 64px - env(safe-area-inset-right, 0px)));
	}

	.wf-sticky-agenda.is-expanded .wf-sticky-agenda__panel-outer {
		width: min(360px, calc(100vw - 64px - env(safe-area-inset-right, 0px)));
	}

	.wf-sticky-agenda__panel {
		width: min(360px, calc(100vw - 64px - env(safe-area-inset-right, 0px)));
	}

	.wf-sticky-agenda__tab {
		border: 1px solid #dcdcde;
		border-radius: 0px;
		box-shadow: -2px 4px 16px rgba(0, 0, 0, 0.14);
	}

	/* Mobile: always calendar icon only on the tab (no “Evenementen” label). */
	.wf-sticky-agenda__tab-label {
		display: none;
	}

	.wf-sticky-agenda.is-collapsed .wf-sticky-agenda__tab-inner {
		padding: 10px;
		gap: 0;
		justify-content: center;
		align-items: center;
		min-width: 48px;
		min-height: 48px;
		box-sizing: border-box;
	}
}