.xewex-tg-carousel {
	margin: 1.5em 0;
	position: relative;
}

.xewex-tg-carousel-track {
	display: flex;
	gap: 12px;
	overflow-x: auto;
	padding: 4px 2px 12px;
	scroll-behavior: smooth;
	scroll-snap-type: x mandatory;
}

.xewex-tg-carousel-item {
	flex: 0 0 auto;
	margin: 0;
	scroll-snap-align: start;
}

.xewex-tg-carousel-link,
.xewex-tg-media-single {
	display: block;
}

.xewex-tg-carousel .xewex-tg-carousel-image {
	background: #f3f4f5;
	display: block;
	height: clamp(220px, 34vw, 380px);
	max-width: min(82vw, 640px);
	object-fit: contain;
	width: auto;
}

.xewex-tg-single-image {
	margin: 1.5em 0;
}

.xewex-tg-single-image .xewex-tg-carousel-image {
	height: auto;
	max-width: 100%;
}

.xewex-tg-carousel-button {
	align-items: center;
	background: rgba(0, 0, 0, 0.68);
	border: 0;
	border-radius: 50%;
	color: #fff;
	cursor: pointer;
	display: flex;
	font-size: 25px;
	height: 42px;
	justify-content: center;
	line-height: 1;
	padding: 0;
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	width: 42px;
	z-index: 2;
}

.xewex-tg-carousel-button--previous {
	left: 8px;
}

.xewex-tg-carousel-button--next {
	right: 8px;
}

.xewex-tg-lightbox {
	background: transparent;
	border: 0;
	box-sizing: border-box;
	height: 100%;
	margin: auto;
	max-height: 100%;
	max-width: 100%;
	padding: 24px 64px;
	width: 100%;
}

.xewex-tg-lightbox::backdrop {
	background: rgba(0, 0, 0, 0.9);
}

.xewex-tg-lightbox-image {
	display: block;
	height: 100%;
	margin: auto;
	max-height: calc(100vh - 48px);
	max-width: 100%;
	object-fit: contain;
	width: 100%;
}

.xewex-tg-lightbox-button {
	background: rgba(0, 0, 0, 0.65);
	border: 0;
	color: #fff;
	cursor: pointer;
	font-size: 32px;
	line-height: 1;
	padding: 12px;
	position: fixed;
	z-index: 3;
}

.xewex-tg-lightbox-close {
	right: 16px;
	top: 12px;
}

.xewex-tg-lightbox-previous,
.xewex-tg-lightbox-next {
	top: 50%;
	transform: translateY(-50%);
}

.xewex-tg-lightbox-previous {
	left: 12px;
}

.xewex-tg-lightbox-next {
	right: 12px;
}

@media (max-width: 600px) {
	.xewex-tg-carousel-button {
		height: 36px;
		width: 36px;
	}

	.xewex-tg-lightbox {
		padding: 52px 12px;
	}
}
