.sticky-grid-scroll {
	--color-text: inherit;
	--color-bg: var(--bs-body-bg);
	--color-link: var(--bs-dark);
	--color-link-hover: var(--bs-dark);
}

.sticky-grid-scroll,
.sticky-grid-scroll * {
	box-sizing: border-box;
}

.sticky-grid-scroll ul,
.sticky-grid-scroll ol,
.sticky-grid-scroll menu {
	list-style: none;
	margin: 0;
	padding: 0;
}

.sticky-grid-scroll picture,
.sticky-grid-scroll svg,
.sticky-grid-scroll video {
	display: block;
	width: 100%;
	height: auto;
}

/* Le img in griglia devono riempire la cella, non seguire height:auto del tema. */
.sticky-grid-scroll .media__image,
.sticky-grid-scroll .gallery__image {
	display: block;
}

.sticky-grid-scroll a {
	text-decoration: none;
	color: inherit;
	outline: none;
	cursor: pointer;
}

.sticky-grid-scroll button,
.sticky-grid-scroll input,
.sticky-grid-scroll select,
.sticky-grid-scroll textarea {
	display: block;
	border: 0;
	border-radius: 0;
	background: 0 0;
	color: inherit;
}

.sticky-grid-scroll button:hover {
	cursor: pointer;
}

@media (scripting: enabled) {
	.sticky-grid-scroll.is-loading {
		position: relative;
		min-height: 100vh;
	}

	.sticky-grid-scroll.is-loading::before,
	.sticky-grid-scroll.is-loading::after {
		content: "";
		position: fixed;
		z-index: 10000;
	}

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

	.sticky-grid-scroll.is-loading::after {
		top: 50%;
		left: 50%;
		width: 100px;
		height: 1px;
		margin: 0 0 0 -50px;
		background: var(--color-link);
		animation: sgs-loaderAnim 1.5s ease-in-out infinite alternate forwards;
	}
}

@keyframes sgs-loaderAnim {
	0% {
		transform: scaleX(0);
		transform-origin: 0% 50%;
	}

	50% {
		transform: scaleX(1);
		transform-origin: 0% 50%;
	}

	50.1% {
		transform: scaleX(1);
		transform-origin: 100% 50%;
	}

	100% {
		transform: scaleX(0);
		transform-origin: 100% 50%;
	}
}

.sticky-grid-scroll .frame {
	position: fixed;
	top: 0;
	left: 0;
	display: grid;
	grid-template-areas:
		"infos sponsor"
		"tags author";
	grid-template-columns: auto auto;
	grid-template-rows: auto auto;
	grid-gap: 24px;
	align-content: space-between;
	width: 100%;
	height: 100vh;
	padding: 24em;
	pointer-events: none;
	z-index: 1000;
}

.sticky-grid-scroll .frame a,
.sticky-grid-scroll .frame button {
	pointer-events: auto;
	opacity: 0.4;
}

.sticky-grid-scroll .frame a:hover,
.sticky-grid-scroll .frame button:hover {
	text-decoration: underline;
	text-underline-offset: 2px;
	opacity: 1;
}

.sticky-grid-scroll .frame__infos {
	grid-area: infos;
}

.sticky-grid-scroll .frame__infos *:not(:last-child) {
	margin-right: 24px;
}

@media (min-width: 768px) {
	.sticky-grid-scroll .frame__infos h1 {
		display: inline-block;
	}
}

.sticky-grid-scroll .frame__infos a {
	display: block;
}

@media (min-width: 768px) {
	.sticky-grid-scroll .frame__infos a {
		display: inline-block;
	}
}

.sticky-grid-scroll .frame__tags {
	grid-area: tags;
	display: flex;
	column-gap: 12px;
}

.sticky-grid-scroll .frame__author {
	grid-area: author;
	justify-self: flex-end;
	text-align: right;
}

.sticky-grid-scroll .frame__author a {
	opacity: 1;
}
