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

html {
	font-size: var(--font-size__rem-constant);
	line-height: normal; /* fix normalize.css */

	position: relative;

	box-sizing: border-box;
	min-height: 100%;
}

*,
*:before,
*:after {
	box-sizing: inherit;
}

html[data-theme="design"] ::selection {
	color: var(--color__brown-dark);
	background: var(--color__orange);
}

html[data-theme="wireframe"] ::selection {
	color: var(--color__grey);
	background: var(--color__brown-dark);
}

body {
	font-family: var(--font-family__default);
	font-size: var(--font-size__default);
	font-weight: var(--font-weight__normal);

	text-align: left;

	color: var(--color__brown-dark);
	background: var(--color__grey);

	-webkit-tap-highlight-color: rgba(0, 0, 0, 0);
}

h1,
h2,
h3,
h4,
h5,
h6,
p,
ul,
ol,
blockquote,
figure {
	margin-top: 0;
}

h1,
h2,
h3,
h4,
h5,
h6 {
	font-family: var(--font-family__heading);
	font-weight: var(--font-weight__normal);

	color: var(--color__brown);
}

h1 {
	font-size: 6.4rem;
}

h2 {
	font-size: 4.2rem;
}

h3 {
	font-size: 3.2rem;
}

h4 {
	font-size: 2.4rem;
}

strong {
	font-weight: var(--font-weight__bold);
}

strong em,
em strong {
	font-weight: var(--font-weight__normal);
	font-style: normal;

	color: var(--color__orange);
}

a {
	transition: var(--transition-delay__default);
	text-decoration: none;

	color: var(--color__brown-dark);
}

a:hover,
a:visited,
a:focus {
	text-decoration: none;

	color: var(--color__brown);
}

a:active {
	color: var(--color__brown);
}

button {
	font-size: var(--font-size__default); /* fix normalize.css */

	padding: 0;

	cursor: pointer;
	transition: var(--transition-delay__default);

	color: var(--color__brown-dark);
	border: none;
	background: none;
}

button:hover {
	color: var(--color__brown);
}

button:focus {
	outline: none;
}

ul,
ol {
	padding: 0;

	list-style-type: none;

	counter-reset: counter;
}

blockquote,
figure {
	margin-right: 0;
	margin-left: 0;
}

figcaption {
	font-size: 1.8rem;
	font-style: italic;
	line-height: 2.8rem;

	padding: 8px 0 0 0;

	text-align: left;

	color: rgba(var(--color__brown-rgb), 0.8);
}

img {
	display: block;

	max-width: 100%;
	height: auto;
}

.image-design,
html[data-theme="wireframe"] .image-wf {
	display: block;
}

.image-wf,
html[data-theme="wireframe"] .image-design {
	display: none;
}

.bg-cover {
	position: absolute;
	z-index: -1;
	top: 0;
	left: 0;

	width: 100%;
	height: 100%;

	background: var(--color__brown-dark);
}

.bg-cover_light {
	background: var(--color__grey-light);
}

.bg-cover img {
	width: inherit;
	height: inherit;

	object-fit: cover;
	object-position: center center;
}

.lazyload {
	opacity: 0;
}

img.lazyloading {
	transition: var(--transition-delay__default);

	opacity: 0.8;
}

.lazyloaded {
	transition: var(--transition-delay__default);

	opacity: 1;
}

.fslightbox-toolbar-button:nth-child(2),
.fslightbox-toolbar-button:nth-child(3),
.fslightbox-toolbar-button:nth-child(4),
.fslightbox-toolbar-button:nth-child(5) {
	display: none;
}

iframe {
	border: 0;
}

.hidden {
	display: none;
}

.sticky {
	position: sticky;
	z-index: 999;
	top: 0;
}

.fixed {
	position: fixed;
	z-index: 999;
	top: 0;
}

.container {
	position: relative;

	height: inherit;
	margin: 0 auto;
}

.container_website {
	max-width: var(--width__website);
}

.container_layout {
	max-width: var(--width__layout);
}

.container_content {
	max-width: var(--width__content);
}

.row {
	display: flex;
	align-items: flex-start;
	flex-flow: wrap row;
	justify-content: flex-start;
}

.row_justify-space {
	justify-content: space-between;
}

.row_justify-center {
	justify-content: center;
}

.row_justify-end {
	justify-content: flex-end;
}

.row_align-center {
	align-items: center;
}

.row_align-bottom {
	align-items: flex-end;
}

.row_align-stretch {
	align-items: stretch;
}

@media (max-width: 1730px) {
	.container_layout {
		padding-right: var(--padding__default);
		padding-left: var(--padding__default);
	}
}

@media (max-width: 980px) {
	.container_content {
		padding-right: var(--padding__default);
		padding-left: var(--padding__default);
	}

	figcaption.container:not(.container_website) {
		padding: 8px 0 0 0;
	}
}

@media (max-width: 760px) {
	h1 {
		font-size: 3.7rem;
	}

	h2 {
		font-size: 2.5rem;
	}

	h3 {
		font-size: 2.1rem;
	}

	h4 {
		font-size: 2rem;
	}

	figcaption {
		font-size: 1.6rem;
		line-height: 2.2rem;
	}
}

/* ICONS & SHAPES
----------------------------------------- */
.icon,
.shape {
	display: inline-block;
}

html[data-theme="wireframe"] .icon {
	color: #000 !important;
}

/* CONTENT
----------------------------------------- */
.content a {
	text-decoration: underline;

	color: var(--color__orange);
}

.content a:hover {
	text-decoration: underline transparent solid;

	color: var(--color__orange);
}

/* TABLES
----------------------------------------- */
.table-wrapper {
	overflow-y: auto;

	width: 100%;
}

.table-wrapper::-webkit-scrollbar {
	width: 6px;
	height: 6px;

	-webkit-appearance: none;
}

.table-wrapper::-webkit-scrollbar-thumb {
	border-radius: 3px;
	background-color: var(--color__orange);
}

table {
	width: 100%;
	min-width: 560px;

	border-collapse: collapse;
}

table td,
table th {
	padding: 10px 7px;

	border: 1px solid rgba(0, 0, 0, 0.2);
}

table th,
table thead td {
	color: var(--color__white);
	background: rgba(0, 0, 0, 0.6);
}
