/**
 * Multiple Images Gallery Block - Grid Layout
 * Shared styles for Blog & Articles modules
 * --------------------------
 */
.editorBox_multipleImages {
	margin: 10px 0;
	padding: 0;
	position: relative;
	display: block;
	overflow: hidden;
	width: 100%;
	box-sizing: border-box;
}
/* Iframe directly inside editorBox - ensure full width */
.editorBox_multipleImages > iframe,
.editorBox_multipleImages iframe {
	width: 100% !important;
	max-width: 100%;
	min-width: 100%;
	border: none;
	display: block;
	box-sizing: border-box;
	margin: 0;
	padding: 0;
}
.editorBox_multipleImages .grid {
	display: grid;
	grid-template-columns: repeat(12, 1fr);
	grid-template-rows: repeat(2, 1fr);
	grid-gap: 18px;
	margin-bottom: 18px;
}
/* Remove margin from last grid */
.editorBox_multipleImages .grid:last-child {
	margin-bottom: 0;
}
/* In mobile we want less space between the grid items */
@media(max-width:480px) {
	.editorBox_multipleImages .grid {
		grid-gap: 6px;
		margin-bottom: 6px;
	}
	/* Remove margin from last grid on mobile */
	.editorBox_multipleImages .grid:last-child {
		margin-bottom: 0;
	}
}
/* We use padding top to give the images an 16/9 aspect ratio */
.editorBox_multipleImages .grid-item {
	text-align: center;
	align-items: center;
	overflow: hidden;
	display: flex;
	padding-top: 56.25%;
	position: relative;
	background-color: #f5f5f5;
	cursor: pointer;
}
.editorBox_multipleImages .grid-item img {
	object-fit: cover;
	object-position: center;
	position: absolute;
	width: 100% !important;
	height: 100% !important;
	transition: all 0.2s ease;
	top: 0;
	left: 0;
	bottom: 0;
	right: 0;
}
/* Big image at the left + two small images at the right */
.editorBox_multipleImages .grid .grid-item:nth-child(1) {
	grid-row: span 2;
	grid-column: span 8;
}
.editorBox_multipleImages .grid .grid-item:nth-child(2) {
	grid-column: span 4;
}
.editorBox_multipleImages .grid .grid-item:nth-child(3) {
	grid-column: span 4;
}
/* Big image at the right + two small images at the left */
.editorBox_multipleImages .grid:nth-child(even) .grid-item:nth-child(1) {
	grid-row: span 2;
	grid-column: 5 / span 8;
}
.editorBox_multipleImages .grid:nth-child(even) .grid-item:nth-child(2) {
	grid-row: 1 / span 1;
	grid-column: 1 / span 4;
}
.editorBox_multipleImages .grid:nth-child(even) .grid-item:nth-child(3) {
	grid-row: 2 / span 1;
	grid-column: 1 / span 4;
}
/* One image at the bottom of the gallery support */
.editorBox_multipleImages .grid .grid-item.oneImage {
	grid-column: span 12 !important;
}
/* Two images at the bottom of the gallery support */
.editorBox_multipleImages .grid .grid-item.twoImages:nth-child(1) {
	grid-row: span 2;
	grid-column: 1 / span 6;
}
.editorBox_multipleImages .grid .grid-item.twoImages:nth-child(2) {
	grid-row: span 2;
	grid-column: 7 / span 6;
}
/* "See more" overlay for galleries with >10 images */
.editorBox_multipleImages .see-more-overlay {
	position: absolute;
	bottom: 0;
	left: 0;
	right: 0;
	background: rgba(0, 0, 0, 0.7);
	color: white;
	padding: 15px;
	text-align: center;
	font-size: 16px;
	font-weight: bold;
	cursor: pointer;
	z-index: 10;
}
.editorBox_multipleImages .see-more-overlay:hover {
	background: rgba(0, 0, 0, 0.85);
}
/* IE11 support */
html.ie11-support .editorBox_multipleImages .grid {
	display: -ms-grid;
	-ms-grid-columns: 1fr 1fr 1fr;
}
html.ie11-support .editorBox_multipleImages .grid .grid-item {
	text-align: center;
	overflow: hidden;
	position: relative;
	display: block;
	height: 300px;
}
html.ie11-support .editorBox_multipleImages .grid .grid-item:nth-child(1) {
	-ms-grid-column: 1;
}
html.ie11-support .editorBox_multipleImages .grid .grid-item:nth-child(2) {
	-ms-grid-column: 2;
	margin: 0 30px;
}
html.ie11-support .editorBox_multipleImages .grid .grid-item:nth-child(3) {
	-ms-grid-column: 3;
}
html.ie11-support .editorBox_multipleImages .grid .grid-item img {
    width: 100%;
    height: 100%;
    transition: all 0.2s ease;
}

/* Make images clickable with pointer cursor */
.editorBox_multipleImages .grid-item img {
    cursor: pointer;
}

/* Respect links - don't override their cursor */
.editorBox_multipleImages .grid-item a img {
    cursor: pointer;
}

/* Magnific Popup close button styling for multiple images gallery */
.mfp-wrap button.mfp-close {
    font-size: 50px;
    width: 45px;
    height: 55px;
}

/* Multiple Images Gallery iFrame Container and iFrame
 * Used when displaying galleries in blog/article content
 * --------------------------
 */
.multiple-images-gallery-iframe-container {
	padding: 0px 5px;
	position: relative;
	width: 100%;
	box-sizing: border-box;
}

/* Target the iframe class directly - works everywhere */
.multiple-images-gallery-iframe {
	width: 100% !important;
	max-width: 100%;
	min-width: 100%;
	min-height: 200px;
	border: none;
	display: block;
	box-sizing: border-box;
	margin: 0;
	padding: 0;
	overflow: hidden;
}

