.wpic-carousel {
	--wpic-arrow-color: #ffffff;
	--wpic-arrow-bg: rgba(0, 0, 0, 0.5);
	--wpic-dot-color: #cccccc;
	--wpic-dot-active-color: #333333;
	--wpic-gap: 10px;
	position: relative;
	width: 100%;
	box-sizing: border-box;
}

.wpic-carousel * {
	box-sizing: border-box;
}

.wpic-viewport {
	position: relative;
	overflow: hidden;
	width: 100%;
}

.wpic-track {
	display: flex;
	gap: var(--wpic-gap);
	will-change: transform;
	transition: transform 0.35s ease;
}

.wpic-carousel.wpic-effect-fade .wpic-track {
	transition: none;
}

.wpic-slide {
	position: relative;
	flex: 0 0 auto;
}

.wpic-carousel.wpic-effect-fade .wpic-slide {
	position: absolute;
	top: 0;
	left: 0;
	opacity: 0;
	pointer-events: none;
	transition: opacity 0.5s ease;
}

.wpic-carousel.wpic-effect-fade .wpic-slide.wpic-active {
	position: relative;
	opacity: 1;
	pointer-events: auto;
}

.wpic-slide-img {
	display: block;
	max-width: 100%;
	height: auto;
	border-radius: 4px;
}

.wpic-caption {
	margin-top: 6px;
	font-size: 0.85em;
	text-align: center;
	color: #555;
}

.wpic-arrow {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	z-index: 5;
	width: 40px;
	height: 40px;
	border: none;
	border-radius: 50%;
	background: var(--wpic-arrow-bg);
	color: var(--wpic-arrow-color);
	font-size: 16px;
	line-height: 1;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: opacity 0.2s ease, background 0.2s ease;
	padding: 0;
}

.wpic-arrow:hover {
	opacity: 0.85;
}

.wpic-arrow:focus-visible {
	outline: 2px solid var(--wpic-arrow-color);
	outline-offset: 2px;
}

.wpic-arrow-prev {
	left: 8px;
}

.wpic-arrow-next {
	right: 8px;
}

.wpic-arrow[disabled] {
	opacity: 0.3;
	cursor: default;
}

.wpic-dots {
	display: flex;
	justify-content: center;
	gap: 8px;
	margin-top: 12px;
}

.wpic-dot {
	width: 9px;
	height: 9px;
	border-radius: 50%;
	background: var(--wpic-dot-color);
	border: none;
	padding: 0;
	cursor: pointer;
	transition: background 0.2s ease, transform 0.2s ease;
}

.wpic-dot.wpic-active {
	background: var(--wpic-dot-active-color);
	transform: scale(1.2);
}

/* Lightbox */
.wpic-lightbox {
	position: fixed;
	inset: 0;
	background: rgba(0, 0, 0, 0.85);
	display: flex;
	align-items: center;
	justify-content: center;
	z-index: 100000;
	padding: 24px;
}

.wpic-lightbox[hidden] {
	display: none;
}

.wpic-lightbox-img {
	max-width: 100%;
	max-height: 100%;
	border-radius: 4px;
}

.wpic-lightbox-close {
	position: absolute;
	top: 16px;
	right: 24px;
	background: transparent;
	border: none;
	color: #fff;
	font-size: 32px;
	line-height: 1;
	cursor: pointer;
}

/* Responsywność - liczba slajdów jest ustawiana też przez JS (inline width),
   te reguły to zabezpieczenie/fallback i dopracowanie odstępów na mniejszych ekranach. */
@media (max-width: 782px) {
	.wpic-arrow {
		width: 34px;
		height: 34px;
		font-size: 14px;
	}
}
