/* Global Styles */
body,
html {
	margin: 0;
	padding: 0;
	overflow: hidden;
	height: 100vh;
	width: 100vw;
	background-color: #ffffff;
	color: #171717;
	font-family: 'Raleway', sans-serif;
}

* {
	box-sizing: border-box;
}

h1, h2, h3 {
	font-family: 'Playfair Display', serif;
	font-weight: 700;
}

button {
	cursor: pointer;
}

/* Main container for Micrio */
.micrio-container {
	position: relative;
	height: 100%;
	width: 100%;
	background-color: black;
}

.micrio-viewer {
	height: 100%;
	width: 100%;
}

/* Overlays */
.overlay {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	background-color: rgba(0, 0, 0, 0.5);
}

.loading-overlay {
	z-index: 10;
}

.intro-overlay {
	z-index: 20;
	flex-direction: column;
	padding: 2rem;
}

/* Loading Spinner */
.spinner {
	height: 2rem;
	width: 2rem;
	border-radius: 50%;
	border: 4px solid #333333;
	border-top-color: transparent;
	animation: spin 1s linear infinite;
}

.loading-text {
	margin-left: 0.75rem;
	color: white;
}

@keyframes spin {
	to {
		transform: rotate(360deg);
	}
}

/* Intro Content Box */
.intro-content {
	max-width: 28rem;
	background-color: white;
	padding: 1.5rem;
	text-align: center;
	border-radius: 0.5rem;
	box-shadow:
		0 10px 15px -3px rgba(0, 0, 0, 0.1),
		0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.intro-content h1 {
	margin-bottom: 1rem;
	font-size: 1.5rem;
	line-height: 2rem;
	font-weight: 700;
	color: #1a1a1a;
}

.intro-content p {
	margin-bottom: 1.5rem;
	color: #333333;
}

.intro-content button,
.intro-btn {
	border-radius: 0.25rem;
	background-color: #1a1a1a;
	padding: 0.5rem 1rem;
	color: white;
	transition-property: background-color, border-color, color, fill, stroke, opacity, box-shadow, transform;
	transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
	transition-duration: 150ms;
	border: none;
	font-family: 'Raleway', sans-serif;
	font-weight: 500;
	letter-spacing: 0.5px;
}

.intro-content button:hover,
.intro-btn:hover {
	background-color: #333333;
}

.intro-video-container {
	position: fixed;
	top: 0;
	left: 0;
	width: 100vw;
	height: 100vh;
	overflow: hidden;
	z-index: 30;
	-webkit-transition: opacity 1s ease;
	transition: opacity 1s ease;
	background-color: rgba(0, 0, 0);
}

.intro-video-container.hidden {
	opacity: 0;
	pointer-events: none;
}

.intro-video-container video,
.intro-video {
	position: absolute;
	top: 0;
	left: 0;
	width: 100vw;
	height: 100vh;
	-o-object-fit: cover;
	object-fit: cover;
}

.intro-video-overlay {
	position: absolute;
	top: 50%;
	left: 50%;
	max-width: 90vw;
	transform: translate(-50%, -50%);
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	transition: opacity 0.5s ease;
}

.intro-video-overlay.hidden {
	opacity: 0;
	pointer-events: none;
}

.intro-video-overlay h1 {
	color: white;
	font-size: 2.5rem;
	line-height: 2.8rem;
	text-align: center;
	margin-bottom: .5rem;
}

.intro-video-overlay p {
	color: white;
	font-size: 1rem;
	text-align: center;
}

/* float nicely in center of screen, circle with play button */
.intro-video-overlay button {
	width: 6rem;
	height: 6rem;
	background-color: rgba(0, 0, 0, 0.5);
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	border: none;
}

.intro-play-icon {
	width: 2rem;
	height: 2rem;
	color: white;
}

.intro-video-overlay button {
	transition: transform 0.3s ease, background-color 0.3s ease;
}

.intro-video-overlay button:hover {
	transform: scale(1.1); /* Slightly enlarge on hover */
	background-color: rgba(0, 0, 0, 0.7); /* Darker background on hover */
}

.intro-video-skip-btn {
	position: absolute;
	top: 1.5rem;
	left: 1.5rem;
	background: rgba(255,255,255,0.85);
	color: #1a1a1a;
	border: none;
	border-radius: 0.375rem;
	padding: 0.5rem 1rem;
	font-size: 1rem;
	font-weight: 500;
	box-shadow: 0 2px 8px rgba(0,0,0,0.06);
	cursor: pointer;
	transition: background 0.2s ease, opacity 0.5s ease;
	z-index: 10;
	font-family: 'Raleway', sans-serif;
	letter-spacing: 0.5px;
}

.intro-video-skip-btn.hidden {
	opacity: 0;
	pointer-events: none;
}

.intro-video-skip-btn:hover {
	background: #ffffff;
}

/* Hamburger Menu Styles */

.hamburger-menu {
	position: fixed;
	top: 1rem;
	right: 1rem;
	z-index: 19;
}

.hamburger-btn {
	width: 3rem;
	height: 3rem;
	background-color: rgba(255, 255, 255, 0.85);
	border-radius: 50%;
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	cursor: pointer;
	border: none;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
	transition: background-color 0.2s ease;
}

.hamburger-btn:hover {
	background-color: rgba(255, 255, 255, 0.95);
}

.hamburger-btn:hover .about-icon {
	color: #333;
	transform: scale(1.1);
}

.about-icon {
	width: 1.5rem;
	height: 1.5rem;
	color: #1a1a1a;
	transition: all 0.3s ease;
}





/* Uncomment this to hide the micrio menu which will expose the video tour button: */
/* micr-io menu.micrio-menu { display: none; } */

/* About Overlay Styles */
.about-overlay {
	z-index: 25;
	display: none;
	padding: 2rem;
}

.about-overlay.show {
	display: flex;
}

.about-content {
	max-width: 50rem;
	max-height: 90vh;
	background-color: white;
	border-radius: 0.5rem;
	box-shadow:
		0 10px 15px -3px rgba(0, 0, 0, 0.1),
		0 4px 6px -2px rgba(0, 0, 0, 0.05);
	overflow: hidden;
	display: flex;
	flex-direction: column;
}



.about-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 1.5rem;
	border-bottom: 1px solid #e5e5e5;
}

.about-header h1 {
	margin: 0;
	font-size: 1.5rem;
	line-height: 2rem;
	font-weight: 700;
	color: #1a1a1a;
}

.about-close-btn {
	width: 2rem;
	height: 2rem;
	background: none;
	border: none;
	font-size: 1.5rem;
	color: #666;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 50%;
	transition: background-color 0.2s ease, color 0.2s ease;
}

.about-close-btn:hover {
	background-color: #f0f0f0;
	color: #1a1a1a;
}

.about-body {
	padding: 1.5rem;
	overflow-y: auto;
	flex: 1;
}

.about-body h2 {
	margin: 1.5rem 0 0.75rem 0;
	font-size: 1.25rem;
	line-height: 1.75rem;
	font-weight: 700;
	color: #1a1a1a;
}

.about-body h2:first-child {
	margin-top: 0;
}

.about-body p {
	margin-bottom: 1rem;
	color: #333333;
	line-height: 1.6;
}

.about-body ul {
	margin: 1rem 0;
	padding-left: 1.5rem;
}

.about-body li {
	margin-bottom: 0.5rem;
	color: #333333;
	line-height: 1.6;
}

/* Making Of Section */
.making-of-section {
	margin: 1.5rem 0;
}

.making-of-video-container {
	position: relative;
	width: 100%;
	height: 0;
	padding-bottom: 100%; /* 1:1 aspect ratio (square) */
	margin-bottom: 1.5rem;
	border-radius: 0.5rem;
	overflow: hidden;
	background-color: #000;
}

.making-of-video {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	object-fit: contain;
}



.making-of-gallery {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
	gap: 1.5rem;
	margin-top: 1rem;
}

.making-of-item {
	display: flex;
	flex-direction: column;
}

.making-of-caption {
	margin-top: 0.5rem;
	font-size: 0.875rem;
	color: #888;
	line-height: 1.4;
	text-align: center;
	font-style: italic;
}

.making-of-image {
	width: 100%;
	height: auto;
	aspect-ratio: 1/1; /* Square aspect ratio */
	object-fit: cover;
	border-radius: 0.5rem;
	transition: transform 0.3s ease;
}



/* Add your own Micrio style overrides here */

/* For an example of some nice custom styling for a video/serial tour, go to https://github.com/Q42/Micrio.Templates/tree/main/CustomSerialTour/html-js -> style.css */

/* For an example of some custom micrio styling, go to https://github.com/Q42/Micrio.Templates/tree/main/CustomStyling/html-js -> style.css */

/* Make the progressbar non-clickable becasue it does not work well */
div.container.micrio-progress-bar {
	pointer-events: none;
}

/* Add padding to the bottom of the viewport to ensure content doesn't get hidden */
.micrio-container {
	/* Add padding to account for mobile browser toolbars */
	padding-bottom: env(safe-area-inset-bottom, 0px);
}

/* Ensure the micrio viewer doesn't get cut off */
.micrio-viewer {
	/* Add bottom padding to prevent content from being hidden behind mobile toolbars */
	padding-bottom: env(safe-area-inset-bottom, 0px);
}

/* Mobile-specific adjustments */
@media (max-width: 768px) {	
	/* Add viewport height adjustment for mobile browsers */
	body, html {
		/* Use dynamic viewport height to account for mobile browser UI */
		height: 100dvh;
		width: 100vw;
	}
	
	.intro-video-container {
		height: 100dvh;
	}

	.about-content {
		max-height: 95dvh;
		max-width: 95vw;
	}

	.about-header {
		padding: 1rem;
	}

	.about-body {
		padding: 0.6rem 1rem;
	}

	.about-overlay {
		padding: 2rem 0.5rem;
	}

	.about-header h1 {
		font-size: 1.2rem;
	}

	/* Improve tour button for mobile */
	.tour-play-pause-btn {
		width: 3.5rem;
		height: 3.5rem;
		background-color: rgba(0, 0, 0, 0.8);
		backdrop-filter: blur(10px);
		-webkit-backdrop-filter: blur(10px);
	}
	
	.tour-icon {
		width: 1.4rem;
		height: 1.4rem;
	}
	
	.tour-label {
		font-size: 1rem;
	}

	/* Mobile adjustments for Making Of section */
	.making-of-gallery {
		grid-template-columns: 1fr;
		gap: 1rem;
	}

	.making-of-image {
		aspect-ratio: 1/1; /* Square aspect ratio on mobile */
	}

	.making-of-caption {
		font-size: 0.8rem;
		margin-top: 0.4rem;
		color: #888;
		font-style: italic;
	}

	.making-of-video-container {
		padding-bottom: 100%; /* Keep 1:1 aspect ratio on mobile */
	}


}

/* Tour Control */
.tour-control {
	position: fixed;
	top: 1rem;
	left: 1rem;
	z-index: 20;
	display: flex;
	align-items: center;
	gap: 0.75rem;
}

.tour-play-pause-btn {
	width: 3rem;
	height: 3rem;
	background-color: rgba(0, 0, 0, 0.7);
	border: none;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: all 0.3s ease;
	cursor: pointer;
}

#tour-control {
	display: none;
}

.tour-play-pause-btn:hover {
	background-color: rgba(0, 0, 0, 0.9);
	transform: scale(1.1);
}

.tour-icon {
	color: white;
	width: 1.2rem;
	height: 1.2rem;
	transition: all 0.3s ease;
}

.tour-label {
	color: white;
	font-family: 'Raleway', sans-serif;
	font-weight: 500;
	font-size: 0.9rem;
	text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8);
	transition: opacity 0.3s ease;
}

/* Tour button states (play/stop) are handled by JavaScript */

.micrio-tour {
	z-index: 16 !important;
}

.micrio-button.maximize {
	display: none;
}
/* Hide the knob on the progress bar */
div.bars.micrio-progress-bar:after {
	display: none;
}

label.micrio-marker {
	line-height: 1.3 !important;
}

figure.micrio-media {
    transition: opacity 0.5s ease-in-out;
}

figure.media-video.paused {
	opacity: 0;
}