body	{
	font-size: 1.1rem;
	line-height: 1.5;
}
	
body table	{
	word-break: normal;
}

header	{
	padding: .5rem 2rem;
}

header	{
	grid-template-columns: auto 52rem;/*new eyv logo*/
	grid-template-columns: auto 44rem;/*new eyv logo*/
	align-items: center;
}

header.logo6a	{
	grid-template-columns: auto 40rem;/*logo 6a*/	
}	

.logo6a .logo {
	width: 20em;
}


#main_menu li	{
	flex: 0 0 auto;	
	margin: 0 .7rem;
	font-size: 100%;
}



/*FOOTER*/

#funding p	{
	text-align: left;
	margin-bottom: 1rem;
}	




.home h1 #title2	{
	font-size: 1.4rem;
	
}

#intro, #intro_fa	{
	max-width: 80rem;
	padding-bottom: .5rem;
	margin: 0 auto 3rem;
	text-align: center;
}	

.wide .citation, .wide .narrower {
	max-width: 80rem;
	margin-left: auto;
	margin-right: auto;
}	

.welcome h1	{
	font-size: 2.2rem;
}

.welcome p	{
	font-size: 1.4rem;
}


	
.narrow #intro p	{
	text-align: left;
}	

/*CONTENT*/
h1 	{
	font-size: 1.8rem;
}

article h1 span.translation	{
	font-size: 1.4rem;

}	
	
h2.author, h2.translation	{
	font-size: 1.4rem;
}

.essay h2.subtitle, .essay h2.subsubtitle {
	font-size: 1.5rem;
}

#content	{
	min-height: calc(100vh - 11rem);
}

main	{
	padding: 1rem 2rem;
}

main.centered	{
	max-width: 80rem;
	margin: 0 auto;
}	

#content.sidebar	{
	display: grid;
	grid-template-columns: 16rem 1fr 16rem;
	
}	


#content.sidebar #local_nav	{
	grid-column: 1 / 2;
	grid-row: 1 / 2;
	text-align: left;
	padding: 2rem;
	
}

#local_nav nav	{
	position: sticky;
	top: 9vh;
}	

#content.sidebar main	{
	grid-column: 2 / 3;
	grid-row: 1 / 2;
	justify-self: stretch;
	margin-right: 0;
}
	

/*GALLERIES PAGE*/

.galleries li	{
	width: 25%;
}	

.chapters li	{
	width: max(25%, 24rem);
}	

.chapters span.chapter{
	font-size: 130%;
}	

body.fa .chapters.mihrab span.chapter{
	font-size: 2rem;
	font-weight: bold;
}	

body.fa .chapters.mihrab span.teaser{
	font-size: 1.6rem;
	
}

body.fa .chapters.mihrab span.teaser .en {
	font-size: 1rem;
}		

/*ESSAYS*/
#content.narrow	{
	max-width: 100rem;
	margin: 0 auto;
	
}

main.essay, main.photo_tl	{
	max-width: calc(100vw - 22rem);
}	




/*Figures layout in essay*/
.essay .group	{
	display: grid;
	grid-gap: 2rem;
}

.essay .group.wide	{
	width: 80%;
	margin-left: auto;
	margin-right: auto;
}	

/*.essay .group img	{
	width: 100% !important;
}*/	

.essay .g1-1	{
	grid-template-columns: 1fr 1fr;
}

.essay .g1-2	{
	grid-template-columns: 1fr 2fr;
}

.essay .g1-3	{
	grid-template-columns: 1fr 3fr;
}

.essay .g2-1	{
	grid-template-columns: 2fr 1fr;
}

.essay .g2-3	{
	grid-template-columns: 1fr 1.5fr;
}

.essay .g3-2	{
	grid-template-columns: 1.5fr 1fr;
}

.essay .g3-1	{
	grid-template-columns: 3fr 1fr;
}

.essay .cell1	{
	grid-column: 1 / 2;
	grid-row: 1 / 2;
}

.essay .cell2	{
	grid-column: 2 / 3;
	grid-row: 1 / 2;
}


/*Figure with 2 images and 1 caption*/
.essay .double {
	grid-template-columns: 1fr 1fr;
	grid-gap: .5rem;
	
}

.essay .double .cell1	{
	grid-column: 1 / 2;
	grid-row: 1 / 2;
	margin-bottom: 0;
}

.essay .double .cell2	{
	grid-column: 2 / 3;
	grid-row: 1 / 2;
}

.essay .double figcaption	{
	grid-column: 1 / 3;
	grid-row: 2 / 3;
}

.essay .collection2 .group	{
	align-items: center;
	margin-bottom: 2rem;
}	

/*TABLE*/

.extrawide table	{
	word-break: normal;
}


/*IMAGE ZOOM*/

.zoom_new figure	{
	margin: 0 auto;
	padding: 0 1rem 0 0;
	width: calc(100vw - 1rem);
	grid-template-columns: 4rem calc(100vw - 9rem) 4rem;
	grid-template-rows: 3rem calc(50vh - 4rem) calc(50vh - 4rem) 5rem;
	
}

.photos .zoom_new figure {
	grid-template-rows: 3rem calc(50vh - 5rem) calc(50vh - 5rem) 7rem;

}

.zoom_new .image	{
	grid-column: 2 / 3;
	grid-row: 2 / 4;
}

.zoom_new .previous	{
	grid-column: 1 / 2;
	grid-row: 3 / 4;
	align-self: start;
}

.zoom_new .next	{
	grid-column: 3 / 4;
	grid-row: 3 / 4;
	justify-self: center;
	align-self: start;
}

.zoom_new .counter	{
	grid-column: 2 / 3;
}	

.zoom_new .close	{
	grid-column: 3 / 4;
	grid-row: 1 / 2;
}	

.zoom_new figcaption 	{
	display: block;
	grid-column: 1 / 4;
	grid-row: 4 / 5;
	text-align: center;
	line-height: 1.5;
	padding: .3rem;
	color: #fdf9ea;
	
}

.zoom_new img {
	max-height: calc(100vh - 9rem);
	max-width: calc(100vw - 12rem);
}

.photos .zoom_new img {
	max-height: calc(100vh - 12rem);
	max-width: calc(100vw - 12rem);
}

/*YADEGARI CATALOG*/

.yadegari blockquote.fa	{
	margin-right: 40%;
}

/*PHOTO TIMELINE*/

.photo_tl .entry a	{
	grid-template-columns: 45% 1fr 45%;
}

.photo_tl .entry:before	{
	left: calc(50% - 2px);
}	

.photo_tl .entry:after	{
	left: calc(50% - 6px);
}
	
.photo_tl .entry .right	{
	width: calc(100% - 2rem);
	padding: 1rem;
	display: flex;
	flex-flow: row-reverse nowrap;
	justify-content: space-between;
	align-items: center;
}

.photo_tl .entry .right	img {
	width: 40%;
	padding-left: 1rem;
	padding-bottom: 0;
}	

.photo_tl .entry .right	figcaption	{
	max-width: calc(60% - 3rem);
}	

.photo_tl .entry span	{
	font-size: 110%;
}

.essay .collection2	figcaption	{
	margin-top: 0;
}



/*CHECKLIST2*/
.checklist2 li	{
	width: min(20rem, 20vw);
}


blockquote.narrow	{
	width: 60%;
	margin: 0 auto;
}

div.object.narrow	{
	width: 80%;
	margin: 0 auto;
}

/*TIMELINE*/
.timeline .period li	{
	grid-template-columns: 16em 1fr;

}

/*FIXED BUTTON*/

.button.fixed	{
	display: block;
	font-size: 90%;
	position: fixed;
	padding: .5rem;
	bottom: 10vh;
	bottom: 12rem;
	left: max(calc(50% - 30rem), 12rem);
	
	left: max(calc(50vw - 36rem), 12rem);
	
	left: max(calc(50vw - 41rem), 11rem);
	
	border: 1px solid #0d1427;
	
	transform: rotate(-90deg);
	font-weight: normal;
}


.button.fixed:hover, .button.fixed:focus	{
	background: #fdf9ea;
}	

.button.fixed a	{
	color: #1f2f54;
	text-decoration: none;
}	

.button.fixed a:hover, .button.fixed a:focus	{
	color: #1f2f54;
	font-weight: bold;
}	

/*VIDEO*/

.essay article .video.medium	{
	width: 60%;
	margin: 2rem auto;
}

.essay article .video.small	{
	width: 40%;
}

.essay article .video.xsmall	{
	width: 25%;
}

/*ABOUT*/

#logos  a	{
	max-width: 9rem;
}	

li img.tiny	{
	width: 15rem;
}

li img.tiny2	{
	width: 31.15rem;
}	

/*PHOTO TIMELINE NEW*/

.photos .thumbnails {
	margin: 2rem 0;
	padding: 0;
	display: flex;
	flex-flow: row wrap;
	justify-content: space-evenly;
}

.photos .thumbnails figure	{
	width: calc(20% - 2rem);
	margin: 1rem;
}	

/*ESSAY IMAGES AND VIDEOS*/
.essay .wide img, .essay .video.large	{
		margin: 2rem auto;
		width: min(80%, 60rem);
}

.essay .square img, .essay .video.medium	{
		margin: 2rem auto;
		width: min(60%, 48rem);
}

.essay .skinny img, .essay .video.small	{
		margin: 2rem auto;
		width: min(40%, 32rem);
}


/*LOUVRE IMAGES REMOVED*/

.essay img.blank {
	width: min(40%, 32rem) !important;
}

/*LUSTER CABINET*/

.imagemap	{
		margin: 2rem auto;
		width: min(80%, 60rem);
}

/*-----------------------------*/
/*MIHRAB TEST*/

/*
.photos .thumbnails .flip-card	{
	width: calc(20% - 2rem);
	margin: 1rem;
}	*/

/*MIHRAB TEST 2*/


.chapters.mihrab li	{
	width: max(20%, 15rem);
}

.special	{
	width: 80%;
	margin: 0 auto;
}


