/* Staircase effect module */

.t-hero-module::after {
	position: absolute;
	content: '';
	inset-inline-end: -.0625rem;
	inset-block-end: -.0625rem;
	height: clamp(112px, 22vw, 300px);
	aspect-ratio: 321/308;
	background: url('/static/themes/jesusnet/staircase.svg') no-repeat right bottom;
	background-size: contain;
	pointer-events: none;
}

html[dir=rtl] .t-hero-module::after {
	transform: rotateY(180deg);
}


/* ZigZag module */

.t-zigzag-module .p-center {
	max-inline-size: calc(var(--c-lg) * 0.76);
}

.t-zigzag-module .p-columns {
	align-items: center;
}

.t-zigzag-module .p-columns > .p-stack {
	position: relative;
}

.t-zigzag-module .p-columns  img {
	position: relative;
	z-index: 1;
  object-fit: cover;
}

@media (max-width: 700px) {
	.t-zigzag-module .p-columns > .p-stack {
		padding-inline: 20px;
	}

	.t-zigzag-module .p-columns img {
		aspect-ratio: 334/380 !important;
	}

	.t-zigzag-module .p-columns > .p-stack:not(:has(img)) {
		order: 2;
		padding-bottom: 40px;
		text-align: center;
		align-items: center;
	}

	.t-zigzag-module .p-columns > .p-stack:not(:has(img))::after {
		content: '';
		position: absolute;
		border: 1px solid #6b6b6b;
		left: 0;
		right: 0;
		bottom: 0;
		height: calc(100% + 16rem);
		border-radius: var(--border-radius);
		pointer-events: none;
	}

	.t-zigzag-module .p-columns > .p-stack:not(:has(img)) .p-cluster {
		justify-content: center;
	}
}

@media (min-width: 701px) {
	.t-zigzag-module .p-columns {
		gap: var(--s6);
	}

	.t-zigzag-module .p-columns img {
		aspect-ratio: 384/555 !important;
	}
	.t-zigzag-module .p-columns > .p-stack:has(img) {
		flex: calc(var(--p-columns-width) * 0.75);
		padding-bottom: 1.25rem;
	}

	.t-zigzag-module .p-columns > .p-stack:has(img) > * { 
		width: calc(100% - 2.5rem);
		margin-inline: auto;
	}

	.t-zigzag-module .p-columns > .p-stack:has(img) > *::after {
		content: '';
		position: absolute;
		border: 1px solid #6b6b6b;
		left: 0;
		right: 0;
		bottom: 0;
		height: 87%;
		border-radius: var(--border-radius);
		pointer-events: none;
	}

}

@media (min-width: 1200px) {
	.t-zigzag-module .p-columns > .p-stack:has(img) {
		padding-bottom: 2.375rem;
	}

	.t-zigzag-module .p-columns > .p-stack:has(img) > * { 
		width: calc(100% - 5rem);
	}
}

