/* Basic fixes */
* {
	background-repeat: no-repeat;
	outline: none;
	padding: 0;
	margin: 0;
	box-sizing: border-box;
	-webkit-tap-highlight-color: rgba(255, 255, 255, 0);
}

button::-moz-focus-inner {
	border: 0;
}

a {
	color: inherit;
	text-decoration: none;
}

img {
	display: block;
}

ul {
	list-style-type: none;
}

/* Basic classes */
.disabled {
	cursor: default !important;
}

.clickable {
	cursor: pointer;
}

.no-trans {
	transition: none !important;
}

@media (min-width: 1441px) {.mob {display: none !important;}}
@media (max-width: 1440px) {.desk {display: none !important;}}
@media (min-width: 1281px) {.mob1280 {display: none !important;}}
@media (max-width: 1280px) {.desk1280 {display: none !important;}}
@media (min-width: 1025px) {.mob1024 {display: none !important;}}
@media (max-width: 1024px) {.desk1024 {display: none !important;}}
@media (min-width: 769px) {.mob768 {display: none !important;}}
@media (max-width: 768px) {.desk768 {display: none !important;}}
@media (min-width: 481px) {.mob480 {display: none !important;}}
@media (max-width: 480px) {.desk480 {display: none !important;}}

/*
* Basic settings
*/
html {
	font-size: 100%;
}

html.smooth-scrolling {
	scroll-behavior: smooth;
}

body {
	position: relative;
}

body.fixed {
	overflow: hidden;
}

main {
	overflow: hidden;
}

@media (max-width: 1280px) {html {font-size: 95%;}}
@media (max-width: 768px) {html {font-size: 90%;}}

/* Lightboxes */
.lbox {
	visibility: hidden;
	display: grid;
	opacity: 0;
	background: rgba(154,154,154,0.7);
	backdrop-filter: saturate(0);
	width: 100%;
	height: 100%;
	padding: 2rem;
	grid-template-columns: minmax(0, 1fr);
	grid-template-rows: minmax(0, 1fr);
	position: fixed;
	top: 0;
	left: 0;
	place-content: center;
	z-index: 101;
	transition: visibility .3s, opacity .3s;
}

.lbox.open {
	opacity: 1;
	visibility: visible;
	transition: opacity .3s;
}

.lbox .form {
	background: #FFF;
	border-radius: 10px;
	box-shadow: 0 30px 40px -10px rgba(0,0,0,0.2);
	width: 100%;
	max-width: 600px;
	max-height: 90vh;
	padding: 2rem 2rem;
	margin: 0 auto;
	overflow: auto;
}

.lbox .form h2 {
	text-align: center;
	font-size: 1.5rem;
	font-weight: 600;
	letter-spacing: .05em;
	line-height: 1;
}

.lbox-img {
	max-width: 100%;
	max-height: 100%;
	margin: auto;
}

.lbox .close-icon {
	opacity: .8;
	background-color: #f3f3f3;
	background-image: url(../resources/icons/close.svg);
	background-position: center;
	background-size: 50%;
	border-radius: 50%;
	width: 2rem;
	height: 2rem;
	position: absolute;
	top: 1rem;
	right: 1rem;
	cursor: pointer;
	transition: background .3s;
}

.lbox .close-icon:hover {
	background-color: var(--primary);
}

.lbox .close-icon.thin {
	background-color: transparent !important;
	background-image: url(../resources/icons/close-thin.svg);
	background-size: contain;
	transition: opacity .3s;
}

.lbox .close-icon:hover {
	opacity: .5;
}

/* Ajax search */
.ajax-search-ddown {
	display: none;
	position: absolute;
	width: 100%;
	height: 0;
}

.ajax-search-box {
	background-color: #FFF;
	border: 1px solid #DDD;
	box-shadow: 0 5px 10px rgba(0,0,0,.1);
	text-align: left;
	z-index: 10;
}

.ajax-search-item {
	padding: .6rem .6rem;
	color: #555;
	cursor: pointer;
}

.ajax-search-item:hover {
	background-color: #CDDBE4;
}

/* Misc */
.file-load {
	display: none;
	background-image: url(../resources/icons/loading/loading.svg);
	background-position: center;
	background-size: contain;
	height: 4rem;
	margin: 0 auto;
}