/**
 * Layered Images Component Styles
 * Creates a staggered, overlapping image effect matching the design example
 */

.pound-penny-layered-images-wrapper {
	position: relative;
	width: 100%;
	box-sizing: border-box;
}

.layered-images-container {
	position: relative;
	display: inline-block;
	width: auto;
	max-width: 100%;
	vertical-align: top;
}

.layered-image-background {
	position: relative;
	z-index: 1;
	width: 100%;
	display: block;
	line-height: 0;
}

.layered-image-background img {
	display: block;
	width: 100%;
	height: auto;
	object-fit: cover;
	max-width: 100%;
	vertical-align: top;
}

.layered-image-foreground {
	position: absolute;
	z-index: 2;
	width: auto;
	max-width: 90%;
	display: block;
	line-height: 0;
}

.layered-image-foreground img {
	display: block;
	width: 100%;
	height: auto;
	object-fit: cover;
	box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
	border-radius: 2px;
	max-width: 100%;
	vertical-align: top;
}

/* Responsive adjustments */
@media screen and (max-width: 768px) {
	.layered-image-foreground {
		max-width: 85%;
	}
	
	.pound-penny-layered-images-wrapper {
		padding: 20px !important;
	}
	
	.layered-image-foreground {
		box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15) !important;
	}
}

@media screen and (max-width: 480px) {
	.layered-image-foreground {
		max-width: 80%;
		position: relative !important;
		top: 20px !important;
		left: 20px !important;
		margin-top: -20px;
		margin-left: -20px;
	}
	
	.layered-images-container {
		display: flex;
		flex-direction: column;
		align-items: center;
	}
	
	.layered-image-background {
		position: relative;
		width: 100%;
	}
	
	.layered-image-foreground {
		position: relative !important;
		width: 90% !important;
		max-width: 90% !important;
		margin: -350px 0 0 0 !important;
		top: auto !important;
		left: auto !important;
	}
}
