/* Flatsome Smart Gallery frontend styles. */

/* --------------------------------------------------------------------------
 * Shared gallery layouts
 * -------------------------------------------------------------------------- */
.fsg-gallery {
	--fsg-desktop-height: 600px;
	--fsg-tablet-height: 460px;
	--fsg-mobile-height: 280px;
	--fsg-gap: 4px;
	--fsg-radius: 22px;
	--fsg-overlay-color: #000;
	--fsg-overlay-opacity: .5;
	--fsg-overlay-percent: 50%;
	--fsg-object-position: 50% 50%;
	display: block;
	position: relative;
	width: 100%;
	margin: 0 0 1.5rem;
	overflow: hidden;
	border-radius: var(--fsg-radius);
}

.fsg-gallery *,
.fsg-gallery *::before,
.fsg-gallery *::after {
	box-sizing: border-box;
}

.fsg-gallery__layout {
	display: grid;
	gap: var(--fsg-gap);
	width: 100%;
}

.fsg-gallery__item {
	display: block;
	position: relative;
	min-width: 0;
	overflow: hidden;
	background: #eee;
	color: #fff;
	text-decoration: none;
}

.fsg-gallery__item:focus-visible,
.fsg-native-lightbox__tool:focus-visible,
.fsg-native-lightbox__nav:focus-visible,
.fsg-native-lightbox__thumb:focus-visible {
	outline: 3px solid #fff;
	outline-offset: 2px;
}

.fsg-gallery__image {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: var(--fsg-object-position);
	transition: transform .35s ease;
}

.fsg-gallery__item:hover .fsg-gallery__image {
	transform: scale(1.02);
}

.fsg-gallery__overlay {
	display: flex;
	position: absolute;
	inset: 0;
	z-index: 2;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 16px;
	background: color-mix(in srgb, var(--fsg-overlay-color) var(--fsg-overlay-percent), transparent);
	color: #fff;
	font-weight: 700;
	line-height: 1.25;
	text-align: center;
}

@supports not (background: color-mix(in srgb, #000 50%, transparent)) {
	.fsg-gallery__overlay {
		background: rgba(0, 0, 0, .5);
	}
}

.fsg-gallery__icon {
	display: block;
	flex: 0 0 auto;
	width: 24px;
	height: 24px;
}

.fsg-gallery__view-all {
	font-size: clamp(15px, 1.05vw, 18px);
}

.fsg-gallery__overlay--mobile {
	display: none;
}

.fsg-gallery--property .fsg-gallery__layout,
.fsg-gallery--main-left .fsg-gallery__layout,
.fsg-gallery--main-right .fsg-gallery__layout {
	grid-template-columns: 2fr 1fr;
	grid-template-rows: 1fr 1fr;
	aspect-ratio: 16 / 9;
	height: auto;
	min-height: 0;
}

.fsg-gallery--property .fsg-gallery__item--main,
.fsg-gallery--main-left .fsg-gallery__item--main {
	grid-column: 1;
	grid-row: 1 / 3;
}

.fsg-gallery--property .fsg-gallery__item--2,
.fsg-gallery--main-left .fsg-gallery__item--2 {
	grid-column: 2;
	grid-row: 1;
}

.fsg-gallery--property .fsg-gallery__item--3,
.fsg-gallery--main-left .fsg-gallery__item--3 {
	grid-column: 2;
	grid-row: 2;
}

.fsg-gallery--main-right .fsg-gallery__layout {
	grid-template-columns: 1fr 2fr;
}

.fsg-gallery--main-right .fsg-gallery__item--main {
	grid-column: 2;
	grid-row: 1 / 3;
}

.fsg-gallery--main-right .fsg-gallery__item--2 {
	grid-column: 1;
	grid-row: 1;
}

.fsg-gallery--main-right .fsg-gallery__item--3 {
	grid-column: 1;
	grid-row: 2;
}

.fsg-gallery--main-top .fsg-gallery__layout {
	grid-template-columns: 1fr 1fr;
	grid-template-rows: 2fr 1fr;
	aspect-ratio: 16 / 9;
	height: auto;
	min-height: 0;
}

.fsg-gallery--main-top .fsg-gallery__item--main {
	grid-column: 1 / 3;
	grid-row: 1;
}

.fsg-gallery--main-top .fsg-gallery__item--2 {
	grid-column: 1;
	grid-row: 2;
}

.fsg-gallery--main-top .fsg-gallery__item--3 {
	grid-column: 2;
	grid-row: 2;
}

.fsg-gallery--view-all .fsg-gallery__layout {
	display: block;
	aspect-ratio: 16 / 9;
	height: auto;
	min-height: 0;
}

.fsg-gallery--view-all .fsg-gallery__item--main {
	height: 100%;
}

.fsg-gallery--view-all .fsg-gallery__item:not(.fsg-gallery__item--main) {
	display: none;
}

.fsg-gallery--view-all .fsg-gallery__item--main .fsg-gallery__overlay--mobile {
	display: flex;
}

.fsg-gallery--property .fsg-gallery__item--extra,
.fsg-gallery--main-left .fsg-gallery__item--extra,
.fsg-gallery--main-right .fsg-gallery__item--extra,
.fsg-gallery--main-top .fsg-gallery__item--extra {
	display: none;
}

.fsg-gallery--count-1 .fsg-gallery__layout {
	display: block;
	aspect-ratio: 16 / 9;
	height: auto;
	min-height: 0;
}

.fsg-gallery--count-1 .fsg-gallery__item {
	height: 100%;
}

.fsg-gallery--count-2 .fsg-gallery__layout {
	grid-template-columns: 1fr 1fr;
	grid-template-rows: 1fr;
	aspect-ratio: 16 / 9;
	height: auto;
	min-height: 0;
}

.fsg-gallery--count-2 .fsg-gallery__item {
	grid-column: auto;
	grid-row: 1;
}

.fsg-gallery--grid,
.fsg-gallery--slider,
.fsg-gallery--masonry,
.fsg-gallery--card {
	overflow: visible;
}

.fsg-gallery--grid .fsg-gallery__layout,
.fsg-gallery--card .fsg-gallery__layout {
	grid-template-columns: repeat(3, minmax(0, 1fr));
	height: auto;
}

.fsg-gallery--grid .fsg-gallery__item {
	aspect-ratio: 4 / 3;
	border-radius: var(--fsg-radius);
}

.fsg-gallery--slider .fsg-gallery__layout {
	display: flex;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	scrollbar-width: thin;
}

.fsg-gallery--slider .fsg-gallery__item {
	flex: 0 0 min(75%, 520px);
	margin-right: var(--fsg-gap);
	border-radius: var(--fsg-radius);
	aspect-ratio: 4 / 3;
	scroll-snap-align: start;
}

.fsg-gallery--slider .fsg-gallery__layout.flickity-enabled {
	display: block;
	overflow: visible;
}

.fsg-gallery--slider .flickity-viewport {
	border-radius: var(--fsg-radius);
}

.fsg-gallery--masonry .fsg-gallery__layout {
	display: block;
	columns: 3;
	column-gap: var(--fsg-gap);
}

.fsg-gallery--masonry .fsg-gallery__item {
	margin: 0 0 var(--fsg-gap);
	break-inside: avoid;
	border-radius: var(--fsg-radius);
}

.fsg-gallery--masonry .fsg-gallery__image {
	height: auto;
}

.fsg-gallery--card .fsg-gallery__item {
	display: flex;
	flex-direction: column;
	height: auto;
	border-radius: var(--fsg-radius);
	background: #fff;
	box-shadow: 0 8px 24px rgba(0, 0, 0, .08);
	color: #333;
}

.fsg-gallery--card .fsg-gallery__image {
	height: auto;
	aspect-ratio: 4 / 3;
}

.fsg-gallery__caption {
	display: block;
	padding: 12px 14px;
	background: #fff;
	color: #333;
	font-size: 14px;
	line-height: 1.45;
}

/* --------------------------------------------------------------------------
 * Showcase V-Car layout outside the lightbox
 * -------------------------------------------------------------------------- */
.fsg-gallery--vcar {
	overflow: visible;
	border-radius: 0;
	background: #fff;
}

.fsg-vcar__hero {
	position: relative;
	width: 100%;
	overflow: hidden;
	border-radius: 0;
	background: #e9e9e9;
	aspect-ratio: 16 / 9;
}

.fsg-vcar__main-trigger {
	display: block;
	width: 100%;
	height: 100%;
	margin: 0;
	padding: 0;
	border: 0;
	background: transparent;
	cursor: pointer;
	appearance: none;
}

.fsg-vcar__main-trigger:focus-visible,
.fsg-vcar__album-button:focus-visible,
.fsg-vcar__thumb-nav:focus-visible {
	outline: 3px solid #d46a00;
	outline-offset: 3px;
}

.fsg-vcar__main-image {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: var(--fsg-object-position);
	transition: opacity .18s ease, transform .3s ease;
}

.fsg-vcar__main-trigger:hover .fsg-vcar__main-image {
	transform: scale(1.005);
}

.fsg-vcar__badge {
	display: inline-flex;
	position: absolute;
	top: 26px;
	left: 24px;
	z-index: 3;
	align-items: center;
	min-height: 56px;
	padding: 14px 28px;
	border-radius: 2px;
	background: rgba(255, 255, 255, .94);
	box-shadow: 0 1px 6px rgba(0, 0, 0, .06);
	color: #111;
	font-size: 18px;
	font-weight: 500;
	line-height: 1.2;
}

.fsg-vcar__album-button {
	display: inline-flex;
	position: absolute;
	top: 28px;
	right: 28px;
	z-index: 4;
	align-items: center;
	justify-content: center;
	width: 70px;
	height: 70px;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 4px;
	background: rgba(255, 255, 255, .95);
	box-shadow: 0 3px 14px rgba(0, 0, 0, .08);
	color: #050505;
	cursor: pointer;
	appearance: none;
	transition: background .2s ease, transform .2s ease;
}

.fsg-vcar__album-button:hover {
	background: #fff;
	transform: translateY(-1px);
}

.fsg-vcar__album-button svg {
	display: block;
	width: 26px;
	height: 26px;
}

.fsg-vcar__source {
	position: absolute;
	right: 0;
	bottom: 0;
	z-index: 3;
	max-width: min(48%, 540px);
	padding: 16px 28px 14px 34px;
	background: linear-gradient(90deg, rgba(17, 17, 17, .05) 0%, rgba(17, 17, 17, .45) 18%, rgba(17, 17, 17, .82) 100%);
	color: #fff;
	font-size: 16px;
	font-weight: 600;
	line-height: 1.3;
	text-align: right;
}

.fsg-vcar__thumb-shell {
	position: relative;
	margin-top: 16px;
	overflow: visible;
}

.fsg-vcar__thumb-track {
	display: grid;
	grid-auto-flow: column;
	grid-auto-columns: calc((100% - (5 * 15px)) / 6);
	gap: 15px;
	width: 100%;
	overflow-x: auto;
	overscroll-behavior-inline: contain;
	scroll-behavior: smooth;
	scroll-snap-type: x mandatory;
	scrollbar-width: none;
}

.fsg-vcar__thumb-track::-webkit-scrollbar {
	display: none;
}

.fsg-vcar__thumb {
	display: block;
	position: relative;
	min-width: 0;
	margin: 0;
	padding: 0;
	overflow: hidden;
	border: 0;
	border-radius: 0;
	background: #eee;
	cursor: pointer;
	appearance: none;
	aspect-ratio: 16 / 9;
	scroll-snap-align: start;
}

.fsg-vcar__thumb::after {
	position: absolute;
	inset: 0;
	border: 2px solid transparent;
	content: "";
	pointer-events: none;
	transition: border-color .2s ease, background .2s ease;
}

.fsg-vcar__thumb:hover::after {
	background: rgba(255, 255, 255, .08);
}

.fsg-vcar__thumb.is-active::after {
	border-color: #d46a00;
}

.fsg-vcar__thumb-image {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
}

.fsg-vcar__thumb-nav {
	display: grid;
	position: absolute;
	top: 50%;
	z-index: 5;
	place-items: center;
	flex: 0 0 auto;
	width: 30px;
	height: 30px;
	aspect-ratio: 1 / 1;
	margin: 0;
	padding: 0;
	border: 1px solid rgba(0, 0, 0, .12);
	border-radius: 999px;
	background: rgba(239, 239, 239, .96);
	box-shadow: 0 1px 3px rgba(0, 0, 0, .14);
	color: #666;
	cursor: pointer;
	font-size: 0;
	line-height: 0;
	appearance: none;
	transform: translateY(-50%);
	transition: background .2s ease, color .2s ease, box-shadow .2s ease, transform .2s ease;
}

.fsg-vcar__thumb-nav:hover {
	background: #f8f8f8;
	box-shadow: 0 2px 5px rgba(0, 0, 0, .16);
	color: #444;
	transform: translateY(-50%) scale(1.02);
}

.fsg-vcar__thumb-nav svg {
	display: block;
	width: 18px;
	height: 18px;
	stroke: currentColor;
}

.fsg-vcar__thumb-prev {
	left: 10px;
}

.fsg-vcar__thumb-next {
	right: 10px;
}

.fsg-gallery--vcar .fsg-gallery__lightbox-items {
	display: none;
}

/* --------------------------------------------------------------------------
 * Native V-Car lightbox
 * -------------------------------------------------------------------------- */
html.fsg-lightbox-open,
html.fsg-lightbox-open body {
	overflow: hidden;
	overscroll-behavior: none;
}

.fsg-native-lightbox {
	--fsg-lightbox-sidebar-width: 82px;
	--fsg-lightbox-thumbnail-height: 108px;
	display: none;
	position: fixed;
	inset: 0;
	z-index: 999999;
	width: 100vw;
	height: 100vh;
	height: 100dvh;
	overflow: hidden;
	background: #000;
	color: #fff;
}

.fsg-native-lightbox.is-open {
	display: block;
}

.fsg-native-lightbox *,
.fsg-native-lightbox *::before,
.fsg-native-lightbox *::after {
	box-sizing: border-box;
}

.fsg-native-lightbox button,
.fsg-native-lightbox a {
	min-width: 0;
	min-height: 0;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 0;
	background: transparent;
	box-shadow: none;
	font: inherit;
	letter-spacing: 0;
	text-decoration: none;
	text-transform: none;
	appearance: none;
}

.fsg-native-lightbox button::before,
.fsg-native-lightbox button::after {
	content: none;
}

.fsg-native-lightbox::after {
	display: none;
	content: none;
}

.fsg-native-lightbox__stage {
	display: flex;
	position: absolute;
	inset: 0 var(--fsg-lightbox-sidebar-width) var(--fsg-lightbox-thumbnail-height) 0;
	align-items: center;
	justify-content: center;
	min-width: 0;
	min-height: 0;
	padding: 24px 22px 18px;
}

.fsg-native-lightbox__figure {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 100%;
	max-width: min(1056px, calc(100% - 72px));
	max-height: calc(100% - 36px);
	margin: 0;
}

.fsg-native-lightbox__image {
	display: block;
	width: auto;
	height: auto;
	max-width: 100%;
	max-height: 100%;
	border: 0;
	border-radius: 0;
	background: transparent;
	box-shadow: none;
	object-fit: contain;
}

.fsg-native-lightbox__topbar {
	display: flex;
	position: absolute;
	top: 16px;
	right: 0;
	z-index: 8;
	flex-direction: column;
	align-items: center;
	gap: 17px;
	width: var(--fsg-lightbox-sidebar-width);
	padding-inline: 8px;
}

.fsg-native-lightbox__toolbar {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 18px;
}

.fsg-native-lightbox__tool {
	display: grid;
	place-items: center;
	width: 30px;
	height: 30px;
	color: #d2d2d2;
	cursor: pointer;
	line-height: 0;
	transition: color .18s ease, opacity .18s ease, transform .18s ease;
}

.fsg-native-lightbox__tool:hover {
	color: #fff;
	transform: translateY(-1px);
}

.fsg-native-lightbox__tool svg {
	display: block;
	width: 20px;
	height: 20px;
	fill: none;
	stroke: currentColor;
	stroke-width: 1.75;
}

.fsg-native-lightbox__counter {
	color: #f3f3f3;
	font-size: 16px;
	font-weight: 500;
	line-height: 1;
	white-space: nowrap;
}

.fsg-native-lightbox__nav {
	display: grid;
	position: absolute;
	right: 18px;
	z-index: 7;
	place-items: center;
	flex: 0 0 auto;
	min-width: 46px;
	min-height: 46px;
	width: 46px;
	height: 46px;
	aspect-ratio: 1 / 1;
	padding: 0;
	border: 1px solid rgba(255, 255, 255, .72);
	border-radius: 999px;
	background: rgba(0, 0, 0, .38);
	box-shadow: 0 0 0 1px rgba(255, 255, 255, .06) inset;
	color: #d4d4d4;
	cursor: pointer;
	font-size: 0;
	line-height: 0;
	box-sizing: border-box;
	transition: border-color .18s ease, color .18s ease, background .18s ease, box-shadow .18s ease, transform .18s ease;
}

.fsg-native-lightbox__nav:hover {
	border-color: rgba(255, 255, 255, .92);
	background: rgba(255, 255, 255, .10);
	box-shadow: 0 0 0 1px rgba(255, 255, 255, .10) inset;
	color: #fff;
}

.fsg-native-lightbox__nav svg {
	display: block;
	width: 22px;
	height: 22px;
	fill: none;
	stroke: currentColor;
	stroke-width: 1.75;
	flex: 0 0 auto;
}

.fsg-native-lightbox__prev {
	top: 50%;
	transform: translateY(-60px);
}

.fsg-native-lightbox__next {
	top: 50%;
	transform: translateY(12px);
}

.fsg-native-lightbox__bottom {
	display: flex;
	position: absolute;
	right: 0;
	bottom: 0;
	left: 0;
	z-index: 6;
	align-items: center;
	justify-content: center;
	height: var(--fsg-lightbox-thumbnail-height);
	overflow: hidden;
	background: #050505;
}

.fsg-native-lightbox__caption {
	display: none;
}

.fsg-native-lightbox__thumbs {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 11px;
	width: max-content;
	height: 100%;
	max-width: calc(100% - 24px);
	margin: 0 auto;
	padding: 10px 0;
	overflow-x: auto;
	overflow-y: hidden;
	scroll-behavior: smooth;
	scrollbar-width: none;
}

.fsg-native-lightbox__thumbs::-webkit-scrollbar {
	display: none;
}

.fsg-native-lightbox__thumb {
	flex: 0 0 auto;
	overflow: hidden;
	border: 1px solid transparent;
	border-radius: 1px;
	background: #111;
	cursor: pointer;
	opacity: .45;
	transition: border-color .18s ease, opacity .18s ease;
}

.fsg-native-lightbox__thumb:hover {
	opacity: .78;
}

.fsg-native-lightbox__thumb.is-active {
	border-color: #d7e8f2;
	opacity: 1;
}

.fsg-native-lightbox__thumb-image {
	display: block;
	width: 116px;
	height: 88px;
	object-fit: cover;
}


@media (min-width: 1200px) {
	.fsg-native-lightbox__figure {
		max-width: min(1056px, calc(100% - 88px));
	}
}

@media (min-width: 1600px) and (min-height: 850px) {
	.fsg-native-lightbox__figure {
		max-width: min(1080px, calc(100% - 120px));
	}
}

/* --------------------------------------------------------------------------
 * Responsive gallery layouts
 * -------------------------------------------------------------------------- */
@media (max-width: 849px) {
	.fsg-gallery--grid .fsg-gallery__layout,
	.fsg-gallery--card .fsg-gallery__layout {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.fsg-gallery--masonry .fsg-gallery__layout {
		columns: 2;
	}

	.fsg-vcar__badge {
		top: 16px;
		left: 18px;
		min-height: 46px;
		padding: 12px 20px;
		font-size: 16px;
	}

	.fsg-vcar__album-button {
		top: 16px;
		right: 18px;
		width: 56px;
		height: 56px;
	}

	.fsg-vcar__album-button svg {
		width: 22px;
		height: 22px;
	}

	.fsg-vcar__source {
		max-width: 58%;
		padding: 12px 16px 11px 24px;
		font-size: 14px;
	}

	.fsg-vcar__thumb-track {
		grid-auto-columns: calc((100% - (3 * 12px)) / 4);
		gap: 12px;
	}

	.fsg-vcar__thumb-nav {
		width: 28px;
		height: 28px;
	}

	.fsg-vcar__thumb-nav svg {
		width: 17px;
		height: 17px;
	}

	.fsg-native-lightbox {
		--fsg-lightbox-sidebar-width: 70px;
		--fsg-lightbox-thumbnail-height: 84px;
	}

	.fsg-native-lightbox__stage {
		padding: 16px 14px 10px;
	}

	.fsg-native-lightbox__figure {
		max-width: min(960px, calc(100% - 24px));
	}

	.fsg-native-lightbox__topbar {
		top: 14px;
		gap: 16px;
	}

	.fsg-native-lightbox__toolbar {
		gap: 16px;
	}

	.fsg-native-lightbox__tool {
		width: 30px;
		height: 30px;
	}

	.fsg-native-lightbox__tool svg {
		width: 19px;
		height: 19px;
	}

	.fsg-native-lightbox__counter {
		font-size: 16px;
	}

	.fsg-native-lightbox__nav {
		right: 14px;
		min-width: 42px;
		min-height: 42px;
		width: 42px;
		height: 42px;
	}

	.fsg-native-lightbox__nav svg {
		width: 21px;
		height: 21px;
	}

	.fsg-native-lightbox__prev {
		transform: translateY(-52px);
	}

	.fsg-native-lightbox__next {
		transform: translateY(10px);
	}

	.fsg-native-lightbox__thumbs {
		justify-content: center;
		gap: 8px;
		width: max-content;
		max-width: calc(100% - 20px);
		padding: 8px 0;
		margin: 0 auto;
	}

	.fsg-native-lightbox__thumb-image {
		width: 92px;
		height: 68px;
	}
}

@media (max-width: 549px) {
	.fsg-gallery {
		border-radius: var(--fsg-radius);
	}

	.fsg-gallery--mobile-stacked .fsg-gallery__layout {
		grid-template-columns: 1fr 1fr;
		grid-template-rows: 2fr 1fr;
		height: var(--fsg-mobile-height);
		min-height: 0;
		aspect-ratio: auto;
	}

	.fsg-gallery--mobile-stacked .fsg-gallery__item--main {
		grid-column: 1 / 3;
		grid-row: 1;
	}

	.fsg-gallery--mobile-stacked .fsg-gallery__item--2 {
		display: block;
		grid-column: 1;
		grid-row: 2;
	}

	.fsg-gallery--mobile-stacked .fsg-gallery__item--3 {
		display: block;
		grid-column: 2;
		grid-row: 2;
	}

	.fsg-gallery--mobile-stacked .fsg-gallery__item--extra {
		display: none;
	}

	.fsg-gallery--mobile-single .fsg-gallery__layout {
		display: block;
		height: var(--fsg-mobile-height);
		min-height: 0;
		aspect-ratio: auto;
	}

	.fsg-gallery--mobile-single .fsg-gallery__item {
		display: none;
	}

	.fsg-gallery--mobile-single .fsg-gallery__item--main {
		display: block;
		height: 100%;
	}

	.fsg-gallery--mobile-single .fsg-gallery__item--main .fsg-gallery__overlay--mobile {
		display: flex;
	}

	.fsg-gallery--mobile-scroll {
		overflow: visible;
	}

	.fsg-gallery--mobile-scroll .fsg-gallery__layout {
		display: flex;
		gap: var(--fsg-gap);
		height: auto;
		min-height: 0;
		padding-bottom: 6px;
		overflow-x: auto;
		aspect-ratio: auto;
		scroll-snap-type: x mandatory;
	}

	.fsg-gallery--mobile-scroll .fsg-gallery__item {
		display: block;
		flex: 0 0 84%;
		grid-column: auto;
		grid-row: auto;
		height: var(--fsg-mobile-height);
		border-radius: var(--fsg-radius);
		scroll-snap-align: start;
	}

	.fsg-gallery--grid .fsg-gallery__layout,
	.fsg-gallery--card .fsg-gallery__layout {
		grid-template-columns: 1fr 1fr;
	}

	.fsg-gallery--masonry .fsg-gallery__layout {
		columns: 2;
	}

	.fsg-vcar__hero {
		border-radius: 0;
		aspect-ratio: 16 / 9;
	}

	.fsg-vcar__badge {
		top: 12px;
		left: 12px;
		min-height: 42px;
		max-width: 72%;
		padding: 9px 14px;
		font-size: 14px;
	}

	.fsg-vcar__album-button {
		top: 12px;
		right: 12px;
		width: 44px;
		height: 44px;
	}

	.fsg-vcar__album-button svg {
		width: 18px;
		height: 18px;
	}

	.fsg-vcar__source {
		max-width: 90%;
		padding: 8px 12px 7px 18px;
		font-size: 12px;
	}

	.fsg-vcar__thumb-shell {
		margin-top: 10px;
	}

	.fsg-vcar__thumb-track {
		grid-auto-columns: calc((100% - (2 * 8px)) / 3);
		gap: 8px;
	}

	.fsg-vcar__thumb-nav {
		width: 24px;
		height: 24px;
	}

	.fsg-vcar__thumb-nav svg {
		width: 15px;
		height: 15px;
	}

	.fsg-native-lightbox {
		--fsg-lightbox-sidebar-width: 56px;
		--fsg-lightbox-thumbnail-height: 76px;
	}

	.fsg-native-lightbox__stage {
		padding: 8px;
	}

	.fsg-native-lightbox__figure {
		max-width: 100%;
	}

	.fsg-native-lightbox__topbar {
		top: 8px;
		gap: 14px;
	}

	.fsg-native-lightbox__toolbar {
		gap: 14px;
	}

	.fsg-native-lightbox__tool {
		width: 28px;
		height: 28px;
	}

	.fsg-native-lightbox__tool svg {
		width: 18px;
		height: 18px;
	}

	.fsg-native-lightbox__counter {
		font-size: 13px;
	}

	.fsg-native-lightbox__nav {
		right: 7px;
		min-width: 42px;
		min-height: 42px;
		width: 42px;
		height: 42px;
		border-width: 1.5px;
		background: rgba(0, 0, 0, .42);
	}

	.fsg-native-lightbox__nav svg {
		width: 20px;
		height: 20px;
	}

	.fsg-native-lightbox__prev {
		transform: translateY(-52px);
	}

	.fsg-native-lightbox__next {
		transform: translateY(10px);
	}

	.fsg-native-lightbox__thumbs {
		justify-content: center;
		gap: 6px;
		width: max-content;
		max-width: calc(100% - 12px);
		padding: 10px 0 8px;
		margin: 0 auto;
	}

	.fsg-native-lightbox__thumb-image {
		width: 72px;
		height: 54px;
	}
}

@supports not (aspect-ratio: 16 / 9) {
	.fsg-gallery--property .fsg-gallery__layout,
	.fsg-gallery--main-left .fsg-gallery__layout,
	.fsg-gallery--main-right .fsg-gallery__layout,
	.fsg-gallery--main-top .fsg-gallery__layout,
	.fsg-gallery--view-all .fsg-gallery__layout,
	.fsg-gallery--count-1 .fsg-gallery__layout,
	.fsg-gallery--count-2 .fsg-gallery__layout,
	.fsg-vcar__hero {
		height: var(--fsg-desktop-height);
	}
}

@media (max-width: 849px) {
	@supports not (aspect-ratio: 16 / 9) {
		.fsg-gallery--property .fsg-gallery__layout,
		.fsg-gallery--main-left .fsg-gallery__layout,
		.fsg-gallery--main-right .fsg-gallery__layout,
		.fsg-gallery--main-top .fsg-gallery__layout,
		.fsg-gallery--view-all .fsg-gallery__layout,
		.fsg-gallery--count-1 .fsg-gallery__layout,
		.fsg-gallery--count-2 .fsg-gallery__layout,
		.fsg-vcar__hero {
			height: var(--fsg-tablet-height);
		}
	}
}

@media (max-width: 549px) {
	@supports not (aspect-ratio: 16 / 9) {
		.fsg-vcar__hero {
			height: var(--fsg-mobile-height);
		}
	}
}

@media (prefers-reduced-motion: reduce) {
	.fsg-gallery__image,
	.fsg-vcar__main-image,
	.fsg-native-lightbox * {
		scroll-behavior: auto;
		transition: none;
	}
}
