@scope (.gg-image-expansion) {
.content {
	padding: var(--page-padding);
	display: grid;
	margin-bottom: 30vh;
	gap: 2rem;
	grid-template-columns: 100%;
	grid-template-areas: 'meta' 'type' 'block';
	grid-template-rows: auto 70vh auto;
}

.content:last-of-type {
  padding-bottom: 50vh;
}

.meta {
	grid-area: meta;
	font-weight: inherit;
	margin-bottom: 5vh;
}

.meta::before {
	content: '\2014';
	padding-right: 0.25rem;
}

.type {
	grid-area: type;
	font-family: "Coconat";
	margin: 0;
	font-size: clamp(2rem,4.75vw,5rem);
	text-transform: none;
	line-height: 1.1;
	font-weight: normal;
}

.type__expand {
	vertical-align: top;
	display: inline-grid;
	grid-template-columns: min-content;
}

.type__expand--center {
	display: block;
}

.type__expand--full {
	display: block;
}

.type__expand--mini {
	vertical-align: middle;
	padding: 0 0.125em;
}

.type__expand--stack {
	vertical-align: bottom;
	grid-template-columns: 100%;
	justify-items: center;
}

.type__expand--stack:has(.type__expand-img:first-child) {
	vertical-align: top;
}

.type--open .type__expand {
	gap: 1.5rem;
}

.type--open .type__expand--stack {
	gap: 0.5rem;
	padding: 0 0 1rem 0;
}

.type--open .type__expand--stack:has(.type__expand-img:first-child) {
	padding: 1rem 0 0 0;
}

.type__expand-img {
	display: block;
	position: relative;
	aspect-ratio: 16/9;
	width: 0%;
	overflow: hidden;
	border-radius: 4rem;
}

.type__expand-img-inner {
	display: block;
	width: 100%;
	height: 100%;
	background-size: cover;
}

.type__expand-img--center {
	justify-self: center;
	align-self: center;
}

.type__expand-img--small {
	aspect-ratio: 1;
}

.type__expand-img--tiny {
	aspect-ratio: 25/9;
}

.type__expand--reveal .type__expand-img-inner {
	width: 100vw;
	aspect-ratio: 16/9;
}

.type--open .type__expand-img {
	width: 100%;
}

.type--open .type__expand-img--small {
	width: 3.25em;
}

.type--open .type__expand-img--tiny {
	width: 2em;
}

.anim {
	display: inline-block;
  white-space: nowrap;
}

.type--open .skewed {
	transform: skewX(-20deg);
}

.type--open .rotated {
	transform: skewX(-5deg) rotateZ(-10deg);
}

.block {
	grid-area: block;
	margin: 0 0 0 0;
	max-width: 400px;
  line-height: 1.2;
}

@media screen and (min-width: 53em) {
	.frame {
		grid-template-columns: auto auto auto auto 1fr;
		grid-template-areas: 'title back archive github sponsor';
		margin-bottom: 40vh;
	}
	.frame #cdawrap {
	  text-align: right;
	  justify-self: end;
	}
	.content--left {
		grid-template-columns: 1fr 42%;
		grid-template-rows: auto 19vw auto;
		grid-template-areas: 'meta meta' 'type type' '... block';
	}
	.content--center {
		text-align: center;
		place-items: center;
		grid-template-rows: auto 40vw auto;
	}
	.content--center .type {
		align-self: start;
	}
	.content--right {
		grid-column-gap: 10vw;
		grid-template-columns: auto 45%;
		grid-template-areas: 'block meta' 'block type';
		grid-template-rows: auto 50vw;
		text-align: right;
		justify-content: end;
	}
	.content--right .block {
		margin-top: 40vh;
	}
	.content--justify {
		max-width: 1080px;
		grid-template-columns: 1fr 1fr;
		grid-template-rows: auto 35vw auto;
		grid-template-areas: 'meta meta' 'type type' '... block';
	}
	.content--line {
		grid-template-rows: auto 30vw auto;
	}
	.type__expand--inline {
		gap: 0.1em;
		grid-template-columns: repeat(3,min-content);
	}
	.type__expand--reveal .type__expand-img-inner {
		width: 33vw;
	}
	.type__expand--center {
		display: inline-grid;
		gap: 0.15em;
		justify-content: center;
		grid-template-columns: auto auto auto;
	}
	.type--open .type__expand--center {
		grid-template-columns: 1fr auto 1fr;
	}
	.type__expand--full {
	  width: 100%;
		grid-template-columns: 100%;
	}
  .type__expand--full .type__expand-img {
    margin-left: auto;
  }
  .aright {
		text-align: right;
	}
}

}