@charset "UTF-8";

/*
.overlay > overlay-container > overlay-header + overlay-content + overlay-footer

.overlay			== fullscreen [default]
.overlay.short		== not fullscreen
.overlay.modal		== floating box [default] - to combine with .left / .right / .top / .bottom - to combine with .short

.overlay positions	== .overlay.top / .overlay.left / .overlay.right / .overlay.bottom == auto height

.overlay.interactive	== keeps page interactive (no clickoutside)
.overlay.freeze			== clickoutside disabled (eg. cookies)
.overlay.instant		== no transition animation (instantly visible > eg. cookies)

.overlay.vertical-centered	== overlay-content vertical centered

body.overlayed				== default > no scrollbar
body.overlayed.interactive	== has scrollbar
body.overlayed.freeze		== no interactions
body.overlayed.instant		== at start

.clickoutside
.overlay-close
*/

/**************************/
/**************************/
/********** VARS **********/
/**************************/
/**************************/

:root {
	--overlay-width-short: 60%;
	--overlay-width-limit: 40rem;
	--overlay-bg-opacity:.66;
}

/******************************/
/******************************/
/********** OVERLAYS **********/
/******************************/
/******************************/
/* visibility == for :focus-visible */

/********** OVERLAY DEFAULT **********/

#overlays {
	position:relative;
	z-index:10000;
	-webkit-transform:none !important;
	   -moz-transform:none !important;
	    -ms-transform:none !important;
	     -o-transform:none !important;
	        transform:none !important;
	margin:0 !important;
}
.overlay {
	position:fixed;
	z-index:1000;
	top:0;
	right:0;
	bottom:0;
	left:0;
	display:block;
	max-height:100%;
	width:100%;
	opacity:0;
	overflow:hidden;
	-webkit-overflow-scrolling:touch;
	pointer-events:none;
	visibility: hidden;
}
.overlay.active {
	opacity:1;
	cursor:pointer;
	pointer-events:all; /* issue with accessibility */
	opacity:1;
	overflow-x:hidden;
	overflow-y:auto;
	visibility: visible;

	scroll-behavior: smooth;
}

/********** OVERLAY CONTAINER **********/

.overlay .overlay-container {
	position:relative;
	z-index:100;
	min-height:100%;
	margin:0 auto;
	pointer-events:none;
	cursor:auto;
	display:-webkit-box;
	display:-webkit-flex;
	display:-moz-box;
	display:-ms-flexbox;
	display:flex;
	-webkit-box-orient:vertical;
	-webkit-box-direction:normal;
	-webkit-flex-direction:column;
	   -moz-box-orient:vertical;
	   -moz-box-direction:normal;
	    -ms-flex-direction:column;
	        flex-direction:column;
}
.overlay.active .overlay-container > * {
	position:relative;
	pointer-events:all;
}

/********** OVERLAYED **********/

body.overlayed {
	overflow:hidden !important;
}

/********** OVERLAY-CONTENT **********/

.overlay .overlay-content {
	-webkit-box-flex:1;
	-webkit-flex-grow:1;
	   -moz-box-flex:1;
	    -ms-flex-positive:1;
	        flex-grow:1;
	overflow-y: auto;
	overflow-x: hidden;
}
.overlay-content.vertical-centered {
	display:-webkit-inline-box;
	display:-webkit-inline-flex;
	display:-moz-inline-box;
	display:-ms-inline-flexbox;
	display:inline-flex;
	-webkit-box-orient:vertical;
	-webkit-box-direction:normal;
	-webkit-flex-direction:column;
	   -moz-box-orient:vertical;
	   -moz-box-direction:normal;
	    -ms-flex-direction:column;
	        flex-direction:column;
	-webkit-box-pack:center;
	-webkit-justify-content:center;
	   -moz-box-pack:center;
	    -ms-flex-pack:center;
	        justify-content:center;
}

/****************************************************/
/****************************************************/
/********** OVERLAY POSITIONS / ANIMATIONS **********/
/****************************************************/
/****************************************************/
/* if no position == fading animation */

.overlay.top {
	-webkit-transform:translate3d(0,-100%,0);
	   -moz-transform:translate3d(0,-100%,0);
	        transform:translate3d(0,-100%,0);
}
.overlay.bottom {
	-webkit-transform:translate3d(0,100%,0);
	   -moz-transform:translate3d(0,100%,0);
	        transform:translate3d(0,100%,0);
}
.overlay.left {
	-webkit-transform:translate3d(-100%,0,0);
	   -moz-transform:translate3d(-100%,0,0);
	        transform:translate3d(-100%,0,0);
}
.overlay.right {
	-webkit-transform:translate3d(100%,0,0);
	   -moz-transform:translate3d(100%,0,0);
	        transform:translate3d(100%,0,0);
}
.overlay.top.active,
.overlay.bottom.active,
.overlay.left.active,
.overlay.right.active {
	-webkit-transform:translate3d(0,0,0);
	   -moz-transform:translate3d(0,0,0);
	        transform:translate3d(0,0,0);
}

/***********************************/
/***********************************/
/********** OVERLAY SHORT **********/
/***********************************/
/***********************************/
/*
not fullscreen
top, bottom == full width / min height
left, right == min width / full height
*/

/********** SHORT DEFAULT **********/

.overlay.short.top {
	bottom:unset;
}
.overlay.short.right {
	left:unset;
}
.overlay.short.bottom {
	top:unset;
}
.overlay.short.left {
	right:unset;
}
.overlay.short.top .overlay-container,
.overlay.short.bottom .overlay-container {
	min-height:auto;
	width:auto;
}
.overlay.short.top .overlay-container {
	margin:0 auto auto auto;
}
.overlay.short.bottom .overlay-container {
	margin:auto auto 0 auto;
}
.overlay.short.left .overlay-container {
	margin:auto auto auto 0;
}
.overlay.short.right .overlay-container {
	margin:auto 0 auto auto;
}

/********** @MEDIA **********/

@media (min-width:760px) {
	.overlay.short.left,
	.overlay.short.right {
		max-width:60%;
	}
}

/***********************************/
/***********************************/
/********** OVERLAY MODAL **********/
/***********************************/
/***********************************/
/* floating modal box */

.overlay.modal {
	display:-webkit-box;
	display:-webkit-flex;
	display:-moz-box;
	display:-ms-flexbox;
	display:flex;
	-webkit-box-align:center;
	-webkit-align-items:center;
	   -moz-box-align:center;
	    -ms-flex-align:center;
	        align-items:center;
}
.overlay.modal.active {
	pointer-events:none;
}
.overlay.modal .overlay-container {
	display:-webkit-box;
	display:-webkit-flex;
	display:-moz-box;
	display:-ms-flexbox;
	display:flex;
	-webkit-box-orient:vertical;
	-webkit-box-direction:normal;
	-webkit-flex-direction:column;
	   -moz-box-orient:vertical;
	   -moz-box-direction:normal;
	    -ms-flex-direction:column;
	        flex-direction:column;
	margin:auto;
	min-height:auto;
	width:auto;
	pointer-events: all;
	-webkit-filter:drop-shadow(0 0 .25em rgba(45,55,55,.5));
	        filter:drop-shadow(0 0 .25em rgba(45,55,55,.5));
}
.overlay.modal.top .overlay-container {
	margin:var(--gutter-gap) auto auto auto;
}
.overlay.modal.bottom .overlay-container {
	margin:auto auto var(--gutter-gap) auto;
}
.overlay.modal.left .overlay-container {
	margin:auto auto auto var(--gutter-gap);
}
.overlay.modal.right .overlay-container {
	margin:auto var(--gutter-gap) auto auto;
}

/********** @MEDIA **********/
/* default / short */

@media (max-width:760px) {
	.overlay.modal .overlay-container {
		width:-webkit-calc(100% - var(--gutter-gap) * 2);
		width:-moz-calc(100% - var(--gutter-gap) * 2);
		width:calc(100% - var(--gutter-gap) * 2);
	}
}
@media (min-width:760px) {
	.overlay.modal.left .overlay-container,
	.overlay.modal.right .overlay-container {
		max-width:var(--overlay-width-short);
		width:var(--overlay-width-short);
	}
	.overlay.modal.short .overlay-container {
		width:auto;
		min-width:var(--overlay-width-limit);
	}
}

/*******************************************************/
/*******************************************************/
/********** OVERLAY HEADER / CONTENT / FOOTER **********/
/*******************************************************/
/*******************************************************/
/* .overlay-container > .overlay-header + .overlay-content + .overlay-footer */

/********** DEFAULT **********/

.overlay-header,
.overlay-content,
.overlay-footer {
	padding:var(--gutter-gap);
}
.overlay .overlay-container .overlay-header,
.overlay .overlay-container .overlay-content,
.overlay .overlay-container .overlay-footer {
	position:relative;
	width:100%;
}

/********** FULL **********/
/* no padding */

.overlay.full .overlay-header,
.overlay.full .overlay-content,
.overlay.full .overlay-footer {
	padding:0;
}

/********** STICKY **********/

.overlay .overlay-container .overlay-header.sticky,
.overlay .overlay-container .overlay-footer.sticky {
	position:-webkit-sticky;
	position:sticky;
	z-index:30;
	background:var(--bright-color);
}
.overlay .overlay-container .overlay-header.sticky {
	top:0;	
}
.overlay .overlay-container .overlay-footer.sticky {
	bottom:0;
}

/*************************************/
/*************************************/
/********** OVERLAY LOADING **********/
/*************************************/
/*************************************/

.overlay.is-loading:before {
	position:absolute;
	z-index:110;
	top:50%;
	left:50%;
	-webkit-transform:translate(-50%,-50%);
	   -moz-transform:translate(-50%,-50%);
	    -ms-transform:translate(-50%,-50%);
	     -o-transform:translate(-50%,-50%);
	        transform:translate(-50%,-50%);
	pointer-events: none;
}
.overlay.is-loading .overlay-content {
	opacity:0;
}

/***********************************/
/***********************************/
/********** OVERLAY CLOSE **********/
/***********************************/
/***********************************/

/********** DEFAULT **********/

.overlay-close {
	opacity:0;
}
.overlay.active .overlay-close {
	opacity:1;
}

/********** ONLY TOP ONE **********/

.overlay .overlay-container > .overlay-close:first-child,
.overlay .overlay-header > .overlay-close:first-child {
	position:-webkit-sticky;
	position:sticky;
	z-index:20;
	top:0;
	left:100%;
	right:auto;
	display:-webkit-inline-box;
	display:-webkit-inline-flex;
	display:-moz-inline-box;
	display:-ms-inline-flexbox;
	display:inline-flex;
	line-height:1em;
	border:0;
	padding:1em;
	margin:0 0 0 auto;
}
.overlay .overlay-header > .overlay-close:first-child {
	margin:0 0 0 auto;
}
.overlay .overlay-container > .overlay-close + * {
	margin-top:-webkit-calc(var(--gutter-gap) * -2) !important;
	margin-top:-moz-calc(var(--gutter-gap) * -2) !important;
	margin-top:calc(var(--gutter-gap) * -2) !important;
}
.overlay.modal .overlay-container > .overlay-close + *,
.overlay .overlay-header > .overlay-close + * {
	margin-top:-webkit-calc(var(--gutter-gap) * -1) !important;
	margin-top:-moz-calc(var(--gutter-gap) * -1) !important;
	margin-top:calc(var(--gutter-gap) * -1) !important;
}

/********** @MEDIA **********/

@media (min-width:0px) {
	.overlay .overlay-container > .overlay-close,
	.overlay .overlay-header > .overlay-close {
		font-size:1.5em;
	}
}
@media (min-width:760px) {
	.overlay .overlay-container > .overlay-close,
	.overlay .overlay-header > .overlay-close {
		font-size:2em;
	}
}

/**********************************/
/**********************************/
/********** CLICKOUTSIDE **********/
/**********************************/
/**********************************/
/* zone for closing in overlays */

.clickoutside {
	position:fixed;
	z-index:900;
	top:0;
	left:0;
	right:0;
	bottom:0;
	font-size:0;
	opacity:0;
	pointer-events:none;
}
body.overlayed .clickoutside {
	opacity:var(--overlay-bg-opacity);
	pointer-events:auto;
}

/*****************************************/
/*****************************************/
/********** OVERLAY INTERACTIVE **********/
/*****************************************/
/*****************************************/
/* keeps page interactive == no clickoutside */

body.overlayed.interactive {
	overflow:auto !important;
}
body.overlayed.interactive main {
	pointer-events:all;
}
body.overlayed.interactive .clickoutside {
	display:none;
}

/**********************************************/
/**********************************************/
/********** OVERLAY FREEZE / INSTANT **********/
/**********************************************/
/**********************************************/
/* no behaviours until overlay closed == for ex. cookies */

.overlay.freeze:after,
.overlay.instant:after {
	content:"";
	position:fixed;
	z-index:1;
	top:0;
	left:0;
	bottom:0;
	right:0;
	opacity:var(--overlay-bg-opacity);
}
.overlay.freeze,
body.overlayed.freeze,
body.freeze.overlayed main,
body.freeze.overlayed .clickoutside {
	-webkit-user-select:none;
	   -moz-user-select:none;
	    -ms-user-select:none;
	        user-select:none;
	pointer-events:none;
}
body.freeze.overlayed .clickoutside,
body.instant.overlayed .clickoutside {
	opacity:0;
	pointer-events:none;
}

/****************************/
/****************************/
/********** CUSTOM **********/
/****************************/
/****************************/

.overlay .swiper-container.gallery {
	height: calc(var(--viewport-height) - var(--gutter-gap) * 4);
}
#overlay-newsletter .iframe-container {
	min-height:-webkit-calc(var(--viewport-height) * .75);
	min-height:-moz-calc(var(--viewport-height) * .75);
	min-height:calc(var(--viewport-height) * .75);
}

/****************************/
/****************************/
/********** COLORS **********/
/****************************/
/****************************/

.overlay .overlay-container {
	background:var(--bright-color);
}
.overlay.freeze:after,
.overlay.instant:after,
.clickoutside {
	background:var(--light-color);
}