.gol-event-gallery-carousel,
.gol-event-gallery-carousel *,
.gol-event-gallery-carousel *::before,
.gol-event-gallery-carousel *::after {
	box-sizing: border-box;
}

.gol-event-gallery-carousel {
	--gol-event-gallery-carousel-accent: #971b43;
	--gol-event-gallery-main-max-height: 620px;
	--gol-event-gallery-viewport-offset: 210px;
	display: block;
	max-width: 100%;
	min-width: 0;
	overflow: hidden;
	padding: 25px;
	width: 100%;
}

.gol-event-gallery-carousel__main {
	align-items: center;
	background: #fff;
	display: flex;
	justify-content: center;
	max-width: 100%;
	overflow: visible;
	position: relative;
	width: 100%;
}

.gol-event-gallery-carousel__stage {
	display: inline-block;
	max-width: calc(100% - 128px);
	position: relative;
	text-align: center;
}

.gol-event-gallery-carousel__image {
	display: block;
	height: auto;
	margin: 0 auto;
	max-height: min(var(--gol-event-gallery-main-max-height), calc(100vh - var(--gol-event-gallery-viewport-offset)));
	max-width: 100%;
	width: auto;
}

.gol-event-gallery-carousel__arrow {
	align-items: center;
	background: transparent;
	border: 0;
	color: #000;
	cursor: pointer;
	display: flex;
	font-family: Arial, Helvetica, sans-serif;
	font-size: 54px;
	font-weight: 300;
	height: 72px;
	justify-content: center;
	line-height: 1;
	padding: 0;
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	width: 58px;
	z-index: 2;
}

.gol-event-gallery-carousel__arrow:hover,
.gol-event-gallery-carousel__arrow:focus {
	background: transparent;
	color: #000;
	outline: none;
}

.gol-event-gallery-carousel__arrow:focus-visible {
	outline: 2px solid #000;
	outline-offset: -6px;
}

.gol-event-gallery-carousel__arrow--prev {
	left: -64px;
}

.gol-event-gallery-carousel__arrow--next {
	right: -64px;
}

.gol-event-gallery-carousel__thumbs {
	display: flex;
	gap: 10px;
	margin-top: 10px;
	max-width: 100%;
	overflow-x: auto;
	overflow-y: hidden;
	padding-bottom: 2px;
	scrollbar-width: thin;
}

.gol-event-gallery-carousel__thumb {
	appearance: none;
	background: none;
	border: 0;
	cursor: pointer;
	flex: 0 0 calc((100% - 40px) / 5);
	height: 110px;
	min-width: 120px;
	overflow: hidden;
	padding: 0;
	position: relative;
}

.gol-event-gallery-carousel__thumb::after {
	border: 0 solid var(--gol-event-gallery-carousel-accent);
	content: "";
	inset: 0;
	pointer-events: none;
	position: absolute;
	transition: border-width 160ms ease;
}

.gol-event-gallery-carousel__thumb.is-active::after,
.gol-event-gallery-carousel__thumb:focus-visible::after {
	border-width: 4px;
}

.gol-event-gallery-carousel__thumb img {
	display: block;
	height: 100%;
	max-width: none;
	object-fit: cover;
	object-position: center center;
	width: 100%;
}

.gol-event-gallery-carousel-empty {
	background: #f5f5f5;
	border: 1px dashed #999;
	border-radius: 8px;
	color: #333;
	font-size: 14px;
	padding: 24px;
}

.elementor-widget-loop-grid .elementor-loop-container,
.elementor-widget-loop-grid .e-loop-item,
.elementor-widget-loop-grid .e-loop-item > .elementor {
	max-width: 100%;
	min-width: 0;
}

@media (max-width: 767px) {
	.gol-event-gallery-carousel {
		--gol-event-gallery-main-max-height: 460px;
		--gol-event-gallery-viewport-offset: 152px;
		padding: 18px;
	}

	.gol-event-gallery-carousel__stage {
		max-width: calc(100% - 92px);
	}

	.gol-event-gallery-carousel__arrow {
		font-size: 42px;
		height: 58px;
		width: 44px;
	}

	.gol-event-gallery-carousel__arrow--prev {
		left: -46px;
	}

	.gol-event-gallery-carousel__arrow--next {
		right: -46px;
	}

	.gol-event-gallery-carousel__thumb {
		flex-basis: 92px;
		height: 72px;
		min-width: 92px;
	}
}

@supports (height: 100svh) {
	.gol-event-gallery-carousel__image {
		max-height: min(var(--gol-event-gallery-main-max-height), calc(100svh - var(--gol-event-gallery-viewport-offset)));
	}
}
