/* TYPOGRAPHY */

@font-face {
    font-family: bag;
    src: url('BAGReg.ttf');
}

@font-face {
    font-family: bag;
    src: url('BAGItal.ttf');
	font-style: italic;
}

@font-face {
	font-family: bag;
	src: url('BAGItal.ttf');
	font-style: oblique;
}

.lrg {
	font-size: 20px;
	line-height: 25px;
	letter-spacing: 0.04em;
}

.reg {
	font-size: 16px;
	line-height: 20px;
	letter-spacing: 0.01em;
}

.sml {
	font-size: 14px;
	line-height: 18px;
	letter-spacing: 0.025em;
}

.xs {
	font-size: 11px;
	line-height: 16px;
	letter-spacing: 0.01em;
}

img {
	display: block;
	width: 100%;
}

a:link {
	color: black;
	text-decoration: none;
}

a:visited {
	color: inherit;
}

a {

  /* These are technically the same, but use both */
  overflow-wrap: break-word;
  word-wrap: break-word;

  -ms-word-break: break-all;
  /* This is the dangerous one in WebKit, as it breaks things wherever */
  word-break: break-all;
  /* Instead use this non-standard one: */
  word-break: break-word;

  /* Adds a hyphen where the word breaks, if supported (No Blink) */
  -ms-hyphens: auto;
  -moz-hyphens: auto;
  -webkit-hyphens: auto;
  hyphens: auto;

}

/* GLOBAL */
* {
	padding: 0;
	margin: 0;
}

body {
	-webkit-text-size-adjust: 100%;
	font-family: bag;
	overflow: hidden;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

/* STRUCTURE */
#globe {
	position: fixed;
	width: 30px;
	top: 25px;
	right: 25px;
	z-index: 11;
}

.structure {
	display: grid;
	grid-template-columns: 8fr 1px 6fr;
	height: 100vh;
}

.page {
	overflow-y: auto;
}

main {
	height: 100%;
	margin: 0 36px;
	display: grid;
	grid-gap: 18px;
}

/* LEFT PAGE STUFF */
.page.left::-webkit-scrollbar {
	width: 2px;
}

.page.left::-webkit-scrollbar-track {
    -webkit-box-shadow: inset 0 0 3px rgba(0,0,0,0.5);
}
 
.page.left::-webkit-scrollbar-thumb {
  background-color: rgb(155,155,155);
}

.page.left {
/* 	background-color: olive; */
	grid-column: 1 / 2;
	transform: scaleX(-1);
}

.left main {
	grid-template-columns: repeat(8, 1fr);
	transform: scaleX(-1);
}

.left figure.poster {
	grid-column: 2 / 8;
	align-self: center;
	padding: 36px 0;
}

.left figure.poster.video {
	aspect-ratio: 1 / 1;
}

.left figure.poster iframe {
	display: block;
	width: 100%;
	height: 100%;
}

/* GUTTER */
.spine {
	background-color: rgb(80,80,80);
	position: relative;
}

.gutter {
	z-index: -1;
	position: absolute;
	top: 0;
	bottom: 0;
	width: 36px;
	opacity: .8;
	background: rgb(160,160,160);
	background: linear-gradient(90deg, rgba(160,160,160,1) 0%, rgba(176,176,176,1) 6%, rgba(210,210,210,1) 16%, rgba(240,240,240,1) 38%, rgba(255,255,255,1) 100%);
}

.gutter.left {
	transform: scaleX(-1);
	left: -36px;
}

/* RIGHT PAGE STUFF */
.page.right::-webkit-scrollbar {
	width: 3px;
}

.page.right::-webkit-scrollbar-track {
    -webkit-box-shadow: inset 0 0 3px rgba(0,0,0,0.5);
}
 
.page.right::-webkit-scrollbar-thumb {
  background-color: rgb(155,155,155);
}

.page.right {
/* 	background-color: thistle; */
	grid-column: 3 / 4;
}

.right main {
	grid-template-rows: 1fr auto;
}

.right header {
	padding-top: 32px;
	padding-bottom: 26px;
}

.right header .logo {
	font-size: 22px;
	line-height: 30px;
	letter-spacing: 0.01em;
}

.right header .address {
	font-size: 11px;
	line-height: 23px;
	letter-spacing: 0.05em;
	text-transform: uppercase;
}

.right nav {
	/* display: flex;
	flex-flow: wrap;
	gap: 18px;
	padding-bottom: 66px;
	letter-spacing: 0.06em;
	max-width: 662px; */
	display: grid;
	grid-template-columns: repeat(6, 1fr);
	gap: 18px;
	padding-bottom: 47px;
	letter-spacing: 0.06em;
}

.right nav.home {
	padding-bottom: 68px;
}

.right.books nav {
	padding-bottom: 93px;
}

.right .project nav {
	padding-bottom: 99px;
}

.right .news-page nav,
.right .info nav {
	margin-bottom: 69px;
	padding-bottom: 0;
}

.right nav a {
	border: 1px solid;
	padding: 7px 9px 3px 9px;
	font-size: 15px;
	line-height: 21px;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	text-align: center;
	/* flex-basis: calc(33.33% - 36px); */
	/* flex: 40%;
	min-width: 164px; */
	grid-column: 1 / 3;

}

.right nav a:nth-child(even) {
	grid-column: 3 / 5;
}

.right nav a:link, .right nav a:visited {
	color: rgb(158,158,157);
}

.right nav a:hover {
	color: black;
}


.right nav a.active:link, .right nav a.active:visited {
	color: black;
}

.right nav.home a:link, .right nav.home a:visited {
	color: black;
}

.right nav.home a:hover {
	color: rgb(158,158,157);
}

.right .tag {
	padding-bottom: 4px;
	margin-top: -1px;
}

.right .proj-list.no-current {
	padding-top: 21px;
}

.right section a:hover {
	color: rgb(158,158,157);
}

.right section.text a {
	text-decoration: underline;
	text-underline-offset: 0.15em;
}

.right section.message p {
	padding-bottom: 14px;
}

.right section.current {
	padding-bottom: 39px;
}

.right section.project-header {
	padding-bottom: 32px;
}

.artist {
	letter-spacing: 0.05em;
}

.title {
	font-style: italic;
}

.dates, .notes {
	padding-top: 4px;
}

.right .news {
	padding-bottom: 46px;
}

.right .news article:not(:last-child) {
	padding-bottom: 12px;
}

.right .news article p:not(:last-child) {
	padding-bottom: 10px;
}

.right .news a:link, .news a:visited {
	color: rgb(158,158,157);
}

.right .news a:hover {
	color: black;
}

.right footer {
	display: flex;
	padding-bottom: 32px;
	align-items: flex-end;
}

.right footer .contact {
	flex: 1;
}

.right footer .contact .item {
	display: flex;
}

.right footer .contact .list p {
	flex: 1;
}

.right footer .contact a:hover {
	color: rgb(158,158,157);
}

.right footer span.label, .right footer label {
	width: 52px;
	padding-right: 9px;
}

.right footer .contact form {
	display: flex;
}

.right footer .contact input {
	outline: none;
	max-width: 108px;
	margin-right: 9px;
	-webkit-appearance: none;
	border-radius: 0;
}

#mc-embedded-subscribe-form {
	position: relative;
	width: 230px;
}

.right footer .contact input[type='email'] {
	flex: 1;
	font-family: bag;
	font-size: 11px;
	line-height: 0px;
	border: none;
	border-bottom: 1px solid rgb(158,158,157);
}

.right footer .contact input[type='submit'] {
	/* font-family: bag; */
	font-size: 10px;
	letter-spacing: -.01em;
	line-height: 0px;
	border: 1px solid black;
	color: black;
	background-color: white;
	padding: 2px 4px 2px 4px;
	height: 19px;
	font-style: normal;
	font-weight: normal;
	opacity: 0;
	cursor: pointer;
	position: absolute;
	right: 0;
	margin-top: -3px;
	/* background-color: lightpink; */
}

.right footer .contact input[type='submit']:hover {
	border: 1px solid rgb(158, 158, 157);
	color: rgb(158, 158, 157);
}

.right footer .contact input[type='email']:focus + input[type='submit'] { 
    transition: opacity 0.3s ease;
	opacity: 1;
}

.right footer .contact input[type='submit']:focus {
	opacity: 1;
}

.right footer .contact .note p {
	padding-top: 16px;
}

.right footer .contact .lead.note p {
	padding-bottom: 16px;
}

/* WEATHER WIDGET */

.weather-widget {
  font-family: Helvetica;
	width: 85px;
	border: 1px solid rgb(122, 122, 122);
	padding: 6px;
	box-sizing: border-box;
}

.weather-widget-title {
	font-size: 8px;
	text-align: center;
	margin-bottom: 4px;
	line-height: 1;
}

.weather-widget-content {
	display: flex;
	justify-content: space-between;
	align-items: center;
}

.weather-widget-temps {
	display: flex;
	flex-direction: column;
  gap: 2px;
  flex: 1;
  padding-left: 0px;
}

.weather-widget-temp {
	font-size: 14px;
	line-height: 1;
  text-align: center;
  padding-left: 2px;
}

.weather-widget-icon {
	flex: 1;
}

.weather-widget-icon img {
	max-width: 80%;
	max-height: 80%;
	width: auto;
	height: auto;
	display: block;
  object-fit: contain;
  margin: auto;
}

.weather-widget-error {
	font-family: Helvetica, Arial, sans-serif;
	font-size: 8px;
	text-align: center;
}

/* LIST PAGES */
/* LIST PAGES LEFT STUFF */
.left main.thumbs {
	height: auto;
	margin: 36px;
	align-content: start;
	grid-template-columns: repeat(24, 1fr);
	grid-gap: calc((((100vw - 864px) / 14) / 3) + 36px) 18px;
}

.left figure.thumb {
	grid-column-start: span 11; 
}

.left figure.thumb img {
	border: 1px solid white;
	margin: -1px;
}

.left figure.thumb img:hover, .thumb-hover {
	border: 1px solid black !important;
}

.left .thumbs .space {
	grid-column-start: span 1; 
}

.left figure.thumb figcaption, .left figure.blank.thumb {
	display: none;
}

.left figure.thumb figcaption a:hover {
	color: rgb(158,158,157);
}

.left main.thumbs figcaption.above {
	/* grid-column: 1/-1; */
}

/* LIST PAGES RIGHT STUFF */
.right section.previous {
	padding-bottom: 30px;
}

.right section.articles-list .item {
	padding-bottom: 30px;
	width: fit-content;
}

.right section.articles-list .pub-title {
	padding-bottom: 4px;
	font-style: italic;
}

/* PROJECT PAGE */
/* PRJOECT PAGE LEFT STUFF */
.left main.slides figure.doc {
	padding: 36px 0;
	grid-column: 1 / 8;
	flex-flow: column;
	justify-content: space-between;
	display: none;
}

.left main.slides figure.doc.display {
	display: flex;
}

.left main.slides figure.doc img {
	max-height: calc((((100vw - 360px) / 14) * 7) + 108px);
	max-width: 100%;
	width: auto;
	cursor: pointer;
	align-self: flex-start;
}

.left main.slides figure.doc .video {
	width: 100%;
	aspect-ratio: 16 / 9;
	background-color: black;
}

.left main.slides figure.doc .video iframe {
	height: 100%;
	width: 100%;
	display: block;
}

.left main.slides figure.doc figcaption {
	padding-top: 14px;
	margin-bottom: -6px;
	width: calc((((100vw - 360px) / 14) * 6) + 90px);
}

.left main.slides figure.doc figcaption a:link, .left main.slides figure.doc figcaption a:visited {
	color: rgb(158,158,157);
}

.left main.slides figure.doc figcaption a:hover {
	color: black;
}

.left main.slides .slide-nav {
	padding: 34px 0;
	align-self: end;
	display: flex;
	justify-content: space-between;
}

.slide-nav .arrow {
	margin-top: -12px;
	height: 8px;
	width: 8px;
	border-left: 1px solid black;
	border-bottom: 1px solid black;
	cursor: pointer;
	transform: rotate(45deg);
}

.slide-nav .arrow.right {
	transform: rotate(225deg);
}

/* PRJOECT PAGE RIGHT STUFF */
.right header.min {
	position: fixed;
	display: flex;
	flex-flow: row wrap;
	padding: 29px 67px 0 0;
	margin-right: 4px;
	z-index: 10;

}

.right header.min .logo, .right header.min .address {
	font-size: 11px;
	line-height: 15px;
	height: 11px;
	padding: 5px 5px 5px 0;
	letter-spacing: 0.05em;
	text-transform: uppercase;
	background-color: rgba(255,255,255,1);
}

.right header.min .logo {
	padding-right: 5px;
}

.right .project.content-wrap {
	padding: 80px 0 0 0;
}

.right section.press, .right section.specs {
	padding-bottom: 32px;
}

.right section ul {
	padding-left: 14px;
	list-style: none;
}

.right section ul li {
	text-indent: -14px;
}

.right section ul li:before {
	content: "–";
	padding-right: 6px;
	font-size: 14px;
}


.right section ul a {
	/* color: rgb(158,158,157); */
}

.right section.press ul a:hover {
	/* color: black; */
}

.right section.text {
	padding-bottom: 29px;
}

.right section.text p {
	padding-bottom: 14px;
}

.right section.text p:last-child {
	padding-bottom: 0;
}

.right section.bio {
	margin-top: -2px;
	padding: 4px 0 30px 0;
}

.right section.bio p {
	padding-bottom: 15px;
}

.right section.bio p:last-child {
	padding-bottom: 0;
}

@media screen and (max-width: 1402px){
	.right nav {
		display: grid;
		grid-template-columns: repeat(4, 1fr);
		grid-gap: 18px;
	}
	.right nav a {
		grid-column: span 2; 
		min-width: unset;
	}
}

@media screen and (min-width: 858px) and (max-width: 1028px) {
	.right .project.content-wrap {
	    padding: 101px 0 0 0;
	}	
}

@media screen and (max-width: 858px){
	body {
		overflow-y: auto;
	}

	body::-webkit-scrollbar {
		width: 3px;
	}
	
	body::-webkit-scrollbar-track {
	    -webkit-box-shadow: inset 0 0 3px rgba(0,0,0,0.5);
	}
	 
	body::-webkit-scrollbar-thumb {
	  background-color: rgb(155,155,155);
	}

	.structure {
		grid-template-columns: 1fr;
		grid-template-rows: auto 1fr;
		align-content: start;
	}
	
	.spine {
		position: fixed;
		top: 0;
		bottom: 0;
	    border-left: 1px solid rgb(80,80,80);
	    z-index: -1;
	}
	
	.gutter.left {
		display: none;
	}
	
	.page {
		overflow-y: inherit;
	}
	
	.page.right, .page.left {
		grid-column: auto;
	}
	
	.page.right {
		/* height: 0; */
	}
	
	.unhome .right main {
		grid-gap: 0;
	}
	
	/* .left main {
	    padding-top: 181px;
	} */

	.home .page.left {
		padding-top: 232px;
	}
	
	.unhome .left main {
		height: auto;
	    padding-top: 200px;
	}
	
	.ex .left main.thumbs, .projects .left main.thumbs {
		padding-top: 196px;
	}
	
	.right .proj-list {
		display: none;
	}
	
	.left figure.poster {
		grid-column: auto;
		grid-column-start: span 8;
		padding: 0; 
	}
		
	.left main.thumbs {
		grid-template-columns: repeat(8, 1fr);
		grid-gap: 18px;
	}
	
	.left figure.thumb img:hover {
		filter: none;
	}
	
	.left main.thumbs figure.thumb {
		padding-bottom: 10px;
	}
		
	.left main.thumbs figure.thumb.current {
		padding-bottom: 50px;
		padding-top: 4px;
	}
	
	.left main.thumbs figure.thumb {
		grid-column-start: span 4; 
	}
	
	.left main.thumbs .space {
		display: none;
	}
	
	.left main.thumbs figcaption, .left figure.blank.thumb {
		display: flex;
	}
	
	/* .left main.thumbs figure:nth-of-type(4) {
		padding-top: 30px;
	} */
	
	.left main.thumbs figcaption.above {
		padding-bottom: 12px;
	}

	.left main.thumbs figcaption#prev-tag.above {
		margin-top: -30px;
	}
	
	.left main.thumbs figcaption.below {
		padding-top: 15px;
	}
	
	.left main.slides figure.doc {
		grid-column: 1 / 9;
		padding: 0;
	}
	
	.left main.slides figure.doc {
		min-height: calc(100vw - 72px);
	}

	.left main.slides figure.doc.video {
		min-height: unset;
	}
	
	.left main.slides figure.doc img {
		max-height: calc(100vw - 72px - 32px);
	}
	
	.left main.slides figure.doc figcaption {
	    width: 100%;
    }
	
	.left main.slides .slide-nav {
		grid-column: 1 / 9;
		padding: 14px 3px 0 3px;
	}
	
	.right main .content-wrap, .right .project.content-wrap {
		padding-top: 36px;
	}

	.right .news-page.content-wrap {
		padding-top: 265px;
	}

	.home .right main .content-wrap {
		padding-top: 32px;
	}
	
	.projects .right main .content-wrap {
		padding-top: 0;
	}
	
	.right header {
		position: absolute;
		top: 0;
	}
	
	.right nav {
		position: absolute;
		right: 36px;
	    left: 36px;
		top: 112px;
	}
	
	.unhome .right nav {
		top: 80px;
	}

}

@media screen and (max-width: 500px) {	
	.left main.thumbs figure.thumb {
		grid-column-start: span 8; 
	}
	
	.left main.thumbs figure.thumb.blank {
		display: none;
	}
	
	.left main.thumbs figure.thumb:not(.current):not(:nth-last-child(2)) {
		padding-bottom: 12px;
	}
	
	.left main.thumbs figure:nth-of-type(4) {
		padding-top: 0;
	}
}

@media screen and (max-width: 452px) {	
	.unhome .right nav {
		top: 101px;
	}
	
	.unhome .left main {
	    padding-top: 221px;
	}
}
