/* ─────────────────────────────────────────────────────────
   Completed Works Widget
   ───────────────────────────────────────────────────────── */

.cw-widget {
	width: 100%;
}

/* Each post row */
.cw-item {
	padding: 50px 0;
	border-bottom: 1px solid #8A9FA9;
}
.cw-item:last-of-type {
	border-bottom: none;
}

.cw-item-inner {
	display: flex;
	gap: 48px;
	max-width: 1200px;
	margin: 0 auto;
}

/* Left column — media */
.cw-media {
	flex: 0 0 45%;
	max-width: 45%;
	min-width: 0;
}

/* Right column — content */
.cw-content {
	flex: 1;
	min-width: 0;
}

.cw-title {
	color: #004060;
	font-size: 36px;
	font-weight: 700;
	line-height: 1.25;
	margin: 0 0 20px;
}

.cw-description {
	color: #7A7A7A;
	font-size: 17px;
	line-height: 1.75;
}
.cw-description p {
	margin: 0 0 12px;
}
.cw-description p:last-child {
	margin-bottom: 0;
}

/* ─────────────────────────────────────────────────────────
   Beer Slide (before / after)
   ───────────────────────────────────────────────────────── */

.cw-beer-slide {
	position: relative;
	overflow: hidden;
	cursor: ew-resize;
	user-select: none;
	-webkit-user-select: none;
	touch-action: pan-y;
	line-height: 0;
}

/* After image — sits in normal flow, defines container height */
.cw-beer-base-img {
	display: block;
	width: 100%;
	height: auto;
}

/* Prevent native image drag on all beer slide images */
.cw-beer-slide img {
	-webkit-user-drag: none;
	user-drag: none;
	-webkit-user-select: none;
	user-select: none;
	pointer-events: none;
}

/* Before overlay — clips from the right, width driven by JS */
.cw-beer-before-wrap {
	position: absolute;
	top: 0;
	left: 0;
	bottom: 0;
	width: 50%;
	overflow: hidden;
}
.cw-beer-before-wrap img {
	display: block;
	position: absolute;
	top: 0;
	left: 0;
	height: 100%;
	width: auto;
	max-width: none;
}

/* Handle button + white separator line */
.cw-beer-handle {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	z-index: 10;
	background: #005572;
	color: #fff;
	padding: 8px 10px;
	border-radius: 3px;
	font-size: 16px;
	line-height: 1;
	pointer-events: none;
	white-space: nowrap;
}

/* White vertical separator line — sits behind the handle */
.cw-beer-separator {
	position: absolute;
	top: 0;
	bottom: 0;
	left: 50%;
	width: 3px;
	transform: translateX(-50%);
	background: #fff;
	z-index: 9;
	pointer-events: none;
}

/* Prieš / Po labels */
.cw-beer-label {
	position: absolute;
	top: 0;
	z-index: 8;
	background: #005572;
	color: #fff;
	font-size: 13px;
	font-weight: 500;
	padding: 5px 12px;
	pointer-events: none;
	line-height: 1.4;
}
.cw-beer-label--before { left: 0; }
.cw-beer-label--after  { right: 0; }

/* ─────────────────────────────────────────────────────────
   Swiper — Beer slide carousel (multiple before/after)
   ───────────────────────────────────────────────────────── */

.cw-beer-swiper-wrap {
	width: 100%;
}

.cw-beer-swiper {
	width: 100%;
	overflow: hidden;
}
.cw-beer-swiper .swiper-wrapper {
	display: flex;
	flex-wrap: nowrap;
}
.cw-beer-swiper .swiper-slide {
	width: 100%;
	flex-shrink: 0;
	height: auto;
}

/* Pagination dots — outside the swiper container */
.cw-beer-pagination {
	display: flex;
	justify-content: center;
	margin-top: 12px;
}
.cw-beer-pagination .swiper-pagination-bullet {
	display: inline-block;
	width: 10px;
	height: 10px;
	border-radius: 50%;
	background: #005A77 !important;
	cursor: pointer;
	transition: opacity 0.2s;
}
.cw-beer-pagination .swiper-pagination-bullet-active {
	background: #6EC1E4 !important;
}

/* ─────────────────────────────────────────────────────────
   Swiper — Gallery carousel
   ───────────────────────────────────────────────────────── */

.cw-gallery-swiper {
	width: 100%;
	overflow: hidden;
}
.cw-gallery-swiper .swiper-wrapper {
	display: flex;
	flex-wrap: nowrap;
}
.cw-gallery-swiper .swiper-slide {
	width: 100%;
	flex-shrink: 0;
}
.cw-gallery-swiper .swiper-slide img {
	display: block;
	width: 100%;
	height: auto;
}

/* Pagination dots — outside the swiper container */
.cw-gallery-pagination {
	display: flex;
	justify-content: center;
	margin-top: 12px;
}
.cw-gallery-pagination .swiper-pagination-bullet {
	display: inline-block;
	width: 10px;
	height: 10px;
	border-radius: 50%;
	background: #005A77 !important;
	cursor: pointer;
	transition: opacity 0.2s;
}
.cw-gallery-pagination .swiper-pagination-bullet-active {
	background: #6EC1E4 !important;
}

/* Navigation arrows */
.cw-gallery-swiper .swiper-button-prev,
.cw-gallery-swiper .swiper-button-next {
	color: #005572;
	width: 32px;
	height: 32px;
}
.cw-gallery-swiper .swiper-button-prev::after,
.cw-gallery-swiper .swiper-button-next::after {
	font-size: 20px;
	font-weight: 700;
}

/* ─────────────────────────────────────────────────────────
   Pagination
   ───────────────────────────────────────────────────────── */

.cw-pagination {
	margin-top: 40px;
	text-align: center;
}
.cw-pagination ul {
	list-style: none;
	margin: 0;
	padding: 0;
	display: inline-flex;
	gap: 6px;
	align-items: center;
}
.cw-pagination ul li a,
.cw-pagination ul li span {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 36px;
	height: 36px;
	padding: 0 8px;
	border: 1px solid #c8d8e0;
	border-radius: 3px;
	color: #004060;
	font-size: 14px;
	text-decoration: none;
	transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.cw-pagination ul li a:hover {
	background: #005572;
	border-color: #005572;
	color: #fff;
}
.cw-pagination ul li span.current {
	background: #005572;
	border-color: #005572;
	color: #fff;
}

/* ─────────────────────────────────────────────────────────
   Responsive
   ───────────────────────────────────────────────────────── */

@media (max-width: 768px) {
	.cw-item-inner {
		flex-direction: column;
		gap: 24px;
	}
	.cw-media {
		flex: none;
		max-width: 100%;
		width: 100%;
	}
	.cw-item {
		padding: 32px 0;
	}
}