.wp-block-ltg-image-hotspots {
	margin: 0;
}

.ltg-image-hotspots {
	--ltg-hotspot-accent: var(--wp--preset--color--accent-3);
}

.ltg-image-hotspots__filters {
	display: flex;
	flex-wrap: wrap;
	gap: 0.65rem;
	margin-bottom: 1rem;
}

.ltg-image-hotspots__filters--below {
	margin-top: 1rem;
	margin-bottom: 0;
}

.ltg-image-hotspots__filters--align-right {
	justify-content: flex-end;
}

.ltg-image-hotspots__filter {
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
	padding: 0.45rem 0.8rem;
	border: 1px solid var(--ltg-hotspot-category-color, rgba(31, 31, 31, 0.16));
	border-radius: 999px;
	background: #ffffff;
	color: #1f1f1f;
	font: inherit;
	cursor: pointer;
	transition: 0.2s ease;
}

.ltg-image-hotspots__filter-label,
.ltg-image-hotspots__category-badge {
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
}

.ltg-image-hotspots__filter.is-active {
	background: var(--ltg-hotspot-category-color, #1f1f1f);
	border-color: var(--ltg-hotspot-category-color, #1f1f1f);
	color: #ffffff;
}

.ltg-image-hotspots__stage {
	position: relative;
	width: 100%;
}

.ltg-image-hotspots__image {
	display: block;
	width: 100%;
	height: auto;
}

.ltg-image-hotspots__dot {
	position: absolute;
	z-index: 3;
	width: 1.4rem;
	height: 1.4rem;
	padding: 0;
	border: 0;
	border-radius: 999px;
	background: transparent;
	transform: translate(-50%, -50%);
	cursor: pointer;
}

.ltg-image-hotspots__dot--has-icon {
	width: 3rem;
	height: 3rem;
}

.ltg-image-hotspots__dot-icon {
	display: block;
	width: 100%;
	height: 100%;
	border: 2px solid #ffffff;
	border-radius: 999px;
	object-fit: cover;
	box-shadow: 0 0 0 0.25rem color-mix(in srgb, var(--wp--preset--color--base) 65%, transparent);
}

.ltg-image-hotspots__dot--has-icon .ltg-image-hotspots__dot-icon {
	border: none;
	/* box-shadow: none; */
}

.ltg-image-hotspots__dot-label {
	position: absolute;
	left: 50%;
	bottom: calc(100% + 0.85rem);
	display: inline-flex;
	box-sizing: border-box;
	width: max-content;
	max-width: min(18rem, var(--ltg-hotspot-label-max-width, calc(100vw - 2rem)));
	padding: 0.35rem 0.6rem;
	border-radius: 0.35rem;
	background: var(--wp--preset--color--base);
	color: var(--wp--preset--color--contrast);
	font-family: var(--wp--preset--font-family--moranga, inherit);
	font-size: var(--wp--preset--font-size--medium, 1rem);
	line-height: 1.3;
	text-align: center;
	text-wrap: balance;
	white-space: normal;
	overflow-wrap: break-word;
	box-shadow: 0 0.3rem 0.9rem rgba(0, 0, 0, 0.12);
	transform: translate(calc(-50% + var(--ltg-hotspot-label-offset-x, 0px)), 0.2rem);
	opacity: 0;
	pointer-events: none;
	transition: opacity 0.18s ease, transform 0.18s ease;
}

.ltg-image-hotspots__dot-label--below {
	top: calc(100% + 0.85rem);
	bottom: auto;
	transform: translate(calc(-50% + var(--ltg-hotspot-label-offset-x, 0px)), -0.2rem);
}

.ltg-image-hotspots__dot:hover .ltg-image-hotspots__dot-label,
.ltg-image-hotspots__dot:focus-visible .ltg-image-hotspots__dot-label,
.ltg-image-hotspots__dot-label--always-visible {
	opacity: 1;
	pointer-events: auto;
	transform: translate(calc(-50% + var(--ltg-hotspot-label-offset-x, 0px)), 0);
}

.ltg-image-hotspots__dot-core {
	display: block;
	width: 100%;
	height: 100%;
	border: 2px solid #ffffff;
	border-radius: 999px;
	background: var(--ltg-hotspot-dot-color, var(--wp--preset--color--contrast));
	box-shadow: 0 0 0 0.45rem color-mix(in srgb, var(--ltg-hotspot-dot-color, var(--wp--preset--color--contrast)) 28%, transparent);
}

.ltg-image-hotspots__dot[aria-expanded="true"] .ltg-image-hotspots__dot-core {
	background: #1f1f1f;
	box-shadow: 0 0 0 0.55rem rgba(31, 31, 31, 0.18);
}

.ltg-image-hotspots__dot[aria-expanded="true"] .ltg-image-hotspots__dot-icon {
	box-shadow: 0 0 0 0.35rem color-mix(in srgb, var(--wp--preset--color--contrast) 22%, transparent);
}

.ltg-image-hotspots__card {
	position: absolute;
	z-index: 4;
	min-width: 24rem;
	max-width: min(28rem, calc(100% - 2rem));
	padding: 0;
	border-radius: 1rem;
	background: #ffffff;
	box-shadow: 0 1rem 2.2rem rgba(0, 0, 0, 0.14);
	transform: translate(calc(-50% + var(--ltg-hotspot-card-offset-x, 0px)), calc(-100% - 1.1rem));
	backdrop-filter: blur(8px);
}

.ltg-image-hotspots__card--below {
	transform: translate(calc(-50% + var(--ltg-hotspot-card-offset-x, 0px)), 1.1rem);
}

.ltg-image-hotspots__card-scroll {
	box-sizing: border-box;
	max-height: min(var(--ltg-hotspot-card-max-height, 70vh), 36rem);
	padding: 1rem 1.1rem;
	overflow-y: auto;
	overscroll-behavior: contain;
	border-radius: inherit;
}

.ltg-image-hotspots__card-close {
	position: absolute;
	top: 0.55rem;
	right: 0.55rem;
	z-index: 1;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 1.6rem;
	height: 1.6rem;
	padding: 0.5rem 0 0;
	border: 0;
	border-radius: 999px;
	/* background: color-mix(in srgb, var(--wp--preset--color--contrast) 8%, transparent); */
	background: white;
	color: var(--wp--preset--color--contrast);
	font: inherit;
	font-size: 1.5rem;
	line-height: 1;
	cursor: pointer;
}

.ltg-image-hotspots__card-close:hover,
.ltg-image-hotspots__card-close:focus-visible {
	background: color-mix(in srgb, var(--wp--preset--color--contrast) 16%, transparent);
	outline: none;
}

.ltg-image-hotspots__content-image {
	display: block;
	width: 100%;
	height: auto;
	margin-bottom: 0.75rem;
	border-radius: 0.75rem;
}

.ltg-image-hotspots__card::after {
	content: "";
	position: absolute;
	left: calc(50% - var(--ltg-hotspot-card-offset-x, 0px));
	bottom: -0.5rem;
	width: 1rem;
	height: 1rem;
	background: inherit;
	transform: translateX(-50%) rotate(45deg);
	z-index: -1;
}

.ltg-image-hotspots__card--below::after {
	top: -0.5rem;
	bottom: auto;
}

.ltg-image-hotspots__title,
.ltg-image-hotspots__text,
.ltg-image-hotspots__link-wrap {
	margin: 0;
}

.ltg-image-hotspots__categories {
	display: flex;
	flex-wrap: wrap;
	gap: 0.45rem;
	margin-bottom: 0.75rem;
}

.ltg-image-hotspots__category-badge {
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
	padding: 0.3rem 0.55rem;
	border-radius: 999px;
	background: color-mix(in srgb, var(--ltg-hotspot-category-color, var(--wp--preset--color--contrast)) 16%, white);
	color: var(--ltg-hotspot-category-color, var(--wp--preset--color--contrast));
	font-size: 0.82rem;
	font-weight: 600;
}

.ltg-image-hotspots__category-icon {
	display: block;
	flex: 0 0 auto;
	width: 1rem;
	height: 1rem;
	border-radius: 999px;
	object-fit: cover;
}

.ltg-image-hotspots__category-badge .ltg-image-hotspots__category-icon {
	width: 1rem;
	height: 1rem;
	border-radius: 999px;
	object-fit: cover;
}

.ltg-image-hotspots__title {
	font-weight: 700;
}

.ltg-image-hotspots__text,
.ltg-image-hotspots__link-wrap {
	margin-top: 0.5rem;
}

.ltg-image-hotspots__link {
	font-weight: 600;
	text-decoration: underline;
}

.ltg-image-hotspots__lightbox-gallery {
	display: none;
}

.ltg-image-hotspots__lightbox-gallery>.ltg-image-hotspots__modal-source {
	display: none;
}

.fslightbox-container {
	background: none!important;
}

.fslightbox-container .fslightbox-source {
	display: flex;
	justify-content: center;
	align-items: flex-start;
	width: 100%;
	height: 100vh;
	min-height: 100vh;
	padding: 2rem;
	overflow-y: auto;
	overflow-x: hidden;
	-webkit-overflow-scrolling: touch;
}

.fslightbox-container .ltg-image-hotspots__modal-card {
	position: relative;
	display: flex;
	flex-direction: column;
	width: min(calc(100vw - 4rem), var(--wp--style--global--content-size));
	margin: auto;
	background: #ffffff;
	box-shadow: var(--wp--preset--shadow--sharp);
}

.fslightbox-container .ltg-image-hotspots__modal-card::after {
	content: "";
	position: absolute;
	inset: 1rem -1rem -1rem 1rem;
	z-index: -1;
	background: var(--ltg-hotspot-shadow-color, var(--wp--preset--color--contrast));
}

.fslightbox-container .ltg-image-hotspots__modal-figure {
	margin-top: 0;
	margin-bottom: 0;
	flex: 0 0 auto;
}

.fslightbox-container .ltg-image-hotspots__modal-image {
	display: block;
	width: 100%;
	max-height: min(48vh, 36rem);
	object-fit: cover;
}

.fslightbox-container .ltg-image-hotspots__modal-body {
	flex: 0 0 auto;
}

.fslightbox-container .ltg-image-hotspots__modal-inner {
	margin-top: 0;
	margin-bottom: 0;
	padding-top: var(--wp--preset--spacing--30);
	padding-right: var(--wp--preset--spacing--30);
	padding-bottom: var(--wp--preset--spacing--30);
	padding-left: var(--wp--preset--spacing--30);
}

.fslightbox-container .ltg-image-hotspots__modal-text {
	border-bottom-style: none;
	border-bottom-width: 0;
}

.fslightbox-container .ltg-image-hotspots__categories {
	justify-content: flex-end;
	margin: 0 0 1rem;
	color: color-mix(in srgb, var(--wp--preset--color--contrast) 60%, transparent);
}

.fslightbox-container .ltg-image-hotspots__title {
	margin-top: 0;
	margin-bottom: 0;
	color: var(--wp--preset--color--contrast);
	font-size: clamp(2rem, 3vw, 3rem);
	line-height: 1.08;
	font-weight: 700;
}

.fslightbox-container .ltg-image-hotspots__title+.ltg-image-hotspots__text {
	margin-top: 1.2rem;
}

.fslightbox-container .ltg-image-hotspots__text {
	font-size: inherit;
	font-weight: inherit;
	font-family: inherit;
	margin-bottom: 0;
	color: var(--wp--preset--color--contrast);
	text-wrap: pretty;
	line-height: 1.7;
}

.fslightbox-container .ltg-image-hotspots__link {
	display: inline-flex;
	margin-top: 1.4rem;
	color: var(--wp--preset--color--contrast);
	font-weight: 600;
	text-decoration: underline;
}

.fslightbox-container .ltg-image-hotspots__category-badge {
	padding: 0;
	background: transparent;
	color: color-mix(in srgb, var(--wp--preset--color--contrast) 60%, transparent);
	font-size: 0.82rem;
	font-weight: 500;
}

.fslightbox-container .fslightbox-toolbar,
.fslightbox-container .fslightbox-nav {
	background: rgba(0, 0, 0, 0);
}

.fslightbox-absoluted {
	background: color-mix(in srgb, var(--wp--preset--color--base) 80%, transparent);
}

.fslightbox-container .fslightbox-svg-path {
	fill: var(--wp--preset--color--contrast);
}

.fslightbox-container .fslightboxb[title="Enter fullscreen"] {
	display: none;
}

.ltg-image-hotspots--empty {
	padding: 1rem;
	border: 1px dashed #b8b8b8;
}

@media (max-width: 840px) {
	.ltg-image-hotspots__dot-label {
		font-size: var(--wp--preset--font-size--small, 0.875rem);
	}
}

@media (max-width: 782px) {
	.ltg-image-hotspots__card {
		position: fixed;
		left: 1rem !important;
		top: auto !important;
		right: 1rem;
		bottom: 1rem;
		width: auto;
		min-width: 0;
		max-width: none;
		transform: none;
	}

	.ltg-image-hotspots__card-scroll {
		max-height: min(var(--ltg-hotspot-card-max-height, calc(100vh - 2rem)), 78vh);
		padding: 0.85rem 0.95rem;
	}

	.ltg-image-hotspots__card::after {
		display: none;
	}

	.fslightbox-container .ltg-image-hotspots__modal-card {
		width: min(calc(100vw - 2rem), var(--wp--style--global--content-size));
	}

	.fslightbox-container .fslightbox-source {
		padding: 1rem;
	}

	.fslightbox-container .ltg-image-hotspots__modal-card::after {
		inset: 0.75rem -0.75rem -0.75rem 0.75rem;
	}

	.fslightbox-container .ltg-image-hotspots__modal-image {
		max-height: 34vh;
	}

	.fslightbox-container .ltg-image-hotspots__modal-inner {
		padding-top: var(--wp--preset--spacing--20);
		padding-right: var(--wp--preset--spacing--20);
		padding-bottom: var(--wp--preset--spacing--20);
		padding-left: var(--wp--preset--spacing--20);
	}
}
