* {
	font-weight: normal;
	margin: 0;padding: 0;
	box-sizing: border-box;
}

body {
	--workred: #fddfdf;
	--workyellow: #fcf7de;
	--workgreen: #defde0;
	--workblue: #def3fd;
	--workpurple: #f0defd;

	--translucentyellow: rgba(220, 170, 0, 0.2);
	--translucentred: rgba(214, 40, 57, 0.2);
	--translucentblue: rgba(45, 120, 250, 0.2);

	--headerfont: "Gooper";

	background-image: none;
	background-attachment: fixed;
	background-size: cover;
}



#content {
	font-family: "Literata", serif;
	/* max-width: 600px; */
	margin-top: 0;
	margin: auto;
}

video {
	width: 100%;
	margin-bottom: 1rem;
	font-size: 0;
	display: block;
}

#content.portfolioindexcontent {
	position: relative;
	padding: .5rem;
	max-width: 500px;
}

#workitemscontainer .legit-marquee {
	position: fixed;
	margin: auto;
	display: block;
	/* left: 0; */
	top: 0;
	height: 100vh;
	fill: var(--red);
	animation: changeFillPrimaries 3s steps(1) infinite;
}
@keyframes changeFillPrimaries {
	0%{fill: var(--red)}
	33%{fill: var(--yellow)}
	66%{fill: var(--blue)}
}





.workitem {
	position: relative;
	padding: .5rem;
	line-height: 1.5;
	width: 100%;
}
.workitem:not(:first-of-type) {
	margin-top: 2rem;
}
.workitem a:first-child {
	position: absolute;
	z-index: 1000;
	top: 0;
	left: 0;
	width:  100%;
	height: 100%;
}
.workitem .cardsplit {
	width: 100%;
	max-width: 800px;
	margin: auto;
	display: block;
	grid-template-columns: 2fr 1fr;
	justify-content: left;
	align-items: center;
	gap: 1rem;
}
.workitem .cardsplit > * {
	width: 100%;
	margin-top: .5rem;
}

/* @media (max-width: 575px) {
	.workitem .cardsplit {
		display: block;
	}
	.workitem .cardsplit > * {
		width: 100%;
		margin-top: .5rem;
	}
} */

.workitem img, .workitem svg {
	display: block;
	/* border: 1px solid var(--fgcolor); */
	border-radius: var(--mainradius);
	transition: .05s;
	object-fit: cover;
	aspect-ratio: 4 / 3;
}
.workitem .subcard {
}

.workitem :is(img, svg) {
	transition: 0;
}

	.workitem:hover :is(img, svg) {
		transform: translate(0, -.125rem);
		/* box-shadow: .25rem .25rem var(--red), -.25rem .25rem var(--yellow), -.25rem -.25rem var(--blue), .25rem -.25rem var(--cream);  */
		outline: 3px solid var(--acolor);
	}
	.workitem:hover .subcard {
		/* animation: push .5s steps(1) infinite; */
		transform-origin: 25% center ;
		transform: rotate(-1deg)
		/* transform: translate(.5rem, 0); */
	}
	@keyframes push {
		from {
			transform: rotate(-1deg);
		}
		50%{
			transform: rotate(1deg);
		}
	}


.workitem h1 {
	/* text-align: center; */
	font-family: var(--headerfont);
	font-weight: bold;
	font-size: 1.6rem;
	line-height: 1;
	margin: 0;
}
.workitem p {
	margin-top: .25rem;
	line-height: 1.3;
}
.workitem p.description {
	font-style: italic;
}


.workitem .topicslist {
	margin-top: .25rem;
	font-size: 0.75rem;
	font-weight: bold;
}
.topictag {
	margin: 0 3px;
	padding: 2px 6px;
	background-color: rgba(0, 0, 0, 0.2);
	border-radius: var(--mainradius);
	display: inline-block;

	&:nth-child(3n+1) {
		transform: rotate(1deg);
	}

	&:nth-child(3n+2) {
		transform: rotate(-2deg);
	}

	&:nth-child(3n+0) {
		transform: rotate(-1deg);
	}
}

.topictag.designtag {
	background-color: var(--translucentred);
}

.topictag.developmenttag {
	background-color: var(--translucentblue);
}

.topictag.audiotag {
	background-color: var(--translucentyellow);
}




/* PORTFOLIO STYLES */

div.workitemcontent {
	margin: auto;
	max-width: 1200px;
}

img, video {
	width: 100%;
}

.portfolio {
	--smallwidth: 500px;
	padding: 0 .5rem;
}



.portfolio p {
	max-width: var(--smallwidth);
	margin: auto;
	margin-top: 2rem;
}
.portfolio p.caption {
	margin-top: .5rem;
}
.portfolio h1, .portfolio h2, .portfolio blockquote {
	max-width: var(--smallwidth);
}
.portfolio h1, .portfolio h2 {
	text-align: center;
	font-family: var(--headerfont);
	margin: 1rem auto;
	margin-bottom: 0;
}
.portfolio :is(h1, h2):not(:first-of-type) {
	margin-top: 1.5rem;
}
.portfolio h1 {
	font-size: 2rem;
	font-weight: bold;
	line-height: 1.1;
	margin-top: 3rem;
}
.portfolio h2 {
	font-size: 1.25rem;
	margin-top: 2rem;
	line-height: 1.2;
}
	.portfolio h1 + h2 {
		margin-top: 0.5rem;
	}
.portfolio blockquote {
	line-height: 1.5;
	padding-left: .5rem;
	border-left: 1px solid var(--fgcolor);
}


.portfolio img, .portfolio svg, .portfolio iframe, .portfolio video {
	display: block;
	margin: auto;
	margin-top: 2rem;
	max-width: 100%;
}

.portfolio audio {
	display: block;
	margin: 1rem auto;
	text-align: center;
}

.portfolio iframe {
	/* width: 100%; */
	aspect-ratio: 1 / 1;
	font-size: 0;
}
.portfolio .browsermockup {
	width: 100%;
	max-width: 100%;
	margin: 1.5rem 0;
	border: 2px solid var(--acolor);
	position: relative;
}
.portfolio .browsermockup::before  {
	content: "\25CB  \25CB  \25CB";
	display: block;
	margin: -2px -2px 0 -2px;
	width:auto;
	height: 24px;
	padding-left: 10px;
	border: 2px solid var(--acolor);
	color: var(--acolor);
	font-weight: bold;
	cursor: default;
	user-select: none;
}
.portfolio .browsermockup img {
	margin: -1.15rem 0;
}

.portfolio .visitsitelink {
	position: relative;
	top: 0;
	left: 0;
	display: block;
	width: 100%;
	margin: 2rem 0;
	padding: 0.5rem 1rem;
	border: 1px solid var(--fgcolor);
	border-radius: var(--mainradius);
	outline: none;
	font-family: var(--monofont);
	font-size: 1rem;
	font-weight: normal;
	text-align: center;
	color: var(--fgcolor);
	background: var(--bgcolor);
	box-shadow: 2px 2px var(--fgcolor);
	transition: 0;
}
.portfolio .visitsitelink:active {
	top: 2px;
	left: 2px;
	box-shadow: 0 0 var(--fgcolor);
}

.portfolio hr {
	border: none;
	background: var(--fgcolor);
	height: 1px;
	margin: 6rem 0;
	width: 100%;
}

.portfolio table {
	width: 100%;
	max-width: var(--smallwidth);
	margin: 1rem auto;
	background: var(--bgcolor);
	border: none;
	/* border: 1px dashed var(--fgcolor); */
}
.portfolio table td {
	line-height: 1.2;
	padding: .25rem 0;
	padding-right: .25rem;
	border-bottom: 1px dashed var(--fgcolor);
}
.portfolio table td:first-of-type {
	font-style: italic;
	padding-right: 1rem;
}