@charset "UTF-8";

/**

version : 3.0

.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
*/

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


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

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


	--overlay-border-radius: 2em;
}

/******************************/
/******************************/
/********** OVERLAYS **********/
/******************************/
/******************************/

/********** OVERLAYS **********/

#overlays {
	position:relative;
	z-index:10000;
	transform:none !important;
	margin:0 !important;
	pointer-events: none;
}

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

.overlay {
	position:fixed;
	z-index:1000;
	top:0;
	right:0;
	bottom:0;
	left:0;
	display:block;
	max-height:100%;
	width:100%;
	overflow:hidden;
	-webkit-overflow-scrolling:touch;
	opacity: 0;
	pointer-events:none;
	visibility: hidden;
	background: rgba(var(--dark-rgb), 0);
	backdrop-filter: blur(0);
}
.overlay.active {
	overflow-x:hidden;
	overflow-y:auto;
	scroll-behavior: smooth;
	opacity:1;
	cursor: pointer;
	pointer-events: all; /* issue with accessibility */
	visibility: visible;
	background: rgba(var(--dark-rgb), .33);
	backdrop-filter: blur(.5em);
}

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

.overlay .overlay-container {
	position:relative;
	z-index:100;
	min-height:100%;
	display:flex;
	flex-direction:column;
	margin:0 auto;
	cursor:auto;
	pointer-events:none;
	filter:drop-shadow(0 0 .25em rgba(var(--dark-rgb), 0));
	background:var(--bright-color);
}
.overlay.active .overlay-container {
	filter:drop-shadow(0 0 .25em rgba(var(--dark-rgb), .5));
}

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

body.overlayed {
	overflow:hidden !important;
}
body.overlayed main,
body.overlayed footer {
	pointer-events:none;
}

/****************************************************/
/****************************************************/
/********** OVERLAY POSITIONS / ANIMATIONS **********/
/****************************************************/
/****************************************************/

/**
if no position == fading animation
**/

.overlay.top .overlay-container {
	        transform:translate3d(0,-100%,0);
}
.overlay.bottom .overlay-container {
	        transform:translate3d(0,100%,0);
}
.overlay.left .overlay-container {
	        transform:translate3d(-100%,0,0);
}
.overlay.right .overlay-container {
	        transform:translate3d(100%,0,0);
}
.overlay.top.active .overlay-container,
.overlay.bottom.active .overlay-container,
.overlay.left.active .overlay-container,
.overlay.right.active .overlay-container {
	        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-container,
	.overlay.short.right .overlay-container {
		max-width:80%;
	}
}
@media (min-width:1000px) {
	.overlay.short.left .overlay-container,
	.overlay.short.right .overlay-container {
		max-width:60%;
	}
}

/***********************************/
/***********************************/
/********** OVERLAY MODAL **********/
/***********************************/
/***********************************/

/**
floating modal box
**/

.overlay.modal {
	display: flex;
	align-items:center;
	padding: var(--gutter-gap);
}
.overlay.modal .overlay-container {
	display:flex;
	flex-direction:column;
	margin:auto;
	min-height:auto;
	width:auto;
	/*pointer-events: all;*/
	border-radius: 2em;
}

/********** OVERLAY MODAL POSITIONS **********/

.overlay.modal.top .overlay-container {
	margin-top:0;
}
.overlay.modal.bottom .overlay-container {
	margin-bottom:0;
}
.overlay.modal.left .overlay-container {
	margin-left:0;
}
.overlay.modal.right .overlay-container {
	margin-right: 0;
}

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

/* default / short */

@media (max-width:760px) {
	.overlay.modal .overlay-container {
		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 .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 .overlay-container .overlay-header,
.overlay .overlay-container .overlay-content,
.overlay .overlay-container .overlay-footer {
	position:relative;
	width:100%;
	padding:var(--gutter-gap);
}
.overlay.active .overlay-container .overlay-header,
.overlay.active .overlay-container .overlay-content,
.overlay.active .overlay-container .overlay-footer {
	position:relative;
	pointer-events:all;
}

/********** SPACING **********/

.overlay .overlay-container .overlay-header + .overlay-content {
	padding-top: 0;
}
.overlay .overlay-container:has(.overlay-footer) .overlay-content {
	padding-bottom: 0;
}

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

.overlay .overlay-container .overlay-header.sticky,
.overlay .overlay-container .overlay-footer.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;
}

/********** CONTENT **********/

/** like main **/

.overlay .overlay-content {
	flex-grow:1;
	display:inline-flex;
	flex-direction:column;
	overflow:unset;
	max-width: var(--content-maxwidth);
	margin-left:auto;
	margin-right:auto;
}
.overlay-content.vertical-centered {
	justify-content:center;
}

/********** MODAL **********/

/** modal padding ! **/

.overlay.modal .overlay-container .overlay-header {
	border-radius: 2em 2em 0 0;	
}
.overlay.modal .overlay-container .overlay-footer {
	border-radius: 0 0 2em 2em;
}
.overlay.modal .overlay-container .overlay-header.sticky {
	top: calc(var(--gutter-gap) * -1);
}
.overlay.modal .overlay-container .overlay-footer.sticky {
	bottom: calc(var(--gutter-gap) * -1);
}

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

.overlay.is-loading:before {
	position:absolute;
	z-index:110;
	top:50%;
	left: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;
	pointer-events: all;
}

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

.overlay .overlay-container > .overlay-close:first-child,
.overlay .overlay-header > .overlay-close:first-child {
	position: absolute;
	z-index: 40;
	top: 0;
	right: 0;
	display: flex;
	line-height: 1;
	padding:1em;
	margin: 0 0 0 auto;
}

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

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

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

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

/**********************************************/
/**********************************************/
/********** 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 {
	user-select:none;
	pointer-events:none;
}
/****************************/
/****************************/
/********** CUSTOM **********/
/****************************/
/****************************/