/* Root wrapper */
.prd-storie {
	width: 100%;
	max-width: 100vw;
}

/* 1. The Viewport */
.prd-storie__scroll-container {
	width: 100%;
	max-width: 100vw;
	overflow-x: auto;
	overflow-y: hidden;
	-webkit-overflow-scrolling: touch;

	scrollbar-width: none;

	cursor: grab;
	touch-action: pan-x;
}

.prd-storie__scroll-container.is-dragging {
	cursor: grabbing;
}

.prd-storie__scroll-container::-webkit-scrollbar {
	display: none;
}

/* 2. The Coordinate Canvas */
.prd-storie__image-canvas {
	position: relative;
	width: 2694px;
	height: 400px;
	display: flex;
}

/* 3. The Background Image */
.prd-storie__background {
	width: 100%;
	height: 100%;
	display: block;
	object-fit: cover;
	user-select: none;
	pointer-events: none;
	transition: filter 220ms ease;
}

/* Background slightly darkened when a hotspot enters the viewport */
.prd-storie--hotspot-visible .prd-storie__background {
	filter: brightness(0.82);
}

/* Background more darkened when a hotspot is clicked */
.prd-storie--hotspot-active .prd-storie__background {
	filter: brightness(0.55);
}

/* 4. Hotspots */
.prd-storie__hotspot {
	position: absolute;
	top: 0;
	transform: translateX(-50%);
	z-index: 2;

	display: block;
	height: 400px;
	padding: 0 !important;
	margin: 0;

	background: transparent;
	border: 0 !important;
	cursor: pointer;

	transition: background-color 650ms ease;
}
body.page-id-25 [type=button]:focus, 
body.page-id-25 [type=button]:hover, 
body.page-id-25 [type=submit]:focus, 
body.page-id-25 [type=submit]:hover, 
body.page-id-25 button:focus, 
body.page-id-25 button:hover {
    background-color: #a60f1357;
}
@media (max-width: 767px) {
	body.page-id-25 .prd-storie__hotspot:hover,
	body.page-id-25 .prd-storie__hotspot:focus {
		background-color: transparent;
	}

	body.page-id-25 .prd-storie__hotspot.prd-storie__hotspot--centered {
		background-color: #a60f1357;
	}
}

/* Hotspot visual image */
.prd-storie__hotspot-image {
	display: block;
	width: auto;
	height: auto;
	max-width: none;
	pointer-events: none;
	user-select: none;
	-webkit-user-drag: none;
	margin-bottom: 103px;
}
#prd-storie-hotspot-6 img {
	margin-bottom: 153px;
}
#prd-storie-hotspot-9 img {
	margin-bottom: 16px;
}
#prd-storie-hotspot-11 img {
	margin-bottom: 96px;
}
#prd-storie-hotspot-12 img {
	margin-bottom: 93px;
}
#prd-storie-hotspot-14 img {
	margin-bottom: 50px;
}
#prd-storie-hotspot-15 img {
	margin-bottom: 52px;
}
#prd-storie-hotspot-16 img, #prd-storie-hotspot-17 img {
	margin-bottom: 53px;
}

/* Hidden modal source content.
   Actual modal behavior will be added later. */
.prd-storie__modal-content[hidden] {
	display: none;
}

/* Modal state */
body.prd-storie-modal-is-open {
	overflow: hidden;
}

/* Modal wrapper */
.prd-storie__modal {
	position: fixed;
	inset: 0;
	z-index: 9999;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 24px;

	opacity: 0;
	pointer-events: none;
	transition: opacity 450ms ease;
}

.prd-storie__modal.prd-storie__modal--is-open {
	opacity: 1;
	pointer-events: auto;
}

/* Hidden modal */
.prd-storie__modal[hidden] {
	display: none;
}

/* Dark backdrop */
.prd-storie__modal-backdrop {
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, 0.72);
}

/* Modal box */
.prd-storie__modal-dialog {
	position: relative;
	z-index: 1;
	width: min(720px, 100%);
	max-height: min(720px, calc(100vh - 48px));
	overflow-y: auto;
	padding: 32px;

	background: #fff;
	color: #111;
	border-radius: 12px;
	box-shadow: 0 24px 80px rgba(0, 0, 0, 0.35);

	opacity: 0;
	transform: translateY(24px) scale(0.98);
	transition:
		opacity 450ms ease,
		transform 450ms ease;
}
.prd-storie__modal.prd-storie__modal--is-open .prd-storie__modal-dialog {
	opacity: 1;
	transform: translateY(0) scale(1);
}

/* Modal close button */
.prd-storie__modal-close {
	position: sticky;
	top: 12px;
	left: 100%;
	z-index: 2;
	width: 36px;
	height: 36px;
	padding: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	background: transparent;
	background-color: #a60f13 !important;
	border: 0;
	color: #FFF !important;
	font-size: 32px;
	line-height: 1;
	cursor: pointer;
}

/* Modal title from hsp_nm */
.prd-storie__modal-body h4 {
	margin: 0 40px 18px 0;
	font-size: 24px;
	line-height: 1.2;
}

/* Modal WYSIWYG text */
.prd-storie__modal-text > :first-child {
	margin-top: 0;
}

.prd-storie__modal-text > :last-child {
	margin-bottom: 0;
}