@font-face {
  font-family: "DMSans";
  src: url("../fonts/DMSans-VariableFont_opsz,wght.ttf") format("woff2-variations");
  font-weight: 100 900; 
  font-stretch: 75% 125%;
  font-style: oblique 0deg 20deg;
  font-display: swap;
}


/* https://www.svgrepo.com/ */
/* https://css-generators.com/svg-to-css/ */
/* https://isotropic.co/tool/hex-color-to-css-filter/ */


:root {

	color-scheme: light dark;

	--color-success: 	#06d6a9;
	--color-alert: 		#F25648;
	--color-error: 		#f01c09;
	--color-accessibility: rgb(0, 48, 135);

	--color-theme:  	#f3a22b;
	--color-theme2: 	color-mix(in srgb, var(--color-theme), transparent 50%);
	--color-secondary: 	#f5a640;
	--color-secondary2: color-mix(in srgb, var(--color-theme), var(--color-black) 50%);

	/* https://colorbox.io/ */
	--color-white: 		light-dark(#ffffff, #000000);
	--color-gray-050:   light-dark(#f2f2f2, #0d0d0d);
	--color-gray-100:   light-dark(#e6e6e6, #191919);
	--color-gray-150:   light-dark(#d9d9d9, #262626);
	--color-gray-200:   light-dark(#cccccc, #333333);
	--color-gray-250:   light-dark(#bfbfbf, #404040);
	--color-gray-300:   light-dark(#b3b3b3, #4d4d4d);
	--color-gray-350:   light-dark(#a6a6a6, #595959);
	--color-gray-400:   light-dark(#999999, #666666);
	--color-gray-450:   light-dark(#8c8c8c, #737373);
	--color-gray-500:   light-dark(#808080, #808080);
	--color-gray-550:   light-dark(#737373, #8c8c8c);
	--color-gray-600:   light-dark(#666666, #999999);
	--color-gray-650:   light-dark(#595959, #a6a6a6);
	--color-gray-700:   light-dark(#4d4d4d, #b3b3b3);
	--color-gray-750:   light-dark(#404040, #bfbfbf);
	--color-gray-800:   light-dark(#333333, #cccccc);
	--color-gray-850:   light-dark(#262626, #d9d9d9);
	--color-gray-900:   light-dark(#191919, #e6e6e6);
	--color-gray-950:   light-dark(#0d0d0d, #f2f2f2);
	--color-black: 		light-dark(#000000, #ffffff);
	
	--color-bodyBg:   	var(--color-gray-050);
	--color-bodyText: 	var(--color-gray-900);

	--color-menuBg:   	var(--color-white);
	--color-menuText:  	var(--color-gray-800);
	--color-menuTextHover: var(--color-black);

	--color-footerBg:   var(--color-gray-100);
	--color-footerText: var(--color-gray-900);
	
	--shadow-light: 	rgba(0, 0, 0, 0.2) 0px 2px 8px 0px;
	--shadow-medium: 	rgba(0, 0, 0, 0.1) 3px 4px 8px;
	--shadow-dark: 		rgba(50, 50, 50, 0.25) 0px 13px 27px -5px, rgba(0, 0, 0, 0.3) 0px 8px 16px -8px;
	--shadow-big: 		rgba(0, 0, 0, 0.15) 0px 5px 15px 0px;
	
	/* cards */
	
		--color-cardBg:   	light-dark( var(--color-white), var(--color-gray-150) );
		--color-cardImgBg:	var(--color-gray-100);
		--color-cardText: 	var(--color-gray-950);

        --cardGrid-gap-w:   2em;
        --cardGrid-gap-h:   2em;
        --cardGrid-col-w:   240px;
        --cardGrid-align:   stretch; /* start | stretch */

        --card-height:      25vh;
        --card-gap-w:       0;
        --card-gap-h:       0;
        --cardV-img-ratio:  1.3;
        --cardH-img-width:  40%;
        --cardContent-gap:  1rem;
        --cardContent-padding-w:  1em;
        --cardContent-padding-h:  .75em;

	font-weight: 400;

	&:has(body[data-color-scheme="light"]) {
		color-scheme: light;
	}

	&:has(body[data-color-scheme="dark"]) {

		color-scheme: dark;
		font-weight: 300;
		
		& img {
			filter: brightness(.8); /* contrast(1.2) */
		}
		
	}
}

body {
	font-family: "DMSans", sans-serif;
	background-color: var(--color-bodyBg);
	color: var(--color-bodyText);

	overflow-y: scroll;
	overflow-x: hidden;
	
	font-size: attr(data-scale type(<percentage>), 100%);
}

* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}

a{
    color: inherit;
	text-decoration: none;
}

ul, ol {
    list-style: none;
}

h1, h2{
	max-width: 30ch;
	word-break: break-word;
	text-wrap: balance;
}

img {
	max-width: 100%;
}

select {
	cursor: pointer;
}

button {
	cursor: pointer;
	background-color: transparent;
	color: var(--color-gray-900);
	border: 0;
}

button,
select,
a,
input{
	
	font-family: inherit;

	&:focus-visible {
		outline: 2px dotted var(--color-accessibility);
		outline-offset: 5px;
	}
	
	&:focus:not(:focus-visible) {
		outline: none !important;
	}

}

.custom-scroll{
	padding-right: .5em;
	
	&::-webkit-scrollbar {
		width: 5px;
	}
	&::-webkit-scrollbar-track {
		background: var(--color-gray-100); 
		box-shadow: inset 0px 0px 0px 1px var(--color-cardBg);
	}
	&::-webkit-scrollbar-thumb {
		background: var(--color-gray-300);
		transition: all .3s ease;

		&:hover {
			background: var(--color-gray-500);
		}
	}
}

/* VIDEO PLAYER */

	.video-player{
		position: relative;
		width: 100%;
		height: 100%;
		display: block;
		
		&::before{
			content: '';
			width: 3.5em;
			height: 3.5em;
			position: absolute;
			top: 50%;
			left: 50%;
			transform: translate(-50%, -50%);
			background-color: #00000066;
			backdrop-filter: blur(5px);
			transition: all .3s ease-in-out;
			pointer-events: none;
			border-radius: 50% ;
			z-index: 8;
		}
		
		&::after{
			content: '';
			width: 1.5em;
			height: 1.5em;
			position: absolute;
			top: 50%;
			left: 50%;
			transform: translate(-50%, -50%);
			background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' version='1.1' viewBox='0 0 60 60'> <polygon points='58.46,30.63 7.59,1.27 7.59,60 '/></svg>");
			background-position: center;
			background-size: cover;
			transition: all .3s ease-in-out;
			pointer-events: none;
			z-index: 8;
			filter: invert(1);
		}
		
		&:hover::after{
			width: 1.8em;
			height: 1.8em;
		}

		&:hover::before{
			width: 4em;
			height: 4em;
		}
	}

	body[data-color-scheme="dark"] .icon-darkmode::after{
		filter: invert(1);
	}

/* MAIN HEADER */

	.header-sticky{
		position: sticky;
		top: 8.5em;
	}

	.base-column{
		width: 90%;
		max-width: 1400px;
		margin-inline: auto;
	}

	.side-content-column{

		display: flex;
		gap: 5%;

		& > *:nth-child(1){ flex: 0 0 25%; }
		& > *:nth-child(2){ flex: 1 0 max(70%, 400px); }
	}

			@media( width < 800px ){
				.side-content-column{
					flex-direction: column;
					gap: 2em;
				}
			}
	
	.container {
		display: grid;
		grid-template-columns: repeat(12, 1fr);
		gap: 0 2.5%;
		grid-auto-rows: min-content;
	}

			.full-container {
				grid-column: 1 / -1;
			}

			.wide-container {
				grid-column: 2 / -2;
			}

			.column-side-container {
				grid-column: 2 / 6;
			}

			.column-body-container {
				grid-column: 6 / -2;
			}

			@media( width < 800px ){
				.wide-container,
				.column-side-container,
				.column-body-container,
				.full-container {
					grid-column: 2 / -2;
				}
			}

			@media( width < 600px ){
				.wide-container,
				.column-side-container,
				.column-body-container,
				.full-container {
					grid-column: 1 / -1;
				}
			}


/* MAIN */

	body > main {
		&.item, 
		&.list{
			padding-block: 3.5em 7.5em;
		}
	}

	body > main > header {
		margin-bottom: 3.5em;
	}


/* BREADCRUMB */

	.breadcrumb {
		background-color: var(--color-white);

		& .trail > *:not(:last-child):after {
			content: '>';
			margin: 0 .5rem;
			color: var(--color-gray-700);
		}
	}


/*FOOTER*/

	footer{
		padding-block: 2em 8em;
		color: var(--color-footerText);
		background-color: var(--color-footerBg);
		text-align: right;
		text-transform: uppercase;
		font-size: 0.8em;
	}

	.cookie-notification{

		background-color: #000000dc;
		width: 100%;
		position: fixed;
		grid-template-columns: repeat(12, 1fr);
		bottom: 0;
		left: 0;
		color: white;
		padding: 2rem 0;
		z-index: 2;
		
		& p {
			margin-bottom:1.25em;
		}
	
		& a {
			border: var(--color-theme) 2px solid;
			border-radius: 5px;
			padding: .3rem;
			color: white;
			text-decoration: none;
		
			&:hover {
				background-color: var(--color-theme);
			}
		}
	}

	.cookie-content{
		grid-column: 2/-2;
	}

		
/* GLIGHTBOX */

	.glightbox-clean{

		& .gdesc-inner {
			padding: 0 !important;
		}

		& .gslide-description {
			background: transparent !important;
			text-align: center;
		}
	
		& .gslide-title {
			margin: .5em 0 !important;
			color: #ffffff !important;
			font-size: .8em !important;
		}
	}