.eon-slider {
	position: relative;
	overflow: hidden;
	max-width: 100%;
}

.eon-slides {
	display: flex;
	transition: transform 0.6s ease;
}

.eon-slide {
	min-width: 100%;
	box-sizing: border-box;
	display: flex;
	flex-direction: column;
	align-items: center;
}

.eon-slide-frame {
	width: 100%;
	height: 100%;
	overflow: hidden;
	display: flex;
	align-items: center;
	justify-content: center;
}

.eon-slide img {
	width: auto;
	max-width: 100%;
	display: block;
	cursor: pointer;
}

.eon-slider.banner-slideshow {
	width: 100%;
	height: auto;
	max-width: none;
	aspect-ratio: var(--eon-slide-aspect, 16/9);
}

.eon-slider.banner-slideshow .eon-slides {
	position: relative;
	display: block;
	width: 100%;
	height: 100%;
	transform: none !important;
}

.eon-slider.banner-slideshow .eon-slide {
	position: absolute;
	inset: 0;
	min-width: 0;
	display: block;
	opacity: 0;
	pointer-events: none;
	transition: opacity 0.8s ease;
}

.eon-slider.banner-slideshow .eon-slide.active {
	opacity: 1;
	pointer-events: auto;
	z-index: 2;
}

.eon-slider.banner-slideshow .eon-slide:first-child {
	opacity: 1;
	pointer-events: auto;
	z-index: 1;
}

.eon-slider.banner-slideshow .eon-slide-frame {
	width: 100%;
	height: 100%;
	aspect-ratio: var(--eon-slide-aspect, 16/9);
}

.eon-slider.banner-slideshow .eon-slide-img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center center;
}

.eon-slider.banner-slideshow .eon-slide.active .eon-slide-img {
	animation: eon-banner-kenburns 10.5s ease-out forwards;
}

.eon-slider.banner-slideshow .eon-prev,
.eon-slider.banner-slideshow .eon-next,
.eon-slider.banner-slideshow .eon-filmstrip-thumbs {
	display: none;
}

.eon-slider.banner-slideshow .eon-dots {
	position: absolute;
	right: 12px;
	bottom: 12px;
	z-index: 6;
	margin: 0;
	display: flex;
	gap: 3px;
	padding: 4px 8px;
	border-radius: 14px;
	background: rgba(0, 0, 0, 0.45);
}

.eon-slider.banner-slideshow[data-eon-nav="numbers"] .eon-dots button {
	width: 18px;
	min-width: 18px;
	height: 18px;
	padding: 0;
	border-radius: 9px;
	font-size: 11px;
	line-height: 18px;
	background: transparent;
	color: #b6b6b6;
}

.eon-slider.banner-slideshow[data-eon-nav="numbers"] .eon-dots button.active {
	background: transparent;
	color: #fff;
}

@keyframes eon-banner-kenburns {
	from {
		transform: scale(1.1) translateX(0);
	}
	to {
		transform: scale(1) translateX(0);
	}
}

.eon-slide .eon-caption {
	margin-top: 8px;
	text-align: center;
	font-size: 0.95em;
	line-height: 1.4;
	max-width: 100%;
}

.eon-slider.has-captions .eon-slide {
	padding-bottom: 8px;
}

.eon-prev,
.eon-next {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	background: rgba(0,0,0,0.5);
	color: #fff;
	border: none;
	padding: 10px 15px;
	cursor: pointer;
	font-size: 20px;
}

.eon-slider.single-slide .eon-prev,
.eon-slider.single-slide .eon-next,
.eon-slider.single-slide .eon-dots,
.eon-slider.single-slide .eon-filmstrip-thumbs {
	display: none;
}

.eon-slider.single-slide {
	width: 100%;
	aspect-ratio: var(--eon-slide-aspect, auto);
	height: var(--eon-slide-height, auto);
}

.eon-slider.single-slide .eon-slides,
.eon-slider.single-slide .eon-slide {
	height: 100%;
}

.eon-slider.single-slide .eon-slide-frame {
	height: var(--eon-slide-height, auto);
}

.eon-slider.single-slide .eon-slide {
	justify-content: center;
}

.eon-slider.single-slide.crop-mode .eon-slide-img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.eon-slider.single-slide.nocrop-mode .eon-slide-img {
	width: 100%;
	height: 100%;
	object-fit: contain;
}

.eon-prev { left: 10px; }
.eon-next { right: 10px; }

.eon-dots {
	text-align: center;
	margin-top: 10px;
}

.eon-dots button {
	height: 10px;
	width: 10px;
	margin: 5px;
	border-radius: 50%;
	border: none;
	background: #ccc;
	cursor: pointer;
}

.eon-dots button.active {
	background: #333;
}

.eon-slider[data-eon-nav="numbers"] .eon-dots button {
	width: auto;
	min-width: 28px;
	height: 28px;
	padding: 0 8px;
	border-radius: 14px;
	font-size: 13px;
	line-height: 28px;
	background: #f1f1f1;
	color: #333;
}

.eon-slider[data-eon-nav="numbers"] .eon-dots button.active {
	background: #333;
	color: #fff;
}

.eon-slider.filmstrip .eon-dots {
	display: none;
}

.eon-filmstrip-thumbs {
	display: flex;
	gap: 8px;
	overflow-x: auto;
	margin-top: 10px;
	padding-bottom: 4px;
}

.eon-filmstrip-thumbs:empty {
	display: none;
}

.eon-filmstrip-thumb {
	flex: 0 0 auto;
	width: 72px;
	height: 72px;
	padding: 0;
	border: 1px solid #cfcfcf;
	background: #fff;
	cursor: pointer;
}

.eon-filmstrip-thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.eon-filmstrip-thumb.active {
	border-color: #333;
}

/* Lightbox */

.eon-lightbox {
	position: fixed;
	inset: 0;
	background: rgba(0,0,0,0.8);
	display: none;
	align-items: center;
	justify-content: center;
	z-index: 9999;
	padding: 5vh 5vw;
	box-sizing: border-box;
}

.eon-lightbox img {
	max-width: 100%;
	max-height: 100%;
	width: auto;
	height: auto;
	object-fit: contain;
	pointer-events: none;
}

.eon-lightbox.active {
	display: flex;
}

.eon-lightbox-close {
	position: absolute;
	top: 16px;
	right: 16px;
	background: rgba(0,0,0,0.6);
	border: none;
	color: #fff;
	font-size: 28px;
	width: 40px;
	height: 40px;
	border-radius: 20px;
	cursor: pointer;
	z-index: 10000;
}

/* Grid gallery */

.eon-gallery-grid {
	width: 100%;
}

.eon-gallery-grid .eon-grid-items {
	display: grid;
	grid-template-columns: repeat(var(--eon-grid-columns, 3), minmax(0, 1fr));
	grid-auto-rows: auto;
	gap: var(--eon-grid-gap, 16px);
}

.eon-gallery-grid .eon-grid-item {
	width: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
}

.eon-gallery-grid .eon-grid-item img {
	max-width: var(--eon-grid-icon-width, 100%);
	max-height: var(--eon-grid-row-height, none);
	height: auto;
	object-fit: contain;
	display: block;
}
