* {
	padding: 0;
	margin: 0;
	border: 0;
	outline: 0;
}

html, body { 
	height: 100%;
	-webkit-text-size-adjust: 100%;
	text-size-adjust: 100%;
}
html { 
	font: 16px / 1.625 'Arial'; 
	color: #000; 
	letter-spacing: 0.015em;
	background: #fff;
}

p, h2, li { 
	font-size: 1em; 
	margin-bottom: 22px;
 }
h1, h2 { font-weight: normal }
h1 { 
	margin: 8px 0 16px;
	font-size: 24px; 
	line-height: 1.4em;
}
h2 { 
	margin-top: calc(-0.5em - 2.5px);
	margin-bottom: -1em; 
	font-style: italic;
}
li { margin: 0 0 0.5em 22px }

a { text-underline-offset: 2px }
a:link, a:visited { color: #000 }
a:hover, a:active { color: #f00 }
a[href^="mailto:"], a.routelink { 
	margin-top: .5em; 
	display: inline-block;
}

img { 
	max-width: 100%;
	height: auto;
}

#wrapper { 
	max-width: 100%; 
	padding: 1.5em 2em;
}
@supports (padding: max(0px)) {
	@media screen and (max-width: 960px) and (orientation: landscape) {
		#wrapper {
			padding-left: max(22px, env(safe-area-inset-left));
			padding-right: max(22px, env(safe-area-inset-right));
		}
	}
 }

#projects .item p.dropshadow {
	margin-top: max(-22px, -2.2vw);
	margin-bottom: 1em;
	margin-left: max(-22px, -2.2vw);
	margin-right: max(-22px, -2.2vw);
	max-width: calc(100% + min(44px, 4.4vw));
}
	
*::selection { background: #000; color: #fff }
img::selection,
iframe::selection { background: transparent }

#intro, #projects .item, #page { 
	float: left; 
	clear:both;
	max-width: 100%;
	padding: 0 0 25px; 
	margin: 0 0 12px;
	border-bottom: 1px solid #000;  
}
#intro:after, 
#projects:after,
#projects .item:after, 
#page:after { 
	clear: both;
	width: 100%;
	content: '';
	display: block;
}
#page, #projects, #wrapper { 
	clear: both;
	padding-bottom: 0;
}

#intro { padding-bottom: 10px }
#intro .logo { 
	margin: 0; 
	font-size: 200px; 
	line-height: 1em; 
	text-decoration: none;
	display: inline-block; 
	user-select: none;
	cursor: pointer;
}
#intro .logo:hover, #intro .logo:active { color: #000 }
#intro .logo { color: #f00 }
#intro .bio { margin: 1em 0 2em; max-width: 100% }
#intro .bio p { max-width: min(89ch, 100%) }
#intro .bio a { white-space: nowrap }

#intro .navigation, h2, #footer { user-select: none }

#intro .navigation span, 
#intro .navigation a {
	 margin-right: 16px; 
	 font-style: italic;
	 letter-spacing: 0.025em;
	 text-decoration: none;
}
#intro .navigation span:hover, #intro .navigation a:hover {
	text-decoration: underline;
	text-underline-offset: 2px;
}
#intro .navigation span.divider {
	margin-left: -8px;
	margin-right: 8px;
	text-decoration: none;
	cursor: default;
}
#intro .navigation span:last-child, 
#intro .navigation a:last-child { margin-right: 0 }

#intro .navigation .pagelink { 
	float: right; 
	margin-right: 2px !important;
}


#label {
	float: left; clear:both;
	font-style: italic;
	font-size: 28px;
	margin: 1em 0 1em;
}
#label.hidden { margin: 0 }
#label span { 
	margin-left: 6px; 
	font-size: 16px;
	font-weight: normal; 
	cursor: pointer;
}
#label span:hover, 
#label span:active { 
	color: #f00;
	text-decoration: underline; 
	text-underline-offset: 2px;
}


#projects .item p { max-width: min(80ch, 100%) }
#projects .item p:not(.image) br { display: none }
#projects .item p.image { max-width: 100% }
#projects .item p:has(img) { max-width: 100% }
#projects .item img { 
	max-width: 100%;
	height: auto;
	margin: 5px 20px 5px 0;
	opacity: 0
}
#projects .item img + img { margin-bottom: -5px }
#projects .item img:last-child { margin: 5px 0 }
#projects .item .iframe { 
	--width: 1920;
	--height: 1080;

	position: relative;
	max-width: 100%;
	height: auto;
	display: inline-block;
}

#projects .item .columns-2,
#projects .item .columns-3 {
	width: 980px;
	max-width: 100%;
	white-space: normal;
	gap: 22px;
	
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(170px, 1fr) );
}
#projects .item .columns-2 {
	grid-template-columns: repeat(auto-fit, minmax(320px, 1fr) );
}
#projects .item .columns-2 img,
#projects .item .columns-3 img { 
	max-width: 100%;
	margin: 0;
}

#projects .item .iframe::before {
	float: left;
	padding-top: calc(100% * var(--height) / var(--width));
	content: '';
  }

#projects .item  .iframe::after {
	display: block;
	content: '';
	clear: both;
  }
#projects .item .iframe iframe {
	position: absolute;
	top: 0; left: 0;
	width: 100%;
	height: 100%;
}

#projects .item h2 { color: #000 }
#projects .item h2 .divider { padding: 0 6px }

#projects .item h2 .filter { color: #f00; cursor: pointer }
#projects .item h2 .filter:hover,
#projects .item h2 .filter:active { 
	text-decoration: underline;
	text-underline-offset: 2px;
}


.caption { position: relative; top: -11px; font-style: italic }

#page { display: block }

#footer { 
	position: relative;
	top: -2px;
	padding-bottom: 0.25em;

	clear: both;
	display: block; 
	opacity: 0;
}
#footer .credits { 
	color: #f00; 
	white-space: nowrap;
}


@media screen and ( min-width: 1000px ) {
	#projects .item h1, 
	#projects .item h2, 
	#projects .item p { white-space: nowrap }
	#projects .item p:not(.image) br { display: block }
}

@media screen and ( max-width: 1000px ) {
	#wrapper { padding: 1.25em 1.5em }
}

@media screen and ( max-width: 1000px ) and ( orientation: landscape ) {
	#projects .item p { max-width: min(68ch, 100%) }
	#projects .item p:not(:has(img)) br { display: none }
}

@supports (padding: max(0px)) {
	@media screen and ( max-width: 1000px ) and ( orientation: landscape )  {
		#wrapper {
			padding-left: max(1.25em, env(safe-area-inset-left));
			padding-right: max(1.25em, env(safe-area-inset-right));
		}
	}
 }

@media screen and ( max-width: 852px ) {
	#intro .bio { clear: both }
	#intro .bio p { max-width: min(69ch, 100%) }
	#intro .bio br { display: none }
}

@media screen and ( max-width: 720px ) {

	#projects .item .columns-2 {
		grid-template-columns: repeat(auto-fit, minmax(210px, 1fr) );
	}
}

@media screen and ( max-width: 600px ) {
	#wrapper {
		padding-left: 20px;
		padding-right: 20px;
	}

	#intro .bio nobr { white-space: normal }
	#intro .navigation span.divider { 
		margin-left: -14px;
		margin-right: 2px; }
}
@media screen and ( max-width: 400px ) {
	#intro .navigation span.divider { 
		margin-left: -15px;
		margin-right: 1px; }
}

@media screen and ( max-width: 375px ) {
	html { font-size: 15px }

	#wrapper {
		padding-left: 16px;
		padding-right: 16px;
	}
	#label span { font-size: 15px }

	h1 { font-size: 22.5px }
}

@supports (padding: max(0px)) {
	@media screen and ( max-width: 600px ) and ( orientation: landscape ) {
		#wrapper {
			padding-left: max(20px, env(safe-area-inset-left));
			padding-right: max(20px, env(safe-area-inset-right));
		}
	}
}

#projects .item p:has(img) { max-width: 100% }