/**
 * Pretpot Image Carousel Styles
 */

/* ========== CAROUSEL WRAPPER ========== */
.pretpot-image-carousel-wrapper {
	width: 100%;
	position: relative;
}

/* ========== CAROUSEL TITLE ========== */
.pretpot-carousel-title {
	margin: 0 0 20px 0;
	font-size: 28px;
	font-weight: 700;
	line-height: 1.3;
}

/* ========== CAROUSEL CONTAINER ========== */
.pretpot-carousel-container {
	width: 100%;
	position: relative;
	overflow-x: auto;
	overflow-y: hidden;
	cursor: grab;
	-webkit-overflow-scrolling: touch;
	scrollbar-width: none;
	-ms-overflow-style: none;
}

.pretpot-carousel-container::-webkit-scrollbar {
	display: none;
}

.pretpot-carousel-container:active {
	cursor: grabbing;
}

/* ========== CAROUSEL TRACK ========== */
.pretpot-carousel-track {
	display: flex;
	flex-direction: row;
	gap: 0;
	transition: padding-left 0.3s ease;
}

/* ========== CAROUSEL SLIDE ========== */
.pretpot-carousel-slide {
	flex-shrink: 0;
	position: relative;
	user-select: none;
	-webkit-user-select: none;
	-moz-user-select: none;
	-ms-user-select: none;
}

.pretpot-carousel-slide-image {
	position: relative;
	width: 100%;
	height: 400px;
	overflow: hidden;
	border-radius: 8px;
}

.pretpot-carousel-slide-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
	display: block;
	pointer-events: none;
	user-select: none;
	-webkit-user-drag: none;
}

/* New class for stretched images */
.pretpot-carousel-slide-image img.pretpot-stretch-image {
	object-fit: fill !important;
}

/* ========== IMAGE OVERLAY ========== */
.pretpot-carousel-overlay {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(0, 0, 0, 0.3);
	pointer-events: none;
	z-index: 1;
}

/* ========== IMAGE TITLE ========== */
.pretpot-carousel-image-title {
	position: absolute;
	z-index: 2;
	font-size: 20px;
	font-weight: 700;
	color: #ffffff;
	text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
	padding: 15px;
	max-width: 90%;
	word-wrap: break-word;
}

.pretpot-carousel-image-title.top-left {
	top: 0;
	left: 0;
}

.pretpot-carousel-image-title.top-center {
	top: 0;
	left: 50%;
	transform: translateX(-50%);
	text-align: center;
}

.pretpot-carousel-image-title.top-right {
	top: 0;
	right: 0;
	text-align: right;
}

/* ========== IMAGE DESCRIPTION ========== */
.pretpot-carousel-image-description {
	position: absolute;
	z-index: 2;
	font-size: 14px;
	font-weight: 400;
	color: #ffffff;
	text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
	padding: 15px;
	max-width: 90%;
	word-wrap: break-word;
	line-height: 1.5;
}

.pretpot-carousel-image-description.bottom-left {
	bottom: 0;
	left: 0;
}

.pretpot-carousel-image-description.bottom-center {
	bottom: 0;
	left: 50%;
	transform: translateX(-50%);
	text-align: center;
}

.pretpot-carousel-image-description.bottom-right {
	bottom: 0;
	right: 0;
	text-align: right;
}

/* ========== SLIDE ICON ========== */
.pretpot-carousel-slide-icon {
	position: absolute;
	bottom: 15px;
	right: 15px;
	z-index: 2;
	font-size: 24px;
	color: #ffffff;
	text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
	display: flex;
	align-items: center;
	justify-content: center;
}

/* ========== NAVIGATION WRAPPER ========== */
.pretpot-carousel-navigation {
	display: flex;
	align-items: center;
	gap: 15px;
	margin-top: 20px;
	justify-content: center;
}

/* ========== ARROWS NAVIGATION ========== */
.pretpot-carousel-arrow {
	background: transparent;
	border: 2px solid currentColor;
	border-radius: 50%;
	width: 44px;
	height: 44px;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	transition: all 0.3s ease;
	font-size: 20px;
	color: #000000;
	outline: none;
	padding: 0;
}

/* Force icon visibility and proper sizing */
.pretpot-carousel-arrow i,
.pretpot-carousel-arrow svg {
	display: block !important;
	width: 1em !important;
	height: 1em !important;
	max-width: 100% !important;
	max-height: 100% !important;
}

/* Ensure icon colors inherit properly */
.pretpot-carousel-arrow i {
	color: inherit !important;
}

.pretpot-carousel-arrow svg {
	fill: currentColor !important;
}

.pretpot-carousel-arrow:hover {
	background: currentColor;
}

.pretpot-carousel-arrow:hover i,
.pretpot-carousel-arrow:hover svg {
	color: #ffffff !important;
	fill: #ffffff !important;
}

.pretpot-carousel-arrow:disabled {
	opacity: 0.3;
	cursor: not-allowed;
	pointer-events: none;
}

/* Force icon visibility */
.pretpot-carousel-arrow * {
	pointer-events: none;
}

/* ========== DOTS NAVIGATION ========== */
.pretpot-carousel-dots {
	display: flex;
	gap: 10px;
	align-items: center;
}

.pretpot-carousel-dot {
	width: 10px;
	height: 10px;
	border-radius: 50%;
	background-color: #cccccc;
	border: none;
	cursor: pointer;
	transition: all 0.3s ease;
	padding: 0;
}

.pretpot-carousel-dot.active {
	width: 12px;
	height: 12px;
	background-color: #007bff;
}

.pretpot-carousel-dot:hover {
	transform: scale(1.2);
}

/* ========== TIMELINE NAVIGATION ========== */
.pretpot-carousel-timeline {
	display: flex;
	gap: 8px;
	width: 100%;
	max-width: 400px;
}

.pretpot-carousel-timeline-bar {
	flex: 1;
	height: 4px;
	background-color: #cccccc;
	border-radius: 2px;
	cursor: pointer;
	transition: all 0.3s ease;
	position: relative;
	overflow: hidden;
}

.pretpot-carousel-timeline-bar.active {
	background-color: #007bff;
}

.pretpot-carousel-timeline-bar:hover {
	transform: scaleY(1.5);
}

/* ========== LIGHTBOX ========== */
.pretpot-carousel-lightbox {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background-color: rgba(0, 0, 0, 0.9);
	z-index: 99999;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 40px;
	box-sizing: border-box;
}

.pretpot-carousel-lightbox-close {
	position: absolute;
	top: 20px;
	right: 20px;
	background: transparent;
	border: none;
	color: #ffffff;
	font-size: 30px;
	cursor: pointer;
	z-index: 100000;
	width: 44px;
	height: 44px;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: transform 0.2s ease;
	line-height: 1;
}

.pretpot-carousel-lightbox-close:hover {
	transform: scale(1.2);
}

.pretpot-carousel-lightbox-content {
	max-width: 90%;
	max-height: 90%;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 20px;
}

.pretpot-carousel-lightbox-image {
	max-width: 100%;
	max-height: calc(90vh - 100px);
	object-fit: contain;
	border-radius: 8px;
	box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

.pretpot-carousel-lightbox-description {
	color: #ffffff;
	font-size: 16px;
	line-height: 1.6;
	text-align: center;
	max-width: 600px;
}

/* ========== RESPONSIVE ADJUSTMENTS ========== */
@media (max-width: 1024px) {
	.pretpot-carousel-title {
		font-size: 24px;
	}

	.pretpot-carousel-image-title {
		font-size: 18px;
		padding: 12px;
	}

	.pretpot-carousel-image-description {
		font-size: 13px;
		padding: 12px;
	}

	.pretpot-carousel-slide-icon {
		font-size: 20px;
		bottom: 12px;
		right: 12px;
	}
}

@media (max-width: 767px) {
	.pretpot-carousel-title {
		font-size: 20px;
		margin-bottom: 15px;
	}

	.pretpot-carousel-slide-image {
		height: 300px;
	}

	.pretpot-carousel-image-title {
		font-size: 16px;
		padding: 10px;
	}

	.pretpot-carousel-image-description {
		font-size: 12px;
		padding: 10px;
	}

	.pretpot-carousel-slide-icon {
		font-size: 18px;
		bottom: 10px;
		right: 10px;
	}

	.pretpot-carousel-arrow {
		width: 38px;
		height: 38px;
		font-size: 16px;
	}

	.pretpot-carousel-navigation {
		gap: 10px;
		margin-top: 15px;
	}

	.pretpot-carousel-lightbox {
		padding: 20px;
	}

	.pretpot-carousel-lightbox-close {
		top: 10px;
		right: 10px;
		font-size: 24px;
		width: 38px;
		height: 38px;
	}

	.pretpot-carousel-lightbox-description {
		font-size: 14px;
	}
}

/* ========== ELEMENTOR EDITOR ADJUSTMENTS ========== */
.elementor-editor-active .pretpot-carousel-container {
	overflow-x: visible;
}

/* ========== ACCESSIBILITY ========== */
.pretpot-carousel-arrow:focus,
.pretpot-carousel-dot:focus,
.pretpot-carousel-timeline-bar:focus,
.pretpot-carousel-progress-segment:focus {
	outline: 2px solid #007bff;
	outline-offset: 2px;
}

/* ========== ANIMATIONS ========== */
@keyframes fadeIn {
	from {
		opacity: 0;
	}
	to {
		opacity: 1;
	}
}

.pretpot-carousel-lightbox {
	animation: fadeIn 0.3s ease;
}

/* ========== CUSTOM SCROLLBAR (Optional) ========== */
.pretpot-carousel-container.show-scrollbar {
	scrollbar-width: thin;
	scrollbar-color: rgba(0, 0, 0, 0.3) transparent;
}

.pretpot-carousel-container.show-scrollbar::-webkit-scrollbar {
	display: block;
	height: 6px;
}

.pretpot-carousel-container.show-scrollbar::-webkit-scrollbar-track {
	background: transparent;
}

.pretpot-carousel-container.show-scrollbar::-webkit-scrollbar-thumb {
	background-color: rgba(0, 0, 0, 0.3);
	border-radius: 3px;
}

.pretpot-carousel-container.show-scrollbar::-webkit-scrollbar-thumb:hover {
	background-color: rgba(0, 0, 0, 0.5);
}