.tgcj-property-gallery {
	--tgcj-gap: 12px;
	--tgcj-radius: 14px;
	--tgcj-featured-min-height: 420px;
	--tgcj-tile-aspect-ratio: 1 / 1;
	--tgcj-mobile-main-aspect-ratio: 16 / 10;
	--tgcj-mobile-thumb-size: 80px;
	--tgcj-mobile-thumb-radius: 10px;
	--tgcj-mobile-thumb-opacity: 0.62;
	--tgcj-mobile-thumb-active-opacity: 1;
	--tgcj-mobile-thumb-border-width: 1px;
	--tgcj-mobile-thumb-border-color: rgba(11, 87, 207, 0.35);
	--tgcj-mobile-thumb-active-border-width: 2px;
	--tgcj-mobile-thumb-active-border-color: #0b57cf;
	--tgcj-overlay-blur: 8px;
	--tgcj-overlay-cover-bg: rgba(7, 18, 33, 0.42);
	--tgcj-overlay-cover-blur: 8px;
	position: relative;
}

.tgcj-property-gallery--empty {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 16px;
	border: 1px dashed #b8c2cc;
	border-radius: 10px;
	font-size: 14px;
	color: #4a5562;
}

.tgcj-property-gallery__grid {
	display: grid;
	gap: var(--tgcj-gap);
	grid-template-columns: 2fr 1fr 1fr;
	grid-template-areas:
		'item1 item2 item3'
		'item1 item4 item5';
}

.tgcj-property-gallery__item {
	position: relative;
	display: block;
	overflow: hidden;
	border-radius: var(--tgcj-radius);
	background: #e7ecf2;
	isolation: isolate;
}

.tgcj-property-gallery__item--1 {
	grid-area: item1;
	min-height: var(--tgcj-featured-min-height);
}

.tgcj-property-gallery__item--2 {
	grid-area: item2;
}

.tgcj-property-gallery__item--3 {
	grid-area: item3;
}

.tgcj-property-gallery__item--4 {
	grid-area: item4;
}

.tgcj-property-gallery__item--5 {
	grid-area: item5;
}

.tgcj-property-gallery__item:not(.tgcj-property-gallery__item--featured) {
	aspect-ratio: var(--tgcj-tile-aspect-ratio);
}

.tgcj-property-gallery__image,
.tgcj-property-gallery__mobile-main-image,
.tgcj-property-gallery__thumb-image {
	position: absolute;
	inset: 0;
	background-position: center;
	background-size: cover;
	background-repeat: no-repeat;
	transition: transform 340ms ease;
}

.tgcj-property-gallery__item:hover .tgcj-property-gallery__image,
.tgcj-property-gallery__mobile-main-link:hover .tgcj-property-gallery__mobile-main-image {
	transform: scale(1.05);
}

.tgcj-property-gallery__overlay-text,
.tgcj-property-gallery__mobile-overlay {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 14px;
	background: var(--tgcj-overlay-cover-bg);
	backdrop-filter: blur(var(--tgcj-overlay-cover-blur));
	-webkit-backdrop-filter: blur(var(--tgcj-overlay-cover-blur));
	z-index: 2;
	pointer-events: none;
	text-align: center;
}

.tgcj-property-gallery__overlay-content,
.tgcj-property-gallery__mobile-overlay-content {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	max-width: 92%;
}

.tgcj-property-gallery__overlay-main-text,
.tgcj-property-gallery__mobile-overlay-main-text {
	display: inline-block;
	padding: 10px 14px;
	border-radius: 12px;
	color: #fff;
	background: rgba(7, 18, 33, 0.64);
	font-weight: 600;
	line-height: 1.35;
	backdrop-filter: blur(var(--tgcj-overlay-blur));
	-webkit-backdrop-filter: blur(var(--tgcj-overlay-blur));
}

.tgcj-property-gallery__overlay-text--portrait-fallback {
	display: none;
}

.tgcj-property-gallery__mobile {
	display: none;
}

.tgcj-property-gallery__thumbs {
	display: flex;
	gap: 8px;
	margin-top: 10px;
	overflow-x: auto;
	overflow-y: hidden;
	padding-bottom: 6px;
	scrollbar-width: none;
	-ms-overflow-style: none;
}

.tgcj-property-gallery__thumbs::-webkit-scrollbar {
	display: none;
}

.tgcj-property-gallery.tgcj-show-mobile-scrollbar .tgcj-property-gallery__thumbs {
	scrollbar-width: thin;
	-ms-overflow-style: auto;
}

.tgcj-property-gallery.tgcj-show-mobile-scrollbar .tgcj-property-gallery__thumbs::-webkit-scrollbar {
	display: block;
	height: 6px;
}

.tgcj-property-gallery__thumb {
	position: relative;
	flex: 0 0 var(--tgcj-mobile-thumb-size);
	width: var(--tgcj-mobile-thumb-size);
	height: var(--tgcj-mobile-thumb-size);
	border: var(--tgcj-mobile-thumb-border-width) solid var(--tgcj-mobile-thumb-border-color);
	border-radius: var(--tgcj-mobile-thumb-radius) !important;
	padding: 0;
	background: #e7ecf2;
	cursor: pointer;
	overflow: hidden;
	opacity: var(--tgcj-mobile-thumb-opacity);
	transition: opacity 220ms ease, border-color 220ms ease, box-shadow 220ms ease;
	-webkit-appearance: none;
	appearance: none;
	line-height: 0;
}

.tgcj-property-gallery__thumb.is-active {
	border-color: var(--tgcj-mobile-thumb-active-border-color);
	border-width: var(--tgcj-mobile-thumb-active-border-width);
	opacity: var(--tgcj-mobile-thumb-active-opacity);
}

.tgcj-property-gallery__thumb-image {
	border-radius: inherit !important;
}

.tgcj-property-gallery__mobile-main-link {
	position: relative;
	display: block;
	aspect-ratio: var(--tgcj-mobile-main-aspect-ratio);
	overflow: hidden;
	border-radius: var(--tgcj-radius);
	background: #e7ecf2;
}

.tgcj-property-gallery__mobile-overlay {
	opacity: 0;
	pointer-events: none;
	transition: opacity 180ms ease;
}

.tgcj-property-gallery__mobile-overlay.is-visible {
	opacity: 1;
}

.tgcj-property-gallery.tgcj-mobile-thumb-border-disabled .tgcj-property-gallery__thumb:not(.is-active) {
	border-width: 0;
}

.tgcj-property-gallery.tgcj-mobile-thumb-active-border-disabled .tgcj-property-gallery__thumb.is-active {
	border-width: 0;
}

.tgcj-property-gallery__hidden-links {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip-path: inset(50%);
}

.tgcj-property-gallery__hidden-link {
	display: block;
	width: 1px;
	height: 1px;
}

@media (max-width: 1024px) and (orientation: portrait) {
	.tgcj-property-gallery__grid {
		grid-template-columns: 2fr 1fr;
		grid-template-areas:
			'item1 item2'
			'item1 item3';
	}

	.tgcj-property-gallery__item--4,
	.tgcj-property-gallery__item--5 {
		display: none;
	}

	.tgcj-property-gallery__overlay-text--portrait-fallback {
		display: flex;
	}
}

@media (max-width: 767px) {
	.tgcj-property-gallery__grid {
		display: none;
	}

	.tgcj-property-gallery__mobile {
		display: block;
	}
}
