/*
Theme Name: Aline v1.3
Version: 1.5
Text Domain: karma
*/


/* WEBFONT
---------------- */

@font-face {
	font-family: 'MarrSans-Regular';
	src: url('fonts/MarrSans-Regular-Web.woff2') format('woff2');
}

@font-face {
	font-family: 'MarrSans-Semibold';
	src: url('fonts/MarrSans-Semibold-Web.woff2') format('woff2');
}


/* General
---------------- */
* {
	outline: none;
}

:root {
	font-size: 18px;
	--small-size: 14px;
	--medium-size: 18px;
	--large-size: 30px;
}

body {
	/* -webkit-font-smoothing: antialiased !important; */
	/* -moz-osx-font-smoothing: grayscale; */
	font-family: 'MarrSans-Regular', Verdana;
	margin: 0;
	/* padding: 0 50px; */
	/* font-size: var(--medium-size); */
	font-size: 1rem;
	line-height: 1.35;
}

strong,
h1,
h2,
h3,
h4 {
	font-weight: normal;
	font-family: 'MarrSans-Semibold', Verdana;
}

ul {
	margin: 0;
	padding: 0;
}

ul li {
	list-style-type: none;
}

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

img a {
	border: none;
}

.wrapper {
	position: relative;
	margin: 0 20px;
}


.clear {
	clear: both;
}

.hidden {
	display: none;
}

.left {
	float: left;
}

.right {
	float: right;
}

.info-width {
	width: 8.8889rem;
}

.mobile-only {}

.desktop-only {
	display: none;
}

@media (max-width: 800px) {
	body {
		-webkit-text-size-adjust: 100%;
	}
}

@media (min-width: 800px) {
	.mobile-only {
		display: none;
	}

	.desktop-only {
		display: block;
	}

	.wrapper {
		position: relative;
		margin: 0 2.7778rem;
	}
}

@media (min-width: 1920px) {
	:root {
		font-size: 0.9375vw;
		--small-size: 0.7292vw;
		--medium-size: 0.9375vw;
		--large-size: 1.5625vw;
	}

}


/* Header
--------------------- */
header {
	/* max-width: 1900px; */
	margin: 0 auto;

	position: absolute;
	left: 0;
	right: 0;
	width: 100%;
	top: 17px;
	font-size: var(--large-size);
	line-height: 1.35em;
	font-family: 'MarrSans-Semibold', Verdana;

	z-index: 3;

	-webkit-touch-callout: none;
	-webkit-user-select: none;
	-khtml-user-select: none;
	-moz-user-select: none;
	-ms-user-select: none;
	user-select: none;
}

header .top {}

header .top .site-subtitle,
header .top .site-menu {
	display: none;
}

header .top .mobile-categories {
	display: none;
}

.menu-open header .top .site-menu {
	display: block;
}

.menu-open header .top .mobile-categories {
	display: block;
}

.site-subtitle .small {
	font-size: var(--small-size);
	vertical-align: super;
}


@media (min-width: 800px) {
	header {
		top: 40px;
	}

	header .top .top-item {
		float: left;
		width: 30%;
	}

	header .top .site-subtitle {
		text-align: center;
		display: block;
		width: 40%;
	}

	header .top .info-width {
		float: right;
	}

	header .top .mobile-categories {
		display: none !important;
	}

	header .top .site-menu {
		display: block !important;
	}

	header .site-menu {
		opacity: 1 !important;
	}
}


/* Burger
---------------- */
#burger {
	position: relative;
	width: 20px;
	height: 20px;
	padding: 20px;

	left: -20px;
	cursor: pointer;
}

#burger ul li {
	width: 100%;
	height: 4px;
	margin: 3px 0;
	background-color: black;
}

body.menu-open #burger ul li {
	visibility: hidden;
}

#burger ul li:nth-child(2) {
	visibility: visible !important;
}

@media (min-width: 800px) {

	#burger {
		position: absolute;
		top: 1.6667rem;
	}

	#burger ul li {
		visibility: hidden;
	}
}






/* Main
--------------------- */
main {
	position: absolute;
	top: 100px;
	left: 0;
	right: 0;
	width: 100%;
	/* max-width: 1900px; */
	margin: 0 auto;

	-webkit-transition: top 200ms;
	transition: top 200ms;
}

#main {
	/* for open menu animation */
	position: absolute;
	width: 100%;
}

main h2,
main h3 {
	/* display: inline-block; */
	margin: 1.6667rem 0 0 0;
}

main .column p {
	margin-top: 0;
}

main blockquote {
	margin: 1.6667rem 0 3.3333rem;
	font-size: var(--large-size);
	line-height: 1.35em;
	font-family: 'MarrSans-Semibold', Verdana;
}

@media (min-width: 800px) {
	main {
		/* top: 107px; */
		top: 5.9444rem;
	}

	#main {
		position: static;
	}
}


/* Control
--------------------- */
#control {
	padding: 1.1111rem 0 0.6667rem 0;
	font-family: 'MarrSans-Semibold', Verdana;
	display: none;

	-webkit-touch-callout: none;
	-webkit-user-select: none;
	-khtml-user-select: none;
	-moz-user-select: none;
	-ms-user-select: none;
	user-select: none;
}

#control nav ul li {
	display: inline-block;
	margin-right: 0.5556rem;
}

#control nav ul li a.active,
#control nav ul li a:hover {
	text-decoration: underline;
}

@media (min-width: 800px) {
	#control {
		display: block;
	}
}

/* Home (Portfolio)
--------------------- */
body.home {
	height: calc(100vh + 1px);
}

#portfolio {
	padding-bottom: 50px;
}

.display-list .table {
	display: table;
	width: 100%;
}

.display-list .table-head {
	display: none;
}

.display-list .table-head a {
	cursor: pointer;
	font-family: 'MarrSans-Semibold', Verdana;
}

.display-list .table-body {
	display: table-row-group;
}

.display-list .row {
	clear: both;
	display: block !important;

	position: static !important;
	width: auto !important;
	height: auto !important;

	border-bottom: 1px solid black;
}

.display-list a.row:hover {
	color: white;
	background-color: rgba(0, 0, 0, 0.8);
}

.display-list .cell {
	padding: 5px 0;
	/* padding: 5px 10px; */
	box-sizing: border-box;
	/* display: table-cell; */
	/* border-bottom: 1px solid black; */
}

.display-list .cell.date {
	/* padding-left:0; */
}

.display-list .cell.title {}

.display-list .cell.category {
	/* padding-right:0; */
}

.display-list .cell.image {
	display: none;
}


.display-grid .table-head {
	display: none;
}

.display-grid .table-body {
	position: relative;
	margin: 0 -10px;
}

.display-grid a.row {
	position: absolute;
}

.display-grid .cell.title {
	position: absolute;
	z-index: 3;
	left: 20px;
	top: 20px;
	right: 20px;

	font-size: var(--large-size);
	font-family: 'MarrSans-Semibold', Verdana;

	opacity: 0;
	transition: opacity 200ms;
}

.display-grid .cell.title.white {
	color: white;
}

.display-grid a:hover .cell.title {
	opacity: 1;
}

.display-grid .cell.date,
.display-grid .cell.type,
.display-grid .cell.category {
	display: none;
}

.display-grid .cell.image {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	overflow: hidden;
}

.display-grid a.row {
	display: block;
}

@media (min-width: 800px) {
	.display-list .table-head {
		display: table-header-group;
	}

	.display-list .cell {
		padding: 5px 10px;
		display: table-cell;
		border-bottom: 1px solid black;
	}

	.display-list .cell.date {}

	.display-list .cell.category {
		padding-right: 0;
	}

	.display-list .row {
		display: table-row !important;
	}
}



/* Project
--------------------- */
body.single main {
	bottom: 0;
	min-height: 450px;
}

body.single main #main,
body.single main #main .wrapper {
	height: 100%;
}

#project {
	position: absolute;
	left: 0;
	right: 0;
	top: 10px;
	bottom: 0px;
	padding-bottom: 100px;

}

@media (min-width: 800px) {
	#project {
		top: 56px;
	}
}

/* Project Slideshow
--------------------- */
.slideshow {
	position: relative;
	width: 100%;
	/* padding-bottom: 66.6666%; */
	height: 100%;
	overflow: hidden;
}

.library {
	/* display: none; */
	position: absolute;
	left: 100%;
	width: 100%;
	height: 100%;
}

.viewer {
	position: absolute;
	width: 100%;
	height: 100%;
	top: 0;
	left: 0;

	-webkit-touch-callout: none;
	-webkit-user-select: none;
	-khtml-user-select: none;
	-moz-user-select: none;
	-ms-user-select: none;
	user-select: none;
}

.slide {
	position: absolute;
	width: 100%;
	height: 100%;
	top: 0;
	left: 0;
}

.slide img {
	width: 100%;
	height: auto;
	position: absolute;
}

.controller {
	position: absolute;
	width: 100%;
	height: 100%;
	top: 0;
	left: 0;
	cursor: none;
}

.slideshow.single .controller {
	display: none;
}

/*
.controller .side {
	position: absolute;
	height: 100%;
	width: 50%;
	cursor: pointer;
}
 */
/*
.controller .left-side {
	left:0;
}
.controller .right-side {
	left:50%;
}
 */
.controller .arrow {

	position: absolute;
	width: 50px;
	height: 50px;
	display: none;


}


.controller .side:hover .arrow {
	/* opacity:1; */
}

.controller .left-side {
	position: absolute;
	top: 0;
	left: 0;
	width: 50%;
	height: 100%;
}

.controller .left-side .arrow svg {
	transform: scaleX(-1);
}

.controller .right-side {
	position: absolute;
	top: 0;
	left: 50%;
	width: 50%;
	height: 100%;
}

/*
.controller .arrow::after,
.controller .arrow::before {
	position: absolute;
	content: "";
	width: 38px;
	height: 4px;
	background-color: black;
	left: 6px;
}
.controller .left-side .arrow::after,
.controller .right-side .arrow::before {
	-ms-transform: rotate(-35deg);
	-webkit-transform: rotate(-35deg);
	transform: rotate(-35deg);
}
.controller .left-side .arrow::before,
.controller .right-side .arrow::after {
	-ms-transform: rotate(35deg);
	-webkit-transform: rotate(35deg);
	transform: rotate(35deg);
}
.controller .arrow::after,
.controller .arrow::after {
	top: 10px;
}
.controller .arrow::before,
.controller .arrow::before {
	top: 30px;
}
 */

/* Project embed
--------------------- */
.image-container,
.video-container,
.embed {
	position: relative;
	overflow: hidden;
}

.embed {
	text-align: center;
}

@media (min-width: 800px) {
	.embed {
		height: 100%;
	}

	.project-mode-bottom .embed {
		height: auto;
	}

	.embed iframe {
		position: absolute;
	}
}


/* Project Content
--------------------- */
.project-content {
	position: relative;

	-webkit-touch-callout: none;
	-webkit-user-select: none;
	-khtml-user-select: none;
	-moz-user-select: none;
	-ms-user-select: none;
	user-select: none;

}

.project-content:hover {
	/* user-select: auto; */
}

.project-content h2 {
	margin-bottom: 0;
}

.project-content .project-description {
	padding-bottom: 20px;
}

.project-content .project-description p {
	margin-top: 0;
}

@media (min-width: 800px) {
	.project-content h2 {
		margin-left: 10rem;
		margin-bottom: 0;
	}

	.project-content .project-description {
		background-color: white;
		padding: 1.1111rem;
		left: -1.1111rem;
		width: 100%;
		max-width: 27.7778rem;
		position: absolute;
		bottom: 100%;
		display: none;
		/* margin-left: -20px; */
	}

	.project-content.mode-bottom .project-description {
		display: block;
		position: static;
		margin-left: -20px;
	}

	.project-content:hover .project-description {
		display: block;
	}

	.project-content.mode-hover .project-description-content {
		max-height: calc(100vh - 300px);
		overflow: auto;
	}
}

/* Pages
--------------------- */
#page {
	padding-bottom: 50px;
}

.columns-container {
	margin: 0 -25px;
}

.column {
	width: 100%;
	float: left;
	box-sizing: border-box;
	padding: 0 25px;
}

@media (min-width: 800px) {
	.column {
		width: 50%;
	}
}

/* News
--------------------- */
.news {
	overflow: hidden;
}

.news-row {
	padding-bottom: 25px;
}

.news-row .column {
	float: right;
}

.news-image {
	position: relative;
	padding-top: 5px;
}

.news-image img {
	width: 100%;
	height: auto;
}

.news-content h2,
.news-content h3 {
	margin-top: 0;
	display: block;
}

.news-content hr {
	width: 20px;
	height: 4px;
	background-color: black;
	border: none;
	margin: 15px 0 40px 0;
}

/* Selection
-------------------- */
::selection {
	background-color: black;
	color: white;
}

::-moz-selection {
	background-color: black;
	color: white;
}
