:root {
  --bg: #F8F8F8;
  --red: red;
  --link: blue;
  --black: #000000;
  --lh: 20px;
}

html, body {
	text-rendering: geometricPrecision;
}


h1, p, a {
	font-family: sans-serif;
	font-size: 12px;
	line-height: var(--lh);
	display: block;
	margin: 0;
	padding: 0;
	font-weight: normal;
	letter-spacing: -0.01em;
}

h1 {
	text-transform: uppercase;
}

a:link, a:visited {
	color: var(--link);
	text-decoration: none;
}

a:hover {
	text-decoration: underline;
}

body {
	background-color: var(--bg);
	width: 100%;
}

canvas {
	position: fixed;
	top: 0;
	left: 0;
	background-color: transparent;
}


header {
	position: sticky;
	top: 0;
	width: 100vw;
	z-index: 200;
	display: flex;
	justify-content: center;
	margin-top: calc(var(--lh)*5);
	top: -2px;
}

.shader {
	display: block;
	position: fixed;
	width: 100px;
	min-width: 48px;
	background: linear-gradient(90deg, rgba(248,248,248,0) 0%, rgba(248,248,248,1) 100%);
	height: 100%;
	pointer-events: none;
	top: 0;
	right: 0;
	z-index: 199;
	mix-blend-mode: hue; 
}

	.logo {
		color: var(--red);
		padding: var(--lh) 0;
		padding-bottom: 0;
	}
	a.a_logo:hover {
		text-decoration: none;
	}

header[stuck] .logo {
	animation: y-axis-animation 10s linear 0s infinite;	
}

@keyframes y-axis-animation {
	  0% {transform: rotateY(0deg)}
	  50% {transform: rotateY(-180deg)}
	  100% {transform: rotateY(-360deg)}
	}

	


.block {
	margin: calc(var(--lh)*5) auto 0 auto;
	max-width: 390px;
}

.block.one {
	margin-top: 0;	
}
.block.last {
	padding-bottom: calc(var(--lh)*5);	
}

.block p, .block a:link, .block h1 {
	text-align: center;
	padding: 0 12px;
}



.block .url {

}


.gallery {
	width: 100vw;
	overflow-x: scroll;
	display: flex;
	flex-direction: row;
	justify-content: flex-start;
	gap: calc(var(--lh)*1);
	margin-bottom: calc(var(--lh)*5);	
	cursor: grab;
	overflow: auto;
	
}
	/* Hide scrollbar for Chrome, Safari and Opera */
.gallery::-webkit-scrollbar {
  display: none;
}

.gallery.active {
	cursor: grabbing;
	cursor: -webkit-grabbing;
	scroll-snap-type: none;
  }


.gallery img {
	width: 390px;
	min-width: 390px;
	height: auto;
	min-height: 1px;
	box-sizing: border-box;
	-moz-box-sizing: border-box;
	-webkit-box-sizing: border-box;
	margin: var(--lh);
	scroll-snap-align: center;
	border: 0.5px solid #333;
	
}

@media only screen and (max-width: 390px) {
  .gallery img {
	 width: 292.5px;
	 min-width: 292.5px;
	 border: none;
  }
}


.gallery .spacer {
	min-width: 1px;
	min-height: 24px;
	display: block;
}

.gallery img:first-child {
	margin-left: var(--lh);
}

@media only screen and (min-width: 640px) {
	.gallery img:first-child {
		margin-left: calc(50vw - 390px/2);
	}
}


