/* WDT custom PhotoSwipe lightbox — isolated from Woodmart theme styles. */

.pswp.wdt-pswp {
	--wdt-lb-control-bg: rgba(255, 255, 255, 0.12);
	--wdt-lb-control-bg-hover: rgba(255, 255, 255, 0.22);
	--wdt-lb-control-color: #fff;
	--wdt-lb-control-size: 44px;
	--wdt-lb-arrow-size: 48px;
	--wdt-lb-z: 100050;
	z-index: var(--wdt-lb-z);
	display: none;
	position: fixed;
	inset: 0;
	overflow: hidden;
	touch-action: none;
	outline: 0;
	-webkit-text-size-adjust: 100%;
}

.pswp.wdt-pswp img {
	max-width: none;
}

.pswp.wdt-pswp.pswp--open {
	display: block;
}

.pswp.wdt-pswp.pswp--animate_opacity {
	opacity: 0.001;
	transition: opacity 0.3s ease;
	will-change: opacity;
}

.pswp.wdt-pswp .pswp__bg {
	position: absolute;
	inset: 0;
	background: #000;
	will-change: opacity;
}

.pswp.wdt-pswp .pswp__scroll-wrap {
	position: absolute;
	inset: 0;
	overflow: hidden;
}

.pswp.wdt-pswp :is(.pswp__container, .pswp__zoom-wrap) {
	position: absolute;
	inset: 0;
	touch-action: none;
}

.pswp.wdt-pswp :is(.pswp__container, .pswp__img) {
	user-select: none;
	-webkit-tap-highlight-color: transparent;
}

.pswp.wdt-pswp .pswp__zoom-wrap {
	width: 100%;
	transform-origin: left top;
	transition: transform 0.3s ease;
}

.pswp.wdt-pswp .pswp__item {
	position: absolute;
	inset: 0;
	overflow: hidden;
}

.pswp.wdt-pswp .pswp__img {
	position: absolute;
	top: 0;
	left: 0;
	width: auto;
	height: auto;
	border-radius: 0;
}

.pswp.wdt-pswp.pswp--zoom-allowed .pswp__img {
	cursor: zoom-in;
}

.pswp.wdt-pswp.pswp--zoomed-in .pswp__img {
	cursor: grab;
}

.pswp.wdt-pswp.pswp--dragging .pswp__img {
	cursor: grabbing;
}

.pswp.wdt-pswp .pswp__ui {
	position: absolute;
	inset: 0;
	pointer-events: none;
}

.pswp.wdt-pswp .pswp__top-bar {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 16px 20px;
	pointer-events: none;
	background: none;
}

.pswp.wdt-pswp .pswp__counter {
	float: none;
	position: static;
	margin: 0;
	padding: 0;
	height: auto;
	min-height: 0;
	color: var(--wdt-lb-control-color);
	font: 500 14px/1.2 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
	opacity: 0.9;
	pointer-events: none;
	background: none;
}

.pswp.wdt-pswp .pswp__button {
	all: unset;
	box-sizing: border-box;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: var(--wdt-lb-control-size);
	height: var(--wdt-lb-control-size);
	border-radius: 50%;
	background: var(--wdt-lb-control-bg);
	color: var(--wdt-lb-control-color);
	cursor: pointer;
	pointer-events: auto;
	transition: background-color 0.2s ease, transform 0.2s ease;
	-webkit-appearance: none;
}

.pswp.wdt-pswp .pswp__button:hover {
	background: var(--wdt-lb-control-bg-hover);
	transform: scale(1.04);
	opacity: 1;
}

.pswp.wdt-pswp .pswp__button::before,
.pswp.wdt-pswp [class*="pswp__button--arrow--"]::before {
	content: none;
	background: none;
}

.pswp.wdt-pswp .pswp__button--close {
	position: relative;
	float: none;
	margin: 0;
}

.pswp.wdt-pswp .pswp__button--close::after {
	content: "";
	display: block;
	width: 16px;
	height: 16px;
	background-color: currentColor;
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M6 6l12 12M18 6 6 18'/%3E%3C/svg%3E") center / contain no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M6 6l12 12M18 6 6 18'/%3E%3C/svg%3E") center / contain no-repeat;
}

.pswp.wdt-pswp [class*="pswp__button--arrow--"] {
	position: absolute;
	top: 50%;
	margin: 0;
	width: var(--wdt-lb-arrow-size);
	height: var(--wdt-lb-arrow-size);
	transform: translateY(-50%);
	background: var(--wdt-lb-control-bg);
}

.pswp.wdt-pswp [class*="pswp__button--arrow--"]:hover {
	transform: translateY(-50%) scale(1.04);
}

.pswp.wdt-pswp .pswp__button--arrow--left {
	left: 20px;
}

.pswp.wdt-pswp .pswp__button--arrow--right {
	right: 20px;
}

.pswp.wdt-pswp .pswp__button--arrow--left::after,
.pswp.wdt-pswp .pswp__button--arrow--right::after {
	content: "";
	display: block;
	width: 18px;
	height: 18px;
	background-color: currentColor;
}

.pswp.wdt-pswp .pswp__button--arrow--left::after {
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M15 6l-6 6 6 6'/%3E%3C/svg%3E") center / contain no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M15 6l-6 6 6 6'/%3E%3C/svg%3E") center / contain no-repeat;
}

.pswp.wdt-pswp .pswp__button--arrow--right::after {
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 6l6 6-6 6'/%3E%3C/svg%3E") center / contain no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 6l6 6-6 6'/%3E%3C/svg%3E") center / contain no-repeat;
}

.pswp.wdt-pswp .pswp__caption {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	min-height: 0;
	padding: 0 20px 24px;
	background: none;
	pointer-events: none;
}

.pswp.wdt-pswp .pswp__caption__center {
	display: inline-block;
	max-width: 720px;
	margin: 0 auto;
	padding: 10px 16px;
	border-radius: 8px;
	background: rgba(0, 0, 0, 0.55);
	color: #fff;
	font: 400 14px/1.45 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
	text-align: center;
}

.pswp.wdt-pswp .pswp__button--share,
.pswp.wdt-pswp .pswp__button--fs,
.pswp.wdt-pswp .pswp__button--zoom,
.pswp.wdt-pswp .pswp__share-modal,
.pswp.wdt-pswp .pswp__preloader,
.pswp.wdt-pswp .pswp__element--disabled {
	display: none !important;
}

.pswp.wdt-pswp .pswp__preloader {
	display: none;
}

.pswp.wdt-pswp.pswp--ui--one-slide .pswp__button--arrow--left,
.pswp.wdt-pswp.pswp--ui--one-slide .pswp__button--arrow--right,
.pswp.wdt-pswp.pswp--ui--one-slide .pswp__counter {
	display: none;
}

@media (max-width: 767px) {
	.pswp.wdt-pswp .pswp__button--arrow--left {
		left: 12px;
	}

	.pswp.wdt-pswp .pswp__button--arrow--right {
		right: 12px;
	}

	.pswp.wdt-pswp .pswp__top-bar {
		padding: 12px 14px;
	}
}
