.icesco-event-grid {
	--icesco-event-grid-gap: 30px;
	--icesco-event-grid-columns: 3;
	--icesco-event-grid-columns-tablet: 2;
	--icesco-event-grid-columns-mobile: 1;
	--icesco-event-grid-image-height: 250px;
	--icesco-event-grid-content-padding: 20px;
	--icesco-event-grid-card-radius: 5px;
	--icesco-event-grid-card-border-color: #e2e2e2;
	--icesco-event-grid-card-shadow: 0 0 30px -10px rgba(0, 0, 0, 0.15);
	--icesco-event-grid-title-color: #000000;
	--icesco-event-grid-title-hover-color: currentColor;
	--icesco-event-grid-title-hover-decoration: underline;
	--icesco-event-grid-title-hover-decoration-color: currentColor;
	--icesco-event-grid-title-hover-transition: 0.25s;
	--icesco-event-grid-title-hover-opacity: 1;
	--icesco-event-grid-text-color: #636363;
	--icesco-event-grid-meta-color: #545454;
	--icesco-event-grid-meta-gap: 15px;
	--icesco-event-grid-meta-icon-gap: 5px;
	--icesco-event-grid-meta-icon-size: 1em;
	--icesco-event-grid-meta-icon-color: currentColor;
	--icesco-event-grid-category-bg: #545454;
	--icesco-event-grid-category-color: #ffffff;
	--icesco-event-grid-overlay: rgba(0, 0, 0, 0.12);
	--icesco-event-grid-filters-margin-bottom: 28px;
	--icesco-event-grid-filter-gap: 16px;
	--icesco-event-grid-filter-height: 48px;
	--icesco-event-grid-filter-min-width: 180px;
	--icesco-event-grid-filter-item-width: 0%;
	--icesco-event-grid-filter-bg: #ffffff;
	--icesco-event-grid-filter-border: #d8d8d8;
	--icesco-event-grid-filter-focus-border: #545454;
	--icesco-event-grid-filter-radius: 8px;
	--icesco-event-grid-filter-text: inherit;
	--icesco-event-grid-filter-placeholder: #8a8a8a;
	--icesco-event-grid-filter-label-color: inherit;
	--icesco-event-grid-filter-padding-top: 0px;
	--icesco-event-grid-filter-padding-right: 44px;
	--icesco-event-grid-filter-padding-bottom: 0px;
	--icesco-event-grid-filter-padding-left: 14px;
	--icesco-event-grid-filter-icon-size: 18px;
	--icesco-event-grid-filter-icon-color: currentColor;
	--icesco-event-grid-empty-bg: #e8e8e8;
	--icesco-event-grid-empty-color: #000000;
	--icesco-event-grid-overlay-min-height: 360px;
	--icesco-event-grid-overlay-content-justify: flex-end;
	--icesco-event-grid-overlay-text-align: left;
	--icesco-event-grid-overlay-padding-top: 24px;
	--icesco-event-grid-overlay-padding-right: 24px;
	--icesco-event-grid-overlay-padding-bottom: 24px;
	--icesco-event-grid-overlay-padding-left: 24px;
	--icesco-event-grid-overlay-scrim: rgba(0, 0, 0, 0.45);
	--icesco-event-grid-overlay-scrim-hover: rgba(0, 0, 0, 0.6);
	--icesco-event-grid-overlay-content-bg: transparent;
	--icesco-event-grid-overlay-title-color: #ffffff;
	--icesco-event-grid-overlay-meta-color: #f0f0f0;
	--icesco-event-grid-overlay-text-color: #f5f5f5;
	--icesco-event-grid-overlay-image-scale-hover: 1.06;
	width: 100%;
}

.icesco-event-grid__filters {
	display: flex;
	flex-wrap: wrap;
	gap: var(--icesco-event-grid-filter-gap);
	margin-bottom: var(--icesco-event-grid-filters-margin-bottom);
	align-items: flex-end;
}

.icesco-event-grid__filter {
	display: flex;
	flex-direction: column;
	flex: 1 1 var(--icesco-event-grid-filter-min-width);
	min-width: min(100%, var(--icesco-event-grid-filter-min-width));
	max-width: 100%;
}

.icesco-event-grid__filter[style*="--icesco-event-grid-filter-item-width"] {
	flex: 0 1 calc(var(--icesco-event-grid-filter-item-width) - var(--icesco-event-grid-filter-gap));
	max-width: calc(var(--icesco-event-grid-filter-item-width) - var(--icesco-event-grid-filter-gap));
}

.icesco-event-grid--filter-equal-width .icesco-event-grid__filter,
.icesco-content-grid--filter-equal-width .icesco-event-grid__filter {
	flex: 1 1 0;
	min-width: 0;
}

.icesco-event-grid__filter-label {
	display: block;
	margin-bottom: 6px;
	min-height: 1.2em;
	color: var(--icesco-event-grid-filter-label-color);
	line-height: 1.2;
}

.icesco-event-grid--filter-labels-inside .icesco-event-grid__filter-label,
.icesco-event-grid--filter-labels-hidden .icesco-event-grid__filter-label,
.icesco-content-grid--filter-labels-inside .icesco-event-grid__filter-label,
.icesco-content-grid--filter-labels-hidden .icesco-event-grid__filter-label {
	margin-bottom: 0;
	min-height: 0;
}

.icesco-event-grid__field {
	position: relative;
	display: flex;
	align-items: center;
	height: var(--icesco-event-grid-filter-height);
	border: 1px solid var(--icesco-event-grid-filter-border);
	border-radius: var(--icesco-event-grid-filter-radius);
	background: var(--icesco-event-grid-filter-bg);
	overflow: hidden;
	transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.icesco-event-grid__field:focus-within {
	border-color: var(--icesco-event-grid-filter-focus-border);
	box-shadow: 0 0 0 1px var(--icesco-event-grid-filter-focus-border);
}

.icesco-event-grid__field-control {
	width: 100%;
	height: 100%;
	margin: 0;
	padding:
		var(--icesco-event-grid-filter-padding-top)
		var(--icesco-event-grid-filter-padding-right)
		var(--icesco-event-grid-filter-padding-bottom)
		var(--icesco-event-grid-filter-padding-left);
	border: 0;
	border-radius: 0;
	background: transparent;
	color: var(--icesco-event-grid-filter-text);
	font: inherit;
	line-height: 1.2;
	appearance: none;
}

.icesco-event-grid__field-control::placeholder {
	color: var(--icesco-event-grid-filter-placeholder);
	opacity: 1;
}

.icesco-event-grid__field-control--select {
	cursor: pointer;
}

.icesco-event-grid__field-control--date::-webkit-calendar-picker-indicator {
	position: absolute;
	top: 0;
	right: 0;
	width: 44px;
	height: 100%;
	margin: 0;
	padding: 0;
	cursor: pointer;
	opacity: 0;
}

.icesco-event-grid__field-icon {
	position: absolute;
	top: 50%;
	right: 14px;
	transform: translateY(-50%);
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: var(--icesco-event-grid-filter-icon-size);
	height: var(--icesco-event-grid-filter-icon-size);
	color: var(--icesco-event-grid-filter-icon-color);
	pointer-events: none;
}

.icesco-event-grid__field-icon svg,
.icesco-event-grid__field-icon i {
	width: 100%;
	height: 100%;
	display: block;
}

.icesco-event-grid__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
}

.icesco-event-grid__meta-icon {
	width: var(--icesco-event-grid-meta-icon-size);
	height: var(--icesco-event-grid-meta-icon-size);
	color: var(--icesco-event-grid-meta-icon-color);
	flex: 0 0 auto;
}

.icesco-event-grid__meta-icon svg,
.icesco-event-grid__meta-icon i {
	width: 100%;
	height: 100%;
	display: block;
	color: inherit;
	fill: currentColor;
	stroke: currentColor;
}

.icesco-event-grid__meta-icon svg path {
	fill: currentColor;
	stroke: currentColor;
}

.icesco-event-grid__items {
	display: grid;
	grid-template-columns: repeat(var(--icesco-event-grid-columns), minmax(0, 1fr));
	gap: var(--icesco-event-grid-gap);
}

.icesco-event-grid__item {
	position: relative;
	display: flex;
	flex-direction: column;
	overflow: hidden;
	border-radius: var(--icesco-event-grid-card-radius);
	border: 1px solid var(--icesco-event-grid-card-border-color);
	box-shadow: var(--icesco-event-grid-card-shadow);
	background: #ffffff;
	transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.icesco-event-grid__cover-link {
	position: absolute;
	inset: 0;
	z-index: 5;
	border-radius: inherit;
}

.icesco-event-grid__cover-link:focus-visible {
	outline: 2px solid currentColor;
	outline-offset: -4px;
}

.icesco-event-grid__item--link-full-card .icesco-event-grid__button {
	position: relative;
	z-index: 6;
}

.icesco-event-grid__item--overlay {
	position: relative;
	display: flex;
	flex-direction: column;
	min-height: var(--icesco-event-grid-overlay-min-height);
	background: #1a1a1a;
}

.icesco-event-grid__item--overlay .icesco-event-grid__card-bg {
	position: absolute;
	inset: 0;
	overflow: hidden;
	border-radius: inherit;
}

.icesco-event-grid__item--overlay .icesco-event-grid__card-bg-image {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center center;
	transition: transform 0.45s ease;
}

.icesco-event-grid__item--overlay .icesco-event-grid__card-bg--fallback {
	background: linear-gradient(135deg, #3a3a3a 0%, #1a1a1a 100%);
}

.icesco-event-grid__item--overlay .icesco-event-grid__card-scrim {
	position: absolute;
	inset: 0;
	background: var(--icesco-event-grid-overlay-scrim, rgba(0, 0, 0, 0.45));
	transition: background-color 0.3s ease, background 0.3s ease, opacity 0.3s ease;
}

.icesco-event-grid__item--overlay:hover .icesco-event-grid__card-scrim {
	background: var(--icesco-event-grid-overlay-scrim-hover, rgba(0, 0, 0, 0.6));
}

.icesco-event-grid__item--overlay:hover .icesco-event-grid__card-bg-image {
	transform: scale(var(--icesco-event-grid-overlay-image-scale-hover));
}

.icesco-event-grid__item--overlay .icesco-event-grid__category--overlay {
	position: absolute;
	top: 12px;
	left: 12px;
	z-index: 3;
}

.icesco-event-grid__item--overlay .icesco-event-grid__content--overlay {
	position: relative;
	z-index: 2;
	display: flex;
	flex-direction: column;
	justify-content: var(--icesco-event-grid-overlay-content-justify);
	flex: 1 1 auto;
	min-height: var(--icesco-event-grid-overlay-min-height);
	padding:
		var(--icesco-event-grid-overlay-padding-top)
		var(--icesco-event-grid-overlay-padding-right)
		var(--icesco-event-grid-overlay-padding-bottom)
		var(--icesco-event-grid-overlay-padding-left);
	background: var(--icesco-event-grid-overlay-content-bg, transparent);
	text-align: var(--icesco-event-grid-overlay-text-align);
}

.icesco-event-grid__item--overlay .icesco-event-grid__content-inner {
	width: 100%;
	height: auto;
	flex: 0 0 auto;
	justify-content: flex-start;
}

.icesco-event-grid__item--overlay .icesco-event-grid__button {
	margin-top: 0;
}

.icesco-event-grid__item--overlay .icesco-event-grid__title,
.icesco-event-grid__item--overlay .icesco-event-grid__title a {
	color: var(--icesco-event-grid-overlay-title-color);
}

.icesco-event-grid__item--overlay .icesco-event-grid__title a:hover,
.icesco-event-grid__item--overlay .icesco-event-grid__title a:focus-visible,
.icesco-event-grid__item--overlay.icesco-event-grid__item--link-full-card:hover .icesco-event-grid__title,
.icesco-event-grid__item--overlay.icesco-event-grid__item--link-full-card:focus-within .icesco-event-grid__title {
	color: var(--icesco-event-grid-title-hover-color, var(--icesco-event-grid-overlay-title-color));
}

.icesco-event-grid__item--overlay .icesco-event-grid__meta {
	color: var(--icesco-event-grid-overlay-meta-color);
}

.icesco-event-grid__item--overlay .icesco-event-grid__excerpt {
	color: var(--icesco-event-grid-overlay-text-color);
}

.icesco-content-grid--card-layout-overlay .icesco-event-grid__item--overlay {
	border-color: transparent;
}

.icesco-event-grid__image-link {
	display: block;
	color: inherit;
	text-decoration: none;
}

.icesco-event-grid__image-link--static {
	pointer-events: none;
}

.icesco-event-grid__image {
	position: relative;
	height: var(--icesco-event-grid-image-height);
	overflow: hidden;
	background: #ffffff;
}

.icesco-event-grid__image img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center center;
	transition: transform 0.3s ease;
}

.icesco-event-grid__image-overlay {
	position: absolute;
	inset: 0;
	background: var(--icesco-event-grid-overlay);
	transition: opacity 0.3s ease;
	opacity: 0;
}

.icesco-event-grid__item:hover .icesco-event-grid__image img {
	transform: scale(1.04);
}

.icesco-event-grid__item:hover .icesco-event-grid__image-overlay {
	opacity: 1;
}

.icesco-event-grid__category {
	position: absolute;
	top: 12px;
	left: 12px;
	z-index: 2;
}

.icesco-event-grid__category span {
	display: inline-block;
	padding: 3px 5px;
	border-radius: 3px;
	background: var(--icesco-event-grid-category-bg);
	color: var(--icesco-event-grid-category-color);
	font-size: 0.85em;
	line-height: 1.2;
}

.icesco-event-grid__content {
	flex: 1 1 auto;
	padding: var(--icesco-event-grid-content-padding);
	background: #ffffff;
}

.icesco-event-grid__content-inner {
	height: 100%;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	gap: 16px;
}

.icesco-event-grid__title {
	margin: 0;
	font-size: inherit;
	line-height: 1.25;
	color: var(--icesco-event-grid-title-color);
	transition:
		color var(--icesco-event-grid-title-hover-transition) ease,
		opacity var(--icesco-event-grid-title-hover-transition) ease,
		text-decoration-color var(--icesco-event-grid-title-hover-transition) ease;
}

.icesco-event-grid__title a {
	color: inherit;
	text-decoration: none;
	transition:
		color var(--icesco-event-grid-title-hover-transition) ease,
		opacity var(--icesco-event-grid-title-hover-transition) ease,
		text-decoration-color var(--icesco-event-grid-title-hover-transition) ease;
}

.icesco-event-grid__title a:hover,
.icesco-event-grid__title a:focus-visible,
.icesco-event-grid__item--link-full-card:hover .icesco-event-grid__title,
.icesco-event-grid__item--link-full-card:focus-within .icesco-event-grid__title {
	color: var(--icesco-event-grid-title-hover-color, var(--icesco-event-grid-title-color));
	text-decoration: var(--icesco-event-grid-title-hover-decoration, underline);
	text-decoration-color: var(--icesco-event-grid-title-hover-decoration-color, currentColor);
	opacity: var(--icesco-event-grid-title-hover-opacity, 1);
}

.icesco-event-grid__meta {
	display: flex;
	flex-wrap: wrap;
	gap: var(--icesco-event-grid-meta-gap);
	margin-top: 8px;
	color: var(--icesco-event-grid-meta-color);
	line-height: 1.2;
}

.icesco-event-grid__meta-item {
	display: inline-flex;
	align-items: center;
	gap: var(--icesco-event-grid-meta-icon-gap);
}

.icesco-event-grid__status-badge {
	display: inline-flex;
	align-items: center;
	padding: 2px 8px;
	border-radius: 999px;
	background: rgba(0, 0, 0, 0.08);
	font-size: 0.85em;
}

.icesco-event-grid__excerpt {
	margin: 10px 0 0;
	color: var(--icesco-event-grid-text-color);
}

.icesco-event-grid__button {
	margin-top: auto;
}

.icesco-event-grid__read-more {
	margin-top: 4px;
}

.icesco-event-grid__empty {
	grid-column: 1 / -1;
	padding: 20px;
	border: 1px solid #c4c4c4;
	border-radius: var(--icesco-event-grid-card-radius);
	background: var(--icesco-event-grid-empty-bg);
	color: var(--icesco-event-grid-empty-color);
	text-align: center;
}

.icesco-event-grid--loading .icesco-event-grid__items,
.icesco-content-grid--loading .icesco-event-grid__items,
.icesco-content-grid--loading .icesco-content-grid__items {
	opacity: 0.55;
	pointer-events: none;
}

.icesco-content-grid__pagination {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 8px;
	margin-top: 32px;
}

.icesco-content-grid__pagination-prev-next {
	display: flex;
	align-items: center;
	gap: 12px;
}

.icesco-content-grid__pagination-numbers {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 6px;
}

.icesco-content-grid__pagination-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 40px;
	min-height: 40px;
	padding: 8px 14px;
	border: 1px solid var(--icesco-event-grid-filter-border, #d8d8d8);
	border-radius: var(--icesco-event-grid-filter-radius, 8px);
	background: var(--icesco-event-grid-filter-bg, #ffffff);
	color: inherit;
	font: inherit;
	line-height: 1.2;
	cursor: pointer;
	transition: border-color 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}

.icesco-content-grid__pagination-btn:hover:not(:disabled),
.icesco-content-grid__pagination-btn:focus-visible:not(:disabled) {
	border-color: var(--icesco-event-grid-filter-focus-border, #545454);
}

.icesco-content-grid__pagination-btn.is-active {
	border-color: var(--icesco-event-grid-filter-focus-border, #545454);
	background: var(--icesco-event-grid-filter-focus-border, #545454);
	color: #ffffff;
}

.icesco-content-grid__pagination-btn:disabled {
	opacity: 0.45;
	cursor: not-allowed;
}

.icesco-content-grid__pagination-status {
	font-size: 0.95em;
	opacity: 0.85;
	white-space: nowrap;
}

.icesco-event-grid__status,
.icesco-content-grid__status {
	margin-top: 12px;
	font-size: 0.9em;
	opacity: 0.8;
}

@media screen and (max-width: 1024px) {
	.icesco-event-grid__items {
		grid-template-columns: repeat(var(--icesco-event-grid-columns-tablet), minmax(0, 1fr));
	}
}

@media screen and (max-width: 767px) {
	.icesco-event-grid__items,
	.icesco-content-grid__items {
		grid-template-columns: repeat(var(--icesco-event-grid-columns-mobile), minmax(0, 1fr));
	}

	.icesco-content-grid--mobile-filters-stack .icesco-event-grid__filter {
		flex-basis: 100%;
		max-width: 100%;
	}

	.icesco-content-grid--mobile-filters-scroll .icesco-event-grid__filters {
		flex-wrap: nowrap;
		overflow-x: auto;
		-webkit-overflow-scrolling: touch;
		scrollbar-width: thin;
		padding-bottom: 4px;
	}

	.icesco-content-grid--mobile-filters-scroll .icesco-event-grid__filter {
		flex: 0 0 min(85vw, 280px);
		max-width: min(85vw, 280px);
	}

	.icesco-content-grid--mobile-filters-icons .icesco-event-grid__filters {
		flex-wrap: wrap;
		justify-content: flex-start;
	}

	.icesco-content-grid--mobile-filters-icons .icesco-event-grid__filter {
		flex: 0 0 auto;
		min-width: 0;
		max-width: none;
	}

	.icesco-content-grid--mobile-filters-icons .icesco-event-grid__filter-label {
		display: none;
	}

	.icesco-content-grid--mobile-filters-icons .icesco-event-grid__field {
		width: var(--icesco-event-grid-filter-height, 48px);
		min-width: var(--icesco-event-grid-filter-height, 48px);
	}

	.icesco-content-grid--mobile-filters-icons .icesco-event-grid__field-control {
		position: absolute;
		inset: 0;
		opacity: 0;
		cursor: pointer;
	}

	.icesco-content-grid--mobile-filters-icons .icesco-event-grid__field-icon {
		position: static;
		transform: none;
		margin: 0 auto;
	}

	.icesco-content-grid--mobile-filters-icons.icesco-content-grid--mobile-filters-icons .icesco-event-grid__filter--search .icesco-event-grid__field {
		width: auto;
		min-width: min(100%, 220px);
		flex: 1 1 180px;
	}

	.icesco-content-grid--mobile-filters-icons .icesco-event-grid__filter--search .icesco-event-grid__field-control {
		position: static;
		opacity: 1;
		width: 100%;
		padding-left: 14px;
		padding-right: 44px;
	}

	.icesco-content-grid--mobile-filters-icons .icesco-event-grid__filter--search .icesco-event-grid__field-icon {
		position: absolute;
		top: 50%;
		right: 14px;
		transform: translateY(-50%);
	}
}
