/**
 * Product PhotoSwipe skin for Moketexpert.
 * По-четими надписи и по-удобни контроли, без да променяме layout-а на сайта.
 */

.pswp {
	z-index: 500200 !important;
}

.pswp__bg {
	background: rgba(12, 12, 12, 0.84) !important;
}

.pswp__top-bar {
	height: 60px;
	padding: 8px 12px;
	background: linear-gradient(180deg, rgba(0, 0, 0, 0.45) 0%, rgba(0, 0, 0, 0.16) 100%);
}

.pswp__counter {
	color: #ffffff !important;
	font-size: 14px;
	line-height: 44px;
	text-shadow: 0 1px 2px rgba(0, 0, 0, 0.45);
}

/* Скриваме само share; close/zoom/fullscreen остават */
.pswp__button--share {
	display: none !important;
}

.pswp__button--close,
.pswp__button--zoom,
.pswp__button--fs,
.pswp__button--arrow--left,
.pswp__button--arrow--right {
	opacity: 1 !important;
	display: block !important;
	visibility: visible !important;
}

.pswp__button:focus {
	outline: none;
}

.pswp__button--arrow--left,
.pswp__button--arrow--right {
	top: 50%;
	margin-top: -28px;
	width: 56px !important;
	height: 56px !important;
}

.pswp__button--arrow--left {
	left: 18px;
}

.pswp__button--arrow--right {
	right: 18px;
}

.pswp__button--close,
.pswp__button--zoom,
.pswp__button--fs {
	margin-top: 6px;
	margin-left: 6px;
	border-radius: 6px;
	background-color: rgba(255, 255, 255, 0.16) !important;
	box-shadow: none;
	transition: background-color 0.2s ease, opacity 0.2s ease;
}

.pswp__button--arrow--left:before,
.pswp__button--arrow--right:before {
	background-color: rgba(255, 255, 255, 0.16) !important;
	border-radius: 6px;
	box-shadow: none;
	height: 44px;
	width: 44px;
	top: 28px;
	transition: background-color 0.2s ease, opacity 0.2s ease;
}

.pswp__button--arrow--left:before {
	left: 10px;
}

.pswp__button--arrow--right:before {
	right: 10px;
}

.pswp__button--close:hover,
.pswp__button--close:focus,
.pswp__button--zoom:hover,
.pswp__button--zoom:focus,
.pswp__button--fs:hover,
.pswp__button--fs:focus {
	background-color: var(--mokete-pswp-accent-hover, #86c232) !important;
}

.pswp__button--arrow--left:hover:before,
.pswp__button--arrow--left:focus:before,
.pswp__button--arrow--right:hover:before,
.pswp__button--arrow--right:focus:before {
	background-color: var(--mokete-pswp-accent-hover, #86c232) !important;
}

.pswp__caption {
	bottom: 22px;
	left: 0;
	right: 0;
}

.pswp__caption__center {
	max-width: 560px;
	padding: 10px 16px;
	border-radius: 12px;
	background: rgba(16, 16, 16, 0.82);
	color: #ffffff !important;
	font-size: 15px;
	font-weight: 500;
	line-height: 1.35;
	text-align: center;
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.18);
}

.pswp__caption__center a {
	color: #ffffff !important;
}

@media (max-width: 767px) {
	.pswp__top-bar {
		padding-left: 8px;
		padding-right: 8px;
	}

	.pswp__button--close,
	.pswp__button--arrow--left,
	.pswp__button--arrow--right {
		width: 40px;
		height: 40px;
	}

	.pswp__button--arrow--left {
		left: 10px;
	}

	.pswp__button--arrow--right {
		right: 10px;
	}

	.pswp__caption__center {
		max-width: calc(100vw - 32px);
		font-size: 13px;
	}
}
