/* ===== SWIPER ===== */
:root {
	--swiper-buttons-size: 50px;
    --swiper-buttons-icon: 13px;
	--swiper-buttons-bg: var(--primary);
	--swiper-buttons-bg-hover: var(--accent);
	--swiper-buttons-color: var(--white);
    --swiper-buttons-radius: 10px;
	--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: 13px;
		--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: 50%;
	background: #000;
	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);
}

/* 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;
	filter: brightness(0) invert(1);
}
.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; }
}

/* ===== GLIGHTBOX ===== */

/* Container */
.glightbox-container {
	width: 100%;
	height: 100%;
	position: fixed;
	top: 0;
	left: 0;
	z-index: 999999 !important;
	overflow: hidden;
	touch-action: none;
	text-size-adjust: 100%;
	backface-visibility: hidden;
	outline: 0;
}
.glightbox-container.inactive { display: none; }
.glightbox-container .gcontainer {
	position: relative;
	width: 100%;
	height: 100%;
	z-index: 9999;
	overflow: hidden;
}

/* Slider */
.glightbox-container .gslider {
	transition: transform 0.4s ease;
	height: 100%;
	left: 0;
	top: 0;
	width: 100%;
	position: relative;
	overflow: hidden;
	display: flex !important;
	justify-content: center;
	align-items: center;
	transform: translate3d(0, 0, 0);
}

/* Slides */
.glightbox-container .gslide {
	width: 100%;
	position: absolute;
	user-select: none;
	display: flex;
	align-items: center;
	justify-content: center;
	opacity: 0;
}
.glightbox-container .gslide.current {
	opacity: 1;
	z-index: 99999;
	position: relative;
}
.glightbox-container .gslide.prev {
	opacity: 1;
	z-index: 9999;
}
.gslide:not(.current) { pointer-events: none; }
.glightbox-container .gslide-inner-content { width: 100%; }
.glightbox-container .ginner-container {
	position: relative;
	width: 100%;
	display: flex;
	justify-content: center;
	flex-direction: column;
	max-width: 100%;
	margin: auto;
	height: 100vh;
}

/* Image */
.gslide-image { align-items: center; }
.gslide-image img {
	max-height: 100vh;
	display: block;
	padding: 0;
	float: none;
	outline: 0;
	border: none;
	user-select: none;
	max-width: 100vw;
	width: auto;
	height: auto;
	object-fit: cover;
	touch-action: none;
	margin: auto;
	min-width: 200px;
}
.gslide-image img.zoomable { position: relative; }
.gslide-image img.dragging {
	cursor: grabbing !important;
	transition: none;
}
.gslide-media { display: flex; width: auto; }
.zoomed .gslide-media { box-shadow: none !important; }

/* Overlay */
.goverlay {
	width: 100%;
	height: calc(100vh + 1px);
	position: fixed;
	top: -1px;
	left: 0;
	background: #000;
	will-change: opacity;
}

/* Navigation Buttons */
.gclose, .gnext, .gprev {
	z-index: 99999;
	cursor: pointer;
	width: 26px;
	height: 44px;
	border: none;
	display: flex;
	justify-content: center;
	align-items: center;
	flex-direction: column;
}
.gclose svg, .gnext svg, .gprev svg {
	display: block;
	width: 18px;
	height: auto;
	margin: 0;
	padding: 0;
}
.gclose.disabled, .gnext.disabled, .gprev.disabled { opacity: 0.1; }
.gbtn.focused { outline: 2px solid #0f3d81; }
.glightbox-button-hidden { display: none; }
.glightbox-closing .gclose,
.glightbox-closing .gnext,
.glightbox-closing .gprev { opacity: 0 !important; }

/* Loader */
.gloader {
	height: 25px;
	width: 25px;
	animation: lightboxLoader 0.8s infinite linear;
	border: 2px solid #fff;
	border-right-color: transparent;
	border-radius: 50%;
	position: absolute;
	display: block;
	z-index: 9999;
	left: 0;
	right: 0;
	margin: 0 auto;
	top: 47%;
}

/* Body state */
.glightbox-open { overflow: hidden; }

/* Animations */
@keyframes lightboxLoader {
	0% { transform: rotate(0); }
	100% { transform: rotate(360deg); }
}
@keyframes gfadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes gfadeOut { from { opacity: 1; } to { opacity: 0; } }
@keyframes gslideInLeft {
	from { opacity: 0; transform: translate3d(-60%, 0, 0); }
	to { visibility: visible; transform: translate3d(0, 0, 0); opacity: 1; }
}
@keyframes gslideOutLeft {
	from { opacity: 1; visibility: visible; transform: translate3d(0, 0, 0); }
	to { transform: translate3d(-60%, 0, 0); opacity: 0; visibility: hidden; }
}
@keyframes gslideInRight {
	from { opacity: 0; visibility: visible; transform: translate3d(60%, 0, 0); }
	to { transform: translate3d(0, 0, 0); opacity: 1; }
}
@keyframes gslideOutRight {
	from { opacity: 1; visibility: visible; transform: translate3d(0, 0, 0); }
	to { transform: translate3d(60%, 0, 0); opacity: 0; }
}
@keyframes gzoomIn {
	from { opacity: 0; transform: scale3d(0.3, 0.3, 0.3); }
	to { opacity: 1; }
}
@keyframes gzoomOut {
	from { opacity: 1; }
	50% { opacity: 0; transform: scale3d(0.3, 0.3, 0.3); }
	to { opacity: 0; }
}
.gfadeIn { animation: gfadeIn 0.5s ease; }
.gfadeOut { animation: gfadeOut 0.5s ease; }
.gslideOutLeft { animation: gslideOutLeft 0.3s ease; }
.gslideInLeft { animation: gslideInLeft 0.3s ease; }
.gslideOutRight { animation: gslideOutRight 0.3s ease; }
.gslideInRight { animation: gslideInRight 0.3s ease; }
.gzoomIn { animation: gzoomIn 0.5s ease; }
.gzoomOut { animation: gzoomOut 0.5s ease; }

/* Theme: Clean */
.glightbox-clean .gslide-media {
	box-shadow: 1px 2px 9px 0 rgba(0, 0, 0, 0.65);
}
.glightbox-clean .gclose,
.glightbox-clean .gnext,
.glightbox-clean .gprev {
	background-color: var(--primary);
	border-radius: 4px;
}
.glightbox-clean .gclose path,
.glightbox-clean .gnext path,
.glightbox-clean .gprev path { fill: #ffffff; }
.glightbox-clean .gprev {
	position: absolute;
	top: calc(50% - 20px);
	left: 10px;
	width: 40px;
	height: 40px;
	z-index: 100;
}
.glightbox-clean .gnext {
	position: absolute;
	top: calc(50% - 20px);
	right: 10px;
	width: 40px;
	height: 40px;
	z-index: 100;
}
.glightbox-clean .gclose {
	width: 35px;
	height: 35px;
	top: 15px;
	right: 10px;
	position: absolute;
}
.glightbox-clean .gclose svg { width: 18px; height: auto; }
.glightbox-clean .gclose:hover { opacity: 1; }

/* Desktop */
@media (min-width: 769px) {
	.glightbox-container .ginner-container {
		width: auto;
		height: auto;
		flex-direction: row;
	}
	.gslide-image img { max-height: 97vh; max-width: 100%; }
	.gslide-image img.zoomable { cursor: zoom-in; }
	.zoomed .gslide-image img.zoomable { cursor: grab; }
	.goverlay { background: rgba(0, 0, 0, 0.92); }
}

@media (min-width: 992px) {
	.glightbox-clean .gclose { opacity: 0.7; right: 20px; }
}

@media screen and (max-height: 420px) {
	.goverlay { background: #000; }
}
