.eg-modern-gallery {
	--eg-image-height: 420px;
	--eg-product-image-height: 220px;
	--eg-radius: 20px;
	--eg-nav-size: 46px;
	--eg-overlay: rgba(5, 10, 18, 0.94);
	--eg-accent: #111111;
	--eg-accent-soft: #f4f4f5;
	--eg-tab-bg: #ffffff;
	--eg-tab-border: rgba(15, 23, 42, 0.16);
	position: relative;
	width: 100%;
	max-width: 100%;
	overflow: visible;
}

.eg-modern-gallery .eg-modern-gallery__tabs {
	display: flex;
	gap: 12px;
	margin-bottom: 24px;
	overflow-x: auto;
	padding: 6px 2px 8px;
	scrollbar-width: thin;
}

body.elementor-editor-active .eg-modern-gallery {
	overflow-x: clip;
}

.eg-modern-gallery .eg-modern-gallery__tab {
	border: 0;
	background: transparent;
	padding: 0;
	border-radius: 0;
	min-width: 230px;
	width: 230px;
	cursor: pointer;
	display: inline-flex;
	flex-direction: column;
	align-items: stretch;
	gap: 0;
	overflow: visible;
	box-shadow: none;
	transition: transform 0.25s ease;
}

.eg-modern-gallery .eg-modern-gallery__tab:hover {
	transform: translateY(-2px);
}

.eg-modern-gallery .eg-modern-gallery__tab.is-active {
	box-shadow: none;
}

.eg-modern-gallery .eg-modern-gallery__tab-thumb {
	width: 100%;
	height: auto;
	aspect-ratio: 16 / 9;
	border-radius: 18px;
	border: 2px solid var(--eg-tab-border);
	overflow: hidden;
	display: flex;
	align-items: center;
	justify-content: center;
	background: #e5e7eb;
	box-shadow: 0 8px 18px rgba(15, 23, 42, 0.08);
	transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.eg-modern-gallery .eg-modern-gallery__tab:hover .eg-modern-gallery__tab-thumb {
	border-color: var(--eg-accent);
}

.eg-modern-gallery .eg-modern-gallery__tab.is-active .eg-modern-gallery__tab-thumb {
	border-color: var(--eg-accent);
	box-shadow: 0 0 0 2px var(--eg-accent), 0 12px 24px rgba(15, 23, 42, 0.14);
}

.eg-modern-gallery .eg-modern-gallery__tab-image {
	width: 100%;
	height: 100%;
	object-fit: contain;
	display: block;
	background: #ffffff;
}

.eg-modern-gallery .eg-modern-gallery__tab-placeholder {
	width: 100%;
	height: 100%;
	display: block;
	position: relative;
}

.eg-modern-gallery .eg-modern-gallery__tab-placeholder::before,
.eg-modern-gallery .eg-modern-gallery__tab-placeholder::after {
	content: '';
	position: absolute;
	display: block;
}

.eg-modern-gallery .eg-modern-gallery__tab-placeholder::before {
	width: 58px;
	height: 42px;
	left: 50%;
	top: 50%;
	transform: translate(-50%, -44%);
	border-radius: 12px;
	background: var(--eg-accent);
	opacity: 0.85;
}

.eg-modern-gallery .eg-modern-gallery__tab-placeholder::after {
	width: 14px;
	height: 14px;
	left: 50%;
	top: 50%;
	transform: translate(10px, -14px);
	border-radius: 999px;
	background: #f4f4f5;
}

.eg-modern-gallery .eg-modern-gallery__tab-title {
	display: block;
	font-size: 13px;
	line-height: 1.35;
	font-weight: 700;
	color: #0f172a;
	text-align: center;
	width: 100%;
	padding: 10px 8px 0;
	background: transparent;
	white-space: normal;
}

.eg-modern-gallery .eg-modern-gallery__panel {
	display: block;
	max-width: 100%;
	min-width: 0;
}

.eg-modern-gallery .eg-modern-gallery__panel[hidden] {
	display: none !important;
}

.eg-modern-gallery .eg-modern-gallery__carousel {
	position: relative;
	max-width: 100%;
	min-width: 0;
}

.eg-modern-gallery .eg-modern-gallery__swiper {
	padding: 8px 4px 10px;
	max-width: 100%;
	min-width: 0;
	overflow: hidden;
}

.eg-modern-gallery .eg-modern-gallery__swiper:not(.swiper-initialized) .swiper-wrapper {
	display: block;
}

.eg-modern-gallery .eg-modern-gallery__swiper:not(.swiper-initialized) .swiper-slide {
	width: 100%;
}

.eg-modern-gallery .eg-modern-gallery__swiper:not(.swiper-initialized) .swiper-slide + .swiper-slide {
	display: none;
}

.eg-modern-gallery .eg-modern-gallery__item {
	position: relative;
	width: 100%;
	border: 0;
	padding: 0;
	background: #0f172a;
	border-radius: var(--eg-radius);
	overflow: hidden;
	cursor: pointer;
	display: block;
	box-shadow: 0 14px 34px rgba(15, 23, 42, 0.2);
	transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.eg-modern-gallery .eg-modern-gallery__item:disabled {
	cursor: default;
}

.eg-modern-gallery .eg-modern-gallery__item:hover {
	transform: translateY(-3px);
	box-shadow: 0 18px 42px rgba(15, 23, 42, 0.3);
}

.eg-modern-gallery .eg-modern-gallery__item::after {
	content: '';
	position: absolute;
	inset: 0;
	background: linear-gradient(to top, rgba(2, 6, 23, 0.48), transparent 42%);
	pointer-events: none;
}

.eg-modern-gallery .eg-modern-gallery__image {
	display: block;
	width: 100%;
	height: var(--eg-image-height);
	object-fit: cover;
	transition: transform 0.45s ease;
}

.eg-modern-gallery .eg-modern-gallery__item:hover .eg-modern-gallery__image {
	transform: scale(1.03);
}

.eg-modern-gallery .eg-modern-gallery__caption {
	position: absolute;
	left: 14px;
	right: 14px;
	bottom: 12px;
	color: #f8fafc;
	font-size: 14px;
	line-height: 1.35;
	font-weight: 500;
	text-shadow: 0 2px 10px rgba(0, 0, 0, 0.45);
	z-index: 2;
}

.eg-modern-gallery .eg-modern-gallery__nav {
	position: absolute;
	top: 50% !important;
	transform: translateY(-50%);
	width: var(--eg-nav-size) !important;
	max-width: var(--eg-nav-size) !important;
	min-width: var(--eg-nav-size) !important;
	height: var(--eg-nav-size) !important;
	max-height: var(--eg-nav-size) !important;
	min-height: var(--eg-nav-size) !important;
	aspect-ratio: 1 / 1 !important;
	padding: 0 !important;
	border-radius: 999px !important;
	border: 0 !important;
	background: rgba(15, 23, 42, 0.88);
	color: #ffffff;
	cursor: pointer;
	display: inline-flex !important;
	align-items: center !important;
	justify-content: center !important;
	text-align: center !important;
	flex: 0 0 var(--eg-nav-size);
	font-size: 18px;
	line-height: 1 !important;
	box-sizing: border-box !important;
	z-index: 8;
	backdrop-filter: blur(3px);
	transition: background 0.25s ease, transform 0.25s ease;
}

.eg-modern-gallery .eg-modern-gallery__nav span {
	display: block;
	line-height: 1;
	transform: translateY(-1px);
}

.eg-modern-gallery .eg-modern-gallery__nav:hover {
	background: rgba(30, 41, 59, 0.96);
	transform: translateY(-50%) scale(1.04);
}

.eg-modern-gallery .eg-modern-gallery__nav--prev {
	left: -12px;
}

.eg-modern-gallery .eg-modern-gallery__nav--next {
	right: -12px;
}

.eg-modern-gallery .eg-modern-gallery__lightbox {
	position: fixed;
	inset: 0;
	background: var(--eg-overlay);
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
	transition: opacity 0.3s ease, visibility 0.3s ease;
	z-index: 999999;
}

.eg-modern-gallery .eg-modern-gallery__lightbox.is-open {
	opacity: 1;
	visibility: visible;
	pointer-events: auto;
}

.eg-modern-gallery .eg-modern-gallery__lightbox-swiper {
	width: min(1240px, calc(100vw - 80px));
	height: 100vh;
	margin: 0 auto;
}

.eg-modern-gallery .eg-modern-gallery__lightbox-slide {
	height: 100vh;
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	padding: 48px 0;
}

.eg-modern-gallery .eg-modern-gallery__lightbox-image {
	max-width: 100%;
	max-height: calc(100vh - 130px);
	object-fit: contain;
	border-radius: 14px;
	box-shadow: 0 24px 56px rgba(0, 0, 0, 0.4);
}

.eg-modern-gallery .eg-modern-gallery__lightbox-caption {
	margin: 14px 0 0;
	color: #e2e8f0;
	font-size: 15px;
	text-align: center;
	max-width: 900px;
	padding: 0 20px;
}

.eg-modern-gallery .eg-modern-gallery__lightbox-close {
	position: absolute;
	top: 20px;
	right: 20px;
	width: 44px !important;
	max-width: 44px !important;
	min-width: 44px !important;
	height: 44px !important;
	max-height: 44px !important;
	min-height: 44px !important;
	padding: 0 !important;
	border-radius: 999px !important;
	border: 0 !important;
	font-size: 0 !important;
	line-height: 1 !important;
	background: rgba(15, 23, 42, 0.9);
	color: #f8fafc;
	cursor: pointer;
	display: inline-flex !important;
	align-items: center !important;
	justify-content: center !important;
	text-align: center !important;
	z-index: 2;
}

.eg-modern-gallery .eg-modern-gallery__lightbox-close span {
	font-size: 31px;
	line-height: 1;
	transform: translateY(-1px);
}

.eg-modern-gallery .eg-modern-gallery__lightbox-nav {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	width: 52px !important;
	max-width: 52px !important;
	min-width: 52px !important;
	height: 52px !important;
	max-height: 52px !important;
	min-height: 52px !important;
	padding: 0 !important;
	border-radius: 999px !important;
	border: 0 !important;
	background: rgba(15, 23, 42, 0.86);
	color: #ffffff;
	font-size: 22px;
	line-height: 1 !important;
	cursor: pointer;
	display: inline-flex !important;
	align-items: center !important;
	justify-content: center !important;
	text-align: center !important;
	flex: 0 0 52px;
	box-sizing: border-box !important;
	z-index: 2;
}

.eg-modern-gallery .eg-modern-gallery__lightbox-nav span {
	display: block;
	line-height: 1;
	transform: translateY(-1px);
}

.eg-modern-gallery .eg-modern-gallery__lightbox-nav--prev {
	left: 18px;
}

.eg-modern-gallery .eg-modern-gallery__lightbox-nav--next {
	right: 18px;
}

.eg-modern-gallery .eg-modern-gallery__products {
	margin-top: 28px;
}

.eg-modern-gallery .eg-modern-gallery__products-title {
	margin: 0 0 14px;
	color: #0f172a;
	font-size: 22px;
	font-weight: 700;
	letter-spacing: 0.01em;
}

.eg-modern-gallery .eg-modern-gallery__products-grid {
	display: grid !important;
	grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
	gap: 16px !important;
	align-items: stretch;
}

.eg-modern-gallery .eg-modern-gallery__product-card {
	background: #ffffff;
	border-radius: 16px;
	overflow: hidden;
	box-shadow: 0 14px 28px rgba(15, 23, 42, 0.08);
	border: 1px solid #f1f5f9;
	transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.eg-modern-gallery .eg-modern-gallery__product-card:hover {
	transform: translateY(-3px);
	box-shadow: 0 18px 32px rgba(15, 23, 42, 0.14);
}

.eg-modern-gallery .eg-modern-gallery__product-thumb {
	display: flex;
	align-items: center;
	justify-content: center;
	height: var(--eg-product-image-height);
	background: #f8fafc;
}

.eg-modern-gallery .eg-modern-gallery__product-thumb img {
	width: auto !important;
	height: auto !important;
	max-width: 100%;
	max-height: 100%;
	object-fit: contain !important;
}

.eg-modern-gallery .eg-modern-gallery__product-image-fallback {
	width: 100%;
	height: 100%;
	display: block;
	background: repeating-linear-gradient(
		-45deg,
		#e5e7eb,
		#e5e7eb 8px,
		#f3f4f6 8px,
		#f3f4f6 16px
	);
}

.eg-modern-gallery .eg-modern-gallery__product-body {
	padding: 14px;
}

.eg-modern-gallery .eg-modern-gallery__product-title {
	margin: 0 0 8px;
	font-size: 15px;
	line-height: 1.35;
	font-weight: 600;
}

.eg-modern-gallery .eg-modern-gallery__product-title a {
	color: #0f172a;
	text-decoration: none;
}

.eg-modern-gallery .eg-modern-gallery__product-price {
	margin-bottom: 12px;
	font-size: 14px;
	color: #0f172a;
}

.eg-modern-gallery .eg-modern-gallery__product-price .amount {
	color: #0f172a;
	font-weight: 700;
}

.eg-modern-gallery .eg-modern-gallery__product-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 9px 12px;
	border-radius: 10px;
	background: var(--eg-accent);
	color: #ffffff;
	text-decoration: none;
	font-size: 13px;
	font-weight: 600;
	transition: opacity 0.25s ease;
}

.eg-modern-gallery .eg-modern-gallery__product-button:hover {
	opacity: 0.86;
	color: #ffffff;
}

.eg-modern-gallery .eg-modern-gallery__products-empty {
	padding: 14px 16px;
	border-radius: 12px;
	background: var(--eg-accent-soft);
	color: #0f172a;
	margin: 0;
}

body.eg-gallery-lock {
	overflow: hidden;
}

@media (max-width: 1024px) {
	.eg-modern-gallery .eg-modern-gallery__nav--prev {
		left: 6px;
	}

	.eg-modern-gallery .eg-modern-gallery__nav--next {
		right: 6px;
	}

	.eg-modern-gallery .eg-modern-gallery__products-grid {
		grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
	}
}

@media (max-width: 900px) {
	.eg-modern-gallery .eg-modern-gallery__products-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
	}
}

@media (max-width: 767px) {
	.eg-modern-gallery .eg-modern-gallery__tab {
		min-width: 190px;
		width: 190px;
		padding: 0;
	}

	.eg-modern-gallery .eg-modern-gallery__lightbox-swiper {
		width: calc(100vw - 24px);
	}

	.eg-modern-gallery .eg-modern-gallery__lightbox-nav {
		width: 44px;
		height: 44px;
		font-size: 18px;
	}

	.eg-modern-gallery .eg-modern-gallery__lightbox-nav--prev {
		left: 8px;
	}

	.eg-modern-gallery .eg-modern-gallery__lightbox-nav--next {
		right: 8px;
	}

	.eg-modern-gallery .eg-modern-gallery__products-grid {
		grid-template-columns: repeat(1, minmax(0, 1fr)) !important;
	}
}
