/* GRID IMAGE CLASSES

{.grid-image .wide .top}
{.grid-image .two-col}
{.grid-image .two-col .last}
{.grid-image .wide}

*/

/* Selection colours (easy to forget) */

::-moz-selection		{background: #dbe3e5;}
::selection				{background: #dbe3e5;}
::-moz-selection		{background: #dbe3e5;}
img::-moz-selection		{background: transparent;}
img::selection			{background: transparent;}
img::-moz-selection		{background: transparent;}


body {-webkit-tap-highlight-color: #dbe3e5;}

@font-face {
	font-family: 'Svedala';
	src: url('https://www.nofont.com/users/journal/content/templates/nofont_twentyfive_theme/fonts/SvedalaBeta2-Regular.woff2') format('woff');
	src: url('https://www.nofont.com/users/journal/content/templates/nofont_twentyfive_theme/fonts/SvedalaBeta2-Regular.otf') format('opentype');
	font-weight: normal;
	font-style: normal;
}

/* Dirty fix for videos in image-grids */

.video-grid p:has(.two-col) {
	width: 49.44%;
   display: inline-block;
   margin: 0 1% 1% 0 !important;
}

.video-grid p:has(.two-col) img.two-col {
	width: 100% !important;
	/* border: 1px solid red; */
	margin: 0 !important;
}

/* End dirty fix for videos in image-grids */

/*
 font-family: "Alegreya Sans SC", sans-serif;
font-family: "Alegreya Sans", sans-serif;
*/

body {
	background-color: #182024;
	color: white;
	font-weight: 400;
	font-family: "Alegreya Sans", sans-serif;
	color: #B2DDDD;
	
	.category, nav {
		hyphens: none;
	}
}

/*********** STARTPAGE *************/


/** Latest post **/

.latestPost {
	text-align: center;
   height: 100vh;
   align-content: center;
   /* padding: 25% 0; */
   max-width: 80%;
   margin: 0 auto;
   justify-content: center;
   align-items: center;

   .smallCaps {
   	margin-bottom: 3%;
   	display: block;
   }

   h1 {
   	font-size: 20cqi !important;
   	margin-bottom: 3%;
   }

	.featuredImage {
	  /* background: #00c2ff; */
	  display: block;
	  position: absolute;
	  z-index: 0;
	  width: 28%;
     margin-top: -33%;
     display: none;
	}

	.featuredImage img {
		mix-blend-mode: screen;
		-webkit-filter: grayscale(50%) contrast(100%);
		filter: grayscale(50%) contrast(100%);
		opacity: 0.4;
		display: block;
		width: 100%;
		display: none;
	}
 }

/** PORTRAIT EXITS **/

.startpage .craftLogo {
	z-index: 100;
	position: fixed;
	top: 4%;
	left: 10%;
	text-align: left;
	text-transform: uppercase;
	letter-spacing: 3px;
	
	@media (min-width: 540px ) {
		top: 4%;
		left: 4%;
	}
}

.startpage {
	background-color: #000;
}

.startpage main {
	width: 100%;
}

.startpage button {
	padding: 15px 20px;
	background-color: rgba(0,0,0,0.3);
	color: #fff;
}

.startpage a.button {
	padding: 12px 15px 10px 15px;
	font-size: 11px;
	text-transform: uppercase;
	letter-spacing: 2px;
	font-weight: 900;
	display: inline-block;
	line-height: 1;
}

.startpage a.button span {
	font-size: 24px;
	font-weight: 100;
	line-height: 0;
}




/******** STARTPAGE – TARGET LAYOUTS **********/

.spacer {
	width: 100%;
	height: 200px;
}

.pin-spacer {
	margin: 0 !important;
}

/* Horiz scroll styling 

.targetContainer {
	margin-top: 10px;
	height: 100svh;
	aspect-ratio: 1128 / 971;
	flex-wrap: nowrap !important;
	position: relative;
	@media (min-width: 540px ) {
		aspect-ratio: auto;
	}
}
*/


.targetContainer {
	height: 100vh;
	flex-wrap: nowrap !important;
	position: relative;
	overflow-x: hidden;
	@media (min-width: 540px ) {
		aspect-ratio: auto;
	}
}

.leftTarget, .rightTarget {
	height: 100vh;	
	display: flex;
	align-content: center;
	flex-direction: column;
	/* aspect-ratio: 620 / 971; v2 Horiz scroll styling */

	filter: blur(0px) saturate(0.8);
	transition: 1s;
	margin: 0;

	@media (min-width: 540px ) {
		width: 50% !important;
		aspect-ratio: auto;
		filter: blur(10px) saturate(0.8);
	}
	
}

.leftTarget img, .rightTarget img {
		margin: 0;
		transition: 1s;
	}

.rightContent, .leftContent {
	width: 55vw;
	height: fit-content;
	display: block;
	
	@media (min-width: 540px ) {
		width: 70vw;
		width: 40% !important;
		margin-left: auto;
	}
	
}

.leftContent {
	margin-left: 7%;
	margin-right: auto;
	margin-bottom: 17dvh;
	
	@media (min-width: 540px ) {
		margin-left: auto;
		margin-bottom: auto;
	}
}

.rightContent {
	margin-left: auto;
	margin-right: 7%;
	margin-bottom: 17dvh;
	text-align: right;
	
	@media (min-width: 540px ) {
		margin-right: auto;
		margin-bottom: auto;
		text-align: left;
	}
}


/* IMAGE PLACEMENTS */

/* Horiz scroll styling 

.leftTarget {
	background-size: cover;
	background-repeat: no-repeat;
	background-image: url('/app/imgs/left.jpg');
	background-position: 98%;
	
	@media (min-width: 540px ) {
		background-position: 98%;
	}
}

.rightTarget {
	background-repeat: no-repeat;
	background-size: cover;
	background-image: url('/app/imgs/right.jpg');
	background-position: 0%;
	
	@media (min-width: 540px ) {
		background-position: -5%;
	}
}
*/

.leftTarget {
	background-size: 100vh;
	background-repeat: no-repeat;
	background-image: url('/app/imgs/left.jpg');
	background-position: 60%;

	@media (min-width: 540px ) {
		background-size: cover;
		background-position: 98%;
	}
}

.rightTarget {
	background-size: 100vh;
	background-repeat: no-repeat;
	background-image: url('/app/imgs/right.jpg');
	background-position: 30%;
	
	@media (min-width: 540px ) {
		background-size: cover;
		background-position: -5%;
	}
}

@media (min-width: 540px ) {
	.leftTarget:hover, .rightTarget:hover {
		transition: 1s;
		filter: none;
		opacity: 1;
		-webkit-filter: none;
	}

	.leftTarget:hover {
		/* background-repeat: no-repeat;
		background-size: cover;
		background-position: 56%; */
		background-image: url('/app/imgs/left_hover.jpg');
	}

	.rightTarget:hover {
		background-image: url('/app/imgs/right_hover.jpg');
	}
}


/****** END TARGET ANIMS ********/

main {
	/* width: 80%; */
	width: 100%;
	margin: 0 auto;
}

main a {
	border-bottom: 1px dashed rgb(130, 166, 172);
}

main p:has(.insta) {
	text-indent: 0;
}

main a.insta {

	text-align: center;
	margin: 20px 0;
	display: inline-block;
	padding: 10px 3px !important;
   border-top: 1px solid rgba(255, 255, 255, 0.4);
   border-bottom: 1px solid rgba(255, 255, 255, 0.4);
   background-image: none !important;
   width: 100%;

	@media (min-width: 540px ) {
		text-align: left !important;
	}

	&:hover {
		background-color: rgba(255, 255, 255, 0.1);
	}
	

	&:before {

		content: "Editing tips!";
		background-position: 50% 7px;
		line-height: 0.8;
		display: block;
		padding-top: 35px;
		font-weight: 700;
		background-image: url(https://nofont.com/users/journal/content/templates/nofont_twentyfive_theme/imgs/icons/icon-instagram.svg);
		background-repeat: no-repeat;
		padding-left: 10px;
		background-size: 14px;
      padding-left: 0;
	}

	@media (min-width: 540px ) {
		&:before {
			padding-top: 1px !important;
			padding-left: 22px !important;
			padding-right: 5px;
			content: "Editing tips! – " !important;
      	background-position: left !important;
      	line-height: inherit !important;
      	display: inline-block !important;
      }
   }
}


/* USE WITH GSAP SCROLL */
.horizontalScrollList {
	width: 100%;
	/* margin: 5% 0 5% 0%; */
	display: flex;
	flex-direction: row;
	overflow-x: hidden;
}

.horizontalScrollList p {
	display: flex;
	flex-direction: row;
}
			
.horizontalScrollList p img {
	width: auto;
	height: 100vh;
	display: block;
}

.horizontalScrollList p:has(img) { /* <p> after image */
 	margin: 0 !important;
}

/*****************************************
******** A R T I C L E  G R I D   ********
******************************************/

.articleGrid { /* BLOG GRID */
	display: grid; 
	grid-column-gap: 0px;
	grid-row-gap: 0px; 

	grid-template-columns: 10% 80% 10%;
	@media (min-width: 540px ) {
		grid-template-columns: 20% 60% 20%;
	}
	grid-template-rows: auto;
	background-image: none;
}

/* ARTICLE GRID STRUCTURE

   1 2   3 4 
1  _________
   | |   | |
2  _________
   | |   | |
3  _________
   | |   | |
4  _________
   | |   | |
5  _________
   | |   | |
6  ---------

*/


.articleGrid .intro {
	grid-area: 1 / 1 / 2 / 4;
	
	@media (min-width: 540px ) {
		grid-area: 1 / 1 / 2 / 4;
	}
}

.articleGrid .headline {
	margin-top: 0;
	z-index: 2;
	position: relative;

	@media (min-width: 540px ) {
		margin: 10% 0 0 18%;
		width: 65%;
	}
}

.articleGrid .featuredImage:has(img) + .headline {
	
	@media (min-width: 540px ) {
		margin-top: -7%;
	}
}

.articleGrid .publishDate {
	margin-top: 0;
	z-index: 1;
	position: relative;

	@media (min-width: 540px ) {
		margin: 0 0 0 18%;
		width: 100%;
	}
}

.articleGrid .headline {
	margin-top: 0;
	z-index: 2;
	position: relative;

	@media (min-width: 540px ) {
		margin: 10% 0 0 18%;
		width: 65%;
	}
}

.articleGrid .preamble {
	margin: 40px 0;
	z-index: 2;
	position: relative;
	width: 80%;
	margin-left: 5%;
	
	@media (min-width: 540px ) {
		margin: 5% 0 5% 18%;
		width: 45%;
	}
}

.articleGrid .featuredImage {
	margin: 0;
	width: 100%;
	height: auto;
	overflow: hidden;

	@media (min-width: 540px ) {
		margin: 0;
		width: 100%;
		height: auto;
	}
	/* max-height: 120vh; */
}

.articleGrid .content {
	grid-area: 2 / 2 / 3 / 3;
	height: fit-content;
	align-self: end;

	@media (min-width: 540px ) {
		grid-area: 2 / 2 / 3 / 3;
	}
}

.widescreen .articleGrid .content {
	@media (min-width: 540px ) {
		grid-area: 2 / 1 / 3 / 4;
	}
}

/* Center the contant column of all posts except cases */

body:not(.behind-the-case) .articleGrid .content  {
	@media (min-width: 540px ) {
		grid-area: 2 / 2 / 3 / 3;
	}
}

.articleGrid .content-section-one {
	grid-area: 2 / 2 / 3 / 3;
	height: fit-content;
	align-self: end;

	@media (min-width: 540px ) {
		grid-area: 2 / 2 / 3 / 3;
	}
}

.articleGrid .content-section-scroll {
	grid-area: 2 / 1 / 3 / 4;

	@media (min-width: 540px ) {
		grid-area: 2 / 1 / 3 / 4;
		/* margin-left: -12.5%;
		width: 120%; */
	}
}

.articleGrid .content-section-three {
	grid-area: 4 / 1 / 5 / 4;

	@media (min-width: 540px ) {
		grid-area: 3 / 3 / 4 / 4;
	}
}

.articleGrid .content-section-wide {
	grid-area: 5 / 1 / 6 / 4;

	@media (min-width: 540px ) {
		grid-area: 4 / 3 / 5 / 4;
	}
}

.articleGrid .content-section-five {
	grid-area: 6 / 1 / 7 / 4;

	@media (min-width: 540px ) {
		grid-area: 5 / 1 / 6 / 2;
	}
}

/*********************************
 * 		C A S E  G R I D 			*
**********************************/

.intro, .content-section-one, .content-section-two, .content-section-three, .content-section-five, .content-section-six, .content-section-seven {
	/* background-color: rgba(255, 0, 106, 0.127); */
	position: relative;
}
			
.caseGrid { /* CASE GRID */
	display: grid; 
	grid-column-gap: 0px;
	grid-row-gap: 0px; 

	grid-template-columns: 10% 40% 5% 35% 10%;
	grid-template-rows: auto;
	background-image: none;
}

/* CASE GRID STRUCTURE

   1 2   34   5 6
1  ______________
   | |   ||   | |		Intro + #1
2  --------------
   | |   ||   | |		#2 Scroll
3  --------------
   | |   ||   | |		#3
4  --------------
   | |   ||   | |		#4 Wide
5  --------------
   | |   ||   | |		#5
6  --------------
   | |   ||   | |		#wide-two
7  --------------
   | |   ||   | |		#6
8  --------------
   | |   ||   | |		#7
9  --------------

*/

.toggler {
	position: absolute;
	/* background-color: #aeb37f;
	padding: 2px 6px 4px 6px;
	border-radius: 5px;
	color: #333; */
	display: block;
	text-align: center;
	z-index: 1000;
	width: auto;
	height: auto;
	padding: 10px 8px;
   background-color: rgba(0, 0, 0, 0.5);
   border-radius: 3px;
	/* mix-blend-mode: difference; */
	mix-blend-mode: exclusion;
	-webkit-filter: grayscale(100%); /* Safari 6.0 - 9.0 */
	filter: grayscale(100%);
	border: none;
	top: 5px;
	left: 8px;

	@media (min-width: 540px ) {
		padding: 6px 8px;
		top: 20px;
		left: 25px;
		border: 1px solid transparent;
	}

	img.icon {
		width: 100%;
		height: 16px;
		display: block;

		@media (min-width: 540px ) {
			height: 12px;
		}
	}
}

.toggler:hover {
	border: none;
	@media (min-width: 540px ) {
			border: 1px solid red;
		}
}

.image-overlay-text {
	display: none;
	@media (min-width: 540px ) {
		display: inline-block;
	}
}

.image-caption {
	position: absolute;
   width: 100%;
   height: 100%;
   top: 0;
   left: 0;
   z-index: 900;
   color: white;
   line-height: 1rem;
   font-size: 0.8rem;
   display: flex;
   padding: 5% 0% 10% 0%;
   align-items: end;
   justify-items: center;

   @media (min-width: 540px ) {
		padding: 10% 20% 15% 20%;
		align-items: end;
	}
}

.image-caption.hidden {
	background-color: none;
}

.caption {
	display: none;
	text-shadow: 0px 0px 18px rgba(0, 0, 0, 1);
	font-size: 1.1rem;
	font-weight: 300;
	line-height: 120%;
	width: 70vw;
	margin: 0 auto;

	@media (min-width: 540px ) {
		max-width: 100%;
		width: 80vw;
		font-size: 1.8rem;
	}
}

/*
.toggler:hover + .caption,
.captions-image img:hover + .image-caption .caption {
	display: inline-block;
}
*/

.image-caption.visible {
	background-color: rgba(0, 0, 0, 0.6);
}

.caption.visible {
	display: inline-block;
	white-space: pre-wrap;
	text-wrap: balance;
	width: 70vw;
	display: block;
	margin-left: 15vw;
	@media (min-width: 540px ) {
		margin-left: 0vw;
	}
}

.captions-image {
	position: relative;
}

.caseGrid .intro {
	grid-area: 1 / 2 / 2 / 5;
	
	@media (min-width: 540px ) {
		grid-area: 1 / 2 / 2 / 3;
	}
}

.caseGrid .featuredImage {
	margin: 0 0 0 -12%;
	width: 100vw;
	height: auto;
	overflow: hidden;

	@media (min-width: 540px ) {
		margin: 0 0 0 -42%;
		width: auto;
		height: 100vh;
	}
	/* max-height: 120vh; */
}

.caseGrid .headline {
	margin-top: -20%;
	z-index: 2;
	position: relative;
	
	@media (min-width: 540px ) {
		margin-top: -30%;
	}
}

.caseGrid .content-section-one {
	grid-area: 2 / 2 / 3 / 5;
	height: fit-content;
	align-self: end;

	@media (min-width: 540px ) {
		grid-area: 1 / 4 / 2 / 5;
		margin-top: 75vh;
	}
}

.caseGrid .content-section-scroll {
	grid-area: 3 / 1 / 3 / 6;

	@media (min-width: 540px ) {
		grid-area: 2 / 1 / 3 / 6;
	}
}

.caseGrid .content-section-three {
	grid-area: 4 / 2 / 5 / 5;

	@media (min-width: 540px ) {
		grid-area: 3 / 4 / 4 / 5;
	}
}

.caseGrid .content-section-wide {
	grid-area: 5 / 2 / 6 / 5;

	@media (min-width: 540px ) {
		grid-area: 4 / 2 / 5 / 5;
	}
}

.caseGrid .content-section-five {
	grid-area: 6 / 2 / 7 / 5;

	@media (min-width: 540px ) {
		grid-area: 5 / 2 / 6 / 3;
	}
}

.caseGrid .content-section-wide-two {
	height: fit-content;
	align-self: end;
	grid-area: 7 / 2 / 8 / 5;

	@media (min-width: 540px ) {
		grid-area: 6 / 2 / 7 / 5;
	}
}

.caseGrid .content-section-six {
	grid-area: 8 / 2 / 9 / 5;

	@media (min-width: 540px ) {
		grid-area: 7 / 4 / 8 / 5;
	}
}

.caseGrid .content-section-seven {
	grid-area: 9 / 2 / 10 / 5;

	@media (min-width: 540px ) {
		grid-area: 8 / 2 / 9 / 3;
	}
}

.caseGrid .content-section-wide-three {
	height: fit-content;
	align-self: end;
	grid-area: 10 / 2 / 11 / 5;

	@media (min-width: 540px ) {
		grid-area: 9 / 2 / 10 / 5;
	}
}

.contentItem {
	/* padding: 0 10%; */
}

.contentItem .leftColumn {
	width: 100%;
	margin-right: 0;

	@media (min-width: 540px ) {
		width: 40%;
		margin-right: 10%;
	}
}

.contentItem .rightColumn {
	margin-top: 50vh;
	width: 100%;

	@media (min-width: 540px ) {
		width: 35%;
		margin-left: 10%;
	}

}

.contentItem h1 {
	display: none;
}

.contentItem .intro .headline.lined h1 {
	display: block !important;
}

.u-flexItem {
	/* border: 1px solid rgba(255,255,255,0.1); */
	z-index: 1;
}

.lined {
	padding: 28px 0 0 19px;
	background-image: url("../imgs/lined.svg");
	background-repeat: no-repeat;

	& div {
		margin-top: -16px;

		@media (min-width: 540px ) {
			margin-top: -19px;
		}
	}
}

.lined.publishDate {
	padding: 8px 0 0 21px;
}

.lined.metaDescription div, .lined.metaURL div {
	margin-top: -2.1rem;
}

.facts {
	margin: 40px 0 40px 0;
}

.facts li {
	padding-bottom: 20px;
	margin-bottom: 20px;
}

.facts span {
	text-transform: uppercase; 
	font-size: 8px;
	letter-spacing: 3px;
	transform: rotate(90deg);
	display: block;
	transform-origin: 0% 0%;
	/* color: #C3BC93; */
	color: #817d66;
	opacity: 1;
}

.facts .metaImage {
	max-width: 100px;
	max-height: 50px;
	width: auto;
	height: auto;
}

.facts .metaDescription {
    margin-bottom: 20px;
}

.facts .metaURL {
	/* background-color: rgba(255, 255, 255, 0.1);
	padding: 10px 20px;
    display: inline-block */
}

/******** END CASE GRID/PAGE ********/


/****************************
	TYPOGRAPHY
*****************************/

h1 {
	font-family: 'Svedala', serif;
}

h1 {
	/* font-size: 4rem; */
	font-weight: 100;
	line-height: 0.5;
	margin-left: 0%;
	width: 100%;
	color: #C3BC93;
	text-shadow: 0px 0px 15px rgba(24, 37, 43, 0.596);
	
	@media (min-width: 540px) {
		font-size: 8rem;
	}
}

h2 {
	font-size: 1.4rem;
	line-height: 1;
	font-weight: 900;
	margin: 1.5rem 0 0.5rem 0;
	color: #C3BC93;
}

h2.large {
	font-family: "Svedala";
	font-weight: 400;
	font-size: 3.5rem;
	line-height: 0.7;
}

h3 {
	font-size: 1.2rem;
	line-height: 1;
	font-weight: 700;
	margin: 1.5rem 0 0.5rem 0;
	color: #C3BC93;
}

h4 {
	font-size: 1rem;
	line-height: 1;
	font-weight: 700;
	margin: 1.5rem 0 0.5rem 0;
	color: inherit;
}

.smallCaps {
	font-size: 11px;
	letter-spacing: 2px;
	font-weight: 400;
	text-transform: uppercase;
}

main hr {
	border: none;
	border-bottom: 1px dashed rgba(195,188,147,0.5);
	margin: 50px 0 !important;
}

/*********************
*      IMAGES
**********************/

img.micro {
	width: 135px;
	margin-right: 30px;
	display: inline-block;
}

img.small {
	width: 50%;
}

/**************************************
	  G R I D   N A R R O W
***************************************/

.grid-narrow article hr {
	display: none;
}

.grid-narrow article dl {
	width: 25%;
	margin-right: 9%;
	display: inline-block;
	vertical-align: top;
	margin-bottom: 50px;
}

.grid-narrow article dl:nth-of-type(3n) {
	margin-right: 0;
}

.grid-narrow article .pos + em, .grid-narrow .neg + em {
	text-indent: 15px;
	display: block;
}

/********** E N D  G R I D N A R R O W **********/ 


/**************************************
	  G R I D   N A R R O W
*************************************

.grid-narrow article dl {
	width: 30%;
	float: left;
	margin-right: 5%;
}

.grid-narrow article dl:nth-of-type(3n) {
	margin-right: 0;
}

.grid-narrow article .pos + em, .grid-narrow .neg + em {
	text-indent: 15px;
	display: block;
}

/********** E N D  G R I D N A R R O W **********/ 


/**************************************
	  S M A L L   L I S T 
***************************************/


.small-list {
	& article {
		& dt {
			font-size: 14px;
			
			& h2 {
				margin-bottom: 0;
			}
		}

		& dd {
			/* font-style: italic; */
			margin-bottom: 20px;
			font-size: 12px;
			line-height: 19px;

			& p {
				border-bottom: 1px dotted #ececec;
				margin-bottom: 2px;
				padding-bottom: 2px;
			}
		}
	}
}


/********** E N D  S M A L L   L I S T  ************/

hr {
	background-color: transparent;
	border: none;
	border-bottom: 1px solid rgba(255,255,255,0.2);
	margin: 100px 0 80px 0;
}

dt {
	font-weight: 700;
	line-height: 100%;
	margin-bottom: 10px;

	& em, 
	& cite {
		font-weight: 700;
	}
}

dd {
	/* font-style: italic; */
	margin-bottom: 20px;

	& p + p {
		text-indent: 0;
	}
}


/*********************
 *		COLOR THEMES
**********************/

body.static, .category {
	svg.footerLogo {
  		/* fill: #C3BC93; Beige/yellow */
  		fill: white;
	}
}

/****** DARK *******/

body.dark {
	background-color: #18252B;
	color: #82a6ac;

	.date {
		color: #82a6ac;
	}

	svg.footerLogo {
  		fill: white;
	}

	code, pre {
   	background-color: rgba(255, 255, 255, 0.1);
	}

}

body.dark main article a {
	background-image: linear-gradient(to top,
		rgba(255,255,255,0) 11%,
		rgba(255,255,255,.4) 5%,
		rgba(255,255,255,.4) 10%,
		rgba(255,255,255,0) 16%
	);
	padding: 0 5px;
}

body.dark main article a:hover {
	color: #c2eae5;
	background-image: linear-gradient(to top,
	rgba(130, 166, 172, 0.4) 11%,
	rgba(130, 166, 172, 0.4) 11%,
	rgba(130, 166, 172, 0.4) 16%,
	rgba(130, 166, 172, 0.4) 16%
		
	);
}


/***** JAPANDI GREEN *****/

body.japandi-green {
	background-color: #d0d7cc;
	color: #7d7359;

	svg.footerLogo {
  		fill: #829683;
	}
}

body.japandi-green main h1, body.japandi-green main h2 {
	color: #968a82
	text-shadow: none;
}

body.japandi-green main h3 {
	color: #a49a96;
	text-shadow: none;
}

/***** JAPANDI BROWN *****/

body.japandi-brown {
	background-color: #d0d7cc;
	color: #7d7359;

	svg.footerLogo {
  		fill: #829683;
	}
}

body.japandi-brown main h1, body.japandi-brown main h2 {
	color: #968a82
	text-shadow: none;
}

body.japandi-brown main h3 {
	color: #a49a96;
	text-shadow: none;
}



/****** BRIGHT *******/

body.bright {
	background-color: #f1f1e9;
	color: #262d34;

	.date {
		color: #262d34;
	}

	svg.footerLogo {
  		fill: rgb(67, 91, 103);
	}

	code, pre {
		background-color: rgba(255,255,255,0.6);
	}
}

body.bright main article a {
	/* background-image: linear-gradient(to top,
		rgba(0,0,0,0) 11%,
		rgba(0,0,0,.4) 5%,
		rgba(0,0,0,.4) 10%,
		rgba(0,0,0,0) 16%
	); */
	padding: 0;
}

body.bright main article a:hover {
	color: #41586e;
	/* background-image: linear-gradient(to top,
		rgba(65,88,110,.4) 11%,
		rgba(65,88,110,.4) 11%,
		rgba(65,88,110,.4) 16%,
		rgba(65,88,110,.4) 16%
	); */
}

body.bright main h1, body.bright main h2, body.bright main h3 {
	color: #435b67;
	text-shadow: none;
}

h1 span:nth-child(even) {
  opacity: 0.8;
  /* color: #161f24; */
  /* background: #000; */
  padding-left: 2rem;
  /* text-indent: -4rem; */
}


/****** WHITE *******/

body.white {
	background-color: #fff;
	color: #262d34;

	.date {
		color: #262d34;
	}

	svg.footerLogo {
  		fill: rgb(67, 91, 103);
	}

	code, pre {
		background-color: rgba(255,255,255,0.6);
	}

}

body.white main article a {
	background-image: linear-gradient(to top,
		rgba(0,0,0,0) 11%,
		rgba(0,0,0,.4) 5%,
		rgba(0,0,0,.4) 10%,
		rgba(0,0,0,0) 16%
	);
}

body.white main article a:hover {
	color: #000;
	background-image: linear-gradient(to top,
		rgba(0,0,0,0) 11%,
		rgba(0,0,0,1) 11%,
		rgba(0,0,0,1) 16%,
		rgba(0,0,0,0) 16%
	);
}

body.white main h1, body.white main h2, body.white main h3 {
	color: #435b67;
	text-shadow: none;
}

/******* BLACK ******/

body.black {
	background-color: #161718;
	color: #82a6ac;

	& svg.footerLogo {
  		fill: white;
	}

	& code,
	& pre {
   	background-color: rgba(255, 255, 255, 0.1);
	}

	& main {
		& article {
			& a {
				/* background-image: linear-gradient(to top,
						rgba(255,255,255,0) 11%,
						rgba(255,255,255,.4) 5%,
						rgba(255,255,255,.4) 10%,
						rgba(255,255,255,0) 16%
				); */
				padding: 0 3px;
				text-decoration: none;
			}

			& a:hover {
				color: #c2eae5;
				background-image: linear-gradient(to top,
					rgba(130, 166, 172, 0.4) 11%,
					rgba(130, 166, 172, 0.4) 11%,
					rgba(130, 166, 172, 0.4) 16%,
					rgba(130, 166, 172, 0.4) 16%
				);
				border-bottom: none;
			}
		}
	}
}

/****** ILLUSTRATED BEIGE *******/

body.illustrated.beige {

	background-color: #fbf6ef;
	color: #262d34;

	.date {
		color: #262d34;
	}

	svg.footerLogo {
  		fill: rgb(67, 91, 103);
	}

	code, pre {
		background-color: transparent;
		font-family: monospace;
		font-size: 0.7rem;
		padding: 0;
		line-height: 1.5;
	}
	
	blockquote {
		/* color: #262d34; */
		color: #959977;
		font-family: "Svedala";
		font-style: normal;
		font-size: 150%;
		line-height: 30px;
		padding: 40px 0px 20px 35px;
		
		@media (min-width: 480px) {
			font-size: 240%;
			padding: 40px 30px 20px 55px;
			line-height: 55px;
		}
		
		&:before {
			color: #959977;
		}
	}
	
	main h1 {
		color: #435b67;
		text-shadow: 0px 0px 3px #fbf6ef, 0px 0px 10px rgba(251, 246, 239, 0.372);
		/* -webkit-text-stroke: 1px #fbf6ef;
		text-shadow: none; */
	}
	
	main h2,
	main h3 {
		color: #435b67;
	}
	
	main article a {
		background-image: linear-gradient(to top,
			rgba(0,0,0,0) 11%,
			rgba(0,0,0,.4) 5%,
			rgba(0,0,0,.4) 10%,
			rgba(0,0,0,0) 16%
		);
	}
	
	main article a:hover {
		color: #000;
		background-image: linear-gradient(to top,
			rgba(0,0,0,0) 11%,
			rgba(0,0,0,1) 11%,
			rgba(0,0,0,1) 16%,
			rgba(0,0,0,0) 16%
		);
	}
	
	article {
		ul {
			margin: 10px 0 10px 0;
			margin-left: 20px;
			li {
				list-style: url("https://www.nofont.com/users/journal/content/templates/nofont_twentyfive_theme/imgs/bullet.svg") !important;
				
				&:marker {
					text-align: end;
				}
			}
		}
	}

}


/*************** END COLOR THEMES ****************/

/**************************************
	  W I D E S C R E E N  P A G E S
***************************************/

/*
.widescreen.image-grid .grid-image.wide, .widescreen.image-grid .grid-image.superwide {
  margin-left: 0;
  margin-right: 0;
  width: 100%;
  max-width: 100%;
  margin-top: 0;
}
*/

.grid-image.two-col {
  /* width: 49.5%; */
  width: 48.3%;
  margin-right: 1%;
  /* float: left; */
  display: inline-block;
  
  @media (min-width: 540px) {
  	width: 49.1%;
  }
  
}

/* Since images with captions gets wrapped in a .caption-image div, the widths for the 2-col and 3-col classes needs to be moved from the image to the wrapping .caption-image */

.captions-image:has(img.two-col) {
	width: 48.3%;
	margin-right: 1%;
	display: inline-block;

	@media (min-width: 540px) {
  		width: 49.1%;
	}
}

.captions-image:has(img.three-col) {
	width: 32.39%;
	margin-right: 1%;
	display: inline-block;

	@media (min-width: 540px) {
  		width: 32.39%;
	}
}

.captions-image:has(img.two-col.last),
.captions-image:has(img.three-col.last) {
	margin-right: 0% !important;
}

/* Below is needed for the two- and three-column images to fill out the width of the captions-image wrappers */

.captions-image:has(img.two-col) img.grid-image.two-col,
.captions-image:has(img.three-col) img.grid-image.three-col {
	width: 100% !important;
	margin-top: 0;
	margin-right: 0;
	margin-bottom: 0;

	@media (min-width: 540px) {
  		width: 100% !important;
	}
}

.grid-image.three-col {
	/* width: 32.3%; */
	width: 32.39%;
	margin-right: 1%;
 	margin-top: 5%;
	/* float: left; */
	display: inline-block;
}

.grid-image {
	margin-bottom: 1%;
}

.grid-image.top {
  margin-top: 20px;
}

.widescreen.image-grid .grid-image.last,
.widescreen.image-grid .grid-image.two-col.last,
.widescreen.image-grid .grid-image.three-col.last {
	margin-right: 0 !important;
}

.widescreen.image-grid .grid-image.final,
.widescreen.image-grid .grid-image.two-col.final,
.widescreen.image-grid .grid-image.three-col.final {
	margin-right: 0 !important;
	display: block;
}


.widescreen.image-grid .wide {
  margin-left: -40%;
  margin-right: -40%;
  width: 180%;
  max-width: 180%;
}

.widescreen.image-grid .wide.fill-left {
	margin-left: 0;
	margin-right: 0;
	width: 100%;
	max-width: 100%;

	@media (min-width: 540px ) {
		margin-left: -130%;
		margin-right: 0;
		width: 230%;
		max-width: 230%;
   }
}

.widescreen.image-grid .wide.fill-right {
   margin-right: 0;
   margin-left: 0;
   width: 100%;
   max-width: 100%;

   @media (min-width: 540px ) {
		margin-right: 0;
   	margin-left: 0;
   	width: 200%;
   	max-width: 200%;
	}
}

.two-col.wide {
  width: 89.1% !important;
}

.two-col.wide.last {
  margin-left: 0;
  margin-right: -40% !important;
  width: 89.1% !important;
  /* max-width: 180%; */
  /* padding-top: 100% !important; */
}

.widescreen.image-grid .superwide {
  margin-left: -50%;
  margin-right: -50%;
  width: 200%;
  max-width: 200%;
}


/******* NEW GRID

:root {
	--gap: 1.25%;
}

.widescreen.image-grid p:has(img.wide) {
  margin-left: -40%;
  margin-right: -40%;
  width: 180%;
  max-width: 180%;
}
	
		
p:has(img) {
	margin-top: 1.26em;
	display: flex;
	flex-wrap: wrap;
	gap: var(--gap);
	margin: 0;
	padding: 0;
}

.grid-image {
	margin-bottom: var(--gap);
	width: 100%;
	padding: 0;
	display: inline-block;
	
	&.top {
		margin-top: 20px;
	}
	
	&.two-col {
		//width: calc( (1/2) - (var(--gap)/2) )% !important;
		width: calc(50% - var(--gap) / 2);
		flex-shrink: 0;
	}
	
	&.three-col {
		//width: calc( (1/3) - (var(--gap)/3) )% !important;
		width: calc(33.333% - var(--gap) * 2 / 3);
		flex-shrink: 0;
	}
}

*************/


/******* END GRID IMAGES *********/


/******** TYPEFACE LISTS DL *******/

h2 + dl {
	margin-top: 20px;
}

/******** END TYPEFACE LISTS DL *******/


/*******************
	BASIC LAYOUT 
********************/

.post .bodycopy {

	max-width: 80%;
	margin: 0 auto;

	@media (min-width: 540px ) {
		max-width: 510px;
		margin: 0 auto;
	}
	
}

.preamble {
	font-size: 1.3rem;
	font-weight: 400;
	line-height: 1.5;
	margin-top: 12%;
	
	@media (min-width: 540px ) {
		font-size: 1.6rem;
	}
}

ol {
	list-style: decimal;
	counter-reset: li;
	margin-bottom: 20px;
}

ol > li {
	padding: 5px 0;
}

ol > li:before {
	content: counter(li) "";
	counter-increment: li;
	box-sizing: border-box;
	margin-right: 10px;
	font-weight: bold;
	/* background: rgba(255,255,255,0.2); */
	background-color: #aeb37f;
	color: #18252B;
	padding: 4px 8px;
	border-radius: 16px;
	font-family: sans-serif;
	font-size: 70%;
	display: inline;
}

ol > li p {
	display: inline;
}

.category-description {
	margin-bottom: 25%;
	width: 100%;

	@media (min-width: 540px ) {
		margin-bottom: 5%;
		width: 60%;
	}
}

blockquote {
	font-size-adjust: 0.48;
	font-weight: 400;
	font-style: italic;
	font-size: 155%;
	line-height: 35px;
	color: #aeb37f;
	border-top: 1px dashed #ccc;
	/* border-bottom: 1px dotted #ccc; */
	text-align: left;
	margin: 10% 0 10% 0;
	width: inherit;
	padding: 40px 30px 20px 55px;
}

body.behind-the-case blockquote {
	margin: 3% 0 5% 0;
	width: 100%;
	border-top: none;
	padding: 20px 30px 15px 55px;
}

body.journal blockquote {
	width: 100%;
	border-top: none;
	margin: 0 auto;
	padding: 40px 0px 20px 15px;

	@media (min-width: 540px ) {
		width: 70%;
	}
}

blockquote p {
	margin-bottom: 0;
	text-align: left;
	width: 100% !important;
}

blockquote:before {
	content: "” ";
	float: left;
	font-size: 60px;
	margin: 2px 0 0 -35px;
	padding-right: 5px;
	font-family: 'Svedala', serif;
	color: #DBDBCF;
}

blockquote num {
	font-family: inherit;
}

blockquote cite {
	font-size: 0.7rem;
	margin-top: 20px;
	line-height: 1;
	text-align: right;
	display: block;
}

blockquote cite:before {
	content: "– ";
}

.uppercase code, .uppercase code abbr {
	text-transform: uppercase;
	font-family: Courier, 'Lucida Sans Typewriter', 'Lucida Typewriter', monospace;
}

span.pos, span.neg {
	color: #fff;
	border-radius: 100%;
	font-size: 7px;
	margin-right: 3px;
	vertical-align: bottom;
}

span.pos {
	background-color: #638A97;
	padding: 5px 5px 5px 6px;
}

span.neg {
	background-color: rgb(196, 97, 97);
	padding: 5px 5px 5px 6px;
	font-weight: 900;
}

/*********************************

RESETTING TYPEPLATE and MARKDOWN

**********************************/

.no-indent {
	text-indent: 0;
	margin-top: 0; /* This is needed so that the no-indent-paragraph doensent gets pushed up 'dikt an' to the element above */
}

body {
	word-break: none;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

article p {
	/* width: 70%; */
	margin: 0;
}

article hr {
	width: 100%;
	margin: 0 auto;

	@media (min-width: 540px ) {
		width: 70%;
	}
}

article p + p img {
	margin-left: -1.5em;
}

article p + p img + img {
	margin-left: 0;
}

article p + p img + img + img {
	margin-left: 0;
}

article p.img img.inline { /* Needed since the floated image and the text floating will not align vertically otherwise */
	margin: 0 0 1.26em 0;
}

video {
  width: 100%    !important;
  height: auto   !important;
}

.sixteen-nine-video {
	aspect-ratio: 16 / 9;
}

.videoWrapperWidescreen {
	position: relative;
	padding-bottom: 39.25%; /* ?:? */
	padding-top: 25px;
	height: 0;
}

.videoWrapper {
	position: relative;
	padding-bottom: 54.6%; /* 16:9 */
	margin: 40px auto;
	height: 0;
}

.videoWrapper.vertical {
	position: relative;
	padding-bottom: 100%; /* 9:16 */
	height: 0;
	width: 80%;
}

.videoWrapper iframe, .videoWrapperWidescreen iframe {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
}


/* Fixes Vimeo embeds on smartphone */
#gotland {

	div.wide.fill-left:has(iframe) {
		/* border: 1px solid rgba(255,255,255,0.1); */
		padding: 58% 0 0 0 !important;
		position: relative;
		aspect-ratio: 16 / 9 !important;
		width: 127% !important;
		max-width: 127% !important;
		margin-left: -13% !important;
		display: inline-block;

		@media (min-width: 540px) {
			margin-left: -130% !important;
   		margin-right: 0;
   		width: 230% !important;
   		max-width: 230% !important;
		}
	}

	div.wide.fill-left:has(iframe) iframe {
		position: absolute;
		top: 0;
		left: 0;
		width: 126%;
		height: 127%;
		aspect-ratio: 16 / 9;

		@media (min-width: 540px) {
			width: 100% !important;
			max-width: 100% !important;
		}
	}

	.captions-image:has(img.two-col) {
		width: 100%;
		margin-right: 0%;
		display: block;

		@media (min-width: 540px) {
	  		width: 49.1%;
	  		margin-right: 1%;
			display: inline-block;
		}
	}

	.captions-image:has(img.three-col) {
		width: 100%;
		margin-right: 0%;
		display: block;

		@media (min-width: 540px) {
	  		width: 32.39%;
	  		margin-right: 1%;
			display: inline-block;
		}
	}

	.wide.fill-left.captions > p:has(img) {
		@media (min-width: 540px) {
			margin-bottom: 0.3% !important;
		}
	}

} /* End Gotland fixes */




p + p.wrapps-inline-image {
	margin-top: 1.26em;
}



p:has(img) + p { /* <p> after image */
 	text-indent: 0;
 	margin-top: 1.26em;
}

p:has(img) {
	/* border-top: 1px solid red;
	border-bottom: 1px solid red; */
	margin-top: 1.26em;
}

p + p:has(img) {
	/* border-top: 3px dashed green; */
	margin-top: 1.26em;
}

article img.inline {
	margin-top: 5px;
	float: left;
	margin-left: 0;
}

abbr, cite {
	font-family: "Alegreya Sans SC", sans-serif;
	font-weight: inherit;
	font-variant: inherit;
	text-transform: lowercase;
	letter-spacing: 0.1em;
	color: inherit;
	margin-right: -0.05em;
}

code, pre {
	white-space: pre;
   font-family: monospace;
   font-size: 0.8rem;
	padding: 1%;
}

pre {
	margin-top: 2rem;
}

h1 abbr, h2 abbr, h3 abbr {
	font-family: inherit;
	font-weight: inherit;
	font-variant: inherit;
	text-transform: uppercase;
	letter-spacing: 0;
	color: inherit;
	margin-right: 0;
}

cite {
	margin-left: 2px;
}

dd p {
	margin-bottom: 0;
}

dd p + p {
	margin-top: 0;
}

h1 {
	word-break: auto-phrase;
	word-wrap: normal;
}

/*------- END RESETTING -------*/

/*********************************
 * 	C A T E G O R Y  P A G E 	*
**********************************/

nav .category-list {
	display: flex;
	flex-wrap: wrap;
}

/* 3 col version
nav .category-post-list {
	position: relative; To let the headline be positioned absolute 
	min-height: 25vh;
	margin-bottom: 5%;
}

nav .excerpt {
	position: absolute;
	z-index: 1;
	bottom: 0px;
	padding: 0 10% 20% 10%;
} */

nav .category-post-list {
	position: relative;
	min-height: auto;
	margin-bottom: 5px;
}

p.caseLogo {
	margin: 0;
}

p.caseLogo:has(img) {
	/* border-top: 1px solid red;
	border-bottom: 1px solid red; */
	margin-top: 1.26em;
	margin-bottom: 0.4rem;
}

body.category {
	padding: 20% 10% 10% 10%;

	@media (min-width: 540px ) {
		padding: 10%;
	}
}

body.category h1 {
	transform: rotate(90deg);
	transform-origin: 28px 39px;
	text-shadow: none;
	/* color: #18252B; */
	/* opacity: 0.4; */
	position: fixed;
	top: -13px;
	left: -2rem;
	mix-blend-mode: normal;
	z-index: 1000;
	font-size: 200px;
}

body.category h2 {
	text-align: left;
	font-family: 'Svedala';
	font-size: 3.2rem;
	font-weight: 400;
	line-height: 0.7;
	margin: 0.5rem 0 0.7rem 0;

	@media (min-width: 900px ) {
		font-size: 5.2rem;
	}
}

body.category img.featured {
	mix-blend-mode: overlay;
	display: none;
}

body.category .excerpt {
	position: relative;
	z-index: 1;
	bottom: 0px;
	padding: 0;
}

body.category ul {
	width: 100%;
}

body.category .metaImage {
	max-width: 70px;
	max-height: 30px;
	width: auto;
	height: auto;

	@media (min-width: 900px ) {
	max-width: 100px;
	max-height: 40px;
	width: auto;
	height: auto;
	}

}

.date {
	font-family: "Alegreya Sans SC", sans-serif;
	font-size: 0.5rem;
	color: white;
	opacity: 1;
	font-weight: 700;
	text-transform: lowercase;
	letter-spacing: 1px;
}

body.category.date {
	border-bottom: 1px solid rgba(255,255,255,0.1);
	padding-bottom: 35px;
}

body.category .featured {
	margin-top: -13px;
}

/* Add margin after first post listing */

body.category .category-list ul:first-child {
   margin-bottom: 25px;
}

/* Make every menu item except the last smaller */


body.category .category-post-list:not(:first-child) h2 {
    font-size: 2rem !important;  
}

body.category .category-post-list:not(:first-child) .date {
    padding-bottom: 15px;
}

/*********************
 * 	S T A T I C 	*
**********************/

body.static {
	margin-top: 30%;

	@media (min-width: 540px ) {
		margin-top: 15%;
	}
}

body.static h1 {
	font-size: 5hw;
	margin-bottom: 40px;
	display: block;
	line-height: 0.5;
}

body.static h3 {
	margin: 30px 0 20px 0;
}

body.static .preamble {
	margin: 0 0 40px 0;
	z-index: 2;
	position: relative;
	width: 100%;
	margin-left: 0;
	
	@media (min-width: 540px ) {
		margin: 5% 0 5% 0;
		width: 75%;
	}
}



/*********************
 * 	F O O T E R   	*
**********************/

footer {
	padding-top: 30px;
	width: 80%;
	max-width: 320px;
	margin: 5% 0 0 10%;
	font-size: 0.8rem;
	padding-bottom: 10%;

	@media (min-width: 1400px ) {
		width: 80% !important!;
		margin: 5% 0 0 20%;
	}
}

body.behind-the-case footer {
	margin: 5% 0 0 10%;
}

.category footer {
	margin: 5% 0 0 0;
}

footer .left {

}

footer .middle {
	
}

footer .right {
	
}

footer .left, footer .middle, footer .right {
	margin: 0;
	padding: 0;
	padding-top: 5%;
}

footer ul {
	width: 100%;
}

footer h3 {
	margin: 10px 0 10px 0 !important;
	font-size: 0.8rem;
}

.footerLogo {
	width: 30px;
}






/*****************************
 *  N A V I G A T I O N 	*
*****************************/

.icon.social {
	display: inline-block;
	width: 15px;
	height: auto;
	margin-right: 5px;
	vertical-align: text-bottom;
}

.icon.social.soundcloud {
	width: 20px;
	height: auto;
	margin-bottom: -4px;
}

.icon.social.colophon {
	width: 21px;
	height: auto;
	margin-bottom: 0;
}

nav {
	padding-top: 30%;

	@media (min-width: 700px ) {
		padding-top: 8%;
	}
}

nav .navInfo {
	margin: 30px 0 10px;
	text-transform: uppercase;
	letter-spacing: 3px;
	font-size: 10px;
	width: 80%;
	line-height: 1.5;

	@media (min-width: 540px ) {
		width: 70%;
	}

}

nav .navInfo i {
	display: block;
	text-transform: none;
	letter-spacing: normal;
	font-weight: 700;
	font-size: 1rem;
	margin-top: 5px;
}

nav .post-list {
	display: none;
}

nav .category-list {
	/* flex-direction: column; */
	flex-direction: column-reverse;
}

nav li.draft, nav li.typefaces, nav li.typography, nav li.asides, nav li.behind-draft {
	display: none;
}

nav h3 {
	font-family: 'Svedala';
	font-size: 3rem;
	line-height: 0.75;
	margin-top: 1rem;
	font-weight: 400;
	/* color: #96967d; Less saturated */
	color: #C3BC93;

	@media (min-width: 540px ) {
		font-size: 4rem;
		line-height: 0.85;
		margin-top: 1.5rem;
	}

	@media (min-width: 900px ) {
		font-size: 6rem;
	}
}

nav .secondary {
	width: 100%;
}

nav .secondary .static-list {
	display: flex;
	flex-direction: row;
	width: auto;
}

nav .secondary .static-title, nav .secondary .social li {
	width: auto;
	margin: 0 2vw 3% 0;
}

@media (max-width: 540px) {
	nav .secondary .social span {
		display: none;
	}
}

nav .secondary .static-title a {
	display: flex;
	margin: 3px 0 0 0;
}

nav a {
  margin: 0.5em 0;
  font-size: 0.8em;
  color: #d5d5d5;
  border-bottom: none;
  transform: translateX(100%);
  transition: color 0.15s, transform 0.5s;
  transition-timing-function: cubic-bezier(0.19, 1, 0.22, 1);
}
nav ul {
	margin: 0;
}
@media (min-width: 900px) {
  nav a {
    /* padding: 0.2em 2em 0.2em 6rem; */
  }
}
/*
nav a:nth-child(1) {
  transition-delay: 0s, 100ms;
}
nav a:nth-child(2) {
  transition-delay: 0s, 150ms;
}
nav a:nth-child(3) {
  transition-delay: 0s, 200ms;
}
nav a:nth-child(4) {
  transition-delay: 0s, 250ms;
}
nav a:nth-child(5) {
  transition-delay: 0s, 300ms;
}
nav a:nth-child(6) {
  transition-delay: 0s, 350ms;
}
nav a:nth-child(7) {
  transition-delay: 0s, 400ms;
}
nav a:nth-child(8) {
  transition-delay: 0s, 450ms;
}
nav a:nth-child(9) {
  transition-delay: 0s, 500ms;
}
nav a:nth-child(10) {
  transition-delay: 0s, 550ms;
}
nav a:hover, nav a:focus {
  color: #d5d5d5;
  border-bottom: none;
  text-decoration: none;
}
*/

/*
nav span, nav hr {
  margin-left: 2rem;
  @media (min-width: 900px) {
    margin-left: 6rem;
	}
}
*/
nav .sc {
  font-size: 0.8 !important;
  font-size: 10px;
  font-weight: 700;
  margin-bottom: 1rem;
}
nav hr {
  width: 80%;
	margin: 6% 0;
	opacity: 0.1;

	@media (min-width: 540px) {
    margin: 3% 0;
	}
}

/* -------------------------------------------------------
     N A V I G A T I O N   F U N C T I O N A L I T Y
*/

input {
  position: fixed;
  opacity: 0;
}

label {
  position: absolute;
  margin: 0;
  padding: 0;
  border: none;
  outline: none;
  background: none;
  /* cursor: url("../../imgs/cursor_arrow.svg") 0 0, pointer; */
}
label::before {
  position: fixed;
  z-index: 10;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  content: "";
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.75s cubic-bezier(0.19, 1, 0.22, 1);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
}
label .burger {
  position: fixed;
  mix-blend-mode: difference;
  opacity: 0.5;
  top: 45px;
  right: 40px;
  z-index: 30;
  width: 1.2em;
  height: 1.2em;
  margin: 0;
  padding: 0;
  transition: opacity 0.5s cubic-bezier(0.19, 1, 0.22, 1);
  @media (min-width: 540px ) {
		top: 25px;
	}
}
@media (min-width: 901px) {
  label .burger {
    top: 40px;
    right: 40px;
    width: 1.5em;
    height: 1.5em;
  }
}
label .burger::before,
label .burger .bar, label .burger::after {
  position: absolute;
  left: 0;
  display: block;
  width: 100%;
  height: 12%;
  background: #fff;
  content: "";
  transition: all 0.5s cubic-bezier(0.19, 1, 0.22, 1);
}
label .burger .bar {
  top: 44%;
}
label .burger .bar .text {
  position: fixed;
  top: 2em;
  left: 4em;
}
label .burger::before {
  top: 0;
  transform-origin: top right;
}
label .burger::after {
  bottom: 0;
  transform-origin: bottom right;
}

input:focus + label .burger,
label:hover .burger {
  opacity: 0.75;
}

nav {
  width: 100%;
  padding-left: 10%;
  position: fixed;
  color: #d5d5d5 !important;
  top: 0;
  right: 0;
  bottom: 0;
  z-index: 20;
  display: flex;
  flex-flow: column nowrap;
  justify-content: auto;
  align-items: flex-start;
  transform: translate3d(0, 0, 0); /* material acceleration */
  transform: translateX(100%);
  will-change: transform;
  transition: transform 0.5s cubic-bezier(0.19, 1, 0.22, 1);
  /* padding-top: 33vmin; */

  @media (min-width: 540px ) {
		width: 80%;
		padding-left: 21%;
	}
}

nav::before {
	position: absolute;
	top: 0;
	bottom: 0;
	right: 0;
	z-index: -1;
	width: 100%;
	/* min-width: 25em; */
	/* background: #2c434b; */
	background: #121a1f;
	content: "";
	transform-origin: bottom right;
	will-change: transform;
	transition: transform 0.5s cubic-bezier(0.19, 1, 0.22, 1);
	/* transform: skewX(0deg) skewY(-7deg) translateX(100%); */
	
	@media (min-width: 540px ) {
		width: 95%;
		/* transform: skewX(-8deg) skewY(0) translateX(100%); */
	}
	/*
	@media (min-width: 1500px) {
    width: 80%;
    transform: skewX(-8deg) translateX(100%);
		border-left: 1px solid #d5d5d5;
		border-top: none;
	}
	*/
}


main .content {
  transform: translate3d(0, 0, 0); /* material acceleration */
  will-change: transform, filter;
  transition: all 0.5s cubic-bezier(0.19, 1, 0.22, 1);
}

/*
[id="navcheck"]:not(:checked) {
	label .burger .bar {
		background-color: red !important;
		top: 74% !important;	
	}
}
*/
[id=navcheck]:checked + label::before {
  opacity: 1;
  pointer-events: auto;
}
[id=navcheck]:checked + label .burger::before, [id=navcheck]:checked + label .burger::after {
  width: 141.42%;
  margin-left: -8px;
}
[id=navcheck]:checked + label .burger::before {
  transform: rotate(-45deg) translateY(-50%);
  background-color: #d5d5d5 !important;
}
[id=navcheck]:checked + label .burger::after {
  transform: rotate(45deg) translateY(50%);
  background-color: #d5d5d5 !important;
}
[id=navcheck]:checked + label .burger .bar {
  transform: scale(0.1);
}
[id=navcheck]:checked ~ nav {
  transform: translateX(0);
}
[id=navcheck]:checked ~ nav::before {
	transform: skewX(0deg) skewY(-8deg) translateX(0);
	border-top: 1px solid white;
	border-left: none;
  /* transform: skewX(-8deg) translateX(0); */
}

@media (min-width: 540px ) {
	[id=navcheck]:checked ~ nav::before {
		transform: skewX(-8deg) skewY(0deg) translateX(0);
		border-top: none;
		border-left: 1px solid #d5d5d5;
	}
}

[id=navcheck]:checked ~ nav a {
  transform: translateX(0);
}
[id=navcheck]:checked ~ main .content {
  transform: translateX(3em);
  transform-origin: left center;
  filter: blur(2px);
}

/* helper */
.visuallyhidden {
  border: 0;
  clip: rect(0 0 0 0);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  width: 1px;
}


