/* ===== SWIPER + PHOTOSWIPE — КАСТОМ ТЕМИ ===== */
:root {
	--swiper-buttons-size: 50px;
	--swiper-buttons-icon: 30px;
	--swiper-buttons-bg: var(--primary);
	--swiper-buttons-bg-hover: var(--accent);
	--swiper-buttons-radius: var(--radius-small);
	--swiper-pagination-width: 12px;
	--swiper-pagination-height: 12px;
	--swiper-pagination-gap: 8px;
	--swiper-pagination-bg: var(--white);
	--swiper-pagination-bg-active: var(--primary);
}

@media (max-width: 1279px) {
	:root {
		--swiper-buttons-size: 40px;
		--swiper-buttons-icon: 24px;
		--swiper-pagination-width: 10px;
		--swiper-pagination-height: 10px;
	}
}

/* Base */
.swiper {
	margin-left: auto;
	margin-right: auto;
	position: relative;
	overflow: hidden;
	list-style: none;
	padding: 0;
	z-index: 1;
	display: block;
	width: 100%;
}
.swiper-wrapper {
	position: relative;
	width: 100%;
	height: 100%;
	z-index: 1;
	display: flex;
	transition-property: transform;
	transition-timing-function: var(--swiper-wrapper-transition-timing-function, initial);
	box-sizing: content-box;
}
.swiper-slide {
	flex-shrink: 0;
	width: 100%;
	height: 100%;
	position: relative;
	transition-property: transform;
	display: block;
}
.swiper-android .swiper-slide,
.swiper-ios .swiper-slide,
.swiper-wrapper {
	transform: translate3d(0px, 0, 0);
}
.swiper-backface-hidden .swiper-slide {
	transform: translateZ(0);
	backface-visibility: hidden;
}
.swiper-horizontal { touch-action: pan-y; }
.swiper-vertical { touch-action: pan-x; }
.swiper-vertical > .swiper-wrapper { flex-direction: column; }
.swiper-free-mode > .swiper-wrapper {
	transition-timing-function: ease-out;
	margin: 0 auto;
}
.swiper .swiper-notification {
	position: absolute;
	left: 0;
	top: 0;
	pointer-events: none;
	opacity: 0;
	z-index: -1000;
}

/* Pagination */
.swiper-pagination {
	position: absolute;
	text-align: center;
	transition: 0.3s opacity;
	transform: translate3d(0, 0, 0);
	z-index: 10;
	display: flex;
	justify-content: center;
	gap: var(--swiper-pagination-gap);
	width: 100%;
	bottom: 25px !important;
}
.swiper-pagination.swiper-pagination-hidden { opacity: 0; }
.swiper-pagination-disabled > .swiper-pagination,
.swiper-pagination.swiper-pagination-disabled,
.swiper-pagination-lock { display: none !important; }
.swiper-horizontal > .swiper-pagination-bullets,
.swiper-pagination-bullets.swiper-pagination-horizontal {
	bottom: 8px;
	top: auto;
	left: 0;
	width: 100%;
}
.swiper-pagination-bullet {
	width: 8px;
	height: 8px;
	display: inline-block;
	border-radius: var(--radius-max);
	background: var(--black);
	opacity: 0.2;
}
.swiper-pagination-clickable .swiper-pagination-bullet { cursor: pointer; }
.swiper-pagination-bullet:only-child { display: none !important; }
.swiper-pagination-bullet-active {
	opacity: 1;
	background: var(--primary);
}
.swiper-horizontal > .swiper-pagination-bullets .swiper-pagination-bullet,
.swiper-pagination-horizontal.swiper-pagination-bullets .swiper-pagination-bullet {
	margin: 0 4px;
}
.swiper-pagination > .swiper-pagination-bullet {
	width: var(--swiper-pagination-width);
	height: var(--swiper-pagination-height);
	margin: 0 !important;
	background: var(--swiper-pagination-bg);
	opacity: 1;
}
.swiper-pagination > .swiper-pagination-bullet.swiper-pagination-bullet-active {
	background: var(--swiper-pagination-bg-active);
}

/* Scrollbar */
.swiper-scrollbar {
	border-radius: var(--radius-mid);
	position: relative;
	background: rgba(0, 0, 0, 0.1);
}
.swiper-scrollbar-drag {
	height: 100%;
	width: 100%;
	position: relative;
	background: rgba(0, 0, 0, 0.5);
	border-radius: var(--radius-mid);
	left: 0;
	top: 0;
}
.swiper-scrollbar-lock { display: none; }

/* Buttons - Inside */
.swiper-buttons.inside {
	position: absolute;
	bottom: calc(50% - (var(--swiper-buttons-size) / 2));
	left: 0;
	right: 0;
	display: flex;
	justify-content: space-between;
	width: calc(100% - var(--container-indent));
	margin: 0 auto;
	height: 1px;
	z-index: 30;
	cursor: pointer;
}
.swiper-buttons.inside > * {
	display: flex;
	justify-content: center;
	align-items: center;
	width: var(--swiper-buttons-size);
	height: var(--swiper-buttons-size);
	transform: translateY(-50%);
	background: var(--swiper-buttons-bg);
	border-radius: var(--swiper-buttons-radius);
	transition: all 0.3s ease;
}
.swiper-buttons.inside > *:hover { background: var(--swiper-buttons-bg-hover); }
.swiper-buttons.inside > * > img {
	width: var(--swiper-buttons-icon);
	object-fit: contain;
	filter: brightness(0) invert(1);
	transition: all 0.3s ease;
}

/* Buttons - Outside */
.swiper-buttons.outside {
	display: flex;
	width: fit-content;
	gap: 15px;
	margin-left: auto;
	z-index: 30;
}
.swiper-buttons.outside > * {
	display: flex;
	justify-content: center;
	align-items: center;
	width: var(--swiper-buttons-size);
	height: var(--swiper-buttons-size);
	background: var(--swiper-buttons-bg);
	border-radius: var(--swiper-buttons-radius);
	cursor: pointer;
	transition: all 0.3s ease;
}
.swiper-buttons.outside > *:hover { background: var(--swiper-buttons-bg-hover); }
.swiper-buttons.outside > * > img {
	width: var(--swiper-buttons-icon);
	object-fit: contain;
	transition: all 0.3s ease;
}
.custom-swiper-button-prev img { transform: rotate(180deg); }

@media (max-width: 1279px) {
	.swiper-buttons.outside { gap: 15px; margin-left: auto; }
	.swiper-pagination { bottom: 15px !important; }
}

/* ===== PHOTOSWIPE ===== */

/* Root */
.pswp {
	--pswp-bg: var(--overlay);
	--pswp-placeholder-bg: var(--dark-gray);
	--pswp-root-z-index: 999999;
	--pswp-preloader-color: rgba(255, 255, 255, 0.35);
	--pswp-preloader-color-secondary: var(--white);
	--pswp-icon-color: var(--primary-match);
	--pswp-icon-color-secondary: var(--primary);
	--pswp-icon-stroke-color: transparent;
	--pswp-icon-stroke-width: 0;
	--pswp-error-text-color: var(--white);
	--pswp-button-size: 40px;
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	z-index: var(--pswp-root-z-index);
	display: none;
	touch-action: none;
	outline: 0;
	opacity: 0.003;
	contain: layout style size;
	-webkit-tap-highlight-color: rgba(0, 0, 0, 0);
}
.pswp:focus { outline: 0; }
.pswp * { box-sizing: border-box; }
.pswp img {
	max-width: none;
	object-fit: fill;
}
.pswp--open { display: block; }
.pswp,
.pswp__bg {
	transform: translateZ(0);
	will-change: opacity;
}
.pswp__bg {
	opacity: 0.005;
	background: var(--pswp-bg);
}
.pswp,
.pswp__scroll-wrap { overflow: hidden; }
.pswp__scroll-wrap,
.pswp__bg,
.pswp__container,
.pswp__item,
.pswp__content,
.pswp__img,
.pswp__zoom-wrap {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
}
.pswp__img,
.pswp__zoom-wrap {
	width: auto;
	height: auto;
}
.pswp--click-to-zoom.pswp--zoom-allowed .pswp__img { cursor: zoom-in; }
.pswp--click-to-zoom.pswp--zoomed-in .pswp__img { cursor: grab; }
.pswp--click-to-zoom.pswp--zoomed-in .pswp__img:active { cursor: grabbing; }
.pswp--no-mouse-drag.pswp--zoomed-in .pswp__img,
.pswp--no-mouse-drag.pswp--zoomed-in .pswp__img:active,
.pswp__img { cursor: zoom-out; }
.pswp__container,
.pswp__img,
.pswp__button,
.pswp__counter { user-select: none; }
.pswp__item {
	z-index: 1;
	overflow: hidden;
}
.pswp__hidden { display: none !important; }
.pswp__content { pointer-events: none; }
.pswp__content > * { pointer-events: auto; }
div.pswp__img--placeholder,
.pswp__img--with-bg { background: var(--pswp-placeholder-bg); }

/* Error */
.pswp__error-msg-container { display: grid; }
.pswp__error-msg {
	margin: auto;
	font-size: 1em;
	line-height: 1;
	color: var(--pswp-error-text-color);
}

/* UI visibility */
.pswp .pswp__hide-on-close {
	opacity: 0.005;
	will-change: opacity;
	transition: opacity var(--pswp-transition-duration) cubic-bezier(0.4, 0, 0.22, 1);
	z-index: 10;
	pointer-events: none;
}
.pswp--ui-visible .pswp__hide-on-close {
	opacity: 1;
	pointer-events: auto;
}

/* Buttons */
.pswp__button {
	position: relative;
	display: flex;
	justify-content: center;
	align-items: center;
	width: var(--pswp-button-size);
	height: var(--pswp-button-size);
	padding: 0;
	margin: 0;
	overflow: hidden;
	cursor: pointer;
	background: var(--primary);
	border: 0;
	border-radius: var(--radius-tiny);
	box-shadow: none;
	opacity: 0.85;
	-webkit-appearance: none;
	-webkit-touch-callout: none;
	transition: opacity 0.3s ease;
}
.pswp__button:hover,
.pswp__button:active,
.pswp__button:focus {
	padding: 0;
	background: var(--primary);
	border: 0;
	box-shadow: none;
	opacity: 1;
}
.pswp__button:disabled {
	opacity: 0.3;
	cursor: auto;
}
.pswp__icn {
	position: absolute;
	top: 50%;
	left: 50%;
	width: 32px;
	height: 32px;
	margin: -16px 0 0 -16px;
	overflow: hidden;
	pointer-events: none;
	fill: var(--pswp-icon-color);
	color: var(--pswp-icon-color-secondary);
}
.pswp__icn-shadow {
	stroke: var(--pswp-icon-stroke-color);
	stroke-width: var(--pswp-icon-stroke-width);
	fill: none;
}
.pswp__icn:focus { outline: 0; }

/* Top bar */
.pswp__top-bar {
	position: absolute;
	left: 0;
	top: 0;
	width: 100%;
	height: 60px;
	display: flex;
	flex-direction: row;
	justify-content: flex-end;
	align-items: center;
	gap: 10px;
	padding: 0 10px;
	z-index: 10;
	pointer-events: none !important;
}
.pswp__top-bar > * {
	pointer-events: auto;
	will-change: opacity;
}

/* Arrows */
.pswp__button--arrow {
	position: absolute;
	top: 50%;
	margin-top: calc(var(--pswp-button-size) / -2);
}
.pswp__button--arrow:disabled {
	display: none;
	cursor: default;
}
.pswp__button--arrow .pswp__icn {
	width: 40px;
	height: 40px;
	margin: -20px 0 0 -20px;
}
.pswp--one-slide .pswp__button--arrow { display: none; }
.pswp--touch .pswp__button--arrow { visibility: hidden; }
.pswp--has_mouse .pswp__button--arrow { visibility: visible; }
.pswp__button--arrow--prev {
	right: auto;
	left: 10px;
}
.pswp__button--arrow--next { right: 10px; }
.pswp__button--arrow--next .pswp__icn { transform: scale(-1, 1); }

/* Zoom */
.pswp__button--zoom { display: none; }
.pswp--zoom-allowed .pswp__button--zoom { display: flex; }
.pswp--zoomed-in .pswp__zoom-icn-bar-v { display: none; }

/* Preloader */
.pswp__preloader {
	position: relative;
	overflow: hidden;
	width: var(--pswp-button-size);
	height: var(--pswp-button-size);
	margin-right: auto;
}
.pswp__preloader .pswp__icn {
	opacity: 0;
	fill: var(--pswp-preloader-color);
	color: var(--pswp-preloader-color-secondary);
	transition: opacity 0.2s linear;
	animation: pswp-clockwise 600ms linear infinite;
}
.pswp__preloader--active .pswp__icn { opacity: 0.85; }
@keyframes pswp-clockwise {
	0% { transform: rotate(0deg); }
	100% { transform: rotate(360deg); }
}

/* Counter */
.pswp__counter {
	height: var(--pswp-button-size);
	margin-inline-start: 10px;
	font-size: 14px;
	line-height: var(--pswp-button-size);
	color: var(--white);
	opacity: 0.85;
}
.pswp--one-slide .pswp__counter { display: none; }

/* Desktop */
@media (min-width: 769px) {
	.pswp { --pswp-bg: rgba(0, 0, 0, 0.92); }
	.pswp__button--arrow--prev { left: 20px; }
	.pswp__button--arrow--next { right: 20px; }
}