/*
Theme Name: Atlas Studio
Theme URI: https://atlasstudio.ch
Description: Custom Theme for Atlas Studio
Author: Roger Burkhard
Author URI: http://www.rogerburkhard.com
*/

/*------------------------------------------------------
VARIABLES
------------------------------------------------------*/

:root {
  --offset: min(max(10px, 1.38vw), 20px);
  --offset-minus:  min(max(-10px, -1.38vw), -20px);
  --max_width: 100%;
  --columns: 12;
  --gap: 10px;
  --baseline: 0;
  --baseline-offset: 0;
  --font_color: #4A4A4A;
  --easing:cubic-bezier(0.33, 1, 0.68, 1);

  --grid_color: hsla(204, 80%, 72%, 0.25);
  --repeating_width: calc(100% / var(--columns));
  --column_width: calc((100% /  (var(--columns)) -  var(--gap)));
  --background_width: calc(100% +  var(--gap));
  --background_columns: repeating-linear-gradient(to right, var(--grid_color), var(--grid_color) var(--column_width), transparent var(--column_width), transparent var(--repeating_width));
  --background_baseline: repeating-linear-gradient(to bottom, var(--grid_color), var(--grid_color) 1px, transparent 1px, transparent var(--baseline));
}

/*------------------------------------------------------
THE BIG FAT RESET
------------------------------------------------------*/

* {
	min-height: 0;
	min-width: 0;
}


html, body, div, span, h1, h2, h3, h4, h5, h6, ul, ol, dl, li, dt, dd, p, blockquote, pre, form, fieldset, table, th, td, header, footer {
	margin: 0;
	padding: 0;
}

sub, sup {
	line-height: 0;
}

/*------------------------------------------------------
IMPORT FONTS
------------------------------------------------------*/

@font-face {
    font-family: 'AtlasStudio Medium';
    src: url('styles/fonts/AtlasStudio-Medium.woff2') format('woff2'),
         url('styles/fonts/AtlasStudio-Medium.woff') format('woff');
    font-weight: normal;
    font-style: normal;
}

/*------------------------------------------------------
GRID HELPER
------------------------------------------------------*/

/* Grid */

/*
html::before {
	position: fixed;
	top: 0;
	right: 0;
	bottom: 0;
	left: 0;
	margin-right: auto;
	margin-left: auto;
	width: calc(100% - (2 * var(--offset)));
	max-width: var(--max_width);
	min-height: calc(100vh - 86px);
	content: '';
	background-image: var(--background_columns), var(--background_baseline);
	background-size: var(--background_width) 100%;
	background-position: 0 var(--baseline-offset);
	z-index: 1000;
	pointer-events: none;
}

/* Squares */

/*
$square: transparent 0 calc(20px - 1px),#ccc 0 20px;

body {
	width: 100%;
	height: 100%;
	margin: 0 auto;
	background: repeating-linear-gradient(to right, $square), repeating-linear-gradient(to bottom,$square) #fff;
}
*/

/*------------------------------------------------------
GENERAL
------------------------------------------------------*/

html {
	width: 100%;
	height: 100%;
	background: #fff;
	margin:0 !important;
	-webkit-text-size-adjust: 100%;
	overflow:hidden;
}

body {
	width: -moz-calc(100% - (var(--offset))*2);
	width: -webkit-calc(100% - (var(--offset))*2);
	width: -o-calc(100% - (var(--offset))*2);
	width: calc(100% - (var(--offset))*2);
	padding: 0 var(--offset);
	font-family: 'AtlasStudio Medium', Helvetica, Arial, Verdana, sans-serif;
	font-size: min(max(16px, 1.38vw), 20px);
	line-height: min(max(19px, 1.7vw), 25px);
	letter-spacing: min(max(0, -0.025vw), -0.36px);
	color: var(--font_color);
	overflow:hidden;
	min-width: 320px;
	-webkit-font-smoothing: antialiased;
	-moz-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	font-smoothing: antialiased;
	text-wrap: balance
}

body.is_light .color_switch, 
body.is_light .color_switch a,
body.is_light .cursor {
	color:#fff !important;
}

body.is_dark .color_switch, 
body.is_dark .color_switch a,
body.is_dark .cursor {
	color:var(--font_color) !important;
}

body.is_multiply .color_switch, 
body.is_multiply .color_switch a,
body.is_multiply .cursor {
	color:#fff !important;
	mix-blend-mode: difference;
	transform: translate3d(0,0,0);
}

body.noscroll {
	overflow: hidden;
}

body.wait, body.wait a {
	cursor:wait;
	overflow-y:hidden;
}

#wpadminbar {
	display:none !important;
}

div:focus {
	outline: none;
	ie-dummy: expression(this.hideFocus=true);
}

::selection {
  background: #ededed;
  color:#000;
}

::-moz-selection {
  background: #ededed;
  color:#000;
}

a::selection {
	color:#000 !important;
}

a::-moz-selection {
	color:#000 !important;
}

.ie_message {
	display: none;
	padding: 10px;
}

/*------------------------------------------------------
TYPOGRAPHY
------------------------------------------------------*/

p {
	margin-bottom: var(--offset);
}

b, strong {
	font-weight: bold;
}

/*------------------------------------------------------
GENERAL LINKS
------------------------------------------------------*/

a {
	display:inline-block;
	outline: none;
	text-decoration: none;
	cursor: pointer;
	color: var(--font_color);
	-ms-transform: scale(1);
	-webkit-transform: scale(1);
	transform: scale(1);
	transform-origin: center center;
	-webkit-transform-origin: center center;
	-webkit-transition:, -webkit-transform 0.2s ease-out;
	transition:transform 0.2s ease-out;
}

body.no_touch a:hover {
	-ms-transform: scale(1.1);
	-webkit-transform: scale(1.1);
	transform: scale(1.1);
}

:focus {
	-moz-outline-style: none;
}

/*------------------------------------------------------
IMAGES
------------------------------------------------------*/

img {
	display: block;
	border: none 0;
}

.lazyload, .lazyloading {
	opacity: 0;
}

.lazyloaded {
	opacity: 1;
	-webkit-transition:opacity 0.5s;
	transition: opacity 0.5s;
}

/*------------------------------------------------------
VIDEO
------------------------------------------------------*/

video {
	display:block;
	outline: 0;
	-moz-outline-style: none;
}

/* Responsive iFrame */

.video_wrap {
	position: relative;
	padding-bottom: 56.25%; /* 16:9 */
	padding-top: 25px;
	height: 0;
}

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

/*------------------------------------------------------
CLEAR
------------------------------------------------------*/

.clear {
	clear: both;
}

/*------------------------------------------------------
Focus Input & Textarea
------------------------------------------------------*/

input, textarea {
	-webkit-border-radius: 0px;
	-moz-border-radius: 0px;
	border-radius: 0px;
	resize: none;
	-webkit-appearance: none;
	-moz-appearance: none;
	appearance: none;
}

input[type="search"]::-webkit-search-decoration,
input[type="search"]::-webkit-search-cancel-button,
input[type="search"]::-webkit-search-results-button,
input[type="search"]::-webkit-search-results-decoration { 
	display: none; 
}

textarea:focus, input:focus, select:focus {
    outline: 0;
}

input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

input[type="button"], button {
   outline:none !important;
}
input[type="button"]::-moz-focus-inner, button::-moz-focus-inner {
   border: 0 !important;
}

/*------------------------------------------------------
WYSIWIG CONTENT
------------------------------------------------------*/

.wysiwig_content img {
	display: block;
	width: 100%;
	height: auto;
}

.wysiwig_content ul {
    list-style: none;
    margin-left: 0;
    padding-left: 1em;
}

.wysiwig_content ul > li:before {
    display: inline-block;
    content: "–";
    width: 1em;
    margin-left: -1em;
}

/*------------------------------------------------------
GRID
------------------------------------------------------*/

.grid {
	display: -ms-grid;
	display: grid;
	grid-gap: var(--gap);
	grid-row-gap: 0px;
	grid-template-columns: repeat(var(--columns), 1fr);
	align-items: start;
}

.full_columns {
	-ms-grid-columns: 1 / 13;
	grid-column:1 / 13;
}

/*------------------------------------------------------
HEADER
------------------------------------------------------*/

header {
	position:fixed;
	top:0;
	left:0;
	padding-top:10px;
	padding-bottom:10px;
	padding-left:var(--offset);
	z-index:100;
	-webkit-touch-callout: none;
	-webkit-user-select: none;
	-khtml-user-select: none; 
	-moz-user-select: none;
	-ms-user-select: none;
	user-select: none;
	opacity:1;
	white-space: nowrap;
	-webkit-transition:opacity 0.4s var(--easing);
	transition:opacity 0.4s var(--easing);
}

body.active_overlay header {
	opacity:0;
	pointer-events:none;
}

header a, header .filters, header .current_filter {
	display:inline-block;
	margin-right:var(--offset);
	cursor:pointer;
}

header a.info_page {
	margin-left:var(--offset);
}

.outer_filters {
	display:inline-block;
}

header .current_filter {
	margin-right:0;
}

header .current_filter.inactive {
	display:none;
}

header .filters {
	margin-right:0;
	-webkit-transition:width 0.6s var(--easing);
	transition:width 0.6s var(--easing);
}

header .filters.inactive {
	display:inline-block;
	width:1px !important;
}

header .current_filter.active,
header .filters.active {
	display:inline-block;
}

header a.do_filter.active,
header a.info_page.active,
.legende a {
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: 3px;
}

header .filters .do_filter {
	opacity: 0;
	-webkit-transform: translateX(20px);
	transform: translateX(20px);
	-webkit-transition: all 0.3s var(--easing);
	transition: all 0.3s var(--easing);
}

header .filters.show .do_filter {
	opacity: 1;
	-webkit-transform: translateX(0);
	transform: translateX(0);
}

header .filters.come_in .do_filter:nth-child(1),
header .filters.go_away .do_filter:nth-child(7) {
	-webkit-transition-delay: 0.07s;
	transition-delay: 0.07s;
}

header .filters.come_in .do_filter:nth-child(2),
header .filters.go_away .do_filter:nth-child(6) {
	-webkit-transition-delay: 0.14s;
	transition-delay: 0.14s;
}

header .filters.come_in .do_filter:nth-child(3),
header .filters.go_away .do_filter:nth-child(5) {
	-webkit-transition-delay: 0.21s;
	transition-delay: 0.21s;
}

header .filters.come_in .do_filter:nth-child(4),
header .filters.go_away .do_filter:nth-child(4) {
	-webkit-transition-delay: 0.28s;
	transition-delay: 0.28s;
}

header .filters.come_in .do_filter:nth-child(5),
header .filters.go_away .do_filter:nth-child(3) {
	-webkit-transition-delay: 0.35s;
	transition-delay: 0.35s;
}

header .filters.come_in .do_filter:nth-child(6),
header .filters.go_away .do_filter:nth-child(2) {
	-webkit-transition-delay: 0.42s;
	transition-delay: 0.42s;
}

header .filters.come_in .do_filter:nth-child(7),
header .filters.go_away .do_filter:nth-child(1) {
	-webkit-transition-delay: 0.49s;
	transition-delay: 0.49s;
}

/*------------------------------------------------------
SWIPER
------------------------------------------------------*/

.swiper {
	position:fixed;
	top:0;
	left:0;
	right:0;
	bottom:0;
	-webkit-touch-callout: none;
	-webkit-user-select: none;
	-khtml-user-select: none; 
	-moz-user-select: none;
	-ms-user-select: none;
	user-select: none;
	-webkit-transition: transform 0.8s var(--easing);
	transition: transform 0.8s var(--easing);
}

.swiper.inactive {
	opacity:0;
	pointer-events:none;
	position:fixed;
	top:0;
	left:0;
	bottom:0;
	width:100vw;
	-webkit-transform: translateX(100vw) !important;
	transform: translateX(100vw) !important;
}

.swiper.active {
	opacity:1;
	pointer-events:all;
}

.swiper.come_in {
	opacity:1;
	-webkit-transform: translateX(0) !important;
	transform: translateX(0) !important;
}

.swiper.go_away {
	-webkit-transform: translateX(-100vw) !important;
	transform: translateX(-100vw) !important;
}

.swiper .swiper-slide {
	width:100vw;
	height: calc(var(--vh, 1vh) * 100);
}

.doppelbild_column_left,
.doppelbild_column_right {
	width:50%;
	height:100%;
	float:left;
}

.swiper .swiper-slide img,
.swiper .swiper-slide video {
	width:100%;
	height:100%;
	object-fit: cover;
	object-position:center center;
	-webkit-transition:opacity 0.4s var(--easing);
	transition:opacity 0.4s var(--easing);
}

.swiper .swiper-slide.layout_einzelbild_hoch img,
.swiper .swiper-slide.layout_einzelbild_hoch video {
	object-fit: contain;
}

body.active_overlay .swiper .swiper-slide img,
body.active_overlay .swiper .swiper-slide video,
body.active_overlay .swiper .swiper-slide .lottie_player_outer {
	opacity: 0.07;
	pointer-events:none;
}

.lottie_player_outer {
	width:100%;
	height:100%;
	display: flex;
	justify-content: center;
	align-items: center;
}

.lottie_player_outer .lottie_player {
	width:80vw;
	height: calc(var(--vh, 1vh) * 80);
}

.next, .prev {
	cursor:default;
	width: 50vw;
	top:70px;
	bottom:70px;
	position: absolute;
	z-index:10;
}

.next.hide, .prev.hide {
	display:none !important;
}

body.active_overlay .next,
body.active_overlay .prev {
	display:none !important;
}

.prev.mousemove, .next.mousemove {
	cursor:none !important;
}

.prev {
	left:0;
}

.next {
	right:0;
}

.cursor {
	display:none;
    position: absolute;
    pointer-events: none;
    z-index:20;
    white-space: nowrap;
    transform: translate(-50%, -50%);
    top: 0;
    left: 0;
    -ms-transform: scale(1);
    -webkit-transform: scale(1);
    transform: scale(1);
    transform-origin: center center;
    -webkit-transform-origin: center center;
    -webkit-transition: -webkit-transform 0.3s var(--easing);
    transition: transform 0.3s var(--easing);
}

.cursor.on_header,
.cursor.active_overlay {
	display:none !important;
}

body.is_touch .cursor {
	display:none !important;
}

.legende {
	position:absolute;
	bottom:15px;
	left:var(--offset);
	right:20%;
	z-index:201;
	text-align:left;
	-webkit-touch-callout: none;
	-webkit-user-select: none;
	-khtml-user-select: none; 
	-moz-user-select: none;
	-ms-user-select: none;
	user-select: none;
}

.counter {
	position:absolute;
	bottom:15px;
	right:var(--offset);
	width:20%;
	z-index:20;
	text-align:right;
	-webkit-touch-callout: none;
	-webkit-user-select: none;
	-khtml-user-select: none; 
	-moz-user-select: none;
	-ms-user-select: none;
	user-select: none;
}

.legende * {
	display:inline !important;
	margin-bottom:0;
}

.legende a.show_detail {
	display:inline;
	text-decoration:none;
}

.legende a.show_detail span {
	display:none !important;
}

.legende a.show_detail.inactive span.more {
	display:inline !important;
}

.legende a.show_detail.active span.less {
	display:inline !important;
}

.text_overlay, .info {
	display:none;
	position:fixed;
	top:0;
	left:0;
	right:0;
	bottom:0;
	z-index:200;
	pointer-events:none;
	scrollbar-width: none;
}

.text_overlay.active, .info.active {
	display:block;
	pointer-events:all;
	overflow:auto;
}

.text_overlay::-webkit-scrollbar,
.info::-webkit-scrollbar {
    display: none;
}

.text_overlay a.close_overlay {
	display:inline-block;
	pointer-events:all;
	position:fixed;
	left:var(--offset);
	top:10px;
	color:var(--font_color);
}

.text_overlay, .text_overlay a.close_overlay,
.info .info a {
	color:var(--font_color) !important;
}

.text_overlay .project_text,
.info .inside_info  {
	width:70%;
	max-width:760px;
	padding:115px 10px;
	margin:0 auto;
	pointer-events:all;
}

.text_overlay .project_text a {
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: 3px;
}

body.active_overlay .legende, 
body.active_overlay .legende a,
body.active_overlay .counter {
	color:var(--font_color) !important;
}

/*------------------------------------------------------
INFO
------------------------------------------------------*/

.info {
	z-index:50;
	background:#fff;
	overflow:auto;
}

.info .inside_info {
	padding-bottom:var(--offset);
}


/*------------------------------------------------------
IE
------------------------------------------------------*/

.ie_message {
	display: none;
	padding: 10px;
}

.ie_message a {
	text-decoration: underline;
}

@media screen and (-ms-high-contrast: active), (-ms-high-contrast: none) {  
	.ie_message {
		display: block !important;
	}
   header, main, footer {
    display: none !important
   }
}

/*------------------------------------------------------
MOBILE
------------------------------------------------------*/

@media all and (max-width: 540px) and (min-width: 0) {

	header a.do_filter.active, 
	header a.info_page.active, 
	.legende a {
		text-decoration: underline;
		text-decoration-thickness: 1px;
		text-underline-offset: 2px;
	}

	header .outer_filters {
		position:relative;
	}

	header .current_filter.inactive {
		display:block;
		opacity:0;
	}

	header .filters {
		width:auto !important;
	}

	header .filters.active {
		position:absolute;
		top:0;
		left:0;
	}

	header .filters.active .do_filter {
		display:table;
		margin-bottom:5px;
	}

	.text_overlay .project_text, .info .inside_info {
		width: -moz-calc(100% - 20px);
		width: -webkit-calc(100% - 20px);
		width: -o-calc(100% - 20px);
		width: calc(100% - 20px);
	}

	.lottie_player_outer .lottie_player {
		width:90vw;
		height: calc(var(--vh, 1vh) * 90);
	}

	.doppelbild_column_left, .doppelbild_column_right {
		display:none;
	}

	.doppelbild_column_left.is_mobile,
	.doppelbild_column_right.is_mobile {
		display:block;
		width:100%;
		float:none;
	}

}