* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
	-webkit-tap-highlight-color: transparent;
}

body {
	overflow: hidden;
}

a {
	color: #3a0fc9;
	text-decoration: none;
}

#viewer {
	width: 100%;
	height: 100vh;
	touch-action: none;
	overflow: hidden;
}

.btn-go-home {
	position: absolute;
	left: 10px;
	top: 10px;
	z-index: 999;
	width: 50px;
	height: 50px;
	border-radius: 50%;
	background-color: rgba(61, 61, 61, .5);
	display: flex;
	align-items: center;
	justify-content: center;
}

.btn-go-home svg {
	width: 60%;
}

.btn-go-home,
.psv-navbar,
.psv-gallery,
.gallery-element {
	backdrop-filter: blur(10px);
}

.psv-gallery {
	position: absolute;
	left: auto;
	bottom: auto;
	right: 0;
	display: flex;
	opacity: 0;
	transition: opacity .35s, width .35s;
	width: 20%;
	padding: 1em 0;
	border-radius: 5px;
	overflow: visible;
	border-bottom: none;
	border-radius: 10px 0 0 10px;
	border-radius: 0;
	border-top-left-radius: 10px;
}

.psv-gallery .psv-gallery-container {
	width: 100%;
	flex-direction: column;
	align-items: center;
	gap: 1em;
	padding: 0;
}

.psv-panel {
	display: none;
}

.psv--has-navbar .psv-gallery {
	/* bottom: auto; */
	transform: none;
}

.gallery-element {
	position: absolute;
	left: -1.5em;
	top: 50%;
	transform: translateY(-50%);
	width: 1.5em;
	height: 2em;
	background-color: rgba(61, 61, 61, .5);
	border-radius: 100px 0 0 100px;
	cursor: pointer;
}

.gallery-element::before {
	content: '';
	position: absolute;
	left: 50%;
	top: 50%;
	transform: translateY(-50%) translateX(-50%);
	width: 0;
	height: 0;
	border-top: .5em solid transparent;
	border-right: .5em solid rgba(255, 255, 255, .5);
	border-bottom: .5em solid transparent;
}

@container psv-container (max-width: 500px) {
	.psv-gallery {
		width: 40%;
	}

	.psv-gallery .psv-gallery-container {
		align-items: flex-start;
	}

	.psv-gallery-container .psv-gallery-item {
		width: 100% !important;
		margin-bottom: 0;
	}

	.psv-gallery .psv-panel-close-button {
		display: none;
	}
}