.space {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 44px;
	padding: 80px;

	@media (min-width: 810px) and (max-width: 1199.98px) {
		padding: 50px 40px;
	}

	@media (max-width: 809.98px) {
		padding: 50px 25px;
	}
}

.space__intro {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: var(--space-10);
	width: 60%;

	@media (max-width: 1199.98px) {
		width: 100%;
	}
}

.space__heading {
	width: 100%;
	max-width: 800px;
	font-family: var(--font-questrial);
	font-size: var(--fs-40);
	font-weight: var(--fw-regular);
	line-height: var(--lh-120);
	letter-spacing: 0.02em;
	color: var(--color-olive);

	& em {
		font-family: var(--font-cormorant);
		font-size: var(--fs-56);
		font-style: italic;
		font-weight: var(--fw-semibold);
	}
}

.space__text {
	width: 100%;
	max-width: 800px;
}

.space__gallery {
	display: flex;
	align-items: flex-start;
	gap: var(--space-20);
	width: 100%;

	@media (max-width: 1199.98px) {
		flex-direction: column;
	}
}

.space__main {
	position: relative;
	flex: none;
	width: 40%;
	min-height: 512.5px; /* Framer's 492.5px + 20px padding on this frame never lets it shrink below that. */
	aspect-ratio: 0.966543;
	overflow: clip;
	border-radius: var(--radius-12);

	@media (min-width: 810px) and (max-width: 1199.98px) {
		width: 100%;
	}

	@media (max-width: 809.98px) {
		width: 100%;
		height: 400px;
		min-height: 0;
		aspect-ratio: auto;
	}
}

.space__grid {
	display: grid;
	flex: 1 0 0;
	grid-template-rows: repeat(2, minmax(0, 1fr));
	grid-template-columns: repeat(3, minmax(50px, 1fr));
	grid-auto-rows: minmax(0, 1fr);
	gap: var(--space-20);
	align-self: stretch;
	min-width: 1px;

	@media (max-width: 1199.98px) {
		flex: none;
		align-self: auto;
		width: 100%;
		height: 513px;
	}

	@media (max-width: 809.98px) {
		grid-template-columns: repeat(2, minmax(50px, 1fr));
	}
}

.space__cell {
	position: relative;
	width: 100%;
	height: 100%;
	overflow: clip;
	border-radius: var(--radius-12);
}
