.sa-collage.has-photos {
	padding-block: 4rem;
	background: var(--theme-palette-color-7);
}

.sa-collage__pin {
	display: flex;
	align-items: center;
	justify-content: center;
}

.sa-collage__frame {
	position: relative;
	width: min(1420px, calc(100% - 1.25rem));
	aspect-ratio: 1420 / 1036;
	margin-inline: auto;
	overflow: visible;
	border-radius: 12px;
	background: var(--theme-palette-color-7);
}

.sa-collage:not(.has-photos) .sa-collage__frame {
	width: 100%;
	height: auto;
	aspect-ratio: auto;
	padding-block: 4rem;
}

.sa-collage:not(.has-photos) .sa-collage__copy {
	position: relative;
	inset: auto;
}

.sa-collage__texture.ct-media-container {
	position: absolute;
	inset: 0;
	display: block;
	width: auto;
	height: auto;
	opacity: 0.2;
	pointer-events: none;
}

.sa-collage__texture img {
	object-position: bottom;
}

.sa-collage__copy {
	position: absolute;
	inset: 0;
	z-index: 5;
	display: flex;
	flex-direction: column;
	gap: 2.5rem;
	align-items: center;
	justify-content: center;
	padding-inline: 1.5rem;
	text-align: center;
	pointer-events: none;
}

.sa-collage.is-live .sa-collage__copy {
	opacity: 0;
}

.sa-collage__copy :is(.ct-button, .ct-button-ghost) {
	pointer-events: auto;
}

.sa-collage__text {
	display: flex;
	flex-direction: column;
	gap: 1.5rem;
	align-items: center;
	width: 100%;
}

.sa-collage__copy h2,
.sa-collage__body {
	margin: 0;
}

.sa-collage__copy h2 {
	max-width: min(40.5rem, 45.6%);
}

.sa-collage__body {
	max-width: min(26.5rem, 29.9%);
}

.sa-collage__stage {
	position: absolute;
	inset: 0;
	z-index: 10;
	pointer-events: none;
}

.sa-collage__card {
	position: absolute;
	width: var(--w);
	aspect-ratio: var(--ratio);
	left: var(--left);
	top: var(--top);
	overflow: hidden;
	border-radius: 6px;
}

.sa-collage.is-live .sa-collage__card {
	left: 50%;
	top: 50%;
	will-change: transform;
}

.sa-collage__photo.ct-media-container {
	position: absolute;
	inset: 0;
	display: block;
	width: auto;
	height: auto;
	aspect-ratio: auto;
	overflow: hidden;
	border-radius: 6px;
}

.sa-collage__photo img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

@media (orientation: portrait), (pointer: coarse) {
	.sa-collage.is-live .sa-collage__frame {
		width: 100%;
		min-height: 100dvh;
		height: auto;
		aspect-ratio: auto;
		border-radius: 0;
	}

	.sa-collage.is-live .sa-collage__card {
		width: min(var(--w-sm), calc(26dvh * var(--rw) / var(--rh)));
	}

	.sa-collage__copy h2 {
		max-width: min(40.5rem, 88%);
	}

	.sa-collage__body {
		max-width: min(26.5rem, 84%);
	}

	.sa-collage:not(.is-live).has-photos .sa-collage__frame {
		display: flex;
		flex-direction: column;
		width: 100%;
		height: auto;
		aspect-ratio: auto;
		overflow: visible;
		border-radius: 0;
	}

	.sa-collage:not(.is-live) .sa-collage__copy {
		position: relative;
		inset: auto;
		padding: 3rem 1.5rem 1.5rem;
	}

	.sa-collage:not(.is-live) .sa-collage__stage {
		display: grid;
		grid-template-columns: 1fr 1fr;
		grid-template-areas:
			"a c"
			"b d";
		gap: 0.75rem;
		position: relative;
		padding: 0 1rem 2rem;
	}

	.sa-collage:not(.is-live) .sa-collage__card {
		position: relative;
		left: auto;
		top: auto;
		width: 100%;
	}

	.sa-collage:not(.is-live) .sa-collage__card[data-slot="1"] {
		grid-area: a;
	}

	.sa-collage:not(.is-live) .sa-collage__card[data-slot="2"] {
		grid-area: b;
	}

	.sa-collage:not(.is-live) .sa-collage__card[data-slot="3"] {
		grid-area: c;
	}

	.sa-collage:not(.is-live) .sa-collage__card[data-slot="4"] {
		grid-area: d;
	}
}
