/* ************** HEADER ******************* */

@media all and (max-width: 768px) {

	.homepage header .logo img {
		filter: invert(100%);
	}

	header {
		position: absolute;
	}

	header .inner {
		position: fixed;
		top: 43px;
		width: auto;
		left: 5%;
		width: 90%;
		z-index: 20;
	}

	header .bg_mobile {
		display: block;
		position: fixed;
		z-index: 5;
		top: 0;
		left: 0;
		width: 100%;
		height: 80px;
		background-color: rgba(255,255,255,.5);
		opacity: 0;
		pointer-events: none;
		transition: opacity .3s;
	}

	.header_bg header .bg_mobile {
		opacity: 1;
	}

	header .logo {
		width: 130px;
	}

	header nav {
		position: absolute;
		top: 0;
		right: 5%;
		width: 90%;
		transform: unset;
		z-index: unset;
	}

	header nav ul.main {
		display: block;
		position: fixed;
		top: 32px;
		right: 5%;
		color: #000;
		z-index: 20;
	}

	header nav ul.subs {
		position: absolute;
		top: 100px;
		display: flex;
		flex-wrap: wrap;
		align-items: center;
		justify-content: center;
		color: #000;
		width: 100%;
		z-index: 1;
	}

	header nav ul.subs li {
		display: block;
		margin: 0 12px 24px 12px;
	}

	header .mobile_nav ul {
		list-style-type: none;
	}

	header .mobile_nav ul li a {
		text-decoration: none;
		border-bottom: 0 !important;
	}

	.intro .downarrow {
		bottom: 5vh;
	}
	/*  homepage  */

	.inner.gridpage, .inner.project {
		margin-top: 100px;
	}

	.ar-rows {
		width: 90%;
		margin: 0 auto;
	}
	.ar-rows .row {
		flex-direction: column;
	}

	.ar-rows .row .cell {
		width: 100% !important;
	}

	.ar-rows .row .cell img {
		height: auto !important;
		width: 100% !important;
	}
	
	.ar-rows .row .cell:hover img {
		opacity: 1;
	}

	.homepage .ar-rows .row .cell img {
		opacity: 0.7 !important;
	}

	.ar-rows .row .cell figcaption {
		opacity: 1;
	}
	.ar-rows .row .cell figcaption h1 {
		font-size: 40px;
	}
	
	.inner.gridpage.projectgrid {
		padding-top: 25px;
	}

	.justified {
		width: calc(100% - 20px);
	}

	.justified .cell {
		left: 0 !important;
		margin-bottom: 3px;
	}
	
	.justified .cell:hover img {
		opacity: 1;
	}

	.justified .cell figcaption {
		opacity: 1;
	}

	.justified-gallery > a > img,
	.justified-gallery > div > img,
	.justified-gallery > a > a > img,
	.justified-gallery > div > a > img {
		width: 100% !important;
		height: auto !important;
		position: relative;
		margin-left: 0 !important;
		margin-top: 0 !important;
		top: 0;
		left: 0;
		box-sizing: border-box;
	}

	.homepage .justified-gallery > a > img,
	.homepage .justified-gallery > div > img,
	.homepage .justified-gallery > a > a > img,
	.homepage .justified-gallery > div > a > img {
		opacity: 0.7 !important;
	}

	.justified .cell {
		height: auto !important;
		width: 100% !important;
		top: auto !important;
		position: relative;
	}

	.justified {
		height: auto !important;
		margin-bottom: 50px !important;
	}

	.homepage .slickslideshow .cell {
		display: flex;
		flex-direction: column;
		align-items: center;
		justify-content: center;
	}

	.homepage .slickslideshow .cell .photo {
		position: relative;
		top: auto;
		left: auto;
		width: auto !important;
		height: auto !important;
		max-width: 100% !important;
		max-height: 100% !important;
	}

	.project .intro_text {
		margin: 0 auto;
	}

	footer .inner {
		padding: 25px 0px;
	}

	footer .inner img {
		max-width: 140px;
	}

	.social {
		margin: 15px;
	}

	.social li svg {
		height: 16px;
	}

	#overlay .arrows {
		display: none;
	}

	#overlay .inner {
		width: 100%;
		height: 100%;
		margin: auto;
		position: absolute;
		top: 0;
		left: 0;
	}

	#overlay .inner .imgwrap {
		width: 100%;
		height: 100%;
		position: relative;
		font-size: 0px;
		letter-spacing: 0px;
	}


	.textpage-body header .inner {
		width: 90%;
	}

	.homepage-nav {
		display: none;
		padding: 0 5%;
		flex-wrap: wrap;
		justify-content: center;
		margin-bottom: 25px;
	}

	.homepage-nav a {
		border-bottom: 1px solid grey;
	}

	.homepage-nav li {
		list-style-type: none;
		display: block;
		margin: 5px 10px;
		color: grey;
	}

	.inner.textpage {
		width: 90%;
		height: auto;
		max-width: 1200px;
		margin: 100px auto 0px auto;
		flex-direction: column;
	}

	.inner.textpage .center {
		display: flex;
		flex-direction: column;
		padding: 5%;
	}

	.inner.textpage .col {
		display: block;
		width: 100%;
		margin: 0 auto 30px auto;
	}

	.inner.textpage .col.second {
		order: 1;
	}

	.inner.textpage .col.first img {
		display: block;
		width: 100px;
		height: auto;
	}

	.inner.textpage .col.first {
		order: 2;
	}

	.inner.textpage .col img {
		display: block;
		width: 100%;
		height: auto;
		max-width: 100%;
	}

	.inner.textpage .col:last-child {
		display: block;
		width: 100%;
		margin: 0 auto;
	}

	.inner.textpage .social {
		margin-left: 0;
	}

	.closeicon {
		right: 8px;
	}

}

@media all and (max-width: 830px) and (orientation: landscape) {
	.homepage header .logo img {
		filter: invert(100%);
	}

	header {
		position: absolute;
	}

	header .inner {
		position: fixed;
		top: 43px;
		width: auto;
		left: 5%;
		width: 90%;
	}

	header nav ul.subs {
		top: 80px;
	}

	.inner.gridpage, .inner.project {
		margin-top: 40px;
	}

	.intro {
		margin-top: 120px;
	}

	.homepage .slickslideshow .cell {
		display: flex;
		flex-direction: column;
		align-items: center;
		justify-content: center;
	}

	.homepage .slickslideshow .cell .photo {
		position: relative;
		top: auto;
		left: auto;
		width: auto !important;
		height: auto !important;
		max-width: 100% !important;
		max-height: 100% !important;
	}

}
