/*
Theme Name: SUBLAB
Author: Sublab
Author URI: http://www.sublab.fr
Author URL: http://www.sublab.fr
Theme URI:
Description: Theme SUBLAB
Tags: light, dark, two-columns, right-sidebar, responsive-layout, accessibility-ready
Version: 1.0.0
Text Domain: sublab

License: GNU General Public License v2 or later
License URI http://www.gnu.org/licenses/gpl-2.0.html
*/

html {
	-webkit-box-sizing: border-box;
	-moz-box-sizing: border-box;
	box-sizing: border-box;
	overflow: auto;
	scrollbar-width: thin;
	scrollbar-color: #0b2b3f #fff;
	scroll-behavior: smooth;
	background-color: var(--wp--preset--color--base);
}

@media screen and (min-width: 1025px) {
	html body {
		animation: 250ms fadeIn;
	}
}

html body::-webkit-scrollbar {
	width: 7px;
}

html body::-webkit-scrollbar-track {
	background: #ffffff;
	background-color: #ffffff;
}

html body::-webkit-scrollbar-thumb {
	background: #0b2b3f;
	background-color: #0b2b3f;
}

html body::-webkit-scrollbar-thumb:window-inactive {
	background: #ffffff;
	background-color: #ffffff;
}

:target:before {
	content: "";
	display: block;
	height: 100px;
	margin: -100px 0 0;
}

body {
	-moz-osx-font-smoothing: grayscale;
	-webkit-font-smoothing: antialiased;
	font-weight: 300;
}

video {
	width: 100%;
}

@media screen and (prefers-reduced-motion: reduce) {

	html {
		scroll-behavior: auto;
	}
}

.post-navigation-link-next,
.post-navigation-link-previous {
	display: flex;
	flex-direction: row-reverse;
	justify-content: flex-start;
}

.post-navigation-link-next {
	justify-content: flex-end;
}

.post-navigation-link-next span,
.post-navigation-link-previous span {
	transform: scale(-1, 1);
	font-size: 2rem;
	margin: 0 0 0 10px !important;
	padding: 0;
	align-self: center;
	line-height: 0.6;
	height: 1.6rem !important;
	width: 1rem;
}

.post-navigation-link-next span {
	margin: 0 10px 0 0 !important;
}

/* Category */

.sublab-category-menu {
	display: flex;
	flex-flow: row wrap;
	gap: 10px;
	justify-content: center;
	padding: 0;
}

.sublab-category-menu li {
	position: relative;
	list-style: none;
	flex: 1 1 32%;
	max-width: 393px;
	display: flex;
	align-items: center;
	justify-content: center;
}

.sublab-category-menu li>* {
	z-index: 1;
	text-align: center;
}

.sublab-category-menu li h2 {
	text-align: center;
}

.sublab-category-menu li h2 sup {
	position: relative;
	left: 5px;
	font-size: 0.825rem;
}

.sublab-category-menu li a {
	position: absolute;
	top: 0;
	bottom: 0;
	left: 0;
	right: 0;
	z-index: 999;
}

.sublab-category-menu li a:hover {
	text-decoration: underline;
	border-bottom: 1px solid #000;
}

.sublab-category-menu li img {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	width: 100%;
	height: auto;
	z-index: 0;
}

ul.columns-3 {
	grid-template-columns: repeat(3, minmax(0, 1fr));
}

/* Single */

.wp-block-term-description {
	margin: 0;
}

.wp-block-post-excerpt__excerpt {
	font-weight: bold;
}

img[loading='lazy'] {
	opacity: 0;
}

/* Footer */
footer .wp-block-group {
	gap: 0;
}

@media screen and (min-width: 1025px) {
	footer .wp-block-group {
		justify-content: space-between !important;
	}
}

footer * {
	line-height: 20px;
}

footer a {
	font-weight: 300;
}

footer .scroll-to-top {
	position: fixed;
	bottom: 20px;
	right: 20px;
	padding: 10px 20px;
	cursor: pointer;
	display: none;
}

footer .scroll-to-top a {
	color: #000000;
}

footer .scroll-to-top:hover a.wp-block-button,
footer .scroll-to-top:focus a.wp-block-button {
	color: #000000;
}

footer .go-to-top-icon {
	transform: scale(-1);
}