/* ==========================================================================
   CSS 3D Hover Card — port of the original "World Places" pen.
   The 3 cards share ONE wrapper and ONE perspective (as the pen does), so the
   side cards lean correctly and hover straightens cleanly.
   Only change from the pen: the wrapper inherits the Elementor container width
   instead of the pen's `position:absolute; top:10%; left:40%`.
   ========================================================================== */

/* Pen .wrapper — kept perspective + dimensions; positioning adapted so it
   sits inside the Elementor container instead of absolute/left:40%. */
.css3dhc-wrapper {
	position: relative;
	width: 300px;
	height: 500px;
	perspective: 900px;
	margin: 0 auto;
}

/* Pen .container */
.css3dhc-container {
	position: absolute;
	top: 0%;
	width: 100%;
	height: 100%;
	transition: .5s all ease;
	transform: rotateX(60deg) scale(0.7);
	perspective: 900px;
	box-shadow: 0px 20px 50px #555;
	animation: css3dhc-entry 1s linear 1;
}

/* Pen #c0 / #c1 / #c2 — the left offsets that create the 3-across layout */
.css3dhc-container.css3dhc-c0 {
	left: 0%;
	z-index: 300;
	box-shadow: 0px 20px 100px #555;
}

.css3dhc-container.css3dhc-c1 {
	left: 100%;
	z-index: 0;
	box-shadow: 0px 20px 100px #555;
}

.css3dhc-container.css3dhc-c2 {
	left: -100%;
	z-index: 0;
	box-shadow: 0px 20px 100px #555;
}

/* Pen .container:hover */
.css3dhc-container:hover {
	cursor: pointer;
	transform: rotate(0deg) scale(1) translateY(10px);
	transition: .5s all ease;
	z-index: 400;
}

/* Pen .image */
.css3dhc-image {
	position: absolute;
	top: 0%;
	left: 0%;
	width: 100%;
	height: 45%;
	overflow: hidden;
	background: linear-gradient(to top, #eba65b 30%, #d99267 100%);
}

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

/* Whole-card link overlay */
.css3dhc-link {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	z-index: 10;
	display: block;
	text-decoration: none;
}

/* Pen .story */
.css3dhc-story {
	position: absolute;
	top: 45%;
	left: 0%;
	height: 55%;
	width: 100%;
	background: linear-gradient(to bottom, #eba65b 0%, #d99267 40%);
	z-index: 30;
}

/* Pen .info */
.css3dhc-info {
	position: absolute;
	top: 10%;
	width: 100%;
}

/* Pen h3 */
.css3dhc-title {
	text-align: center;
	text-shadow: 0px 0px 10px #eee;
	color: #eee;
	letter-spacing: 2px;
}

/* Pen p */
.css3dhc-desc {
	font-size: 14px;
	color: #fff;
	padding: 0px 20px 20px 20px;
	line-height: 150%;
	text-align: center;
	letter-spacing: 1px;
}

/* Pen @keyframes entry */
@keyframes css3dhc-entry {
	0% {
		top: -20%;
		opacity: 0.1;
	}
	100% {
		top: 0%;
	}
}

/* Editor — show cards flat so they are easy to edit */
.elementor-editor-active .css3dhc-container {
	transform: rotateX(0deg) scale(1);
	animation: none;
}
