body {
	overflow-x: hidden;
}

.pseudo-scroller {
	pointer-events: none;
}

.isolayer {
	position: absolute;
	top: 0;
	left: 0;
	-webkit-transform-origin: 80% 100%;
	transform-origin: 80% 100%;
}

.js .grid,
.js .grid__item,
.js .grid__link {
	-webkit-transform-style: preserve-3d;
	transform-style: preserve-3d;
}

.grid {
	position: relative;
	margin: 0 auto;
	padding: 0;
	list-style: none;
}

.grid__item {
	width: 300px;
}

.js .grid__item {
	-webkit-backface-visibility: hidden;
	backface-visibility: hidden;
}

.grid__link {
	position: relative;
	z-index: 1;
	display: block;
}

.grid__img {
	display: block;
	width: 100%;
	height: 360px;
	object-fit: fill;
}

.grid__title {
	font-size: 0.65em;
	font-weight: 600;
	position: absolute;
	z-index: -1;
	bottom: 0;
	width: 100%;
	text-align: center;
	letter-spacing: 2px;
	text-transform: uppercase;
	opacity: 0;
	color: #fff;
	-webkit-transform: translate3d(0, -20px, 0);
	transform: translate3d(0, -20px, 0);
	-webkit-transition: -webkit-transform 0.3s, opacity 0.3s;
	transition: transform 0.3s, opacity 0.3s;
}

.grid__item:hover .grid__title {
	opacity: 1;
	-webkit-transform: translate3d(0, 0, 0);
	transform: translate3d(0, 0, 0);
}

.layer {
	position: relative;
	display: block;
}

/* Shadow effect */
.isolayer--shadow .grid__link::before {
	content: '';
	position: absolute;
	z-index: -1;
	top: 5px;
	right: 5px;
	bottom: 5px;
	left: 5px;
	opacity: 0.6;
	background: rgba(0, 0, 0, 0.8);
	box-shadow: 0 0 0 0 rgba(0, 0, 0, 0.8);
	-webkit-transform: translateZ(-1px) scale(0.95);
	transform: translateZ(-1px) scale(0.95);
	-webkit-transition: transform 0.3s, opacity 0.3s, box-shadow 0.3s;
	transition: transform 0.3s, opacity 0.3s, box-shadow 0.3s;
	-webkit-backface-visibility: hidden;
	backface-visibility: hidden;
}

.isolayer--shadow .grid__item:hover .grid__link::before {
	opacity: 0.2;
	box-shadow: 0 0 20px 10px rgba(0, 0, 0, 0.8);
	-webkit-transform: translateZ(-1px) scale(1);
	transform: translateZ(-1px) scale(1);
}

/* All individual isometric grid layouts (static and scrollable) */
.isolayer--scroll1 {
	width: 93vw;
	max-width: 1560px;
	height: calc(100vh - 280px);
}

.isolayer--scroll1 .grid__item {
	width: 520px;
	padding: 20px;
}

.isolayer--deco1 {
	width: 1200px;
	height: 900px;
}

.isolayer--deco1 .grid__link .layer:first-child:not(img) {
	background: #ac5cf5;
}

.isolayer--deco1 .grid__link .layer:nth-child(2):not(img) {
	background: #5db4eb;
}

.isolayer--deco1 .grid__link .layer:nth-child(3):not(img) {
	background: #5debb4;
}

.isolayer--deco1 .grid__link div.layer {
	width: 370px;
	height: 270px;
	opacity: 0.4;
}

.isolayer--deco1 .grid__item {
	width: 400px;
	height: 300px;
	padding: 15px;
}

.isolayer--deco1 .grid__item:nth-child(2) {
	margin-top: 150px;
}

.isolayer--deco2 {
	width: 1200px;
	height: 100vh;
}

.isolayer--deco2 .grid__item {
	padding: 20px;
}

.isolayer--deco2 .grid__link {
	-webkit-transform-style: flat;
	transform-style: flat;
	transform: translate3d(0, 0, 0);
}

.isolayer--deco2 .grid__link .layer {
	border: 20px solid #fff;
	border-width: 40px 20px;
	box-shadow: -1px 1px 5px rgba(0, 0, 0, 0.08);
}

.isolayer--deco3 {
	width: 960px;
	height: 500px;
}

.isolayer--deco3 .grid__item {
	width: 240px;
	height: 320px;
	padding: 0;
}

.isolayer--deco3 .grid__item:nth-child(2),
.isolayer--deco3 .grid__item:nth-child(4) {
	margin-top: -160px;
}

.isolayer--deco3 .grid__link,
.isolayer--deco3 .layer {
	width: 100%;
	height: 100%;
}

.isolayer--deco3 .layer {
	text-align: center;
	background: #fff;
	-webkit-transform-origin: 0% 50%;
	transform-origin: 0% 50%;
}

.isolayer--deco3 .grid__link:hover .layer:not(:first-child) {
	box-shadow: 2px 0 2px rgba(0, 0, 0, 0.1);
}

.isolayer--deco3 .grid__item:nth-child(2n) .layer {
	background: #f7d2dc;
}

.isolayer--deco3 .grid__item:nth-child(3n) .layer {
	background: #fff0f3;
}

.isolayer--deco3 .grid__item:nth-child(4n) .layer {
	background: #e9c5cc;
}

.isolayer--deco3 .grid__item:nth-child(5n) .layer {
	background: #d6cbcd;
}

.isolayer--deco3 .grid__item:nth-child(7n) .layer {
	background: #ffc9d8;
}

.isolayer--deco3 .layer {
	width: 100%;
	height: 100%;
}

.isolayer--deco3 .decoletter {
	font-size: 6em;
	font-weight: 900;
	line-height: 1;
	display: block;
	padding: 70px 0 0 0;
	color: #000;
	color: #000;
}

.isolayer--deco3 .deconumber {
	font-size: 3em;
	display: block;
	color: #000;
}

.isolayer--deco4 {
	width: 1000px;
	height: 900px;
}

.isolayer--deco4 .grid__item {
	padding: 15px;
}

.isolayer--deco4 .grid__link .layer:first-child:not(img) {
	background: #ac5cf5;
}

.isolayer--deco4 .grid__link .layer:nth-child(2):not(img) {
	background: #5db4eb;
}

.isolayer--deco4 .grid__link .layer:nth-child(3):not(img) {
	background: #5debb4;
}

.isolayer--deco4 .grid__link .layer {
	-webkit-transform-origin: 50% 100%;
	transform-origin: 50% 100%;
}

.isolayer--deco4 .grid__link div.layer {
	width: 270px;
	height: 203px;
	opacity: 0.4;
}

.isolayer--deco4 .grid__item {
	width: 300px;
	height: 225px;
	padding: 15px;
}

/* Flip effect for the scrollable grid */

.js .grid--effect-flip .grid__item {
	opacity: 0;
}

.js .grid--effect-flip .grid__item.shown {
	opacity: 1;
}

.grid--effect-flip .grid__item.animate {
	-webkit-transform: translateY(800px);
	transform: translateY(800px);
	-webkit-animation: moveUp 1s cubic-bezier(0.2, 1, 0.3, 1) forwards;
	animation: moveUp 1s cubic-bezier(0.2, 1, 0.3, 1) forwards;
}

@-webkit-keyframes moveUp {
	100% {
		opacity: 1;
		-webkit-transform: translateY(0px);
		transform: translateY(0px);
	}
}

@keyframes moveUp {
	100% {
		opacity: 1;
		-webkit-transform: translateY(0px);
		transform: translateY(0px);
	}
}

/* Loading effect */

/* ===== Before / After Slider Modal ===== */
.ba-modal-overlay {
	position: fixed;
	inset: 0;
	background: rgba(0, 0, 0, 0.82);
	z-index: 9998;
	display: none;
	justify-content: center;
	align-items: center;
	backdrop-filter: blur(6px);
	-webkit-backdrop-filter: blur(6px);
}

.ba-modal-overlay.active {
	display: flex;
}

.ba-modal {
	position: fixed;
	top: 50%;
	left: 50%;
	width: min(92vw, 860px);
	background: #111;
	border-radius: 1rem;
	overflow: hidden;
	box-shadow: 0 40px 100px rgba(0, 0, 0, 0.9), 0 0 0 1px rgba(255, 255, 255, 0.08);
	z-index: 9999;
	opacity: 0;
	transform: translate(-50%, -50%) scale(0.05);
}

.ba-modal-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 14px 20px;
	background: #1c1c1c;
	border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.ba-modal-title {
	font-family: system-ui, sans-serif;
	font-size: 0.65em;
	font-weight: 700;
	color: #fff;
	letter-spacing: 2px;
	text-transform: uppercase;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	max-width: 85%;
}

.ba-modal-close {
	background: none;
	border: none;
	color: rgba(255, 255, 255, 0.7);
	font-size: 1.6rem;
	line-height: 1;
	cursor: pointer;
	padding: 2px 8px;
	border-radius: 4px;
	transition: color 0.2s, background 0.2s;
	flex-shrink: 0;
}

.ba-modal-close:hover {
	color: #fff;
	background: rgba(255, 255, 255, 0.12);
}

/* Slider area */
.ba-slider-container {
	position: relative;
	width: 100%;
	height: 420px;
	overflow: hidden;
	cursor: ew-resize;
}

.ba-before-image,
.ba-after-image {
	position: absolute;
	inset: 0;
	display: flex;
	justify-content: center;
	align-items: center;
	overflow: hidden;
}

.ba-before-image img,
.ba-after-image img {
	width: 100%;
	height: 100%;
	object-fit: contain;
	display: block;
	pointer-events: none;
	user-select: none;
	-webkit-user-select: none;
	-webkit-drag: none;
}

.ba-before-text,
.ba-after-text {
	position: absolute;
	font-family: system-ui, sans-serif;
	font-size: 12px;
	font-weight: 700;
	color: #2a2a2a;
	z-index: 4;
	padding: 7px 14px;
	background: rgba(255, 255, 255, 0.78);
	border-radius: 0.3rem;
	letter-spacing: 2px;
	top: 14px;
	pointer-events: none;
	user-select: none;
}

.ba-before-text {
	left: 14px;
	z-index: 5;
}

.ba-after-text {
	right: 14px;
	z-index: 3;
}

.ba-after-image {
	clip-path: inset(0 50% 0 0);
}

.ba-slider-handle {
	position: absolute;
	top: 0;
	left: 50%;
	width: 3px;
	height: 100%;
	background: #fff;
	transform: translateX(-50%);
	z-index: 4;
	pointer-events: none;
}

.ba-slider-line {
	position: absolute;
	top: 0;
	left: 50%;
	width: 0;
	height: 100%;
	display: flex;
	justify-content: center;
	align-items: center;
	z-index: 5;
	cursor: ew-resize;
}

.ba-pulse-container {
	position: relative;
	display: inline-block;
}

.ba-pulse-container::before {
	content: "";
	position: absolute;
	top: 50%;
	left: 50%;
	width: 70px;
	height: 70px;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.5);
	transform: translate(-50%, -50%) scale(1);
	opacity: 0;
	animation: ba-pulse 1.8s ease-out infinite;
}

@keyframes ba-pulse {
	0% {
		transform: translate(-50%, -50%) scale(1);
		opacity: 0.6;
	}

	100% {
		transform: translate(-50%, -50%) scale(1.9);
		opacity: 0;
	}
}

.ba-slider-line svg {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	cursor: ew-resize;
	filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.4));
}

.ba-slider-container,
.ba-slider-handle,
.ba-slider-line {
	user-select: none;
	-webkit-user-select: none;
	-moz-user-select: none;
	-ms-user-select: none;
}

/* ===== End Before / After Slider Modal ===== */
.js .grid {
	opacity: 0;
	-webkit-transition: opacity 0.3s;
	transition: opacity 0.3s;
}

.js .grid.grid--loaded {
	opacity: 1;
}

.js body::after {
	content: '';
	position: fixed;
	z-index: 1000;
	top: 50%;
	left: 50%;
	width: 70px;
	height: 70px;
	margin: -35px 0 0 -35px;
	pointer-events: none;
	border: 3px solid #fff;
	border-right-color: #323f5c;
	border-radius: 50%;
	-webkit-transition: opacity 0.3s;
	transition: opacity 0.3s;
	-webkit-animation: rotateCircle 0.7s linear infinite forwards;
	animation: rotateCircle 0.7s linear infinite forwards;
}

@-webkit-keyframes rotateCircle {
	to {
		-webkit-transform: rotate(360deg);
		transform: rotate(360deg);
	}
}

@keyframes rotateCircle {
	to {
		-webkit-transform: rotate(360deg);
		transform: rotate(360deg);
	}
}


.js body.grid-loaded::after {
	opacity: 0;
}

@media screen and (max-width: 50em) {

	.grid {
		position: relative;
		margin: 80px;
		margin-left: -100px;
		padding: 150px;
		list-style: none;
	}

	.isolayer--scroll1 {
		width: 70vw;
		max-width: 1200px;
		height: calc(100vh - 480px);
	}
}