/* ============================================================
   Swiper Carousel Widget – Styles
   ============================================================ */

.sc-container {
	position: relative;
	width: 100%;
}

.sc-marquee {
	overflow: hidden;
	position: relative;
	width: 100%;
	cursor: grab;
	user-select: none;
}

.sc-marquee.is-dragging {
	cursor: grabbing;
}

.sc-track {
	display: flex;
	width: max-content;
	will-change: transform;
}

.sc-slide {
	flex: 0 0 auto;
}

.sc-slide img {
	display: block;
	width: 100%;
	-webkit-user-drag: none;
	user-select: none;
}

/* ---------- Pagination ---------- */
.sc-container .swiper-pagination {
	position: relative;
	margin-top: 16px;
	text-align: center;
}

.sc-container .swiper-pagination-bullet {
	width: 10px;
	height: 10px;
	background: #ccc;
	opacity: 1;
	transition: background 300ms ease, transform 300ms ease;
}

.sc-container .swiper-pagination-bullet-active {
	transform: scale(1.3);
}

/* ---------- Navigation arrows ---------- */
.sc-arrow {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	z-index: 10;
	width: 40px;
	height: 40px;
	display: flex;
	align-items: center;
	justify-content: center;
	background: rgba(255, 255, 255, 0.9);
	border-radius: 50%;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
	cursor: pointer;
	transition: opacity 250ms ease, transform 250ms ease;
	opacity: 0;
}

.sc-container:hover .sc-arrow {
	opacity: 1;
}

.sc-arrow:hover {
	transform: translateY(-50%) scale(1.1);
}

@media (max-width: 768px) {
	.sc-arrow {
		display: none;
	}
}

.sc-arrow-prev {
	left: 12px;
}

.sc-arrow-next {
	right: 12px;
}

/* ---------- Lightbox ---------- */
.sc-container[data-lightbox="true"] .sc-slide {
	cursor: zoom-in;
}

.sc-lightbox {
	position: fixed;
	inset: 0;
	z-index: 999999;
	display: flex;
	flex-direction: row;
	align-items: center;
	justify-content: center;
	gap: 20px;
	padding: 40px 20px;
	background: rgba(0, 0, 0, 0.85);
	opacity: 0;
	visibility: hidden;
	transition: opacity 300ms ease, visibility 300ms ease;
}

.sc-lightbox.is-open {
	opacity: 1;
	visibility: visible;
}

.sc-lightbox-img {
	max-width: 75vw;
	max-height: 85vh;
	object-fit: contain;
	border-radius: 4px;
	transform: scale(0.9);
	transition: transform 300ms ease;
	flex-shrink: 1;
}

.sc-lightbox.is-open .sc-lightbox-img {
	transform: scale(1);
}

.sc-lightbox-close {
	position: absolute;
	top: 20px;
	right: 24px;
	background: none;
	border: none;
	color: #fff;
	font-size: 36px;
	line-height: 1;
	cursor: pointer;
	opacity: 0.8;
	transition: opacity 200ms ease;
	z-index: 2;
}

.sc-lightbox-close:hover {
	opacity: 1;
}

.sc-lightbox-prev,
.sc-lightbox-next {
	flex-shrink: 0;
	background: rgba(255, 255, 255, 0.15);
	border: none;
	color: #fff;
	width: 48px;
	height: 48px;
	border-radius: 50%;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	opacity: 0.7;
	transition: opacity 200ms ease, background 200ms ease;
}

.sc-lightbox-prev:hover,
.sc-lightbox-next:hover {
	opacity: 1;
	background: rgba(255, 255, 255, 0.25);
}
