.jgr {
	--jgr-columns: 3;
	--jgr-gap: 20px;
	--jgr-height: 280px;
	--jgr-image-zoom: 100;
	position: relative;
	width: 100%;
}

.jgr-viewport {
	overflow: hidden;
	padding: 12px 8px 18px;
	margin: -12px -8px -18px;
}

.jgr-track {
	display: flex;
	gap: var(--jgr-gap);
	transition: transform .55s cubic-bezier(.22,.61,.36,1);
	will-change: transform;
}

.jgr-card {
	-webkit-appearance: none !important;
	appearance: none !important;
	position: relative;
	flex: 0 0 calc((100% - (var(--jgr-columns) - 1) * var(--jgr-gap)) / var(--jgr-columns));
	height: var(--jgr-height);
	min-height: 0 !important;
	padding: 0 !important;
	overflow: hidden;
	border: 1px solid #dbe4ec !important;
	border-radius: 18px;
	background: #fff !important;
	box-shadow: none !important;
	color: #65758b !important;
	font: inherit;
	text-align: left;
	text-transform: none;
	cursor: zoom-in;
	transition: transform .25s ease, box-shadow .25s ease;
}

.jgr-card:hover {
	transform: translateY(-2px);
	box-shadow: none !important;
	border-color: #c9d6e1 !important;
}

.jgr-card::after {
	content: "";
	position: absolute;
	z-index: 2;
	right: 0;
	bottom: 0;
	left: 0;
	height: 112px;
	background: linear-gradient(
		to bottom,
		rgba(255, 255, 255, 0) 0%,
		rgba(255, 255, 255, .08) 28%,
		rgba(255, 255, 255, .58) 62%,
		rgba(255, 255, 255, .94) 84%,
		#fff 100%
	) !important;
	opacity: 1;
	pointer-events: none;
}

.jgr-card__top {
	position: relative;
	z-index: 3;
	box-sizing: border-box;
	width: 100%;
	height: 42px;
	padding: 0 14px;
	display: flex;
	align-items: center;
	gap: 7px;
	border-bottom: 1px solid #e5ebf1;
	background: linear-gradient(135deg, #f7fbff 0%, #eef5fb 100%);
	color: #627188 !important;
	font-size: 10px;
	font-weight: 600;
	letter-spacing: .025em;
	line-height: 1;
	text-transform: none;
}

.jgr-google,
.jgr-google svg {
	display: block;
	width: 17px;
	height: 17px;
}

.jgr-stars {
	margin-left: auto;
	color: #b08d6a;
	font-size: 10px;
	letter-spacing: .8px;
}

.jgr-card__image {
	display: block;
	height: calc(100% - 42px);
	overflow: hidden;
	background: #fff;
}

.jgr-card__image img {
	display: block;
	width: calc(var(--jgr-image-zoom) * 1%);
	max-width: none;
	height: auto;
	min-height: 100%;
	margin-left: calc((100% - (var(--jgr-image-zoom) * 1%)) / 2);
	object-position: top center;
}

.jgr-card__hint {
	position: absolute;
	z-index: 4;
	right: 0;
	bottom: 13px;
	left: 0;
	color: #536174;
	font-size: 11px;
	font-weight: 700;
	text-align: center;
	opacity: 0;
	transform: translateY(5px);
	transition: opacity .2s ease, transform .2s ease;
}

.jgr-card:hover .jgr-card__hint,
.jgr-card:focus-visible .jgr-card__hint {
	opacity: 1;
	transform: none;
}

.jgr-navigation {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 16px;
	margin-top: 24px;
}

.jgr-arrow {
	-webkit-appearance: none !important;
	appearance: none !important;
	box-sizing: border-box !important;
	width: 42px;
	height: 42px;
	min-width: 42px !important;
	min-height: 42px !important;
	padding: 0 0 3px !important;
	display: grid !important;
	place-items: center;
	border: 1px solid #d8e2eb !important;
	border-radius: 50% !important;
	background: #fff !important;
	color: #24364b !important;
	font-size: 29px;
	line-height: 1;
	text-transform: none;
	cursor: pointer;
	transition: background .2s ease, opacity .2s ease;
}

.jgr-arrow:hover { background: #f2f6f9 !important; }
.jgr-arrow:disabled { opacity: .35; cursor: default; }
.jgr-dots { display: flex; align-items: center; gap: 6px; max-width: 180px; }
.jgr-dot { width: 7px; height: 7px; border-radius: 10px; background: #dce6ef; transition: width .25s, background .25s; }
.jgr-dot.is-active { width: 23px; background: #b08d6a; }

.jgr-modal {
	position: fixed;
	z-index: 999999;
	inset: 0;
	display: grid;
	place-items: center;
	padding: 24px;
	visibility: hidden;
	opacity: 0;
	transition: opacity .25s ease, visibility .25s ease;
}

.jgr-modal.is-open { visibility: visible; opacity: 1; }
.jgr-modal__backdrop {
	-webkit-appearance: none !important;
	appearance: none !important;
	position: absolute !important;
	inset: 0 !important;
	box-sizing: border-box !important;
	width: 100% !important;
	height: 100% !important;
	min-width: 0 !important;
	min-height: 0 !important;
	margin: 0 !important;
	padding: 0 !important;
	border: 0 !important;
	border-radius: 0 !important;
	background: rgba(15, 18, 24, .34) !important;
	box-shadow: none !important;
	-webkit-backdrop-filter: blur(12px) saturate(.8);
	backdrop-filter: blur(12px) saturate(.8);
	cursor: zoom-out;
}
.jgr-modal__backdrop:hover,
.jgr-modal__backdrop:focus { background: rgba(15, 18, 24, .34) !important; }
.jgr-modal__content { position: relative; z-index: 1; max-width: min(580px, 94vw); max-height: 90vh; overflow: auto; border: 1px solid rgba(255,255,255,.7); border-radius: 18px; background: #fff; box-shadow: 0 24px 70px rgba(0,0,0,.28); }
.jgr-modal__content img { display: block; width: 100%; height: auto; }
.jgr-modal__close {
	-webkit-appearance: none !important;
	appearance: none !important;
	position: sticky;
	z-index: 3;
	top: 12px;
	right: 12px;
	float: right;
	box-sizing: border-box !important;
	width: 38px !important;
	height: 38px !important;
	min-width: 38px !important;
	min-height: 38px !important;
	margin: 12px 12px -50px 0 !important;
	padding: 0 0 2px !important;
	display: grid !important;
	place-items: center;
	border: 1px solid rgba(255,255,255,.55) !important;
	border-radius: 50% !important;
	background: rgba(20,25,34,.82) !important;
	box-shadow: 0 4px 16px rgba(0,0,0,.2) !important;
	color: #fff !important;
	font-family: Arial, sans-serif !important;
	font-size: 24px !important;
	font-weight: 300 !important;
	line-height: 1 !important;
	text-transform: none !important;
	cursor: pointer;
	transition: background .2s ease, transform .2s ease !important;
}
.jgr-modal__close:hover { background: rgba(20,25,34,.98) !important; transform: rotate(90deg); }
.jgr-modal__close:focus-visible { outline: 3px solid rgba(255,255,255,.9); outline-offset: 2px; }
body.jgr-modal-open { overflow: hidden; }
.jgr-empty { padding: 30px; border: 2px dashed #d7dee5; border-radius: 14px; color: #718096; text-align: center; }

@media (max-width: 767px) {
	.jgr { --jgr-columns: 1; }
	.jgr-modal { padding: 12px; }
	.jgr-modal__content { max-width: 100%; max-height: 92vh; border-radius: 14px; }
	.jgr-modal__close { top: 9px; right: 9px; margin: 9px 9px -47px 0 !important; }
	.jgr-navigation { margin-top: 18px; }
}

@media (prefers-reduced-motion: reduce) {
	.jgr-track, .jgr-card, .jgr-modal { transition: none; }
}
