/* Image_Group.css */

/* The main container acts as a flex container to position the first image 
   and establish a positioning context for the second (absolute) image. */
.mw-image-group-container {
	position: relative; /* Set positioning context for absolute children */
	display: flex; /* Helps align the images */
	width: 100%; /* Default width */
	margin: 0 auto; /* Center the group */
	/* max-width is controlled by the module settings' dynamic CSS */
	justify-content: center;
	z-index: 0;
}

/* Image 1 Container - positioned normally on the left/back */
.mw-image-group-image-1 {
	width: 60%; /* Example width, adjust as needed */
	z-index: 1;
	overflow: hidden; /* Ensures rounding works */
    margin-right: -10px;
    max-width: 240px;
}

/* Image 2 Container - positioned absolutely for overlap and offset */
.mw-image-group-image-2 {
	width: 60%; /* Example width, adjust as needed */
	z-index: 2; /* Ensures it overlaps the first image */
	overflow: hidden; /* Ensures rounding works */
	margin-top: 30px;
	max-width: 240px;
}

.mw-image-group-container img{
    border-radius: 10px;
}

/* Ensure the images fill their containers and maintain aspect ratio */
.mw-image-group-container img {
	display: block;
	width: 100%;
	height: auto;
	/* border-radius is controlled by the module settings' dynamic CSS */
}