/*
	Theme Name: Sonja
	Theme URI: https://sonjathomsen
	Version: 1.0.0
	Author: Modem Studio (@modem.studio)
	Author URI: https://modem.studio
*/

/*------------------------------------*\
    MAIN
\*------------------------------------*/

/* global box-sizing */
*,
*:after,
*:before {
	-moz-box-sizing:border-box;
	box-sizing:border-box;
	-webkit-font-smoothing:antialiased;
	font-smoothing:antialiased;
	text-rendering:optimizeLegibility;
}
/* green #b2c6c1 */
:root {
  --background: #eeeeee;
  --lightgray: lightgray;
  --yellow: #FFF9C1;
  --text: #000000;
  --lila: #ead5ff;
  --green: #aafcd4;
}
/* html element 62.5% font-size for REM use */
html {
	font-size:62.5%;
	background-color: var(--background);
	color: var(--text);
}
body {
	font-weight: 400;
	font-size: 18px;
	font-family: 'Authentic', sans-serif;
}
/* clear */
.clear:before,
.clear:after {
    content:' ';
    display:table;
}

.clear:after {
    clear:both;
}
.clear {
    *zoom:1;
}
em{
	font-style: italic;
}
img {
	max-width:100%;
	max-height: 100%;
	height: auto;
	vertical-align: middle;
	background-color: darkgray;
	border: none;
}
video:focus { 
	outline:none; 
}

a {
	color: var(--text);
	text-decoration: underline;
}

a:focus {
	outline:0;
}
a:hover,
a:active {
	outline:0;
	text-decoration: line-through;
}
input:focus {
	outline:0;
	border:1px solid var(--text);
}
.clear{
	clear: both;
}
h1, h2, h3{
	font-weight: normal;
	margin-top: 0;
	margin-bottom: 0;
	font-family: 'Inter', sans-serif;
	font-size: 18px;
}
h1 a, a h1
h2 a, a h2{
	text-decoration: none;
}
h2:before{
	content: '\2022';
	margin-right: 4px;
}
p{
	margin-top: 0;
}
figcaption,
.small-type{
	font-size: 16px;
}
.big-type{
	font-size: 1.6em;
}
.margin-bottom-20{
	margin-bottom: 20px;
}
.column-1{
	flex: 1;
}
.column-2{
	flex: 2;
}
.column-3{
	flex: 3;
}
.width-800{
	max-width: 800px;
}
/*------------------------------------*\
    COOKIE CONSET
\*------------------------------------*/
.tpp__cook_msg{
	display:block;
	color:black;
	position:fixed;
	bottom:20px;
	left: 20px;
	z-index:9999999;
	background-color: #bdfcfe;
	max-width: calc(100% - 40px);
}
.tpp__cook_msg #acceptCookie{
	background-color: var(--text);
	padding:5px 10px;
	border: none;
	color: var(--background);
}
.tpp__cook_msg #acceptCookie:hover{
	opacity: 0.5;
}


/*------------------------------------*\
	TYPOGRAPHY
\*------------------------------------*/
@font-face {
	font-family: 'Authentic';
	src:url('fonts/authentic/AUTHENTICSans-90.woff') format('woff');
	src: url('fonts/authentic/AUTHENTICSans-90.woff2') format('woff2');
	font-weight:normal;
	font-style:normal;
}


/*------------------------------------*\
	ANIMATIONS
\*------------------------------------*/
/* WIGGLE */
@-webkit-keyframes wiggle {
	0% { -webkit-keyframes-transform: rotate(10deg); }
   50% { -webkit-keyframes-transform: rotate(-10deg); }
  100% { -webkit-keyframes-transform: rotate(10deg); }
}
@-moz-keyframes wiggle {
	0% { -moz-keyframes-transform: rotate(10deg); }
   50% { -moz-keyframes-transform: rotate(-10deg); }
  100% { -moz-keyframes-transform: rotate(10deg); }
}
@keyframes wiggle {
	0% { transform: rotate(10deg); }
   50% { transform: rotate(-10deg); }
   100% { transform: rotate(10deg); }
}

/* SPIN */
@keyframes spin {
	from{ transform: rotateY(0deg);}
	to{ transform: rotateY(360deg);}
}
@-moz-keyframes spin {
	from{ -moz-transform: rotateY(0deg);}
	to{ -moz-transform: rotateY(360deg);} 
}
@-webkit-keyframes spin {
	from{-webkit-transform: rotateY(0deg);}
	to{ -webkit-transform: rotateY(360deg);}
}

/*------------------------------------*\
    STRUCTURE
\*------------------------------------*/

.wrapper {
	width:100%;
	margin:0 auto;
	position:relative;
	overflow: hidden;
	padding-left: 20px;
	padding-right: 20px;
	padding-bottom: 20px;
	padding-top: 42px;
}
.header{
	position: fixed;
	top: 0;
	left: 20px;
	background-color: var(--background);
	width: calc(100% - 40px);
	z-index: 999;
}
.header a{
 	text-decoration: none;
}
.header a:hover{
	text-decoration: line-through;
}

/* NAVIGATION */
.nav-left{
	position: fixed;
	top: 0;
	left: 20px;
	width: calc(100% - 40px);
	z-index: 99;
	padding: 10px 0;
	background-color: var(--background);
	display: flex;
	justify-content: space-between;
}
.nav-right{
	position: fixed;
	top: 0;
	left: 20px;
	width: calc(100% - 40px);
	z-index: 9;
	background-color: var(--background);
	padding: 10px 0;
	padding-top: 55px;
	margin-top: -80px;
}
.nav a,
.footer a{
	color: red;
}
.nav ul {
  margin: 0;
  padding: 0;
  display: flex;
  justify-content: space-between;
}
.nav ul li {
  list-style: none;
}
.current-menu-item{
	text-decoration: line-through;
	color: red;
}

/* FOOTER */
.footer{
	padding-top: 10px;
}
.footer .column-1{
	margin-bottom: 10px;
	padding-bottom: 10px;
}
/* SWIPER */
.swiper {
  width: 100%;
  max-height: 90vh;
  padding-bottom: 30px;
}
.swiper img{
	width: auto;
	height: auto;
	max-height: 90vh;
}
.new-swiper-preloader{
	position: absolute;
	top: 20px;
	left: 20px;
}
.new-swiper-fraction{
	position: absolute;
	bottom: 0px;
	left: 10px;
	text-align: left;
	color: red;
}
.new-swiper-prev-next{
	position: absolute;
	z-index: 9;
	top: 0px;
	left: 0px;
	width: 100%;
	height: 100%;
}
.new-swiper-button-prev{
	position: absolute;
	top: 0;
	left: 0;
	width: 50%;
	height: 100%;
}
.new-swiper-button-next{
	position: absolute;
	right: 0;
	top: 0;
	width: 50%;
	height: 100%;
	
}
.new-swiper-button-prev:hover{
	cursor: w-resize
}
.new-swiper-button-next:hover{
	cursor: e-resize
}


/* PROJECT GRID */
.content-wrapper{
	background-color: var(--lightgray);
	margin-bottom: 10px;
}
.project-list,
.work-list,
.book-list{
	margin: 0;
	padding: 0;
}
.project-item,
.work-item{
	list-style: none;
	margin-bottom: 20px;
}
.work-list{
	margin-right: -10px;
}
.work-archive{
	background-color: var(--lila);
}
.project-item-thumb,
.work-item-thumb,
.book-item-thumb{
	position: relative;
}
.project-item-thumb::before,
.work-item-thumb::before,
.book-item-thumb::before{
	transition: opacity 0.5s ease;
	opacity: 0;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	position: absolute;
	content: '';
}
.project-item-thumb:hover::before,
.work-item-thumb:hover::before,
.book-item-thumb:hover::before{
	background: linear-gradient(to top left,
		rgba(0,0,0,0) 0%,
		rgba(0,0,0,0) calc(50% - 0.8px),
		rgba(255, 0, 0, 1) 50%,
		rgba(0,0,0,0) calc(50% + 0.8px),
		rgba(0,0,0,0) 100%);
	opacity: 1;
}

.project-item a,
.work-item a,
.book-list-item a{
	text-decoration: none;
}
.project-item-thumb,
.work-item-thumb{
	margin-bottom: 10px;
	overflow: hidden;
}
.work-item{
	display: inline-block;
	width: calc(50% - 10px);
	vertical-align: top;
	margin-right: 10px;
}
.work-item h2{
	font-size: 16px;;
}

/* BOOKS */
.book-section{
	padding: 20px 0;
	margin-bottom: 5px;
	background-color: var(--green);
}
.book-list-item{
	list-style: none;
	background-color: var(--green);
	position: relative;
}
.book-list-item:last-child{
	padding-bottom: 0;
	margin-bottom: 0;
}
.book-list-txt{
	margin: 0;
	padding: 0;
}
.book-item-thumb{
	margin-bottom: 10px;
}
.book-item-txt{
	list-style: none;
}

/* PROJECT SINGLE */
.project-section{
	padding: 20px 0;
	margin-bottom: 5px;
	background-color: var(--lightgray);
}
/* WORK SINGLE */
.work-content{
	display: none;
	position: fixed;
	top: 40px;
	left: 20px;
	bottom: 20px;
	right: 20px;
	overflow: scroll;
	z-index: 99;
} 
.work-content .swiper{
	width: 100%;
	background-color: var(--lila);
}
.work-content .close-ajax{
	color: red;
	position: absolute;
	top: 10px;
	left: 10px;
	z-index: 99;
	cursor: pointer;
}
.work-content .work-link{
	color: red;
}
.work-content .swiper-wrapper{
	width: auto;
	position: relative;
}
.work-content .swiper-slide-content{
	align-items: flex-end;
	height: 100%;
}
.work-content .swiper-img{
	flex: 3
}
.work-content .new-swiper-prev-next{
	position: absolute;
	right: 0;
	top: 0;
	width: 100%;
	height: 90%;
}
.work-content .swiper-caption{
	color: red;
	padding: 10px;
	flex: 1;
}
.work-item a{
	display: block;
}
.work-loader{
	opacity: 0;
	color: red;
}
.work-section{
	padding: 20px 0;
	margin-bottom: 5px;
	background-color: var(--lila);
}
.no-padding{
	padding: 0;
}
.read-more{
	display: inline-block;
}
.arrow{
	rotate: 0deg;
	display: inline-block;
	transition: all 0.3s;
}
.rotate{
	rotate: -90deg;
	transition: all 0.3s;
}
.more-text{
	display: none;
}
.more-text p{
	margin-top: 0;
}
.reference-list{
	margin: 0;
	padding: 0;
	list-style: none;
}
li.book-item-txt,
li.reference-item{
	list-style-type: '\2192';
	margin-left: 18px;
	padding-left: 5px;
}

.reference-item p{
	margin-top: 0;
	margin-bottom: 0;
}
/* POST */

.single-post-nav a{
	text-decoration: none;
}
.single-post-nav a:hover{
	text-decoration: line-through;
}
/* PAGES */
 .embed-container { 
	position: relative; 
	padding-bottom: 56.25%;
	overflow: hidden;
	max-width: 100%;
	height: auto;
} 
.embed-container iframe,
.embed-container object,
.embed-container embed { 
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
}

/* ABOUT */
.about-section{
	padding: 20px 0;
	margin-bottom: 5px;
	background-color: var(--yellow);
}

/*------------------------------------*\
    RESPONSIVE
\*------------------------------------*/

@media only screen and (min-width:320px) {

}
@media only screen and (min-width:480px) {

}
@media only screen and (min-width:768px) {
	.burger-button{
		display: none;
	}
	.big-type{
		font-size: 2.5em;
	}
	.nav-left,
	.nav-right{
		position: relative;
		z-index: 999;
		height: auto;
		margin-top: 0 !important;
		left: auto;
	}
	.nav-right{
		padding: 10px 0;
	}
	.menu-button{
		display: none;
	}
	.columns{
		display: flex;
	}
	.work-content .swiper-slide-content{
		display: flex;
	}
	.work-content .swiper-caption{
		text-align: right;
	}
	.swiper{
		padding-bottom: 0;
	}
	.new-swiper-fraction{
		bottom: auto;
		left: auto;
		right: 10px;
		top: 10px;
		text-align: right;
		z-index: 9;
	}
	.footer .column-1{
		margin-bottom: 0px;
		padding-bottom: 0;
	}
	.project-item{
		width: 50%;
		display: inline-block;
		vertical-align: top;
	}
	.work-item{
		width: calc(33.33% - 10px);
	}
	.book-list-item{
		width: 50%;
		display: inline-block;
		vertical-align: top;
	}
}
@media only screen and (min-width:1024px) {
	.work-item{
		width: calc(25% - 10px);
	}
	.book-list-item{
		width: 33.33%;
	}
}
@media only screen and (min-width:1140px) {
	.work-item{
		width: calc(20% - 10px);
	}
}
@media only screen and (min-width:1280px) {
	.work-item{
		width: calc(16.66% - 10px);
	}

}
@media only screen and (min-width:1480px) {
	.project-item{
		width: 33.33%;
	}
	.work-item{
		width: calc(14.28% - 10px);
	}
	.book-list-item{
		width: 25%;
	}
}
@media only screen and (-webkit-min-device-pixel-ratio:1.5),
	   only screen and (min-resolution:144dpi) {

}

/*------------------------------------*\
    MISC
\*------------------------------------*/

::selection {
	background: var(--text);
	color:white;
	text-shadow:none;
}
::-webkit-selection {
	background: var(--text);
	color:var(--background);
	text-shadow:none;
}
::-moz-selection {
	background: var(--text);
	color:var(--background);
	text-shadow:none;
}

/*------------------------------------*\
    WORDPRESS CORE
\*------------------------------------*/

.alignnone {
	margin:5px 20px 20px 0;
}
.aligncenter,
div.aligncenter {
	display:block;
	margin:5px auto 5px auto;
}
.alignright {
	float:right;
	margin:5px 0 20px 20px;
}
.alignleft {
	float:left;
	margin:5px 20px 20px 0;
}
a img.alignright {
	float:right;
	margin:5px 0 20px 20px;
}
a img.alignnone {
	margin:5px 20px 20px 0;
}
a img.alignleft {
	float:left;
	margin:5px 20px 20px 0;
}
a img.aligncenter {
	display:block;
	margin-left:auto;
	margin-right:auto;
}
.wp-caption {
	background:#FFF;
	border:1px solid #F0F0F0;
	max-width:96%;
	padding:5px 3px 10px;
	text-align:center;
}
.wp-caption.alignnone {
	margin:5px 20px 20px 0;
}
.wp-caption.alignleft {
	margin:5px 20px 20px 0;
}
.wp-caption.alignright {
	margin:5px 0 20px 20px;
}
.wp-caption img {
	border:0 none;
	height:auto;
	margin:0;
	max-width:98.5%;
	padding:0;
	width:auto;
}
.wp-caption .wp-caption-text,
.gallery-caption {
	font-size:11px;
	line-height:17px;
	margin:0;
	padding:0 4px 5px;
}
.sticky {

}
.bypostauthor {

}

/*------------------------------------*\
    PRINT
\*------------------------------------*/

@media print {
	* {
		background:transparent !important;
		color:#000 !important;
		box-shadow:none !important;
		text-shadow:none !important;
	}
	a,
	a:visited {
		text-decoration:underline;
	}
	a[href]:after {
		content:" (" attr(href) ")";
	}
	abbr[title]:after {
		content:" (" attr(title) ")";
	}
	.ir a:after,
	a[href^="javascript:"]:after,
	a[href^="#"]:after {
		content:"";
	}
	pre,blockquote {
		border:1px solid #999;
		page-break-inside:avoid;
	}
	thead {
		display:table-header-group;
	}
	tr,img {
		page-break-inside:avoid;
	}
	img {
		max-width:100% !important;
	}
	@page {
		margin:0.5cm;
	}
	p,
	h2,
	h3 {
		orphans:3;
		widows:3;
	}
	h2,
	h3 {
		page-break-after:avoid;
	}
}
