/* ==========================================================================
   Wave Image Carousel — Frontend Styles
   ========================================================================== */

.wic-carousel-wrapper {
	--wic-wave-offset: 40px;
	--wic-base-height: 300px;
	position: relative;
	width: 100%;
	padding: 0 64px;
	box-sizing: border-box;
}

/* Full width breakout — spans the viewport even inside a boxed section */
.wic-carousel-wrapper.wic-full-width {
	width: 100vw;
	position: relative;
	left: 50%;
	right: 50%;
	margin-left: -50vw;
	margin-right: -50vw;
	max-width: 100vw;
	padding: 0;
}

.wic-carousel-wrapper.wic-full-width .wic-arrow-prev {
	left: 16px;
}

.wic-carousel-wrapper.wic-full-width .wic-arrow-next {
	right: 16px;
}

.wic-swiper {
	width: 100%;
	overflow: hidden;
	padding: 20px 0;
}

.wic-swiper .swiper-wrapper {
	align-items: center;
}

.wic-swiper .swiper-slide {
	height: auto;
	display: flex;
	align-items: center;
}

/* -------------------- Slide / Image -------------------- */

.wic-slide-inner {
	position: relative;
	width: 100%;
	height: var(--wic-base-height, 500px);
	border-radius: 28px;
	overflow: hidden !important;
	transition: height 0.3s ease, box-shadow 0.4s ease;
	background: #eee;
}

.wic-slide-inner img {
	display: block !important;
	width: 100% !important;
	height: 100% !important;
	max-width: 100% !important;
	object-fit: cover !important;
	border-radius: inherit;
	transition: transform 0.5s ease;
}

.wic-zoom-on .wic-slide-inner:hover img {
	transform: scale(1.08) translateZ(0);
	backface-visibility: hidden;
}

/* Wave stagger effect: alternate taller / shorter slides, centered in the row */
.wic-wave-on .wic-slide-inner.wic-offset-down {
	height: calc(var(--wic-base-height, 500px) + var(--wic-wave-offset, 70px));
}

.wic-wave-on .wic-slide-inner.wic-offset-up {
	height: calc(var(--wic-base-height, 500px) - var(--wic-wave-offset, 70px));
}

.wic-zoom-on .wic-slide-inner:hover {
	box-shadow: 0 14px 30px rgba(0, 0, 0, 0.22);
}

.wic-slide-link,
.wic-lightbox-trigger {
	display: block;
	width: 100%;
	height: 100%;
	border: 0;
	padding: 0;
	margin: 0;
	background: none;
	cursor: pointer;
}

.wic-lightbox-trigger {
	cursor: zoom-in;
}

/* -------------------- Arrows -------------------- */

.wic-arrow {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	width: 44px;
	height: 44px;
	border-radius: 50%;
	border: none;
	background-color: #ffffff;
	color: #222222;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15);
	transition: background-color 0.25s ease, color 0.25s ease, transform 0.25s ease;
	z-index: 5;
	font-size: 16px;
}

.wic-arrow:hover {
	background-color: #222222;
	color: #ffffff;
}

.wic-arrow-prev {
	left: 0;
}

.wic-arrow-next {
	right: 0;
}

.wic-arrow.swiper-button-disabled {
	opacity: 0.35;
	cursor: default;
	pointer-events: none;
}

/* -------------------- Dots -------------------- */

.wic-pagination.swiper-pagination {
	position: relative;
	margin-top: 28px;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
}

.wic-pagination .swiper-pagination-bullet {
	width: 9px;
	height: 9px;
	background-color: #d0d0d0;
	opacity: 1;
	margin: 0;
	transition: background-color 0.25s ease, transform 0.25s ease;
}

.wic-pagination .swiper-pagination-bullet-active {
	background-color: #222222;
	transform: scale(1.2);
}

/* -------------------- Lightbox -------------------- */

.wic-lightbox {
	position: fixed;
	inset: 0;
	background: rgba(0, 0, 0, 0.92);
	display: flex;
	align-items: center;
	justify-content: center;
	z-index: 999999;
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.3s ease;
}

.wic-lightbox.wic-active {
	opacity: 1;
	visibility: visible;
}

.wic-lightbox-content {
	max-width: 88vw;
	max-height: 86vh;
	display: flex;
	flex-direction: column;
	align-items: center;
}

.wic-lightbox-content img {
	max-width: 88vw;
	max-height: 78vh;
	object-fit: contain;
	border-radius: 6px;
	box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
	opacity: 0;
	transform: scale(0.96);
	transition: opacity 0.25s ease, transform 0.25s ease;
}

.wic-lightbox-content img.wic-loaded {
	opacity: 1;
	transform: scale(1);
}

.wic-lightbox-caption {
	color: #f2f2f2;
	margin-top: 14px;
	font-size: 15px;
	text-align: center;
	max-width: 70vw;
}

.wic-lightbox-close,
.wic-lightbox-prev,
.wic-lightbox-next {
	position: absolute;
	background: rgba(255, 255, 255, 0.1);
	border: none;
	color: #ffffff;
	cursor: pointer;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: background-color 0.25s ease;
}

.wic-lightbox-close:hover,
.wic-lightbox-prev:hover,
.wic-lightbox-next:hover {
	background: rgba(255, 255, 255, 0.25);
}

.wic-lightbox-close {
	top: 24px;
	right: 24px;
	width: 44px;
	height: 44px;
	font-size: 28px;
	line-height: 1;
}

.wic-lightbox-prev,
.wic-lightbox-next {
	top: 50%;
	transform: translateY(-50%);
	width: 50px;
	height: 50px;
	font-size: 18px;
}

.wic-lightbox-prev {
	left: 24px;
}

.wic-lightbox-next {
	right: 24px;
}

/* -------------------- Responsive -------------------- */

@media (max-width: 1024px) {
	.wic-carousel-wrapper {
		padding: 0 48px;
	}

	.wic-arrow {
		width: 38px;
		height: 38px;
		font-size: 14px;
	}
}

@media (max-width: 767px) {
	.wic-carousel-wrapper {
		padding: 0 36px;
		--wic-wave-offset: 12px;
	}

	.wic-slide-inner {
		border-radius: 18px;
	}

	.wic-arrow {
		width: 32px;
		height: 32px;
		font-size: 12px;
	}

	.wic-lightbox-prev,
	.wic-lightbox-next {
		width: 40px;
		height: 40px;
	}

	.wic-lightbox-close {
		top: 12px;
		right: 12px;
	}

	.wic-lightbox-prev {
		left: 8px;
	}

	.wic-lightbox-next {
		right: 8px;
	}
}
