/**
 * Work Gallery Focus block — centered Swiper carousel.
 *
 * @package PEAKT_Core
 */

.work-gallery-focus-wrapper {
	width: 100%;
	max-width: 100%;
	box-sizing: border-box;
}

.work-gallery-focus__title h4 {
	color: #000;
	font-family: "Druk Wide", sans-serif;
	font-size: 18px;
	font-weight: 500;
	line-height: 1.2;
	text-transform: uppercase;
	margin: 0 0 24px;
}

.work-gallery-focus__viewport {
	overflow: hidden;
	margin: 0 -12px;
}

.work-gallery-focus-swiper {
	overflow: visible;
}

.work-gallery-focus-swiper .swiper-slide {
	width: 100%;
	max-width: 1208px;
	height: auto;
	box-sizing: border-box;
	transition: opacity 0.35s ease, filter 0.35s ease, transform 0.35s ease;
}

.work-gallery-focus-swiper .swiper-slide:not(.swiper-slide-active) {
	opacity: 0.42;
	filter: saturate(0.65) brightness(1.08);
}

.work-gallery-focus-swiper .swiper-slide-active {
	opacity: 1;
	filter: none;
	z-index: 2;
}

.work-gallery-focus__slide {
	position: relative;
	border-radius: 18px;
	overflow: hidden;
	background: #f0f0f0;
	transform-origin: center center;
	transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.work-gallery-focus__slide::after {
	content: "";
	position: absolute;
	inset: 0;
	border-radius: inherit;
	pointer-events: none;
	background: rgba(255, 255, 255, 0);
	transition: background 0.35s ease;
}

.work-gallery-focus-swiper .swiper-slide:not(.swiper-slide-active) .work-gallery-focus__slide::after {
	background: rgba(255, 255, 255, 0.35);
}

.work-gallery-focus__slide img {
	display: block;
	width: 100%;
	height: 100%;
	max-height: 674px !important;
	object-fit: cover;
	vertical-align: middle;
}

.work-gallery-focus__nav {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 40px;
	margin-top: 32px;
}

.work-gallery-focus__btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 0;
	border: none;
	background: transparent;
	color: #000;
	cursor: pointer;
	transition: color 0.2s ease, opacity 0.2s ease;
}

.work-gallery-focus__btn:hover {
	color: #ffbf3f;
}

.work-gallery-focus__btn.swiper-button-disabled {
	opacity: 0.25;
	cursor: not-allowed;
	pointer-events: none;
}

.work-gallery-focus__counter {
	font-family: var(--wp--preset--font-family--druk-wide) !important;
	font-size: 18px;
	font-weight: 500;
	line-height: 14px;
	text-transform: uppercase;
	color: #000;
	width: 60px;
}

.work-gallery-focus__sep {
	font-weight: 600;
	color: #ffbf3f;
}

@media (max-width: 1280px) {
	.work-gallery-focus-swiper .swiper-slide {
		max-width: 100%;
		width: 78vw;
	}

	.work-gallery-focus__slide {
		height: 100%;
	}

	.work-gallery-focus__slide img {
		max-height: 100% !important;
	}

	.work-gallery-focus__nav {
		margin-top: 20px;
	}
}

@media (max-width: 600px) {
	.work-gallery-focus__slide img {
		height: clamp(200px, 55vw, 320px);
	}
}
