.icm-event-gallery {
	--icm-gallery-gap: clamp(20px, 3vw, 60px);
	--icm-gallery-arrow: clamp(40px, 4vw, 72px);
	--icm-gallery-color: var(--e-global-color-accent, #f55b69);
	position: relative;
	padding-inline: calc(var(--icm-gallery-arrow) + clamp(16px, 3vw, 60px));
	width: 100%;
	min-width: 0;
	box-sizing: border-box;
}

.icm-event-gallery .icm-event-gallery__track {
	display: flex;
	gap: var(--icm-gallery-gap);
	margin: 0;
	padding: 4px;
	list-style: none;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	scrollbar-width: none;
	overscroll-behavior-x: contain;
}

.icm-event-gallery__track::-webkit-scrollbar {
	display: none;
}

.icm-event-gallery .icm-event-gallery__slide {
	flex: 0 0 calc((100% - 2 * var(--icm-gallery-gap)) / 3);
	min-width: 0;
	margin: 0;
	padding: 0;
	scroll-snap-align: start;
}

.icm-event-gallery .icm-event-gallery__card {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	isolation: isolate;
	overflow: hidden;
	width: 100%;
	aspect-ratio: 1.15;
	border-radius: 24px;
	background: #888990;
	color: #fff;
	text-decoration: none;
}

.icm-event-gallery__card::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	background: rgb(14 18 33 / 40%);
}

.icm-event-gallery .icm-event-gallery__image {
	position: absolute;
	inset: 0;
	z-index: -2;
	width: 100%;
	height: 100%;
	max-width: none;
	object-fit: cover;
	transition: transform 200ms ease;
}

.icm-event-gallery__card:hover .icm-event-gallery__image {
	transform: scale(1.035);
}

.icm-event-gallery__title {
	padding: 24px;
	font-family: Georgia, "Times New Roman", serif;
	font-size: clamp(32px, 4vw, 64px);
	font-weight: 700;
	line-height: 1.15;
	text-align: center;
	overflow-wrap: anywhere;
}

.icm-event-gallery__title--text {
	display: -webkit-box;
	margin: 16px;
	padding: 0;
	overflow: hidden;
	font-size: clamp(16px, 2vw, 28px);
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 3;
}

.icm-event-gallery .icm-event-gallery__arrow {
	position: absolute;
	top: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	width: var(--icm-gallery-arrow);
	height: var(--icm-gallery-arrow);
	min-width: 0;
	margin: 0;
	padding: 0;
	transform: translateY(-50%);
	border: 0;
	border-radius: 50%;
	background: var(--icm-gallery-color);
	color: #fff;
	cursor: pointer;
	box-shadow: none;
}

.icm-event-gallery .icm-event-gallery__arrow[hidden] {
	display: none;
}

.icm-event-gallery__arrow--prev {
	inset-inline-start: 0;
}

.icm-event-gallery__arrow--next {
	inset-inline-end: 0;
}

.icm-event-gallery .icm-event-gallery__arrow:disabled {
	opacity: 0.4;
	cursor: default;
}

.icm-event-gallery .icm-event-gallery__arrow:not(:disabled):hover {
	filter: brightness(0.9);
	background: var(--icm-gallery-color);
	color: #fff;
}

.icm-event-gallery__arrow svg {
	width: 45%;
	height: 45%;
	fill: none;
	stroke: currentColor;
	stroke-width: 3;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.icm-event-gallery__card:focus-visible,
.icm-event-gallery__arrow:focus-visible,
.icm-event-gallery__track:focus-visible {
	outline: 3px solid var(--icm-gallery-color);
	outline-offset: 2px;
}

.icm-event-gallery__status {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	overflow: hidden;
	clip-path: inset(50%);
	white-space: nowrap;
}

@media (max-width: 1024px) {
	.icm-event-gallery .icm-event-gallery__slide {
		flex-basis: calc((100% - var(--icm-gallery-gap)) / 2);
	}
}

@media (max-width: 767px) {
	.icm-event-gallery {
		--icm-gallery-gap: 16px;
		padding-inline: 52px;
	}

	.icm-event-gallery .icm-event-gallery__slide {
		flex-basis: 100%;
	}

	.icm-event-gallery .icm-event-gallery__card {
		border-radius: 18px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.icm-event-gallery .icm-event-gallery__image {
		transition: none;
	}
}
