body {
	padding: 0;
	margin: 0;
}

#interactive-header-wrapper {
	height: 400px;
	width: 100%;
	position: relative;
	overflow: hidden;
	margin: 0 0 70px 0;
	/* transition: 1s; doesnt work because of resize js function */
}

body.no-web-gl #interactive-header-wrapper {
	height: 150px !important;
	background-image: url("nowebgl.png");
	background-size: cover;
	background-position: bottom;
}

#interactive-header-wrapper * {
	touch-action: pan-y;
	user-select: none;
}


#interactive-header-wrapper * {
	-webkit-user-select: none;
	-moz-user-select: none;
	-o-user-select: none;
}
body.unfolded {
	overflow: hidden;
}
#interactive-header-wrapper.unfolded {
	height: 100vh;
	overflow: hidden;
	margin: 0;	transition: 1s;
	
}

#interactive-header-wrapper.unfolded {
	height: 100vh;
	overflow: hidden;
}

#interactive-header-wrapper canvas {
	filter: contrast(1.2) grayscale(10%) sepia(20%);
}

#console {
	font-family: sans-serif;
	position: absolute;
	left: 20px;
	top: 20px;
	font-size: 20px;
	color: rgba(255,255,255,0.5);
	z-index: 10;
}

#fullscreen {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 20px;
	display: block;
	padding: 10px 15px;
	text-transform: uppercase;
	line-height: 18px;
	width: 160px;
	background: white;
	color: #1b2754;
	margin: auto;
	cursor: pointer;
	box-shadow: 0 0 5px 0px rgba(0,0,0,0.1);
	opacity: 1;
	visibility: visible;
	transition: 0.15s;
	background-image: url("data:image/svg+xml,%3Csvg id='Layer_1' data-name='Layer 1' xmlns='http://www.w3.org/2000/svg' viewBox='0 0 25.23 41.97'%3E%3Cdefs%3E%3Cstyle%3E .cls-1 %7B fill: none; stroke: %231b2754; stroke-linecap: square; stroke-miterlimit: 10; stroke-width: 6px; %7D %3C/style%3E%3C/defs%3E%3Cline class='cls-1' x1='20.98' y1='20.98' x2='4.24' y2='37.72'/%3E%3Cline class='cls-1' x1='20.98' y1='20.98' x2='4.24' y2='4.24'/%3E%3C/svg%3E%0A");
	background-size: 20px 20px;
	background-position: 160px 8px;
	background-repeat: no-repeat;
	z-index: 100;
	font-weight: 600;
	box-shadow: 0 0 5px 0px rgba(0,0,0,0.1);
}

#fullscreen.hidden {
	opacity: 0;
	visibility: hidden;
}

#fullscreen.shake {
  /*animation: shake 0.82s cubic-bezier(.36,.07,.19,.97) both;*/
  transform: scale(1.2);
}

body.no-web-gl #fullscreen {
	display: none !important;
}

@keyframes shake {
  10%, 90% {
    transform: translate3d(-1px, 0, 0);
  }

  20%, 80% {
    transform: translate3d(2px, 0, 0);
  }

  30%, 50%, 70% {
    transform: translate3d(-4px, 0, 0);
  }

  40%, 60% {
    transform: translate3d(4px, 0, 0);
  }
}
/* MEDIA WIDGET */


#media-widget {
	position: fixed;
	left: 0;
	right: 0;
	top: 40px;
	margin: auto;
	z-index: 490;
	width: 50vw;
	max-width: 500px;
	height: calc(100vh - 170px);
	max-height: 700px;
	background: white;
	box-shadow: 0 0 20px 10px rgba(0,0,0,0.35);
	opacity: 0;
	visibility: hidden;
	transition: 0.25s;
}

#media-widget.show {
	opacity: 1;
	visibility: visible;
}

#media-widget-close {
	position: absolute;
	top: 10px;
	right: 10px;
	width: 15px;
	height: 15px;
	background-image: url("data:image/svg+xml,%3Csvg id='Layer_1' data-name='Layer 1' xmlns='http://www.w3.org/2000/svg' viewBox='0 0 47.26 47.26'%3E%3Cdefs%3E%3Cstyle%3E .cls-1 %7B fill: none; stroke: %231b2754; stroke-miterlimit: 10; stroke-width: 6px; %7D %3C/style%3E%3C/defs%3E%3Cline class='cls-1' x1='45.14' y1='2.12' x2='19.53' y2='27.73'/%3E%3Cline class='cls-1' x1='2.12' y1='45.14' x2='20.56' y2='26.7'/%3E%3Cline class='cls-1' x1='45.14' y1='45.14' x2='26.7' y2='26.7'/%3E%3Cline class='cls-1' x1='2.12' y1='2.12' x2='26.7' y2='26.7'/%3E%3C/svg%3E%0A");
	background-size: 15px 15px;
	padding: 5px;
	background-repeat: no-repeat;
	background-color: white;
	background-position: center center;
	box-shadow: 0 0 5px 0px rgba(0,0,0,0.1);
	z-index: 9999;
}

#media-wrapper {
	position: relative;
	height: 65%;
	background-color: #fcfcf9;
	background-image: url(icons/ajax-loader.gif);
	background-position: center center;
	background-repeat: no-repeat;
	background-size: 10px 10px;
	overflow: hidden;
}
#media-widget-media,
#media-widget-prev-media,
#media-widget-next-media {
	height: 100%;
	width: 100%;
}

#media-widget-prev-media,
#media-widget-next-media {
	display: none;
}

#media-widget.album #media-widget-prev-media,
#media-widget.album #media-widget-next-media {
	display: block;
	transition: 0.2s;
}

.media-widget-media img,
.media-widget-media video {
	width: 100%;
	height: 100%;
	object-fit: contain;
	pointer-events: none;
	display: block;
}

#media-widget-next-media img,
#media-widget-next-media video {
	object-position: left center;
	opacity: 0.3;
}

#media-widget-prev-media img,
#media-widget-prev-media video {
	object-position: right center;
	opacity: 0.3;	
}

#media-widget.album #media-widget-media img,
#media-widget.album #media-widget-media video {
	width: calc(100% - 80px);
	margin: 0 auto;
}

#media-widget-media {
	transition: transform 0.2s 0s, left 0.2s 0s, top 0.2s 0s;
	position: absolute;
}

#media-wrapper.scaled {
	background-image: none;	
}

#media-wrapper.scaled #media-widget-media {
	transition: transform 0.2s 0s;
	transform: scale(2);
}

@media only screen and (max-width: 1024px) {
	#media-wrapper.scaled #media-widget-media {
		transition: transform 0.2s 0s;
		transform: scale(3);
	}	
}

#media-wrapper.scaled #media-widget-prev-media,
#media-wrapper.scaled #media-widget-next-media {
	opacity: 0;
}

#media-widget-prev-media {
	position: absolute;
	top: 0;
	background: none;
	-webkit-transform: translate(calc(-100% + 30px));
}

#media-widget-next-media {
		position: absolute;
		top: 0;
		background: none;		
		-webkit-transform: translate(calc(100% - 30px));
	}
	

#media-widget-media video {
	pointer-events: all;
}

#media-widget-info {
	position: relative;
	height: calc(35% - 40px);
	background: white;
	padding: 20px;
	font-size: 12px;
}

#media-widget-title {
	font-size: 16px;
	font-weight: 600;
	margin: 0 0 20px 0;
	color: #1b2754;
	text-transform: uppercase;
	max-width: calc(100% - 30px);
}



@media only screen and (max-width: 1024px) {

	body.unfolded #main,
	body.unfolded #footer {
		display: none;
	}

	#media-widget {
		width: calc(100vw - 20px);
		/*height: calc(100vh - 100px);*/
		height: 100%;
		top: 10px;
		/*bottom: env(safe-area-inset-bottom, 10px);*/
		max-height: calc(100vh - 180px);
		z-index: 9999999;
	}

	#media-widget.album {
		height: calc(100vh - 150px);
	}


	#media-widget-media {
		height: 100%;
	}

	#media-widget-info {
		position: relative;
		height: calc(50% - 40px);
		background: white;
		padding: 20px;
		font-size: 12px;
	}

	#interactive-header-wrapper {
		height: 200px;
	}

	#media-widget.album #media-widget-media img,
	#media-widget.album #media-widget-media video {
		width: calc(100% - 0px);
		margin: 0 auto;
	}
	
	#media-widget-next-media,
	#media-widget-prev-media,
	.prev,
	.next {
		display: none !important;
	}

}



#media-widget-year {

}

#media-widget-tags {
	margin: 0 0 10px 0;
	display: none;
}

#media-album-counter {
	font-weight: 400;
	color: white;
	padding: 0 0 5px 0;
	line-height: 1em;
	font-size: 12px;
	left: 0;
	background: white;
	color: #1b2754;
	display: none;
}

.album #media-album-counter {
	display: block;
}

#media-album-counter .count {
	float: right;
	font-size: 12px;
	font-weight: 700;
	color: #1b2754;
	padding: 3px 4px;
	margin-top: -3px;
	border-radius: 3px;
}

#media-widget-tags .tag {
	display: inline-block;
	box-shadow: 0 0 5px 0px rgba(0,0,0,0.1);
	color: #bfa32f;
	padding: 5px 10px;
	margin: 0 10px 0 0;
}

#media-widget-description {
	max-height: calc(100% - 100px);
	overflow-y: auto;
	padding-right: 20px;
	line-height: 1.1;
	font-size: 14px;
	scrollbar-color: #7f7f7f white; /* thumb and track color */
  scrollbar-width: thin;
}

#media-widget-description::-webkit-scrollbar {
  width: 5px;
  height: 8px;
  background-color: #aaa; /* or add it to the track */
}

#media-widget-description::-webkit-scrollbar-thumb {
	background: #000;
}

#media-widget-description .inner {
	max-width: 400px;
	padding-right: 20px;
	line-height: 1.2;
	word-break: break-word;
}

#media-widget .next,
#media-widget .prev {
	position: absolute;
	width: 25px;
	height: 65%;
	top: 32px;
	margin: auto;
	background-size: 25px 25px;
	background-repeat: no-repeat;
	background-position: center center;
	display: none;
	cursor: pointer;
	z-index: 9999;
}

#media-widget .prev {
	left: 0px;
	background-image: url("data:image/svg+xml,%3Csvg id='Layer_1' data-name='Layer 1' xmlns='http://www.w3.org/2000/svg' viewBox='0 0 25.23 41.97'%3E%3Cdefs%3E%3Cstyle%3E .cls-1 %7B fill: none; stroke: %231b2754; stroke-linecap: square; stroke-miterlimit: 10; stroke-width: 6px; %7D %3C/style%3E%3C/defs%3E%3Cline class='cls-1' x1='4.24' y1='20.98' x2='20.98' y2='4.24'/%3E%3Cline class='cls-1' x1='4.24' y1='20.98' x2='20.98' y2='37.72'/%3E%3C/svg%3E%0A");
}

#media-widget .next {
	right: 0px;
	background-image: url("data:image/svg+xml,%3Csvg id='Layer_1' data-name='Layer 1' xmlns='http://www.w3.org/2000/svg' viewBox='0 0 25.23 41.97'%3E%3Cdefs%3E%3Cstyle%3E .cls-1 %7B fill: none; stroke: %231b2754; stroke-linecap: square; stroke-miterlimit: 10; stroke-width: 6px; %7D %3C/style%3E%3C/defs%3E%3Cline class='cls-1' x1='20.98' y1='20.98' x2='4.24' y2='37.72'/%3E%3Cline class='cls-1' x1='20.98' y1='20.98' x2='4.24' y2='4.24'/%3E%3C/svg%3E%0A");
}

#media-widget.album .next,
#media-widget.album .prev {
	display: block;
}

#more {
	position: absolute;
	left: 20px;
	bottom: 20px;
	display: block;
	padding: 7px 10px;
	text-transform: uppercase;
	line-height: 1;
	width: auto;
	background: white;
	color: #1b2754;
	margin: auto;
	cursor: pointer;
	box-shadow: 0 0 5px 0px rgba(0,0,0,0.1);
	font-size: 14px;
	font-weight: 600;
}



#test {
	position: absolute;
	left: 0;
	top: 0;
	width: 200px;
	height: 200px;
	background: pink;
	display: none;
}

#swipe-indicator {
	position: absolute;
	top: calc(25% + 21px);
	left: 0;
	right: 0;
	margin: auto;
	height: 30px;
	width: 110px;
	z-index: 9999;
	text-align: center;
	font-size: 14px;
	line-height: 32px;
	color: #1b2754;
	font-weight: 600;
	text-transform: uppercase;
	opacity: 0;
	transition: opacity 0.25s;
	animation: fader 2s infinite;
	display: none;
	background: white;
	box-shadow: 0 0 10px 0px rgba(0,0,0,0.2);
}

#swipe-indicator.enabled {
	opacity: 1;
}

@keyframes fader {
	0% { transform: scale(1); }
  50% { transform: scale(0.9); }
  100% { transform: scale(1); }
}

#swipe-indicator:after {
	display: block;
	height: 20px;
	width: 20px;
	content: "";
	background-image: url("data:image/svg+xml,%3Csvg id='Layer_1' data-name='Layer 1' xmlns='http://www.w3.org/2000/svg' viewBox='0 0 25.23 41.97'%3E%3Cdefs%3E%3Cstyle%3E .cls-1 %7B fill: none; stroke: %231b2754; stroke-linecap: square; stroke-miterlimit: 10; stroke-width: 6px; %7D %3C/style%3E%3C/defs%3E%3Cline class='cls-1' x1='20.98' y1='20.98' x2='4.24' y2='37.72'/%3E%3Cline class='cls-1' x1='20.98' y1='20.98' x2='4.24' y2='4.24'/%3E%3C/svg%3E%0A");
	background-repeat: no-repeat;
	position: absolute;
	right: 0px;
	top: 5px;
}

#swipe-indicator:before {
	display: block;
	height: 20px;
	width: 20px;
	content: "";
	background-image: url("data:image/svg+xml,%3Csvg id='Layer_1' data-name='Layer 1' xmlns='http://www.w3.org/2000/svg' viewBox='0 0 25.23 41.97'%3E%3Cdefs%3E%3Cstyle%3E .cls-1 %7B fill: none; stroke: %231b2754; stroke-linecap: square; stroke-miterlimit: 10; stroke-width: 6px; %7D %3C/style%3E%3C/defs%3E%3Cline class='cls-1' x1='20.98' y1='20.98' x2='4.24' y2='37.72'/%3E%3Cline class='cls-1' x1='20.98' y1='20.98' x2='4.24' y2='4.24'/%3E%3C/svg%3E%0A");
	background-repeat: no-repeat;
	position: absolute;
	left: 0px;
	top: 5px;
	transform: rotate(180deg);
}

@media only screen and (max-width: 600px) {

	#swipe-indicator {
		display: block;
	}
}


#maplegend {
	position: absolute;
	bottom: 1%;
	left: 0;
	font-size: 2vmin;
	line-height: 2.2vmin;
	z-index: 99999;
	color: white;
}

@media only screen and (max-width: 600px) {
	#maplegend {
		font-size: 3vmin;
		line-height: 3.2vmin;
	}
}


#maplegend ul li {
	cursor: pointer;
	margin: 0 0 1vmin 0;
	transition: 0.25s;
}

#maplegend ul li.active {
	font-size: 1.3em;
}

#mapopen {
	width: 40px;
	height: 40px;
	background: white;
	position: absolute;
	z-index: 500;
	right: 10px;
	top: 10px;
	text-align: center;
	font-weight: 600;
	color: #1b2754;
	line-height: 40px;
	text-transform: uppercase;
	font-size: 14px;
	cursor: pointer;
	opacity: 0;
	pointer-events: none;
	transition: opacity 0.35s 1.75s, visibility 0.35s 1.75s;
}

body.lang-es #mapopen {
	font-size: 11px;
}

body.unfolded #mapopen {
	opacity: 1;
	pointer-events: all;
}


#mapopen.close {
	background-image: url("data:image/svg+xml,%3Csvg id='Layer_1' data-name='Layer 1' xmlns='http://www.w3.org/2000/svg' viewBox='0 0 47.26 47.26'%3E%3Cdefs%3E%3Cstyle%3E .cls-1 %7B fill: none; stroke: %231b2754; stroke-miterlimit: 10; stroke-width: 6px; %7D %3C/style%3E%3C/defs%3E%3Cline class='cls-1' x1='45.14' y1='2.12' x2='19.53' y2='27.73'/%3E%3Cline class='cls-1' x1='2.12' y1='45.14' x2='20.56' y2='26.7'/%3E%3Cline class='cls-1' x1='45.14' y1='45.14' x2='26.7' y2='26.7'/%3E%3Cline class='cls-1' x1='2.12' y1='2.12' x2='26.7' y2='26.7'/%3E%3C/svg%3E%0A");
	background-size: 20px 20px;
	background-position: center center;
	background-repeat: no-repeat;
	color: transparent;
}



#svgmap-holder {
 	width: calc(90vmin - 60px);
	height: calc(90vmin - 60px);
	position: absolute;
	top: 0;
	right: 0;
	bottom: 60px;
	left: 0;
	margin: auto;
	z-index: 90;
	display: none;
}

@media only screen and (max-width: 600px) {
	#svgmap-holder {
	 	width: calc(100vmin - 30px);
		height: calc(100vmin - 30px);
	}
}

#svgmap-holder.show {
	display: block;
}

#svgmap {
	width: 100%;
	height: 100%;
	background: transparent;
}

#svgmap path,
#svgmap polygon {
	fill: rgba(27, 39, 85, 0.25);
	stroke: rgba(255,255,255,1);
	transition: 0.25s;
  stroke-linejoin: round;
  stroke-width: 1px;
  position: relative;
	pointer-events: all;
}

#svgmap .cls-2 {
	fill: white;
	stroke: none;
	pointer-events: none;
}

#svgmap path:hover,
#svgmap polygon:hover,
#svgmap path.hover,
#svgmap polygon.hover {
	fill: rgba(27, 39, 85, 1);
}


body.lang-en .lang-es {
	display: none;
}

body.lang-es .lang-en {
		display: none;
	}
	
#webglmessage {
	max-width: calc(100% - 20px);
	padding: 10px !important;
	font-family: 'Gotham' !important;
	background: rgba(255,255,255,0.75);
}	