
body {
	color: #202020;
	background-color: #f9f9f9;
	margin: 0px 0px 0px 0px;
	padding: 0px 0px 0px 0px;	
	font-family: "Open Sans", sans-serif;
}
html, body {
    width: 100%;
    height: 100%;
}
/* 
* main
*/

.main-page-wrap {
	width: 60%;
	max-width: 700px;
	padding: .4em 2em 1.5em 1.8em;
	position: absolute;
	top: 45%;
	left: 50%;
	transform: translate(-50%, -50%);
	background-color: rgba(0, 0, 0, 80);
}
.main-page-wrap-projects {
	width: 50%;
	padding: .4em 1em 1.5em 1.4em;
	position: absolute;
	top: 45%;
	left: 50%;
	transform: translate(-50%, -50%);
	background-color: rgba(0, 0, 0, 80);
}

.main-text {
	width: 100%;
	color: rgba(255, 255, 255, 80);
}

.title {
	float: left;
	width: 100%;
	margin-top: 0em;
	padding-top: 0em;
	margin-bottom: .3em;
	letter-spacing: .1em;
}

.main-text-projects {
	width: 100%;
	padding-top: 10px;
	color: rgba(255, 255, 255, 80);	
	text-underline-offset: .2em;
	letter-spacing: .1em;
}
.main-text-projects a {
	color: rgba(255, 255, 255, 80);
}

.start-link {
	color: rgba(255, 255, 255, 80);	
	text-underline-offset: .2em;
	letter-spacing: .1em;
}
.start-link a {
	color: rgba(255, 255, 255, 80);
}

/* 
* scene filmstrip
*/

.scene-page {
	overflow: hidden;
}

.scene {
	position: fixed;
	inset: 0 0 70px 0;
	display: flex;
	flex-direction: column;
	justify-content: center;
}

.strip-wrap {
	position: relative;
}

/* Segments share one height. Pan mode: a fixed share of the screen height,
   capped on large screens. */
.strip {
	--strip-h: min(66vh, 1000px);

	position: relative;
	display: flex;
	gap: 2px;
	padding: 0 16px;
	scroll-padding: 0 16px;
	overflow-x: auto;
	overscroll-behavior-x: contain;
	scrollbar-width: none;
	outline: none;
}

/* Snap mode: each swipe stops on a segment. The height is fitted so the
   widest segment of the scene about fills a phone's width, with a floor so
   very wide segments stay readable (they pan instead). */
.strip.snap {
	--strip-h: clamp(min(58vw, 300px), calc(86vw / var(--widest)), min(68vh, 1000px));
	scroll-snap-type: x mandatory;
}

@supports (height: 1svh) {
	.strip {
		--strip-h: min(66svh, 1000px);
	}
	.strip.snap {
		--strip-h: clamp(min(58vw, 300px), calc(86vw / var(--widest)), min(68svh, 1000px));
	}
}
.strip::-webkit-scrollbar {
	display: none;
}

/* auto margins centre the strip when it fits, and collapse when it overflows */
.strip > :first-child {
	margin-left: auto;
}
.strip > :last-child {
	margin-right: auto;
}

.segment {
	flex: none;
	scroll-snap-align: center;
	animation: fade-in .6s ease-in-out both;
	animation-delay: calc(.2s + var(--i) * .35s);
}
.segment img {
	display: block;
	height: var(--strip-h);
	width: auto;
}

/* previous / next scene, at either end of the strip */
.scene-link {
	flex: none;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 56px;
	opacity: .3;
	transition: opacity .2s;
}
.scene-link.prev {
	margin-right: 14px;
	scroll-snap-align: start;
}
.scene-link.next {
	margin-left: 14px;
	scroll-snap-align: end;
}
.scene-link:hover,
.scene-link:focus-visible {
	opacity: .8;
}

/* chevrons, shared by the scene links and the edge arrows */
.scene-link::before,
.edge-arrow::before {
	content: "";
	width: 12px;
	height: 12px;
	border-top: 1.5px solid #202020;
	border-right: 1.5px solid #202020;
}
.scene-link.next::before,
.edge-arrow.next::before {
	transform: translateX(-3px) rotate(45deg);
}
.scene-link.prev::before,
.edge-arrow.prev::before {
	transform: translateX(3px) rotate(-135deg);
}

/* edge arrows: mouse/trackpad only, shown on hover */
.edge-arrow {
	display: none;
}
@media (hover: hover) and (pointer: fine) {
	.edge-arrow {
		position: absolute;
		top: 50%;
		display: flex;
		align-items: center;
		justify-content: center;
		width: 44px;
		height: 44px;
		margin-top: -22px;
		padding: 0;
		border: 0;
		border-radius: 50%;
		background-color: rgba(249, 249, 249, .75);
		cursor: pointer;
		opacity: 0;
		transition: opacity .25s;
	}
	.edge-arrow.prev {
		left: 22px;
	}
	.edge-arrow.next {
		right: 22px;
	}
	.strip-wrap:hover .edge-arrow {
		opacity: .55;
	}
	.strip-wrap .edge-arrow:hover {
		opacity: .95;
	}
	.strip-wrap.at-start .edge-arrow.prev,
	.strip-wrap.at-end .edge-arrow.next {
		opacity: 0;
		pointer-events: none;
	}
}

.scene-meta {
	display: flex;
	align-items: center;
	gap: 14px;
	width: min(240px, 60vw);
	margin: 18px auto 0 auto;
	font-size: 12px;
	letter-spacing: .15em;
	color: rgba(0, 0, 0, .55);
}
.progress {
	flex: 1;
	height: 1px;
	background-color: rgba(0, 0, 0, .12);
}
.progress-bar {
	display: block;
	height: 100%;
	background-color: rgba(0, 0, 0, .5);
	transform: scaleX(var(--progress, 0));
	transform-origin: left;
}

@keyframes fade-in {
	0% { opacity: 0; }
	100% { opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
	.segment {
		animation: none;
	}
}

/* 
* single photo
*/

.photo-container {
	height: 100%; 
	width: auto;
	display: flex;
	align-items: center;
	justify-content: center;	
}

.photo-container img {
	height: 80%; 
	width: auto;
	max-height: 600px;	
}

.close-icon:after {
	position: absolute;
	font-size: 2.85em; 
	left: 20px;
	color: rgba(0, 0, 0, .3);
	cursor: pointer;	
	content: "\00d7";
}

footer {
	position: fixed;
	/* right: 15px; */
	bottom: 15px;
	width: 100%;
	text-align: left;
}
footer #left {
	display: inline;
	width: auto;
	margin-left: 18px;
	text-align: left;
	float: left;
	cursor: pointer;
	color: rgba(0, 0, 0, .8);
	text-underline-offset: .2em;
	letter-spacing: .1em;	
}
footer #left a {
	color: rgba(0, 0, 0, .8);
}
footer #right {
	display: inline;
	width: auto;
	margin-right: 18px;
	text-align: right;
	float: right;
}
footer #center {
	width: fit-content; 
	text-align: center;
	margin: 0 auto;
	white-space: nowrap;	
	padding: 5px 10px 5px 10px;
	color: rgba(255, 255, 255, 80);
	background-color: rgba(0, 0, 0, 80);	
}

.copyright {
	color: #111111;
	
}


@media (max-width: 599px) {
	.main-text, .main-text-projects, .title, .start-link {
		font-size: 15px;
	}
	.main-text-projects {
		font-size: 12px;
	}
	footer {
		font-size: 14px;
	}  	 
}
@media (min-width: 600px) and (max-width: 1200px) {
	.main-text, .main-text-projects, .title, .start-link {
		font-size: calc(14px + (100vw - 600px) / 600 * 5);
	}
	.main-text-projects {
		font-size: calc(12px + (100vw - 600px) / 600 * 5);
	}	
 	footer {
		font-size: calc(11px + (100vw - 600px) / 600 * 5);
	} 	
}
@media (min-width: 1201px) {
	.main-text, .main-text-projects, .title, .start-link {
		font-size: 18px;
	}
	.main-text-projects {
		font-size: 18px;
	}	
	footer {
		font-size: 16px;
	} 	
}

@media all and (orientation:portrait) {
	.additional-projects {
		text-align: left;	
		float: left;
		margin-bottom: 1em;	
	}
    
	footer #right {
		display: inline;
		width: 100%;
		margin-top: 10px;
		margin-left: 18px;
		text-align: left;
		float: left;
	}    
}
