{{ if .Page.HasShortcode "molstar" }}

<link href="https://molstar.org/viewer/molstar.css" rel="stylesheet">
<script type="text/javascript" src="https://molstar.org/viewer/molstar.js"></script>

<style>
	.msp-plugin {
		position: relative !important;
		width: 100% !important;
		height: 100% !important;
	}
	
	.msp-plugin,
	.msp-plugin .msp-viewport {
		background-color: #0000;
	}
	
	.msp-plugin .msp-layout-standard {
		border: none;
	}
	
	canvas {
		background: none !important;
	}
</style>

{{ end }}
