@layer desktop {

	.section {
		position: relative;
		padding: 2rem 1.5rem;
		z-index: 1; /* Necessary to fix z-index bug in Safari */
	}

	.section-content {
		position: relative;
		max-width: 96rem;
		margin: auto;
		container-type: inline-size;
	}

	.section-background {
		position: absolute;
		width: 100%;
		height: 100%;
		top: 0;
		left: 0;
		display: flex;
		justify-content: center;
		pointer-events: none;
	}


	/* Gallery */

	.gallery-container {
		position: relative;
		margin: 0 -1.5rem;
		padding: 2rem 0 0.85rem;
		background: rgba(230,230,230,0.5);
	}

	.gallery-header {
		position: relative;
		padding: 0 3rem;
		margin-top: -2rem;
		top: -0.85rem;
	}

	.gallery-title {
		position: relative;
		background: black;
		color: white;
		border-radius: 0.45rem;
		padding: 0 0.65rem;
		display: inline-flex;
		justify-content: center;
		align-items: center;
		height: 1.75rem;
		text-transform: uppercase;
	}

	.gallery {
		padding: 0 1.5rem 0.65rem;
		display: flex;
		align-items: center;
		justify-content: flex-start;
		display: flex;
		gap: 1.5rem;
		overflow-x: scroll;
		scroll-snap-type: x mandatory;
		scroll-padding-left: 1.75rem;
		-webkit-overflow-scrolling: touch;
		cursor: grab;
	}

	.gallery.dragging {
		cursor: grabbing;
	}

	.gallery-item {
		scroll-snap-align: start;
		display: grid;
		grid-template-rows: 1fr 1lh;
		height: 18.65rem;
		flex-shrink: 0;
		align-items: end;
		cursor: pointer;
		transition: transform 0.2s;
	}

	.gallery-item:hover {
		transform: scale(0.99);
	}

	.gallery.dragging .gallery-item {
		cursor: grabbing;
	}

	.gallery-item img {
		height: calc(18.65rem - 1lh);
		width: auto;
		border-radius: 1.35rem;
		overflow: hidden;
	}

	.gallery-item figcaption {
		font-size: 0.75rem;
		padding: 0 0.65rem;
	}

	.gallery-zoom {
		padding: 0;
		border: none;
		margin: 0;
		max-height: calc(100vh - 8rem);
		max-width: calc(100vw - 6rem);
		overflow: visible;
		background: transparent;
	}

	.gallery-zoom::backdrop {
		background-color: rgba(0,40,63,0.45);
		animation: backdrop-fade-in 0.2s ease-out;
	}

	@keyframes backdrop-fade-in {
		from { opacity: 0; }
		to { opacity: 1; }
	}

	.gallery-zoom-image {
		display: block;
		max-height: calc(100vh - 8rem);
		max-width: calc(100vw - 6rem);
		width: 100%;
		height: auto;
		border-radius: 1.35rem;
		object-fit: contain;
	}

	.gallery-zoom[open] .gallery-zoom-image {
		animation: dialog-shadow 0.25s ease-in-out forwards;
	}

	@keyframes dialog-shadow {
		from {
			box-shadow: 0 0 0 rgba(0,0,0,0.35);
		}
		to {
			box-shadow: 0 0.25rem 0.75rem rgba(0,0,0,0.35);
		}
	}

	.gallery-zoom-legend {
		font-size: 0.75rem;
		padding: 0 0.65rem;
		color: white;
		position: absolute;
		line-height: 1lh;
		bottom: -1lh;
	}

	.gallery-zoom-close {
		color: white;
		width: 1rem;
		height: 1rem;
		position: absolute;
		top: 1rem;
		right: -1.5rem;
		cursor: pointer;
	}


	/* Glyphset */

	.header-technical {
		font-size: 5.35rem;
		text-transform: uppercase;
		white-space: nowrap;
		padding: 0.75rem 1.75rem;
		background-color: var(--green);
		font-weight: 600;
		color: white;
		text-align: center;
	}

	.marquee {
		width: 100%;
		display: flex;
		overflow: hidden;
	}

	.marquee-item {
		display: inline;
	}

	.marquee-item::after {
		content: "•";
		padding: 0 0.25em;
	}

	.marquee *:first-child {
		animation: marquee01 40s linear infinite;
		animation-delay: -40s;
	}

	.marquee *:nth-child(2) {
		animation: marquee02 40s linear infinite;
		animation-delay: -20s;
	}

	@keyframes marquee01 {
		0% {
			transform: translateX(100%);
		}

		100% {
			transform: translateX(-100%);
		}
	}

	@keyframes marquee02 {
		0% {
			transform: translateX(0);
		}

		100% {
			transform: translateX(-200%);
		}
	}

	.glyphset-header {
		position: relative;
		text-transform: uppercase;
		font-size: 0.75rem;
		padding: 0.55rem 0;
		border-top: 1px solid;
		background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='9' fill='none' stroke='%23000' stroke-width='1.5' viewBox='0 0 18 9'%3E%3Cpath d='m1 1 8 7 8-7'/%3E%3C/svg%3E");
		background-repeat: no-repeat;
		background-position: 100% 50%;
		user-select: none;
		display: flex;
		align-items: center;
		gap: 0.45rem;
		cursor: pointer;
		z-index: 1;
	}

	.glyphset-header::before {
		content: "";
		opacity: 0;
		display: block;
		position: absolute;
		top: 0;
		width: 100%;
		height: 2.65rem;
		background-image:
			linear-gradient(to right, #FFFFFFFF, #FFFFFF00 10%),
			linear-gradient(to left, #FFFFFFFF, #FFFFFF00 10%),
			linear-gradient(to bottom, #FFF, var(--glyphset) 34%, #FFF);
		background-repeat: no-repeat;
		z-index: -1;
		transition: opacity 0.2s
	}

	.glyphset-header:hover::before {
		opacity: 0.08;
	}

	.glyphset-group[open] .glyphset-header {
		background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='9' fill='none' stroke='%23000' stroke-width='1.5' viewBox='0 0 18 9'%3E%3Cpath d='M17 8 9 1 1 8'/%3E%3C/svg%3E");
	}

	.glyphset-header-count {
		font-size: 0.65rem;
		line-height: 1;
		color: white;
		background-color: var(--glyphset);
		border-radius: 1.65rem;
		padding: 0.15rem 0.35rem;
		display: inline-flex;
		transition: background-color 0.2s;
	}

	.glyphset-header:hover .glyphset-header-count {
		background-color: hsl(from var(--glyphset) h s calc(l - 15));
	}

	.glyphs {
		display: grid;
		grid-template-columns: repeat(auto-fill, minmax(4.15rem, 1fr));
		grid-gap: 0.25rem;
		margin-bottom: 1.15rem;
	}

	.glyph {
		position: relative;
		display: flex;
		justify-content: center;
		align-items: center;
		background-color: rgb(from var(--glyphset) r g b / 0.12);
		aspect-ratio: 1;
		border-radius: 0.65rem;
		cursor: pointer;
		overflow: hidden;
		transition: background-color 1s, transform 0.6s;
	}

	.glyph:hover {
		transform: scale(103%);
		background-color: rgb(from var(--glyphset) r g b / 0.4);
		transition: opacity 0.05s, transform 0.1s;
	}

	.glyph-input {
		display: none;
	}

	.glyph-input:checked + .glyph svg {
		background-color: rgb(from var(--glyphset) r g b / 0.68);
	}

	.glyph svg {
		display: block;
		width: 100%;
		height: auto;
	}

	.glyphset-zoom {
		position: sticky;
		top: 4rem;
		border: 0.1rem solid currentColor;
		border-radius: 1.35rem;
		margin-bottom: auto;
		padding-bottom: 4rem;
	}

	.glyphset-zoom-info {
		position: absolute;
		bottom: 0;
		width: 100%;
		border-top: 1px solid currentColor;
		padding: 0.65rem 1.5rem 0.55rem;
	}

	.glyphset-zoom svg {
		display: block;
		width: 100%;
		height: auto;
		/*color: var(--glyphset);*/
	}

	.glyphset-zoom-grid {
		position: absolute;
		top: 0;
		left: 0;
		z-index: -1;
		/*color: var(--glyphset);*/
	}

	.info-list dd {
		margin-bottom: 0.75rem;
	}

	.pdf-specimen-header {
		display: flex;
		align-items: center;
		padding: 0.55rem 0;
	}

	.language-support-header dl {
		display: grid;
		grid-template-columns: 1fr 1fr;
		width: 100%;
		grid-column-gap: 3rem;
	}

	.tester-controls + .tester-text {
		margin-top: 2rem;
	}

	.tester-text + .tester-controls  {
			margin-top: 2rem;
	}

	.tester-text {
		min-width: 100%;
		height: 100%;
		margin: auto;
		word-wrap: anywhere;
		max-height: 65vh;
		overflow: hidden;
	}

	.section-download {
		padding-top: 3.75rem;
		padding-bottom: 3.75rem;
		text-align: center;
	}

	.section-download .section-content {
		display: grid;
		row-gap: 3rem;
	}
	.section-download .download-button {
		justify-self: center;
		align-self: center;
		grid-column: 1;
		grid-row: 1;
	}

	.section-download video,
	.section-download img {
		grid-column: 1;
		grid-row: 1;
			margin: auto;
		z-index: -1;
	}

	.download-button {
		display: inline-block;
		border-radius: 0.333em;
		text-transform: uppercase;
		white-space: nowrap;
		font-size: 1.35rem;
		font-weight: 700;
		padding: 0.2em 0.5em 0.15em;
		background-color: var(--bg-color);
		color: var(--fg-color);
		transform: rotate(-5.65deg);
		box-shadow: 0 0.125em 0.125em 0 rgba(0,0,0,0.25);
		background-image: linear-gradient(185.65deg, #FFFFFF00, #FFFFFFFF 34%, #FFFFFF00 67%);
		background-position: 0 -4.45rem;
		background-repeat: no-repeat;
		transition: 0.3s ease-in-out, background-position 0s;
	}

	.download-button-big {
		font-size: min(2.65rem, 8vw);
	}

	.download-button:hover {
		background-position: 0 5rem;
		transform: rotate(-3.65deg) scale(106%);
		box-shadow: 0 0.25em 0.25em 0.05em rgba(0,0,0,0.15);
		transition: 0.3s ease-in-out, background-position 0.6s ease-in-out;
	}

	.get-the-font {
		position: fixed;
		width: 14.5rem;
		z-index: 3;
		right: 0.35rem;
		bottom: 1.5rem;
		display: flex;
		flex-direction: column;
		align-items: center;
		transform: translateX(0);
		transition: transform 0.2s;
	}

	.get-the-font video,
	.get-the-font img {
		width: 67%;
		height: auto;
		filter: drop-shadow(0 0.125em 0.125em rgba(0,0,0,0.25));
	}

	.get-the-font.hide {
		transform: translateX(100%);
	}

	.download-button-small {
		margin-bottom: 0.75rem;
	}

	.download-button-small:hover {
		transition: 0.2s ease-in-out, background-position 0.8s ease-in-out;
	}

}

@layer mobile {
	
	@media screen and (max-width: 768px) {
		.mobile-hide {
			display: none;
		}

		.tester-controls {
			justify-content: space-between;
			font-size: 0.9rem;
		}

		.tester-select {
			width: 100%;
		}

		.tester-fullscreen {
			min-height: 50vh;
		}

		.gallery-container {
			margin: 0 -1.5rem;
		}

		.gallery-zoom,
		.gallery-zoom-image {
			max-height: calc(100vh - 4rem);
			max-width: calc(100vw - 3rem);
		}

		.gallery-zoom-close {
			top: -2.5rem;
			right: 1.5rem;
		}

		.header-technical {
			font-size: 3.5rem;
		}

		.glyphset-zoom {
			order: -1;
			top: 0;
			position: relative;
			padding-bottom: 7.75rem;
		}

		.language-support-header dl {
			display: flex;
			gap: 1.25rem;
		}

		.section-download {
			padding-top: 8rem;
			padding-bottom: 7.75rem;
		}

		.get-the-font {
			display: none;
		}
	}

}