*,
*::after,
*::before {
	-webkit-box-sizing: border-box;
	box-sizing: border-box;
}

/* -loading wheel--v */
.js .loading::before,
.js .loading::after {
	content: '';
	position: fixed;
	z-index: 1000;
}

.loading::before {
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background-color: var(--color-bg);
}

.loading::after {
	top: 50%;
	left: 50%;
	width: 40px;
	height: 40px;
	margin: -20px 0 0 -20px;
	border: 8px solid var(--color-ecru);
	border-bottom-color: var(--color-ecru-minus-50);
	border-radius: 50%;
	animation: animLoader 0.8s linear infinite forwards;
}

@keyframes animLoader {
	to {
		transform: rotate(360deg);
	}
}

/* -loading wheel--^ */

.hidden {
	position: absolute;
	overflow: hidden;
	width: 0;
	height: 0;
	pointer-events: none;
}

#keyword-group-parent {
	margin: 0 5% 0 5%;
}

#keyword-group-parent form {
	margin: auto;
	padding: 0 10px;
	max-width: 1500px;
}

@media screen and (min-width: 70em) {
	#keyword-group-parent form {
		padding: 0 15px;
	}
}

main {
	display: flex;
	flex-wrap: wrap;
	margin: 20px 5%;
	flex: 1;
}

.content--center {
	flex: 1;
	max-width: 1500px;
	margin: 0 auto;
}

/* Grid */

.grid {
	position: relative;
	z-index: 2;
	display: block;
	margin: 0 auto;
}

.js .grid--loading::before,
.js .grid--loading::after {
	content: '';
	z-index: 1000;
}

.js .grid--loading::before {
	position: fixed;
	top: 0;
	left: 0;
	width: 100vw;
	height: 100vh;
	background: var(--color-bg);
}

.js .grid--loading::after {
	position: absolute;
	top: calc(25vh - 20px);
	left: 50%;
	width: 40px;
	height: 40px;
	margin: 0 0 0 -20px;
	border: 8px solid #383a41;
	border-bottom-color: #565963;
	border-radius: 50%;
	animation: animLoader 0.8s linear forwards infinite;
}

.grid__sizer {
	margin-bottom: 0 !important;
}

.grid__link,
.grid__img {
	display: block;
}

.grid__img {
	width: 100%;
	transition: filter 0.2s ease-in-out;
}

.grid__deco {
	position: absolute;
	top: 0;
	left: 0;
	pointer-events: none;
}

.grid__deco path {
	fill: none;
	stroke: #fff;
	stroke-width: 2px;
}

.grid__reveal {
	position: absolute;
	z-index: 50;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	pointer-events: none;
	opacity: 0;
	background-color: var(--color-bg);
}

.grid .grid__item,
.grid .grid__sizer {
	width: calc(50% - 20px);
	margin: 0 10px 20px;
}

@media screen and (min-width: 60em) {

	.grid .grid__item,
	.grid .grid__sizer {
		width: calc((100% / 3) - 20px);
		margin: 0 10px 20px;
	}
}

@media screen and (min-width: 70em) {

	.grid .grid__item,
	.grid .grid__sizer {
		width: calc(25% - 30px);
		margin: 0 15px 30px;
	}
}

@media screen and (max-width: 50em) {
	main {
		display: block;
	}

	.codrops-header {
		padding: 1em;
		flex-wrap: wrap;
	}

	.codrops-links {
		margin: 0;
	}

	.codrops-header__title {
		width: 100%;
		text-align: left;
		flex: none;
		margin: 1em 0;
	}

	.content--center {
		max-width: 100vw;
	}

	.control {
		margin: 0 0 1em;
		text-align: left;
	}

	.control__item,
	.control__btn {
		display: inline-block;
	}

	.control__btn {
		width: auto;
	}
}









.noselect {
	-webkit-touch-callout: none;
	/* iOS Safari */
	-webkit-user-select: none;
	/* Safari */
	-khtml-user-select: none;
	/* Konqueror HTML */
	-moz-user-select: none;
	/* Firefox */
	-ms-user-select: none;
	/* Internet Explorer/Edge */
	user-select: none;
	/* Non-prefixed version, currently
								  supported by Chrome and Opera */
}

.img_onload {
	display: none;
}

.grid__item {
	cursor: pointer;
	position: relative;
}

.grid__item .text-zone {
	opacity: 0;

	position: absolute;
	width: 100%;
	height: 100%;
	top: 0;
	padding: 2em;

	display: flex;
	flex-direction: column;
	gap: 2em;
	align-items: center;
	justify-content: center;

	transition: all 0.2s ease-in-out;
}

.grid__item:hover .text-zone
{
	opacity: 1;
	text-shadow: 0 0 10px rgba(0,0,0,0.8), 0 0 20px rgba(0,0,0,0.6), 0 0 30px rgba(0,0,0,0.4);
}

.grid__item .text-zone h5 {
	margin: 0;
	padding: 0;
	text-align: center;
	font-size: 1.3rem;
	letter-spacing: 0.05rem;
}

.grid__item .fullscreen-icon {
	opacity: 0;
	width: 100%;
	font-size: 2.7rem;
	color: var(--color-text-contrast);

	transition: all 0.2s ease-in-out;
}

.grid__item:hover .fullscreen-icon
{
	opacity: 1;
}

.grid__item:hover .grid__img {
	filter: sepia(80%) brightness(40%);
}

.grid__item .text-zone h5 {
	color: var(--color-text-contrast);
}

#keyword-group {
	display: grid;
	grid-auto-rows: auto;
	grid-template-columns: repeat(auto-fit, minmax(104px, 1fr));
	gap: 2px;
	max-width: 1500px;
	margin: 0 auto;
}

#keyword-group input {
	display: none;
}

#keyword-group-parent .button-container {
	position: absolute;
	width: 100%;
	height: 100%;
}

#keyword-group-parent .button {
	position: relative;
	display: inline-block;
	width: 100%;
	height: 100%;

	text-align: center;
	align-content: center;
	padding: 40px 7px 0 7px;

	cursor: pointer;
	font-size: 1.15rem;
	font-weight: normal;
	color: var(--color-text-contrast);
	letter-spacing: .15em;
	/* text-transform: uppercase; */
	text-shadow: 0 0 10px rgba(0,0,0,0.8), 0 0 20px rgba(0,0,0,0.6), 0 0 30px rgba(0,0,0,0.4);
}

@media screen and (max-width: 25em) {
	.tag-container {
		height: 85px !important;
	}
	#keyword-group {
		grid-template-columns: repeat(auto-fit, minmax(88px, 1fr));
	}
	#keyword-group-parent .button {
		font-size: 1rem !important;
		padding: 25px 1px 0 1px !important;
	}


	.grid__item .text-zone {
		gap: .5em;
		padding: .5em;
		line-height: 1.2em;
	}

	.grid__item .text-zone h5 {
		font-size: .85rem;
	}

	.grid__item .fullscreen-icon {
		font-size: 1.9rem;
	}
}

#keyword-group-parent .tag-container:hover .button {
	text-decoration: underline;
	text-underline-offset: .3em;
}

#keyword-group-parent .tag-container:hover input:checked ~ .button {
	text-decoration: none;
	cursor: unset;
}


.tag-container {
	height: 115px;
	position: relative;
	display: inline-flex;
	flex-direction: column;
	align-items: flex-start;
	box-shadow: none;
	border-bottom: .4em solid transparent;
}

/* Prevent double-click selection */
.tag-container.noselect {
	-webkit-user-select: none;
	-moz-user-select: none;
	-ms-user-select: none;
	user-select: none;
}

#keyword-group-parent .tag-container:has(input:checked) {
	border-bottom: .4em solid var(--color-bg-navigation-selected);
}

#keyword-group-parent .tag-container:has(input:checked) .button {
	color: var(--color-bg-navigation-selected);
}

.tag-container .img-box {
	flex: 1;
	display: flex;
	flex-direction: row;
	width: 100%;
	height: 100%;
	background-color: var(--color-taupe-minus-70);
	min-height: 0;
	overflow: hidden
}

.tag-container img {
	width: 100%;
	height: 100%;
	flex-grow: 1;
	flex-shrink: 1;
	object-fit: cover;
	filter: sepia(80%) brightness(40%);
	transition: transform 0.2s ease;
}

.tag-container:hover img {
	filter: sepia(80%) brightness(30%);
	transform: scale(1.1);
}

#keyword-group-parent .tag-container:has(input:checked):hover img {
	filter: sepia(80%) brightness(40%);
	transform: none;
}


/* vv footer vv */
footer {
	width: 100vw;
	padding: 0 5%;

	background-color: var(--color-bg);
	padding-top: 10px;
	background: linear-gradient(180deg, #ecebe600 0px, var(--color-bg) 10px);
}

@media screen and (max-width: 20em) {
	footer {
		margin: 0 4px;
	}
}

footer div {
	margin: auto;
	padding: 8px 10px;
	display: flex;
	justify-content: space-between;
	align-items: center;

	font-size: .8rem;
	max-width: 1500px;
}

@media screen and (min-width: 70em) {
	footer div {
		padding: 8px 15px;
	}
}

@media screen and (max-width: 50em) {
	footer div {
		flex-direction: column;
		font-size: .75rem;
		gap: 0;
		/* padding: 8px 10px; */
		align-items: flex-start;
	}
}

@media screen and (max-width: 20em) {
	footer div {
		font-size: 0.65rem;
		padding: 8px 5px;
	}
}

footer p {
	margin: 0;
}

footer a {
	color: var(--color-link);
	text-align: right;
	align-self: flex-end;
	white-space: nowrap;
}

footer a:visited {
	color: var(--color-link);
}

footer a:hover {
	text-decoration: underline;
	color: var(--color-link-hover);
	text-underline-offset: .3em;
}

footer a:active {
	color: var(--color-link-active);
}

/* ^^ footer ^^ */