.efsg-widget {
	--efsg-columns: 4;
	--efsg-gap: 24px;
	--efsg-radius: 18px;
	--efsg-thumb-height-fallback: 420px;
	--efsg-scroll-duration: 7000ms;
	--efsg-scroll-delay: 200ms;
	--efsg-popup-max-width: 92vw;
	--efsg-popup-max-height: 88vh;
	--efsg-filter-gap: 12px;
	--efsg-accent: #2f6bff;
	--efsg-card-bg: rgba(255, 255, 255, 0.92);
	--efsg-card-bg-hover: rgba(255, 255, 255, 0.98);
	--efsg-card-border: rgba(133, 153, 182, 0.22);
	--efsg-card-border-hover: rgba(47, 107, 255, 0.28);
	--efsg-card-border-active: rgba(47, 107, 255, 0.5);
	--efsg-shell-bg: rgba(255, 255, 255, 0.78);
	--efsg-filter-align: center;
	--efsg-filter-shell-bg: rgba(255, 255, 255, 0.88);
	--efsg-filter-shell-border: rgba(139, 160, 190, 0.2);
	--efsg-thumb-bg: #edf3fb;
	--efsg-media-padding: 0px;
	--efsg-media-position: top center;
	position: relative;
}

.efsg-empty {
	padding: 24px;
	border-radius: 18px;
	background: linear-gradient(135deg, #f6f8fc 0%, #eef3fb 100%);
	border: 1px dashed #cdd9ee;
	color: #415065;
	font-size: 15px;
}

.efsg-filters-shell {
	position: relative;
	display: grid;
	grid-template-columns: auto minmax(0, 1fr) auto;
	align-items: center;
	gap: 10px;
	margin: 0 0 clamp(18px, 3vw, 30px);
	padding: 10px;
	overflow: visible;
	border: 1px solid var(--efsg-filter-shell-border);
	border-radius: 999px;
	background:
		linear-gradient(135deg, var(--efsg-filter-shell-bg), rgba(243, 247, 255, 0.72)),
		radial-gradient(circle at top right, rgba(47, 107, 255, 0.12), transparent 42%);
	box-shadow: 0 18px 38px rgba(18, 35, 66, 0.08);
	backdrop-filter: blur(18px);
}

.efsg-widget--sticky-filters .efsg-filters-shell {
	position: sticky;
	top: var(--efsg-sticky-top, 20px);
	z-index: 25;
}

.efsg-filters-shell.is-not-overflowing .efsg-rail-nav[data-efsg-filter-prev],
.efsg-filters-shell.is-not-overflowing .efsg-rail-nav[data-efsg-filter-next] {
	opacity: 0;
	pointer-events: none;
}

.efsg-filters {
	display: flex;
	flex-wrap: nowrap;
	align-items: center;
	justify-content: flex-start;
	gap: var(--efsg-filter-gap);
	min-width: 0;
	overflow-x: auto;
	overflow-y: hidden;
	scroll-behavior: smooth;
	scrollbar-width: none;
	-ms-overflow-style: none;
}

.efsg-filters-shell.is-not-overflowing .efsg-filters {
	justify-content: var(--efsg-filter-align);
}

.efsg-filters::-webkit-scrollbar,
.efsg-gallery::-webkit-scrollbar {
	display: none;
}

.efsg-filter-button {
	position: relative;
	display: inline-flex;
	flex: 0 0 auto;
	align-items: center;
	justify-content: center;
	min-height: 46px;
	padding: 0.8rem 1.15rem;
	border: 1px solid transparent;
	border-radius: 999px;
	background: #f3f6fb;
	color: #1b2430;
	font: inherit;
	font-weight: 600;
	line-height: 1.1;
	white-space: nowrap;
	cursor: pointer;
	transition: background-color 0.25s ease, color 0.25s ease, border-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}

.efsg-filter-label {
	display: inline-block;
}

.efsg-filter-count {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 26px;
	height: 26px;
	margin-left: 0.55rem;
	padding: 0 0.4rem;
	border-radius: 999px;
	background: rgba(17, 29, 51, 0.08);
	color: inherit;
	font-size: 12px;
	font-weight: 700;
	line-height: 1;
}

.efsg-widget--filter-pill .efsg-filter-button.is-active .efsg-filter-count,
.efsg-widget--filter-pill .efsg-filter-button[aria-pressed="true"] .efsg-filter-count {
	background: rgba(255, 255, 255, 0.18);
}

.efsg-filter-button:hover,
.efsg-filter-button:focus-visible {
	transform: translateY(-1px);
	outline: none;
	box-shadow: 0 10px 24px rgba(47, 107, 255, 0.12);
}

.efsg-widget--filter-pill .efsg-filter-button.is-active,
.efsg-widget--filter-pill .efsg-filter-button[aria-pressed="true"] {
	border-color: var(--efsg-accent);
	box-shadow: 0 12px 28px rgba(47, 107, 255, 0.2);
}

.efsg-widget--filter-underline .efsg-filters-shell {
	border-radius: calc(var(--efsg-radius) + 6px);
}

.efsg-widget--filter-underline .efsg-filter-button {
	padding: 0.75rem 0.25rem;
	border-radius: 0;
	background: transparent;
	border-width: 0;
}

.efsg-widget--filter-underline .efsg-filter-button::after {
	content: "";
	position: absolute;
	right: 0;
	bottom: 0;
	left: 0;
	height: 2px;
	border-radius: 999px;
	background: var(--efsg-accent);
	transform: scaleX(0);
	transform-origin: left center;
	transition: transform 0.25s ease;
}

.efsg-widget--filter-underline .efsg-filter-button.is-active::after,
.efsg-widget--filter-underline .efsg-filter-button[aria-pressed="true"]::after {
	transform: scaleX(1);
}

.efsg-rail-nav {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 auto;
	width: 42px;
	height: 42px;
	padding: 0;
	border: 1px solid rgba(133, 153, 182, 0.24);
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.9);
	color: #12213d;
	box-shadow: 0 12px 26px rgba(19, 35, 64, 0.1);
	cursor: pointer;
	transition: transform 0.25s ease, opacity 0.25s ease, background-color 0.25s ease, color 0.25s ease;
}

.efsg-rail-nav span {
	display: inline-block;
	font-size: 28px;
	line-height: 1;
	transform: translateY(-1px);
}

.efsg-rail-nav:hover,
.efsg-rail-nav:focus-visible {
	background: #ffffff;
	color: var(--efsg-accent);
	transform: translateY(-1px);
	outline: none;
}

.efsg-rail-nav[disabled] {
	opacity: 0.32;
	pointer-events: none;
}

.efsg-gallery {
	display: grid;
	grid-template-columns: repeat(var(--efsg-columns), minmax(0, 1fr));
	gap: var(--efsg-gap);
	align-items: start;
}

.efsg-widget--layout-masonry {
	--efsg-thumb-height-fallback: auto;
}

.efsg-widget--layout-masonry .efsg-gallery {
	display: block;
	column-count: var(--efsg-columns);
	column-gap: var(--efsg-gap);
}

.efsg-widget--layout-masonry .efsg-item {
	display: inline-block;
	width: 100%;
	margin: 0 0 var(--efsg-gap);
	break-inside: avoid;
}

.efsg-item {
	min-width: 0;
	opacity: 1;
	transform: translate3d(0, 0, 0);
	transition: opacity 0.22s ease, transform 0.22s ease;
}

.efsg-item[hidden] {
	display: none !important;
}

.efsg-item.is-hidden {
	opacity: 0;
	transform: translate3d(0, 12px, 0) scale(0.985);
	pointer-events: none;
}

.efsg-card {
	position: relative;
	display: block;
	width: 100%;
	padding: 0;
	border: 1px solid var(--efsg-card-border);
	border-radius: calc(var(--efsg-radius) + 2px);
	background: var(--efsg-card-bg);
	cursor: pointer;
	overflow: hidden;
	text-align: left;
	box-shadow: 0 18px 45px rgba(16, 28, 48, 0.08);
	transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
	isolation: isolate;
	--efsg-pointer-x: 50%;
	--efsg-pointer-y: 50%;
}

.efsg-card::before {
	content: "";
	position: absolute;
	inset: 0;
	border-radius: inherit;
	padding: 1px;
	background: linear-gradient(145deg, rgba(255, 255, 255, 0.8), rgba(125, 152, 212, 0.2));
	-webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
	-webkit-mask-composite: xor;
	mask-composite: exclude;
	pointer-events: none;
}

.efsg-card::after {
	content: "";
	position: absolute;
	inset: -40% auto auto -120%;
	width: 70%;
	height: 180%;
	background: linear-gradient(90deg, rgba(255, 255, 255, 0), rgba(255, 255, 255, 0.22), rgba(255, 255, 255, 0));
	transform: rotate(16deg);
	transition: transform 0.9s ease;
	pointer-events: none;
}

.efsg-card-chrome,
.efsg-card-spotlight {
	position: absolute;
	inset: 0;
	pointer-events: none;
}

.efsg-card-spotlight {
	opacity: 0;
	background: radial-gradient(circle at var(--efsg-pointer-x) var(--efsg-pointer-y), rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0) 34%);
	transition: opacity 0.25s ease;
	z-index: 2;
}

.efsg-widget--spotlight .efsg-card:hover .efsg-card-spotlight,
.efsg-widget--spotlight .efsg-card:focus-visible .efsg-card-spotlight {
	opacity: 1;
}

.efsg-card-chrome {
	z-index: 3;
}

.efsg-widget--chrome-browser .efsg-card-chrome {
	top: 0;
	right: 0;
	left: 0;
	height: 34px;
	border-bottom: 1px solid rgba(120, 141, 175, 0.16);
	background: linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(240, 245, 255, 0.86));
}

.efsg-widget--chrome-browser .efsg-card-chrome::before {
	content: "";
	position: absolute;
	top: 11px;
	left: 14px;
	width: 42px;
	height: 10px;
	border-radius: 999px;
	background:
		radial-gradient(circle, #ff6d6d 0 48%, transparent 56%) left center / 10px 10px no-repeat,
		radial-gradient(circle, #ffcc5b 0 48%, transparent 56%) center center / 10px 10px no-repeat,
		radial-gradient(circle, #51d26f 0 48%, transparent 56%) right center / 10px 10px no-repeat;
}

.efsg-widget--chrome-browser .efsg-thumb {
	padding-top: 34px;
}

.efsg-widget--chrome-device .efsg-card {
	padding: 14px;
	border-radius: calc(var(--efsg-radius) + 12px);
	background: linear-gradient(145deg, #11192a 0%, #1a263d 100%);
}

.efsg-widget--chrome-device .efsg-card::before {
	background: linear-gradient(145deg, rgba(255, 255, 255, 0.26), rgba(84, 117, 183, 0.08));
}

.efsg-widget--chrome-device .efsg-card-chrome::before {
	content: "";
	position: absolute;
	top: 2px;
	left: 50%;
	width: 26%;
	height: 14px;
	border-radius: 0 0 12px 12px;
	background: rgba(10, 14, 24, 0.9);
	transform: translateX(-50%);
}

.efsg-widget--chrome-device .efsg-thumb {
	border-radius: calc(var(--efsg-radius) - 2px);
}

.efsg-card:hover::after,
.efsg-card:focus-visible::after {
	transform: translateX(240%) rotate(16deg);
}

.efsg-card:hover,
.efsg-card:focus-visible {
	background: var(--efsg-card-bg-hover);
	border-color: var(--efsg-card-border-hover);
	box-shadow: 0 26px 54px rgba(16, 28, 48, 0.12);
}

.efsg-card.is-active-preview {
	border-color: var(--efsg-card-border-active);
	box-shadow: 0 28px 60px rgba(16, 28, 48, 0.16);
}

.efsg-card:focus-visible {
	outline: 2px solid var(--efsg-accent);
	outline-offset: 2px;
}

.efsg-thumb {
	position: relative;
	display: block;
	height: var(--efsg-thumb-height, var(--efsg-thumb-height-fallback));
	overflow: hidden;
	background:
		radial-gradient(circle at top right, rgba(87, 129, 255, 0.16), transparent 45%),
		linear-gradient(180deg, #f8fbff 0%, var(--efsg-thumb-bg) 100%);
}

.efsg-widget--thumb-auto .efsg-thumb {
	height: auto;
}

.efsg-widget--thumb-auto .efsg-thumb-media {
	height: auto;
}

.efsg-widget--thumb-auto .efsg-image {
	width: 100%;
	height: auto;
	max-width: 100%;
	object-fit: contain;
	object-position: var(--efsg-media-position);
}

.efsg-widget--website-cards .efsg-thumb,
.efsg-widget--website-cards.efsg-widget--thumb-auto .efsg-thumb {
	height: var(--efsg-thumb-height, var(--efsg-thumb-height-fallback));
}

.efsg-widget--website-cards .efsg-thumb-media,
.efsg-widget--website-cards.efsg-widget--thumb-auto .efsg-thumb-media {
	display: block;
	height: 100%;
	padding: 0;
}

.efsg-widget--website-cards .efsg-image,
.efsg-widget--website-cards.efsg-widget--thumb-auto .efsg-image {
	display: block;
	width: 100%;
	height: auto;
	max-width: none;
	min-width: 100%;
	min-height: 0;
	object-fit: initial;
	object-position: top center;
}

.efsg-thumb::after {
	content: "";
	position: absolute;
	inset: auto 0 0;
	height: 26%;
	background: linear-gradient(180deg, rgba(9, 18, 33, 0), rgba(9, 18, 33, 0.08));
	pointer-events: none;
}

.efsg-thumb-media {
	display: flex;
	width: 100%;
	height: 100%;
	align-items: stretch;
	justify-content: center;
	box-sizing: border-box;
	overflow: hidden;
	padding: var(--efsg-media-padding);
	transform-origin: top center;
	transition: transform 0.45s ease;
}

.efsg-image {
	display: block;
	width: 100%;
	height: auto;
	max-width: none;
	flex: 0 0 auto;
	backface-visibility: hidden;
	-webkit-backface-visibility: hidden;
	transform: translate3d(0, 0, 0);
	will-change: transform;
}

.efsg-widget--thumb-fixed .efsg-thumb-media {
	min-height: 100%;
}

.efsg-widget--thumb-fixed .efsg-widget--fit-cover .efsg-thumb-media,
.efsg-widget--thumb-fixed.efsg-widget--fit-cover .efsg-thumb-media {
	align-items: stretch;
}

.efsg-widget--thumb-fixed.efsg-widget--fit-cover .efsg-image,
.efsg-widget--thumb-fixed.efsg-widget--fit-contain .efsg-image {
	flex: 1 1 auto;
	min-width: 100%;
	min-height: 100%;
}

.efsg-widget--fit-contain .efsg-image {
	width: 100%;
	height: 100%;
	object-fit: contain;
	object-position: var(--efsg-media-position);
}

.efsg-widget--fit-cover .efsg-image {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: var(--efsg-media-position);
}

.efsg-widget--fit-fill-width .efsg-image {
	object-position: var(--efsg-media-position);
}

.efsg-widget--showcase-graphics .efsg-card {
	background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 250, 255, 0.98));
}

.efsg-widget--showcase-graphics .efsg-thumb::after {
	height: 18%;
}

.efsg-widget--showcase-websites .efsg-card {
	box-shadow: 0 20px 52px rgba(16, 28, 48, 0.1);
}

.efsg-card.is-scrollable .efsg-image {
	transition: transform var(--efsg-scroll-duration) linear;
}

.efsg-card.is-scrollable.is-scrolling .efsg-image {
	transform: translate3d(0, var(--efsg-scroll-distance), 0);
}

.efsg-widget--hover-lift .efsg-card:hover,
.efsg-widget--hover-lift .efsg-card:focus-visible,
.efsg-widget--hover-zoom-lift .efsg-card:hover,
.efsg-widget--hover-zoom-lift .efsg-card:focus-visible {
	transform: translateY(-6px);
}

.efsg-widget--hover-zoom .efsg-card:hover .efsg-thumb-media,
.efsg-widget--hover-zoom .efsg-card:focus-visible .efsg-thumb-media,
.efsg-widget--hover-zoom-lift .efsg-card:hover .efsg-thumb-media,
.efsg-widget--hover-zoom-lift .efsg-card:focus-visible .efsg-thumb-media {
	transform: scale(1.02);
}

.efsg-widget--entrance-fade-up .efsg-item,
.efsg-widget--entrance-fade-scale .efsg-item,
.efsg-widget--entrance-stagger .efsg-item {
	opacity: 0;
}

.efsg-widget--entrance-fade-up .efsg-item,
.efsg-widget--entrance-stagger .efsg-item {
	transform: translate3d(0, 18px, 0);
}

.efsg-widget--entrance-fade-scale .efsg-item {
	transform: scale(0.97);
}

.efsg-widget.is-ready.efsg-widget--entrance-fade-up .efsg-item,
.efsg-widget.is-ready.efsg-widget--entrance-fade-scale .efsg-item,
.efsg-widget.is-ready.efsg-widget--entrance-stagger .efsg-item {
	opacity: 1;
	transform: none;
	transition:
		opacity 0.5s cubic-bezier(0.2, 0.65, 0.2, 1),
		transform 0.5s cubic-bezier(0.2, 0.65, 0.2, 1);
}

.efsg-widget.is-ready.efsg-widget--entrance-stagger .efsg-item {
	transition-delay: calc(var(--efsg-item-index) * 55ms);
}

.efsg-gallery-nav {
	display: none;
	margin-top: 16px;
	justify-content: flex-end;
	gap: 10px;
}

.efsg-widget[data-mobile-slider-arrows="no"] .efsg-gallery-nav {
	display: none !important;
}

.efsg-lightbox {
	position: fixed;
	inset: 0;
	z-index: 999999;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 20px;
	background:
		radial-gradient(circle at top right, rgba(47, 107, 255, 0.12), transparent 28%),
		var(--efsg-lightbox-overlay-bg, rgba(8, 17, 31, 0.92));
	backdrop-filter: blur(12px);
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.25s ease, visibility 0.25s ease;
}

.efsg-lightbox[hidden] {
	display: none !important;
}

.efsg-lightbox.is-open {
	opacity: 1;
	visibility: visible;
}

.efsg-lightbox__backdrop {
	position: absolute;
	inset: 0;
}

.efsg-lightbox__dialog {
	position: relative;
	z-index: 1;
	display: flex;
	align-items: center;
	justify-content: center;
	width: min(var(--efsg-popup-max-width), calc(100vw - 30px));
	max-width: 100%;
}

.efsg-lightbox__frame {
	position: relative;
	width: 100%;
	padding: 18px;
	border-radius: calc(var(--efsg-radius) + 10px);
	border: 1px solid rgba(154, 181, 225, 0.18);
	background: linear-gradient(180deg, rgba(18, 26, 44, 0.92), rgba(10, 16, 28, 0.96));
	box-shadow: 0 36px 90px rgba(0, 0, 0, 0.48);
}

.efsg-lightbox__toolbar {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin-bottom: 14px;
}

.efsg-lightbox__toolbar[hidden] {
	display: none !important;
}

.efsg-lightbox__action {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 38px;
	padding: 0.65rem 0.95rem;
	border: 1px solid rgba(255, 255, 255, 0.14);
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.08);
	color: #f5f8ff;
	font-size: 13px;
	font-weight: 600;
	line-height: 1;
	text-decoration: none;
	transition: background-color 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
}

.efsg-lightbox__action:hover,
.efsg-lightbox__action:focus-visible {
	background: rgba(255, 255, 255, 0.14);
	border-color: rgba(255, 255, 255, 0.28);
	transform: translateY(-1px);
	outline: none;
}

.efsg-lightbox__action[hidden] {
	display: none !important;
}

.efsg-lightbox__scroller {
	display: flex;
	align-items: center;
	justify-content: center;
	overflow: hidden;
	min-height: min(220px, var(--efsg-popup-max-height));
	max-height: min(var(--efsg-popup-max-height), calc(100vh - 42px));
	border-radius: calc(var(--efsg-radius) + 2px);
	background:
		radial-gradient(circle at top right, rgba(47, 107, 255, 0.12), transparent 32%),
		#0c1422;
}

.efsg-lightbox--mode-website-scroll .efsg-lightbox__scroller {
	display: block;
	overflow-x: hidden;
	overflow-y: auto;
	scrollbar-width: none;
	-ms-overflow-style: none;
}

.efsg-lightbox--mode-website-scroll .efsg-lightbox__scroller::-webkit-scrollbar {
	display: none;
}

.efsg-lightbox__image {
	display: block;
	width: auto;
	max-width: 100%;
	max-height: min(calc(var(--efsg-popup-max-height) - 36px), calc(100vh - 78px));
	height: auto;
	margin: 0 auto;
	object-fit: contain;
}

.efsg-lightbox--mode-website-scroll .efsg-lightbox__image {
	width: 100%;
	max-width: none;
	max-height: none;
	height: auto;
	object-fit: cover;
}

.efsg-lightbox__close,
.efsg-lightbox__nav {
	position: absolute;
	z-index: 3;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 48px;
	height: 48px;
	border: 1px solid rgba(255, 255, 255, 0.2);
	border-radius: 999px;
	cursor: pointer;
	transition: background-color 0.25s ease, transform 0.25s ease, color 0.25s ease, opacity 0.25s ease;
}

.efsg-lightbox__close {
	top: -14px;
	right: -14px;
	background: #ffffff;
	color: #0d1730;
	box-shadow: 0 16px 36px rgba(0, 0, 0, 0.28);
}

.efsg-lightbox__nav {
	top: 50%;
	background: rgba(12, 20, 34, 0.78);
	color: #ffffff;
	backdrop-filter: blur(12px);
	transform: translateY(-50%);
}

.efsg-lightbox__nav--prev {
	left: -18px;
}

.efsg-lightbox__nav--next {
	right: -18px;
}

.efsg-lightbox__close:hover,
.efsg-lightbox__close:focus-visible,
.efsg-lightbox__nav:hover,
.efsg-lightbox__nav:focus-visible {
	transform: translateY(-50%) scale(1.04);
	outline: none;
}

.efsg-lightbox__close:hover,
.efsg-lightbox__close:focus-visible {
	background: #f7f9ff;
	color: var(--efsg-accent);
	transform: scale(1.04);
}

.efsg-lightbox__close::before {
	content: "×";
	font-size: 28px;
	line-height: 1;
}

.efsg-lightbox__nav::before {
	font-size: 28px;
	line-height: 1;
}

.efsg-lightbox__nav--prev::before {
	content: "‹";
}

.efsg-lightbox__nav--next::before {
	content: "›";
}

.efsg-lightbox__nav[hidden] {
	display: none !important;
}

.efsg-lightbox__counter {
	position: absolute;
	top: 14px;
	left: 14px;
	z-index: 3;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 36px;
	padding: 0.45rem 0.8rem;
	border: 1px solid rgba(255, 255, 255, 0.16);
	border-radius: 999px;
	background: rgba(10, 16, 28, 0.56);
	color: #f5f8ff;
	font-size: 13px;
	font-weight: 600;
	letter-spacing: 0.01em;
	backdrop-filter: blur(10px);
}

.efsg-lightbox__counter[hidden] {
	display: none !important;
}

body.efsg-lightbox-open {
	overflow: hidden;
}

.efsg-fancybox .fancybox__toolbar,
.efsg-fancybox .fancybox__footer,
.efsg-fancybox .fancybox__nav {
	--f-button-bg: rgba(14, 21, 35, 0.72);
	--f-button-hover-bg: rgba(33, 46, 72, 0.9);
	--f-button-color: #ffffff;
	--f-button-hover-color: #ffffff;
}

.efsg-fancybox .fancybox__content {
	border-radius: calc(var(--efsg-radius, 18px) + 6px);
	overflow: hidden;
}

@media (max-width: 1024px) {
	.efsg-lightbox__dialog {
		width: min(var(--efsg-popup-max-width), calc(100vw - 20px));
	}

	.efsg-lightbox__nav--prev {
		left: 10px;
	}

	.efsg-lightbox__nav--next {
		right: 10px;
	}
}

@media (max-width: 767px) {
	.efsg-filters-shell {
		gap: 8px;
		padding: 8px;
	}

	.efsg-filter-button {
		min-height: 42px;
		padding: 0.72rem 1rem;
	}

	.efsg-widget--mobile-slider .efsg-gallery {
		display: grid;
		grid-template-columns: none;
		grid-auto-flow: column;
		grid-auto-columns: calc((100% - (var(--efsg-columns) - 1) * var(--efsg-gap)) / var(--efsg-columns));
		align-items: stretch;
		overflow-x: auto;
		overflow-y: hidden;
		scroll-snap-type: x mandatory;
		scroll-behavior: smooth;
		scrollbar-width: none;
		-ms-overflow-style: none;
	}

	.efsg-widget--mobile-slider.efsg-widget--layout-masonry .efsg-gallery {
		column-count: initial;
		column-gap: 0;
	}

	.efsg-widget--mobile-slider .efsg-item {
		display: block;
		width: auto;
		margin: 0;
		break-inside: auto;
		scroll-snap-align: start;
	}

	.efsg-widget--mobile-slider .efsg-gallery-nav {
		display: flex;
	}

	.efsg-widget--mobile-slider .efsg-card {
		height: 100%;
	}

	.efsg-lightbox {
		padding: 10px;
	}

	.efsg-lightbox__dialog {
		width: min(var(--efsg-popup-max-width), calc(100vw - 12px));
	}

	.efsg-lightbox__frame {
		padding: 12px;
	}

	.efsg-lightbox__toolbar {
		gap: 8px;
		margin-bottom: 10px;
	}

	.efsg-lightbox__scroller {
		max-height: min(var(--efsg-popup-max-height), calc(100vh - 20px));
	}

	.efsg-lightbox__image {
		max-height: min(calc(var(--efsg-popup-max-height) - 24px), calc(100vh - 44px));
	}

	.efsg-lightbox__close,
	.efsg-lightbox__nav {
		width: 42px;
		height: 42px;
	}

	.efsg-lightbox__close {
		top: -10px;
		right: -10px;
	}

	.efsg-lightbox__counter {
		top: 10px;
		left: 10px;
		min-height: 32px;
		padding: 0.4rem 0.7rem;
		font-size: 12px;
	}

	.efsg-lightbox__nav--prev,
	.efsg-lightbox__nav--next {
		top: auto;
		bottom: 10px;
		transform: none;
	}

	.efsg-lightbox__nav--prev {
		left: 10px;
	}

	.efsg-lightbox__nav--next {
		right: 10px;
	}

	.efsg-lightbox__nav:hover,
	.efsg-lightbox__nav:focus-visible {
		transform: scale(1.04);
	}
}

@media (prefers-reduced-motion: reduce) {
	.efsg-filter-button,
	.efsg-rail-nav,
	.efsg-item,
	.efsg-card,
	.efsg-thumb-media,
	.efsg-image,
	.efsg-lightbox,
	.efsg-lightbox__close,
	.efsg-lightbox__nav {
		transition-duration: 0.01ms !important;
		animation-duration: 0.01ms !important;
	}
}
